.category-page {
    --catalog-bg: #020d15;
    --catalog-panel: #041823;
    --catalog-panel-2: #061e2b;
    --catalog-line: #244d61;
    --catalog-line-soft: rgba(73, 119, 141, .38);
    --catalog-gold: #e8c47d;
    --catalog-cream: #f8f2e7;
    --catalog-muted: #9db0ba;
    min-height: 70vh;
    overflow: clip;
    background:
        radial-gradient(circle at 80% 4%, rgba(10, 68, 99, .26), transparent 30%),
        linear-gradient(180deg, #02121d 0%, #020b12 70%, #01080d 100%);
}

.category-breadcrumb {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    overflow: hidden;
    color: #98acb6;
    font-size: 11px;
    white-space: nowrap;
}
.category-breadcrumb a:hover { color: var(--catalog-gold); }
.category-breadcrumb i { color: #4d6875; font-size: 7px; }
.category-breadcrumb span { color: #e7eef1; overflow: hidden; text-overflow: ellipsis; }

.category-hero {
    position: relative;
    min-height: clamp(310px, 36vw, 520px);
    overflow: hidden;
    border-block: 1px solid rgba(46, 90, 112, .62);
    background:
        radial-gradient(circle at 70% 35%, rgba(13, 76, 108, .58), transparent 35%),
        linear-gradient(135deg, #041b28, #020b12 65%);
}
.category-hero-picture,
.category-hero-picture img,
.category-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.category-hero-picture img { object-fit: cover; object-position: center; }
.category-hero-overlay {
    background: linear-gradient(90deg, rgba(1, 9, 14, .92) 3%, rgba(1, 13, 20, .65) 42%, rgba(1, 10, 16, .15) 72%, rgba(1, 9, 14, .38) 100%);
}
.category-hero.align-center .category-hero-overlay {
    background: linear-gradient(90deg, rgba(1, 9, 14, .55), rgba(1, 9, 14, .42), rgba(1, 9, 14, .55));
}
.category-hero.align-right .category-hero-overlay {
    background: linear-gradient(270deg, rgba(1, 9, 14, .92) 3%, rgba(1, 13, 20, .65) 42%, rgba(1, 10, 16, .16) 74%);
}
.category-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: inherit;
    max-width: 1400px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-block: 58px;
}
.category-hero.align-center .category-hero-content { align-items: center; text-align: center; }
.category-hero.align-right .category-hero-content { align-items: flex-end; text-align: right; }
.category-eyebrow {
    margin-bottom: 10px;
    color: var(--catalog-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}
.category-hero h1 {
    max-width: 700px;
    margin: 0;
    color: #fffaf1;
    font: 600 clamp(42px, 5vw, 74px)/.94 var(--serif);
    letter-spacing: .3px;
    text-transform: uppercase;
    text-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.category-hero p {
    max-width: 620px;
    margin: 17px 0 23px;
    color: #c4d1d6;
    font-size: 13px;
    line-height: 1.75;
}

.category-nav-shell {
    border-bottom: 1px solid rgba(44, 83, 101, .55);
    background: rgba(2, 15, 23, .94);
}
.category-nav {
    display: flex;
    gap: 22px;
    padding-block: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav-item {
    display: grid;
    min-width: 84px;
    justify-items: center;
    gap: 9px;
    color: #aabac2;
    font-size: 10px;
    text-align: center;
    scroll-snap-align: start;
    transition: color .2s ease, transform .2s ease;
}
.category-nav-item:hover { color: #fff; transform: translateY(-2px); }
.category-nav-image {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #315a6e;
    border-radius: 50%;
    background: #eef2f3;
    box-shadow: inset 0 0 0 3px #061a25;
}
.category-nav-image img { width: 100%; height: 100%; object-fit: contain; }
.category-nav-item.is-active { color: var(--catalog-gold); }
.category-nav-item.is-active .category-nav-image {
    border: 2px solid var(--catalog-gold);
    box-shadow: 0 0 0 3px rgba(232, 196, 125, .12), inset 0 0 0 3px #071a24;
}

.catalog-section { padding-block: 38px 58px; }
.catalog-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}
.catalog-filters {
    position: sticky;
    top: 104px;
    overflow: hidden;
    border: 1px solid var(--catalog-line-soft);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(5, 27, 40, .98), rgba(2, 16, 24, .98));
    box-shadow: 0 18px 45px rgba(0,0,0,.16);
}
.filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 16px;
    border-bottom: 1px solid var(--catalog-line-soft);
}
.filter-heading strong { color: #fff6e9; font: 600 19px var(--serif); }
.filter-heading button,
.filter-group-title {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.filter-heading button { color: var(--catalog-gold); font-size: 9px; }
.filter-group { border-bottom: 1px solid rgba(53, 91, 108, .35); }
.filter-group:last-child { border-bottom: 0; }
.filter-group-title {
    display: flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #e8eff2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
}
.filter-group-title i { color: #7e9aa8; font-size: 9px; transition: transform .2s ease; }
.filter-group:not(.is-open) .filter-group-title i { transform: rotate(-90deg); }
.filter-group:not(.is-open) .filter-group-body { display: none; }
.filter-group-body { padding: 2px 16px 16px; }
.filter-options { display: grid; gap: 9px; }
.filter-options label {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    color: #afbec5;
    font-size: 10px;
    cursor: pointer;
}
.filter-options input { accent-color: #dcb76d; }
.filter-options label:has(input:checked) span { color: #fff0ce; }
.filter-options em { color: #718994; font-style: normal; font-size: 9px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-inputs label { display: grid; gap: 5px; color: #8399a4; font-size: 8px; text-transform: uppercase; }
.price-inputs input {
    width: 100%;
    min-width: 0;
    height: 34px;
    border: 1px solid #31576a;
    border-radius: 4px;
    outline: none;
    background: #02111a;
    color: #e9f0f2;
    font-size: 10px;
    padding: 0 8px;
}
.price-inputs input:focus { border-color: var(--catalog-gold); }
.filter-range-note { display: block; margin-top: 9px; color: #7f939d; font-size: 8px; }

.catalog-results-column { min-width: 0; }
.catalog-results-header {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(48, 88, 107, .45);
}
.catalog-results-header p { margin: 0; color: #9cb0ba; font-size: 10px; }
.catalog-results-header label { display: flex; align-items: center; gap: 8px; color: #93a7b1; font-size: 9px; }
.catalog-results-header select {
    min-width: 165px;
    height: 34px;
    padding: 0 30px 0 11px;
    border: 1px solid #345a6c;
    border-radius: 4px;
    outline: 0;
    background: #041722;
    color: #e7eff2;
    font-size: 9px;
}
.catalog-results { position: relative; min-height: 280px; }
.catalog-results.is-loading { pointer-events: none; }
.catalog-results.is-loading::after {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(110deg, rgba(2,13,21,.5), rgba(18,52,70,.72), rgba(2,13,21,.5));
    background-size: 220% 100%;
    content: '';
    animation: catalog-shimmer 1.1s linear infinite;
    backdrop-filter: blur(1px);
}
@keyframes catalog-shimmer { to { background-position: -220% 0; } }

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.catalog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #23485b;
    border-radius: 6px;
    background: linear-gradient(180deg, #051a26, #03131d);
    box-shadow: 0 13px 28px rgba(0,0,0,.14);
    transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease;
}
.catalog-card:hover {
    border-color: #47758a;
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(0,0,0,.22);
}
.catalog-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, #f9fbfb, #e7ecee);
}
.catalog-card-media > a { display: block; width: 100%; height: 100%; }
.catalog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    transition: transform .35s ease;
}
.catalog-card:hover .catalog-card-media img { transform: scale(1.035); }
.catalog-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    padding: 5px 7px;
    border-radius: 3px;
    background: #e4c17b;
    color: #08131a;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .4px;
}
.catalog-badge.out { background: #aeb7bb; }
.catalog-badge.new { background: #dcefe7; }
.catalog-badge.sale { background: #efd08e; }
.catalog-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(24,54,69,.65);
    border-radius: 50%;
    background: rgba(246,249,250,.88);
    color: #0a2633;
    cursor: pointer;
}
.catalog-heart.is-active { border-color: #ad7d33; color: #a66d1d; }
.catalog-card-body { padding: 12px; }
.catalog-brand { display: block; min-height: 12px; color: var(--catalog-gold); font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.catalog-card h3 {
    min-height: 38px;
    margin: 3px 0 7px;
    color: #fbf6ed;
    font: 600 17px/1.08 var(--serif);
}
.catalog-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.catalog-rating {
    display: flex;
    min-height: 18px;
    align-items: center;
    gap: 5px;
    color: #829aa5;
    font-size: 8px;
}
.catalog-stars { color: #e8b64e; letter-spacing: .5px; white-space: nowrap; }
.catalog-stars span { color: #526b77; }
.no-reviews { color: #768b95; }
.catalog-price {
    display: flex;
    min-height: 28px;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 7px;
    margin: 5px 0 9px;
}
.catalog-price strong { color: #f8e9c8; font-size: 11px; }
.catalog-price del { color: #788d97; font-size: 8px; }
.catalog-price span {
    padding: 3px 4px;
    border-radius: 2px;
    background: rgba(232,196,125,.16);
    color: #e7c77f;
    font-size: 7px;
    font-weight: 700;
}
.catalog-cart-button {
    width: 100%;
    min-height: 32px;
    border: 1px solid #a88449;
    border-radius: 4px;
    background: transparent;
    color: #f0d49b;
    cursor: pointer;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .55px;
    transition: background .2s ease, color .2s ease;
}
.catalog-cart-button i { margin-right: 6px; }
.catalog-cart-button:hover:not(:disabled) { background: linear-gradient(135deg, #f1d18e, #cfa35a); color: #071018; }
.catalog-cart-button:disabled { border-color: #43545c; color: #697a82; cursor: not-allowed; }

.catalog-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 30px;
}
.catalog-pagination a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #315568;
    border-radius: 4px;
    background: #03151f;
    color: #b8c8cf;
    font-size: 9px;
}
.catalog-pagination a:hover,
.catalog-pagination a.is-active { border-color: var(--catalog-gold); background: rgba(232,196,125,.12); color: #f6ddb0; }

.catalog-empty,
.catalog-not-found {
    display: grid;
    min-height: 330px;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 1px dashed #31576a;
    border-radius: 7px;
    color: #9db0ba;
    text-align: center;
}
.catalog-empty i,
.catalog-not-found i { color: var(--catalog-gold); font-size: 30px; }
.catalog-empty h2,
.catalog-not-found h1 { margin: 6px 0 0; color: #fff6e7; font: 600 28px var(--serif); }
.catalog-empty p,
.catalog-not-found p { margin: 0 0 8px; }
.catalog-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }

.category-promo {
    position: relative;
    min-height: 290px;
    margin-bottom: 62px;
    overflow: hidden;
    border: 1px solid #315b70;
    border-radius: 7px;
    background: radial-gradient(circle at 70% 50%, #0a4667, #03141e 62%);
}
.category-promo picture,
.category-promo picture img,
.category-promo-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.category-promo picture img { object-fit: cover; }
.category-promo-overlay { background: linear-gradient(90deg, rgba(1,10,15,.9), rgba(1,11,16,.52) 55%, rgba(1,11,16,.18)); }
.category-promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 580px;
    min-height: 290px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 42px;
}
.category-promo h2 { margin: 0; color: #fff8ed; font: 600 clamp(34px, 4vw, 58px)/.96 var(--serif); text-transform: uppercase; }
.category-promo p { margin: 13px 0 20px; color: #c8d4d9; line-height: 1.6; }

.catalog-mobile-toolbar { display: none; }
.filter-drawer[hidden], .mobile-sort-menu[hidden] { display: none !important; }
.catalog-toast {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 90;
    max-width: min(360px, calc(100vw - 40px));
    padding: 12px 15px;
    border: 1px solid #4f8067;
    border-radius: 5px;
    background: #06271c;
    color: #dff7e8;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
    font-size: 10px;
}
.catalog-toast.is-visible { opacity: 1; transform: none; }
.catalog-toast.is-error { border-color: #89565c; background: #31151a; color: #ffdfe1; }

@media (max-width: 1240px) {
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .catalog-section { padding-top: 22px; }
    .catalog-layout { display: block; }
    .catalog-filters, .catalog-results-header label { display: none; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .catalog-mobile-toolbar {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-bottom: 14px;
    }
    .catalog-mobile-toolbar > button {
        min-height: 40px;
        border: 1px solid #31596c;
        border-radius: 4px;
        background: #041722;
        color: #e4ecef;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .5px;
    }
    .catalog-mobile-toolbar > button i { margin-right: 7px; color: var(--catalog-gold); }
    .catalog-mobile-toolbar > button span { margin-left: 5px; color: var(--catalog-gold); }
    .mobile-sort-menu {
        position: absolute;
        top: 46px;
        right: 0;
        z-index: 30;
        display: grid;
        width: min(255px, 82vw);
        overflow: hidden;
        border: 1px solid #3b6275;
        border-radius: 6px;
        background: #041722;
        box-shadow: 0 18px 38px rgba(0,0,0,.35);
    }
    .mobile-sort-menu button {
        min-height: 41px;
        padding: 0 13px;
        border: 0;
        border-bottom: 1px solid rgba(50,88,106,.35);
        background: transparent;
        color: #c6d3d9;
        text-align: left;
        font-size: 10px;
    }
    .mobile-sort-menu button.is-active { color: var(--catalog-gold); background: rgba(232,196,125,.07); }
    .catalog-results-header { min-height: 28px; margin-bottom: 10px; padding-bottom: 8px; }

    .filter-drawer { position: fixed; inset: 0; z-index: 120; }
    .filter-drawer-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(2px); }
    .filter-drawer-panel {
        position: absolute;
        inset: auto 0 0;
        display: flex;
        max-height: min(84vh, 720px);
        flex-direction: column;
        overflow: hidden;
        border-top: 1px solid #4c7182;
        border-radius: 16px 16px 0 0;
        background: #03141e;
        box-shadow: 0 -25px 60px rgba(0,0,0,.45);
        animation: filter-sheet-in .24s ease both;
    }
    @keyframes filter-sheet-in { from { transform: translateY(100%); } }
    .filter-drawer-panel > header {
        display: flex;
        min-height: 55px;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
        border-bottom: 1px solid #294d5f;
        color: #fff4df;
        font: 600 20px var(--serif);
    }
    .filter-drawer-panel > header button { width: 38px; height: 38px; border: 0; background: transparent; color: #d7e1e5; font-size: 18px; }
    .filter-drawer-scroll { overflow-y: auto; padding-bottom: 10px; }
    .filter-drawer .filter-group-body { padding-inline: 18px; }
    .filter-drawer .filter-group-title { padding-inline: 18px; }
    .filter-drawer footer {
        display: grid;
        grid-template-columns: .75fr 1.5fr;
        gap: 10px;
        padding: 12px 16px max(12px, env(safe-area-inset-bottom));
        border-top: 1px solid #294d5f;
        background: #03141e;
    }
    .filter-drawer footer .button-secondary {
        border: 1px solid #496b7a;
        border-radius: 4px;
        background: transparent;
        color: #d9e2e6;
        font-size: 10px;
        font-weight: 700;
    }
    html.catalog-filter-open, html.catalog-filter-open body { overflow: hidden; }
}

@media (max-width: 768px) {
    .category-breadcrumb { min-height: 42px; font-size: 9px; gap: 7px; }
    .category-hero { min-height: 280px; }
    .category-hero-overlay,
    .category-hero.align-right .category-hero-overlay,
    .category-hero.align-center .category-hero-overlay {
        background: linear-gradient(90deg, rgba(1,9,14,.86), rgba(1,10,15,.55), rgba(1,10,15,.26));
    }
    .category-hero-content,
    .category-hero.align-center .category-hero-content,
    .category-hero.align-right .category-hero-content {
        min-height: 280px;
        align-items: flex-start;
        padding-block: 34px;
        text-align: left;
    }
    .category-eyebrow { font-size: 8px; letter-spacing: 2px; }
    .category-hero h1 { max-width: 80%; font-size: clamp(35px, 11vw, 52px); }
    .category-hero p { max-width: 78%; margin: 11px 0 17px; font-size: 10px; line-height: 1.55; }
    .category-hero .button { padding: 11px 15px; font-size: 8px; }
    .category-nav { width: calc(100% - 28px); gap: 13px; padding-block: 14px; }
    .category-nav-item { min-width: 66px; gap: 6px; font-size: 8px; }
    .category-nav-image { width: 52px; height: 52px; }
    .catalog-section { width: calc(100% - 24px); padding-bottom: 40px; }
    .catalog-card-body { padding: 9px; }
    .catalog-card h3 { min-height: 31px; font-size: 14px; }
    .catalog-brand { font-size: 6px; }
    .catalog-rating { gap: 3px; font-size: 6.8px; }
    .catalog-stars { font-size: 8px; letter-spacing: 0; }
    .catalog-price { min-height: 25px; gap: 3px 5px; }
    .catalog-price strong { font-size: 9px; }
    .catalog-price del { font-size: 6.7px; }
    .catalog-price span { font-size: 6px; }
    .catalog-cart-button { min-height: 30px; font-size: 7px; }
    .catalog-heart { width: 28px; height: 28px; }
    .catalog-badge { top: 6px; left: 6px; padding: 4px 5px; font-size: 6px; }
    .category-promo { width: calc(100% - 24px); min-height: 230px; margin-bottom: 40px; }
    .category-promo-content { min-height: 230px; max-width: 72%; padding: 24px; }
    .category-promo h2 { font-size: 34px; }
    .category-promo p { margin: 9px 0 15px; font-size: 9px; }
    .category-promo .button { padding: 11px 14px; font-size: 8px; }
}

@media (max-width: 390px) {
    .catalog-grid { gap: 8px; }
    .catalog-card h3 { font-size: 13px; }
    .catalog-card-body { padding: 8px; }
    .catalog-price strong { font-size: 8.5px; }
    .catalog-cart-button { font-size: 6.5px; }
}
