:root {
    --category-plum: #301630;
    --category-plum-light: #f3eef4;
    --category-ink: #241e26;
    --category-muted: #79727c;
    --category-line: #e9e4eb;
    --category-paper: #fff;
    --category-background: #f7f5f8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--category-background);
    color: var(--category-ink);
    font-family: 'Mulish', Arial, sans-serif;
}

a {
    color: inherit;
}

.store-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 76px;
    padding: 0 max(28px, calc((100% - 1440px) / 2));
    background: var(--category-paper);
    border-bottom: 1px solid var(--category-line);
}

.store-header.category-header {
    justify-content: space-between;
    gap: 20px;
}

.store-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--category-plum);
    text-decoration: none;
}

.store-brand img {
    display: block;
    width: 76px;
    height: 68px;
    object-fit: contain;
}

.store-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.store-nav::-webkit-scrollbar {
    display: none;
}

.store-nav a {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--category-muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.store-nav a:hover,
.store-nav a.active {
    background: var(--category-plum-light);
    color: var(--category-plum);
}

.header-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: var(--category-plum);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.store-page {
    width: min(100% - 48px, 1440px);
    margin: 32px auto 80px;
}

.category-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 252px;
    overflow: hidden;
    padding: 38px 56px;
    border-radius: 24px;
    background: var(--category-plum);
    color: white;
    isolation: isolate;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.eyebrow,
.results-kicker,
.filter-kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .2em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .72);
}

.eyebrow span {
    width: 25px;
    height: 2px;
    background: white;
}

.category-hero h1 {
    margin: 12px 0 8px;
    font: 700 clamp(32px, 5vw, 52px)/1.08 'Poppins', sans-serif;
    letter-spacing: -.04em;
}

.category-hero .hero-copy > p:not(.eyebrow) {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 9px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.hero-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    margin-right: 8%;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 40px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
    font-size: 68px;
    transform: rotate(7deg);
}

.hero-decoration {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.hero-decoration-one {
    width: 440px;
    height: 440px;
    top: -260px;
    right: 12%;
}

.hero-decoration-two {
    width: 520px;
    height: 520px;
    right: -120px;
    bottom: -420px;
}

.category-layout {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
    margin-top: 28px;
}

.filter-panel {
    position: sticky;
    top: 20px;
    padding: 23px;
    border: 1px solid var(--category-line);
    border-radius: 17px;
    background: var(--category-paper);
    box-shadow: 0 8px 26px rgba(43, 26, 47, .04);
}

.filter-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 23px;
}

.filter-kicker {
    color: var(--category-muted);
    font-size: 8px;
}

.filter-heading h2 {
    margin: 5px 0 0;
    color: var(--category-plum);
    font: 700 22px/1.2 'Poppins', sans-serif;
}

.clear-link {
    margin-top: 3px;
    color: var(--category-plum);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.filter-label,
.filter-group legend {
    display: block;
    margin-bottom: 11px;
    color: var(--category-ink);
    font-size: 13px;
    font-weight: 900;
}

.search-control {
    position: relative;
}

.search-control > i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: var(--category-plum);
    font-size: 13px;
    transform: translateY(-50%);
}

.search-control input {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--category-line);
    border-radius: 9px;
    outline: none;
    background: white;
    color: var(--category-ink);
    font: inherit;
    font-size: 12px;
}

.search-control input:focus,
.price-fields input:focus {
    border-color: var(--category-plum);
    box-shadow: 0 0 0 3px rgba(48, 22, 48, .08);
}

.filter-group {
    min-width: 0;
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

.filter-group legend {
    float: none;
    width: 100%;
    margin-bottom: 13px;
}

.filter-options {
    display: grid;
    gap: 11px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.check-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #5e5661;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.4;
}

.check-option input {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--category-plum);
}

.filter-help {
    margin: -5px 0 12px;
    color: var(--category-muted);
    font-size: 11px;
}

.price-fields {
    display: flex;
    align-items: end;
    gap: 7px;
}

.price-fields label {
    min-width: 0;
    flex: 1;
}

.price-fields label span {
    display: block;
    margin-bottom: 6px;
    color: var(--category-muted);
    font-size: 10px;
    font-weight: 700;
}

.price-fields input {
    width: 100%;
    min-height: 40px;
    padding: 8px;
    border: 1px solid var(--category-line);
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 12px;
}

.price-separator {
    padding-bottom: 12px;
    color: var(--category-muted);
}

.filter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin-top: 24px;
    border: 0;
    border-radius: 9px;
    background: var(--category-plum);
    color: white;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: transform .2s ease, box-shadow .2s ease;
}

.filter-submit:hover {
    box-shadow: 0 8px 18px rgba(48, 22, 48, .2);
    transform: translateY(-2px);
}

.filter-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    color: var(--category-muted);
    font-size: 10px;
}

.filter-note i {
    color: var(--category-plum);
}

.products-area {
    min-width: 0;
}

.products-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin: 5px 0 18px;
}

.results-kicker {
    color: var(--category-muted);
    font-size: 9px;
}

.products-toolbar h2 {
    margin: 5px 0 0;
    color: var(--category-plum);
    font: 700 clamp(20px, 3vw, 28px)/1.2 'Poppins', sans-serif;
    letter-spacing: -.03em;
}

.result-count {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 99px;
    background: var(--category-plum-light);
    color: var(--category-plum);
    font-size: 11px;
    font-weight: 900;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--category-line);
    border-radius: 15px;
    background: var(--category-paper);
    color: inherit;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card:hover {
    border-color: rgba(48, 22, 48, .25);
    box-shadow: 0 14px 30px rgba(43, 26, 47, .1);
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    display: grid;
    height: 230px;
    place-items: center;
    overflow: hidden;
    background: #fbfafc;
}

.product-image img {
    width: 100%;
    height: 100%;
    padding: 20px;
    object-fit: contain;
    transition: transform .3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.discount-badge {
    position: absolute;
    z-index: 1;
    top: 13px;
    left: 13px;
    padding: 6px 9px;
    border-radius: 6px;
    background: var(--category-plum);
    color: white;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
}

.image-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--category-plum);
    font-size: 38px;
}

.image-fallback[hidden] {
    display: none;
}

.quick-view {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 7px;
    background: var(--category-plum);
    color: white;
    font-size: 10px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .2s ease, transform .2s ease;
}

.product-card:hover .quick-view {
    opacity: 1;
    transform: translateY(0);
}

.product-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px 16px 16px;
}

.product-category {
    overflow: hidden;
    color: var(--category-muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-details h3 {
    display: -webkit-box;
    min-height: 44px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: var(--category-ink);
    font: 700 14px/1.5 'Mulish', sans-serif;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.product-price strong {
    color: var(--category-plum);
    font: 800 19px/1.2 'Poppins', sans-serif;
}

.product-price del {
    color: #928a95;
    font-size: 12px;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    color: var(--category-plum);
    font-size: 10px;
    font-weight: 900;
}

.empty-state {
    display: flex;
    min-height: 350px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px;
    border: 1px dashed #d8cfdc;
    border-radius: 18px;
    background: var(--category-paper);
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 20px;
    background: var(--category-plum-light);
    color: var(--category-plum);
    font-size: 25px;
}

.empty-state h3 {
    margin: 17px 0 5px;
    color: var(--category-plum);
    font: 700 20px 'Poppins', sans-serif;
}

.empty-state p {
    max-width: 420px;
    margin: 0;
    color: var(--category-muted);
    font-size: 13px;
}

.empty-state a {
    margin-top: 17px;
    padding: 10px 15px;
    border-radius: 8px;
    background: var(--category-plum);
    color: white;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .store-header {
        gap: 18px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .store-nav a {
        padding: 9px;
        font-size: 11px;
    }

    .category-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 18px;
    }

    .filter-panel {
        padding: 19px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .store-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0;
        min-height: auto;
        padding: 14px 18px 0;
    }

    .store-header.category-header {
        display: flex;
        min-height: 68px;
        padding: 12px 18px;
    }

    .category-header .store-brand img {
        width: 64px;
        height: 56px;
    }

    .store-brand {
        padding-bottom: 12px;
    }

    .category-header .store-brand,
    .category-header .header-home-link {
        padding-bottom: 0;
    }

    .header-home-link {
        padding-bottom: 12px;
    }

    .store-nav {
        grid-column: 1 / -1;
        width: calc(100% + 36px);
        margin: 0 -18px;
        padding: 8px 14px 11px;
        border-top: 1px solid var(--category-line);
    }

    .store-nav a {
        padding: 8px 10px;
        font-size: 10px;
    }

    .store-page {
        width: min(100% - 28px, 600px);
        margin: 20px auto 48px;
    }

    .category-hero {
        min-height: 205px;
        padding: 26px 24px;
        border-radius: 18px;
    }

    .category-hero h1 {
        max-width: 78%;
        font-size: clamp(29px, 8vw, 40px);
    }

    .category-hero .hero-copy > p:not(.eyebrow) {
        max-width: 80%;
        font-size: 12px;
    }

    .hero-link {
        margin-top: 17px;
        padding: 9px 11px;
        font-size: 10px;
    }

    .hero-icon {
        position: absolute;
        right: 8px;
        width: 82px;
        height: 82px;
        margin: 0;
        border-radius: 24px;
        font-size: 35px;
        opacity: .8;
    }

    .category-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 20px;
    }

    .filter-panel {
        position: static;
        padding: 18px;
    }

    .filter-heading {
        margin-bottom: 17px;
    }

    .filter-group {
        margin-top: 19px;
    }

    .filter-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 180px;
    }

    .products-toolbar {
        align-items: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .product-image {
        height: clamp(135px, 42vw, 205px);
    }

    .product-image img {
        padding: 12px;
    }

    .product-details {
        padding: 12px 11px;
    }

    .product-details h3 {
        min-height: 40px;
        margin: 7px 0 9px;
        font-size: 12px;
    }

    .product-price strong {
        font-size: 16px;
    }

    .product-price del {
        font-size: 10px;
    }

    .quick-view {
        display: none;
    }
}

@media (max-width: 380px) {
    .product-grid {
        gap: 8px;
    }

    .product-details {
        padding-right: 9px;
        padding-left: 9px;
    }

    .result-count {
        padding: 7px 8px;
        font-size: 9px;
    }
}
