:root {
    --bg: #f8f8f7;
    --surface: #ffffff;
    --text: #1f1a17;
    --muted: #756d66;
    --accent: #b89460;
    --accent-dark: #9b7847;
    --line: #ece9e5;
    --shadow-soft: 0 12px 40px rgba(31, 26, 23, 0.08);
    --topbar-height: 130px;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 2% -3%, #fff4df 0, rgba(255, 244, 223, 0) 25%),
        radial-gradient(circle at 95% -8%, #f7ebff 0, rgba(247, 235, 255, 0) 22%),
        var(--bg);
    line-height: 1.55;
}

.container {
    width: min(1220px, 92%);
    margin: 0 auto;
}

.page-home .container {
    width: min(1380px, 94%);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main {
    padding-top: var(--topbar-height);
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(236, 233, 229, 0.8);
    background: rgba(248, 248, 247, 0.92);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.32s ease;
    will-change: transform;
}

.topbar.topbar--hidden {
    transform: translateY(calc(-100% - 1px));
    box-shadow: none;
    pointer-events: none;
}

.topbar-head {
    display: grid;
    grid-template-columns: max-content 1fr auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 10px;
    padding: 8px 0 6px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    color: #1a1411;
    text-decoration: none;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-lg img {
    display: block;
    height: clamp(72px, 12.5vw, 118px);
    width: auto;
    max-width: min(560px, 58vw);
    object-fit: contain;
}

.topbar-head .topbar-search {
    min-width: 0;
}

.topbar-search {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: min(720px, 100%);
    max-width: 100%;
    justify-self: center;
    min-height: 0;
    border-radius: 999px;
    border: 1px solid #e3dcd4;
    background: #fff;
    box-shadow: 0 3px 14px rgba(31, 26, 23, 0.05);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.topbar-search:focus-within {
    border-color: #cbb89f;
    box-shadow: 0 6px 22px rgba(184, 148, 96, 0.2);
}

.topbar-search input[type="search"] {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 12px 8px 16px;
    font-size: .88rem;
    line-height: 1.35;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    box-sizing: border-box;
}

.topbar-search input[type="search"]:focus {
    outline: none;
    box-shadow: none;
}

.topbar-search input[type="search"]::placeholder {
    color: #9a918a;
}

.topbar-search-btn {
    flex-shrink: 0;
    align-self: stretch;
    border: 0;
    padding: 0 16px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #c4a06a, #a88952);
    cursor: pointer;
    line-height: 1.2;
    transition: filter .2s ease, transform .15s ease;
}

.topbar-search-btn:hover {
    filter: brightness(1.05);
}

.topbar-actions {
    display: flex;
    gap: 10px;
    justify-self: end;
    align-items: center;
}

.topbar-actions .cart-link,
.actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f443d;
    text-decoration: none;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: #fff;
    border: 1px solid #e5dfd8;
    border-radius: 999px;
    padding: 6px 12px 6px 10px;
    transition: all .2s ease;
}

.cart-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4a4039;
}

.cart-link-icon svg {
    display: block;
}

.cart-link-count {
    font-variant-numeric: tabular-nums;
}

.topbar-actions .cart-link:hover,
.actions a:hover {
    color: var(--accent-dark);
    border-color: #d4c5b3;
    transform: translateY(-1px);
}

.actions {
    display: flex;
    gap: 10px;
}

.nav-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
}

.nav-wrap::-webkit-scrollbar {
    height: 5px;
}

.nav-wrap::-webkit-scrollbar-thumb {
    background: #d8cfc5;
    border-radius: 99px;
}

.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0 10px;
}

.category-pills-elegant {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 4px 14px;
    min-width: min-content;
}

.category-pills a {
    color: #3e352f;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    background: linear-gradient(180deg, #fff, #fbfaf9);
    border: 1px solid #e6dfd8;
    border-radius: 999px;
    padding: 10px 20px;
    min-width: 126px;
    text-align: center;
    transition: all .2s ease;
}

.category-pills-elegant a {
    min-width: unset;
    padding: 9px 18px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid rgba(227, 220, 212, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #faf8f6);
    box-shadow: 0 2px 8px rgba(31, 26, 23, 0.04);
}

.category-pills a:hover {
    color: #1f1a17;
    border-color: #d4c5b3;
    box-shadow: 0 8px 20px rgba(180, 148, 96, 0.18);
    transform: translateY(-1px);
}

.category-pills-elegant a:hover {
    border-color: #cbb89f;
    box-shadow: 0 6px 16px rgba(184, 148, 96, 0.16);
}

.category-pills a.is-active {
    color: #1f1a17;
    border-color: var(--accent);
    background: linear-gradient(180deg, #fff9ef, #fff4e5);
    box-shadow: 0 6px 18px rgba(184, 148, 96, 0.22);
}

.category-pills-elegant a.is-active {
    color: #1a1411;
    border-color: #b89460;
    background: linear-gradient(180deg, #fffdf8, #fff3e0);
    box-shadow: 0 4px 14px rgba(184, 148, 96, 0.28);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid #e5dfd8;
    border-radius: 12px;
    background: #fff;
    color: #3a322c;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
    border-color: #d4c5b3;
    box-shadow: 0 4px 14px rgba(31, 26, 23, 0.08);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.nav-toggle-bars {
    position: relative;
    transition: background 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    transition: transform 0.22s ease, top 0.22s ease;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

body.nav-open .nav-toggle-bars {
    background: transparent;
}

body.nav-open .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--topbar-height, 120px);
    z-index: 158;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(18, 14, 12, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-backdrop:not([hidden]) {
    display: block;
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
    }

    .topbar > .container.nav-wrap {
        position: fixed;
        top: var(--topbar-height, 120px);
        right: 0;
        left: auto;
        width: min(300px, 88vw);
        max-width: none;
        height: calc(100dvh - var(--topbar-height, 120px));
        max-height: calc(100dvh - var(--topbar-height, 120px));
        margin: 0;
        padding: 20px 18px 32px;
        z-index: 159;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: linear-gradient(180deg, #fdfcfa 0%, #f5f1ec 100%);
        border-left: 1px solid #e8e1da;
        box-shadow: -12px 0 40px rgba(31, 26, 23, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        mask-image: none;
    }

    body.nav-open .topbar > .container.nav-wrap {
        transform: translateX(0);
    }

    .topbar > .container.nav-wrap .category-pills-elegant {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 10px;
        min-width: 0;
        padding: 0;
    }

    .topbar > .container.nav-wrap .category-pills-elegant a {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        padding: 14px 16px;
        font-size: 0.8rem;
        letter-spacing: 0.12em;
        border-radius: 14px;
    }
}

.novelties-carousel {
    position: relative;
    padding: 0 48px;
    margin-top: 4px;
}

.carousel-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-radius: 18px;
}

.carousel-viewport::-webkit-scrollbar {
    height: 6px;
}

.carousel-viewport::-webkit-scrollbar-thumb {
    background: #d2c8bc;
    border-radius: 99px;
}

.carousel-viewport:focus-visible {
    outline: 2px solid rgba(184, 148, 96, 0.55);
    outline-offset: 3px;
}

.carousel-track {
    display: flex;
    gap: 18px;
    padding: 6px 4px 16px;
}

.carousel-slide {
    flex: 0 0 clamp(210px, 72vw, 270px);
    scroll-snap-align: start;
}

@media (min-width: 1180px) {
    .carousel-slide {
        flex: 0 0 calc((min(1380px, 94vw) - 180px) / 5);
        max-width: 280px;
    }
}

.carousel-slide .card {
    height: 100%;
}

.carousel-fab {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e8e1d9;
    background: rgba(255, 255, 255, 0.94);
    color: #3a322c;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(31, 26, 23, 0.1);
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.carousel-fab:hover {
    background: #fff;
    border-color: #cbb89f;
    transform: translateY(-50%) scale(1.04);
}

.carousel-prev {
    left: 4px;
}

.carousel-next {
    right: 4px;
}

@media (max-width: 600px) {
    .novelties-carousel {
        padding: 0 40px;
    }

    .carousel-fab {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

.search-page-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 26px;
    max-width: 640px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e3dcd4;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
}

.search-page-form input:focus {
    outline: none;
    border-color: #cbb89f;
    box-shadow: 0 0 0 3px rgba(184, 148, 96, 0.2);
}

.search-hint {
    margin-top: 8px;
}

.breadcrumb {
    font-size: .82rem;
    color: var(--muted);
    margin: 0 0 14px;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--accent-dark);
}

.breadcrumb span {
    color: #a69b92;
    margin: 0 6px;
}

.category-page-head {
    margin-bottom: 22px;
}

.category-page-head .section-title {
    margin-bottom: 8px;
}

.category-page-head .muted {
    margin: 0 0 6px;
    max-width: 720px;
}

.category-count {
    font-size: .85rem;
    font-weight: 600;
    color: #5c534c;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.category-empty {
    padding: 28px 22px;
    text-align: center;
    border: 1px dashed #dcd4cc;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
}

.category-empty p {
    margin: 0 0 14px;
    color: var(--muted);
}

.section.home-slab {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 248, 245, 0.98) 100%);
}

.section.home-slab-alt {
    background: linear-gradient(180deg, #f7f4f0 0%, #fdfcfa 40%, #f9f6f2 100%);
}

.home-products-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(236, 233, 229, 0.95);
}

.home-products-head .section-title {
    margin-bottom: 0;
}

.home-section-lead {
    margin: 8px 0 0;
    max-width: 540px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

a.home-section-link {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent-dark);
    white-space: nowrap;
    border-bottom: 2px solid rgba(184, 148, 96, 0.45);
    padding-bottom: 3px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a.home-section-link:hover {
    color: #2a221d;
    border-color: var(--accent);
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 110px 0 100px;
    background:
        linear-gradient(90deg, rgba(18, 14, 11, 0.75), rgba(18, 14, 11, 0.38)),
        var(--media-hero-banner) center/cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -180px auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(184, 148, 96, 0.35), rgba(184, 148, 96, 0));
    pointer-events: none;
}

.hero-copy {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin: 0 0 12px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: .02em;
    line-height: .95;
    text-transform: uppercase;
}

.hero p {
    margin: 0;
    color: #efe9e4;
    max-width: 620px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #ead7bd;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.section {
    padding: 42px 0;
}

.section.tight {
    padding-top: 18px;
}

.section-title {
    margin: 0 0 20px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(1.9rem, 2.5vw, 2.4rem);
    letter-spacing: .02em;
    color: #1e1814;
    text-transform: uppercase;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid.products {
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.grid.products.home-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .grid.products.home-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .grid.products.home-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1180px) {
    .grid.products.home-products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.grid.products.category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 720px) {
    .grid.products.category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1020px) {
    .grid.products.category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.category-scroll-sentinel {
    height: 2px;
    margin-top: 4px;
    pointer-events: none;
}

.category-infinite-status {
    text-align: center;
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--muted);
}

.card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.22s ease;
}

.card-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.card-image-link {
    position: relative;
    z-index: 0;
    display: block;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(18, 14, 12, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .card-image-overlay {
        opacity: 0;
    }

    .card:hover .card-image-overlay {
        opacity: 1;
    }
}

.card-image-overlay .card-overlay-form,
.card-image-overlay .card-overlay-icon-btn {
    pointer-events: auto;
}

.card-overlay-form {
    margin: 0;
}

.card-overlay-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #3a322c;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card-overlay-icon-btn:hover {
    transform: scale(1.06);
    background: #fff;
    border-color: #fff;
}

.card-overlay-icon-btn svg {
    display: block;
}

.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #b84a3d;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
}

@media (max-width: 960px), (hover: none) {
    .card-image-overlay {
        align-items: flex-end;
        justify-content: center;
        padding: 10px 10px 12px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 1;
    }
}

.card h3 a {
    color: inherit;
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--accent-dark);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .35s ease;
}

.card-content {
    padding: 14px 2px 4px;
}

.card h3 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.card:hover {
    transform: none;
}

.card:hover .card-image-link img {
    transform: scale(1.05);
}

.card:focus-within .card-image-overlay {
    opacity: 1;
}

.muted {
    color: var(--muted);
    font-size: .92rem;
}

.price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 8px 0 12px;
}

.price-row .price {
    margin: 0;
}

.price-old {
    font-size: .95rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: line-through;
}

.price {
    margin: 8px 0 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d241e;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid #1f1a17;
    background: #1f1a17;
    color: #fff;
    padding: 11px 18px;
    font-size: .79rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: all .2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.secondary {
    color: #2a221d;
    background: #fff;
    border-color: #e3dbd3;
}

.btn.secondary.light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.perfume-detail-card {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(236, 233, 229, 0.95);
}

.perfume-detail-heading {
    margin: 0 0 14px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.perfume-specs {
    margin: 0;
    padding: 14px 16px 4px;
    border-radius: 14px;
    border: 1px solid #ece7e1;
    background: linear-gradient(180deg, #fdfcfa 0%, #faf7f4 100%);
}

.perfume-spec {
    display: grid;
    grid-template-columns: minmax(110px, 32%) 1fr;
    gap: 8px 20px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(236, 233, 229, 0.85);
    align-items: start;
}

.perfume-spec:last-child {
    border-bottom: none;
    padding-bottom: 6px;
}

.perfume-spec-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.35;
}

.perfume-spec-value {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
}

@media (max-width: 520px) {
    .perfume-spec {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* --- Ficha producto (product.php) --- */
.product-detail-page .product-detail-panel {
    overflow: hidden;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 28px 36px;
    align-items: start;
}

.product-detail-img {
    display: block;
    width: 100%;
    max-height: min(72vh, 560px);
    object-fit: cover;
    border-radius: 14px;
    background: #f0ebe5;
}

.product-detail-meta {
    margin: 0 0 6px;
    font-size: 0.86rem;
}

.product-detail-title {
    margin: 0 0 10px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
    color: #1f1a17;
}

.product-detail-price {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 700;
}

.product-detail-form {
    margin: 0 0 20px;
}

.product-detail-buy {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 16px;
}

.product-detail-qty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
}

.product-detail-qty-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5c534c;
}

#product-buy-form .product-detail-qty-select {
    width: auto;
    min-width: 4.25rem;
    max-width: 6.5rem;
    margin: 0;
    padding: 10px 30px 10px 12px;
    border: 1px solid #ddd6cf;
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #2d241e;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c534c' d='M1.4 0 6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
    appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

#product-buy-form .product-detail-qty-select:focus {
    outline: none;
    border-color: #cbb89f;
    box-shadow: 0 0 0 3px rgba(184, 148, 96, 0.18);
}

.product-detail-add-btn {
    flex: 1 1 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
}

.product-detail-cart-icon {
    flex-shrink: 0;
}

.product-detail-desc {
    margin: 0;
    padding-top: 4px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4a423c;
}

.product-detail-desc p {
    margin: 0;
}

@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: minmax(0, 320px) 1fr;
        gap: 22px 24px;
        align-items: start;
    }

    .product-detail-media {
        position: relative;
    }

    .product-detail-img {
        max-height: min(52vh, 380px);
    }
}

@media (max-width: 720px) {
    .product-detail-grid {
        grid-template-columns: minmax(0, 42vw) minmax(0, 1fr);
        gap: 14px 16px;
        align-items: start;
    }

    .product-detail-img {
        max-height: 200px;
    }

    .product-detail-title {
        font-size: 1.08rem;
        margin-bottom: 6px;
    }

    .product-detail-price {
        font-size: 1.12rem;
        margin-bottom: 10px;
    }

    .product-detail-form {
        margin-bottom: 14px;
    }

    .product-detail-buy {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-end;
        gap: 10px;
    }

    #product-buy-form .product-detail-qty-select {
        width: auto;
        flex: 0 0 auto;
        max-width: 5.75rem;
    }

    .product-detail-add-btn {
        flex: 1;
        min-width: 0;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-detail-img {
        max-height: min(46vh, 300px);
    }

    .product-detail-buy {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: end;
        gap: 10px 12px;
    }

    #product-buy-form .product-detail-qty-select {
        max-width: 100%;
    }

    .product-detail-add-btn {
        min-height: 46px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

th, td {
    border-bottom: 1px solid #f0ece8;
    text-align: left;
    padding: 11px 10px;
    font-size: .9rem;
}

th {
    color: #5e534b;
    font-weight: 600;
    letter-spacing: .02em;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="search"]),
textarea,
select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-top: 5px;
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid #ddd6cf;
    outline: none;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="search"]):focus,
textarea:focus,
select:focus {
    border-color: #cfb38b;
    box-shadow: 0 0 0 4px rgba(184, 148, 96, 0.16);
}

.site-footer {
    margin-top: 36px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
}

.banners-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-banners {
    padding-top: 22px;
    padding-bottom: 10px;
}

.banners-grid--elegant {
    gap: 22px;
}

.mini-banner {
    min-height: 175px;
    padding: 22px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .25s ease;
}

.mini-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.mini-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(31, 26, 23, 0.18);
}

.mini-banner h3 {
    margin: 0 0 6px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.65rem;
    text-transform: uppercase;
    line-height: .95;
    position: relative;
}

.mini-banner span,
.mini-banner-cta {
    position: relative;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 700;
}

.mini-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 4px;
    padding: 8px 16px 8px 18px;
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.mini-banner-cta::after {
    content: "\203A";
    font-size: 1.15em;
    font-weight: 400;
    opacity: 0.85;
    line-height: 1;
}

.mini-banner--elegant {
    min-height: 204px;
    padding: 26px 24px 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 40px rgba(31, 26, 23, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.mini-banner--elegant::before {
    background:
        radial-gradient(ellipse 120% 70% at 8% 0%, rgba(255, 255, 255, 0.2), transparent 52%),
        radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.2), transparent 45%);
}

.mini-banner--elegant::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 220, 190, 0.35),
        rgba(255, 255, 255, 0.55),
        rgba(255, 220, 190, 0.35),
        transparent
    );
    pointer-events: none;
}

.mini-banner--elegant:hover {
    transform: translateY(-6px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 24px 52px rgba(31, 26, 23, 0.22);
    border-color: rgba(255, 255, 255, 0.24);
}

.mini-banner--elegant h3 {
    font-size: 1.78rem;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.mini-banner--elegant .eyebrow {
    margin-bottom: 10px;
    opacity: 0.94;
}

.mini-banner--elegant:hover .mini-banner-cta {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateX(3px);
}

.mini-banner.dark:not(.mini-banner--photo) {
    background: linear-gradient(135deg, #2e2622, #5a4a40);
}

.mini-banner.light:not(.mini-banner--photo) {
    background: linear-gradient(135deg, #68584b, #8b7767);
}

.mini-banner.accent:not(.mini-banner--photo) {
    background: linear-gradient(135deg, #7f6545, #b89460);
}

.mini-banner.orient:not(.mini-banner--photo) {
    background: linear-gradient(135deg, #3d2a1f, #6b4423);
}

.mini-banner--photo {
    background-color: #2e2622;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mini-banner--photo-arabe {
    background-image: var(--media-mini-arabe);
}

.mini-banner--photo-1 {
    background-image: var(--media-mini-1);
}

.mini-banner--photo-2 {
    background-image: var(--media-mini-2);
}

.mini-banner--photo-3 {
    background-image: var(--media-mini-3);
}

.mini-banner--photo.dark,
.mini-banner--photo.light,
.mini-banner--photo.accent,
.mini-banner--photo.orient {
    background-color: #2e2622;
}

.mini-banner--elegant.mini-banner--photo::before {
    background:
        linear-gradient(180deg, rgba(20, 16, 14, 0.15) 0%, rgba(20, 16, 14, 0.55) 58%, rgba(20, 16, 14, 0.82) 100%),
        radial-gradient(ellipse 120% 70% at 8% 0%, rgba(255, 255, 255, 0.12), transparent 52%),
        radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.1), transparent 45%);
}

.mini-banner--elegant.mini-banner--photo .eyebrow,
.mini-banner--elegant.mini-banner--photo h3,
.mini-banner--elegant.mini-banner--photo .mini-banner-cta {
    position: relative;
    z-index: 1;
}

.statement-banner {
    background: linear-gradient(160deg, #fff, #fbf8f4);
    border: 1px solid #ebe4dc;
    border-radius: 22px;
    padding: 34px;
    box-shadow: var(--shadow-soft);
}

.statement-banner h2 {
    margin: 0 0 10px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: .95;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #201915;
}

.statement-banner p {
    margin: 0;
    color: #685f58;
}

.stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .topbar-head {
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas:
            "menu brand cart"
            "search search search";
    }

    .brand-lg {
        grid-area: brand;
        justify-self: center;
    }

    .brand-lg img {
        height: clamp(96px, 24vw, 112px);
        max-width: min(320px, 78vw);
    }

    .topbar-actions {
        display: contents;
    }

    .topbar-actions .nav-toggle {
        grid-area: menu;
        justify-self: start;
    }

    .topbar-actions .cart-link {
        grid-area: cart;
        justify-self: end;
    }

    .topbar-search {
        grid-area: search;
        max-width: none;
        width: 100%;
        justify-self: stretch;
    }

    .actions {
        flex-wrap: wrap;
    }

    .category-pills a {
        min-width: unset;
        padding: 9px 16px;
    }

    .category-pills-elegant a {
        padding: 8px 14px;
        font-size: .72rem;
    }

    .hero {
        padding: 88px 0 78px;
    }

    .banners-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Carrito y checkout --- */
.cart-page-head {
    margin-bottom: 24px;
}

.cart-page-lead {
    margin: 8px 0 0;
    max-width: 560px;
}

.cart-empty {
    max-width: 480px;
    text-align: center;
}

.cart-empty p {
    margin: 0 0 18px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 32px;
    align-items: start;
}

.cart-form {
    margin: 0;
}

.cart-main-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.cart-lines-board.panel {
    padding: 0;
    overflow: hidden;
}

.cart-lines-board .cart-line:last-child {
    border-bottom: 0;
}

.cart-line {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 18px 22px;
    padding: 20px 22px;
    margin: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(236, 233, 229, 0.95);
    border-radius: 0;
    box-shadow: none;
}

.cart-line-thumb {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f0ebe5;
    align-self: start;
}

.cart-line-thumb img {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: cover;
}

.cart-line-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.15;
}

.cart-line-title a {
    color: inherit;
    text-decoration: none;
}

.cart-line-title a:hover {
    color: var(--accent-dark);
}

.cart-line-unit {
    margin: 0 0 14px;
    font-size: 0.88rem;
}

.cart-line-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 16px;
}

.cart-line-qty-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 28px;
    flex: 1;
    min-width: 0;
}

.cart-qty-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5c534c;
}

.cart-line-controls .cart-qty-select {
    width: auto;
    min-width: 3.25rem;
    max-width: 5.5rem;
    margin-top: 0;
    margin-bottom: 0;
    padding: 9px 28px 9px 12px;
    border: 1px solid #ddd6cf;
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #2d241e;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c534c' d='M1.4 0 6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
    appearance: none;
    cursor: pointer;
}

.cart-line-controls .cart-qty-select:focus {
    outline: none;
    border-color: #cbb89f;
    box-shadow: 0 0 0 3px rgba(184, 148, 96, 0.18);
}

.cart-line-sub {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 7.5rem;
    text-align: right;
}

.cart-line-sub-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5c534c;
}

.cart-line-subtotal {
    font-size: 1.15rem;
    color: #2d241e;
}

.btn-ghost-danger {
    margin-left: auto;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid #e8d4d0;
    border-radius: 10px;
    background: transparent;
    color: #9a3d34;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost-danger:hover {
    background: rgba(184, 74, 61, 0.08);
    border-color: #d4a9a3;
    color: #7a2e28;
}

.cart-summary .cart-continue-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    text-align: center;
    box-sizing: border-box;
}

.cart-summary {
    position: sticky;
    top: calc(var(--topbar-height, 120px) + 12px);
}

.cart-summary-kicker {
    margin: 0 0 18px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: #2d241e;
}

.cart-summary-title {
    margin: 0 0 12px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5c534c;
}

.cart-summary-title--compact {
    margin-top: 4px;
}

.cart-summary-rows {
    margin: 0 0 12px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    font-size: 0.92rem;
}

.cart-summary-row dt {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.cart-summary-row dd {
    margin: 0;
    font-weight: 700;
    color: #2d241e;
    text-align: right;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.cart-summary-total-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5c534c;
}

.cart-summary-total-value {
    margin: 0;
    font-size: 1.35rem;
}

.cart-summary-note {
    margin: 14px 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.cart-shipping {
    margin: 8px 0 24px;
    padding: 18px 18px 6px;
    border: 1px solid #ebe4dc;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
}

.cart-summary .cart-shipping--in-summary {
    margin: 0 0 20px;
    padding: 0 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid rgba(236, 233, 229, 0.95);
}

.cart-summary .cart-shipping--in-summary .cart-shipping-legend {
    padding-left: 0;
    margin-bottom: 12px;
}

.cart-shipping-legend {
    padding: 0 8px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5c534c;
}

.cart-shipping--in-summary label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    cursor: pointer;
}

.cart-shipping--in-summary label:last-of-type {
    margin-bottom: 0;
}

.cart-shipping--in-summary label:has(input:checked) .cart-shipping-opt-title {
    color: var(--accent-dark);
}

.cart-shipping--in-summary input[type="radio"] {
    width: auto;
    max-width: none;
    flex-shrink: 0;
    margin: 4px 0 0;
    accent-color: var(--accent-dark);
}

.cart-shipping-opt {
    flex: 1;
    min-width: 0;
}

.cart-shipping-opt-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.cart-shipping-opt-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    color: #2d241e;
}

.cart-shipping-opt-fee {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-dark);
    white-space: nowrap;
}

.cart-shipping-opt-fee--muted {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--muted);
}

.cart-shipping-opt-desc {
    display: block;
    margin-top: 3px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
}

.checkout-head {
    margin-bottom: 22px;
}

.checkout-form-panel {
    min-width: 0;
    box-sizing: border-box;
}

.checkout-form-panel .checkout-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout-form-panel .checkout-field > label {
    display: block;
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 0.88rem;
}

.checkout-form-panel .checkout-req {
    color: #9a3d34;
    font-weight: 700;
    margin-left: 2px;
}

.checkout-form-panel .checkout-field--optional > label .checkout-req {
    display: none;
}

#checkout-form .checkout-fields .checkout-field input[type="text"],
#checkout-form .checkout-fields .checkout-field input[type="email"],
#checkout-form .checkout-fields .checkout-field input[type="tel"],
#checkout-form .checkout-fields .checkout-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
    padding: 11px 14px;
    border: 1px solid #ddd6cf;
    border-radius: 10px;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
}

#checkout-form .checkout-fields .checkout-field textarea {
    resize: vertical;
    min-height: 88px;
}

#checkout-form .checkout-fields .checkout-field input:focus,
#checkout-form .checkout-fields .checkout-field textarea:focus {
    outline: none;
    border-color: #cbb89f;
    box-shadow: 0 0 0 3px rgba(184, 148, 96, 0.18);
}

.checkout-form-heading {
    margin: 0 0 18px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2d241e;
}

.checkout-summary .checkout-submit-btn {
    margin-top: 16px;
    width: 100%;
}

.checkout-lines {
    margin: 0 0 6px;
    padding: 0 0 4px;
}

.checkout-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 10px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.checkout-line-name {
    flex: 1;
    min-width: 0;
}

.checkout-line-price {
    flex-shrink: 0;
    font-size: 0.92rem;
}

.checkout-hr {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.checkout-layout {
    align-items: start;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-line {
        grid-template-columns: 88px minmax(0, 1fr);
        padding: 16px 18px;
    }

    .cart-line-thumb img {
        height: 112px;
    }

    .cart-line-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-line-qty-sub {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cart-line-sub {
        align-items: flex-start;
        text-align: left;
        min-width: 0;
    }

    .cart-line-controls .cart-qty-select {
        max-width: 100%;
    }

    .btn-ghost-danger {
        margin-left: 0;
        width: 100%;
    }
}
