.products-page {
    background:
        radial-gradient(circle at top left, rgba(221, 133, 38, 0.16), transparent 28%),
        linear-gradient(180deg, #f7f2ea 0%, #fcfaf6 32%, #ffffff 100%);
    min-height: 100vh;
    padding-bottom: 72px;
}

.products-hero {
    padding: 72px 20px 28px;
}

.products-hero__inner {
    max-width: 1160px;
}

.eyebrow {
    color: #bf5d21;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.products-hero h1 {
    color: #1f1f1f;
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    line-height: 1.05;
    margin: 0 0 18px;
    max-width: 900px;
}

.hero-copy {
    color: #5a544e;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
    max-width: 760px;
}

.products-directory {
    display: grid;
    gap: 32px;
    grid-template-columns: 280px minmax(0, 1fr);
    max-width: 1320px;
    padding: 0 20px;
}

.products-sidebar {
    position: relative;
}

.sidebar-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 31, 31, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(65, 49, 30, 0.08);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    color: #1f1f1f;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.category-nav {
    display: grid;
    gap: 10px;
}

.category-link {
    align-items: center;
    background: #f5efe7;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #44392d;
    cursor: pointer;
    display: flex;
    font-size: 0.98rem;
    font-weight: 600;
    justify-content: space-between;
    padding: 14px 16px;
    transition: 0.25s ease;
    width: 100%;
}

.category-link:hover,
.category-link.is-active {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #fff7ef;
}

.category-link span:last-child {
    color: inherit;
    font-size: 0.86rem;
    opacity: 0.74;
}

.products-content {
    min-width: 0;
}

.content-toolbar {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.toolbar-label {
    color: #8b7b6a;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.content-toolbar h2 {
    color: #1f1f1f;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    margin: 0;
}

.toolbar-meta {
    color: #6f665d;
    font-size: 0.98rem;
    margin: 0;
}

.product-catalog {
    display: grid;
    gap: 28px;
}

.catalog-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 31, 31, 0.06);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(65, 49, 30, 0.06);
    overflow: hidden;
}

.catalog-section__head {
    align-items: end;
    background: linear-gradient(135deg, #1f1f1f 0%, #423225 100%);
    color: #fff9f1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
}

.catalog-section__head h3 {
    font-size: 1.4rem;
    margin: 0 0 6px;
}

.catalog-section__head p,
.catalog-section__head span {
    margin: 0;
    opacity: 0.82;
}

.series-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 24px;
}

.series-card {
    background: #fffdf9;
    border: 1px solid rgba(31, 31, 31, 0.08);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.series-card:hover {
    box-shadow: 0 16px 32px rgba(191, 93, 33, 0.14);
    transform: translateY(-4px);
}

.series-cover {
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #f3ece3 0%, #e7ddd2 100%);
    overflow: hidden;
}

.series-cover img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.series-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.series-body h4 {
    color: #1f1f1f;
    font-size: 1.15rem;
    margin: 0 0 8px;
}

.series-body p {
    color: #6c645d;
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0 0 18px;
}

.series-meta {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.series-count {
    color: #8f5a2d;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.series-trigger {
    background: #1f1f1f;
    border: 0;
    border-radius: 999px;
    color: #fffaf2;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 10px 16px;
    transition: 0.2s ease;
}

.series-trigger:hover {
    background: #bf5d21;
}

.product-lightbox {
    align-items: center;
    background: rgba(14, 11, 8, 0.82);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 1200;
}

.product-lightbox.is-open {
    display: flex;
}

.lightbox-dialog {
    max-width: min(960px, calc(100vw - 120px));
    text-align: center;
}

.lightbox-dialog img {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    max-height: 72vh;
    max-width: 100%;
    object-fit: contain;
}

.lightbox-caption {
    color: #fffaf2;
    margin-top: 18px;
}

.lightbox-caption h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.lightbox-caption p {
    margin: 0;
    opacity: 0.78;
}

.lightbox-close,
.lightbox-arrow {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    height: 52px;
    position: absolute;
    width: 52px;
}

.lightbox-close {
    font-size: 2rem;
    right: 28px;
    top: 28px;
}

.lightbox-arrow {
    font-size: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-arrow--prev {
    left: 28px;
}

.lightbox-arrow--next {
    right: 28px;
}

@media (max-width: 1100px) {
    .products-directory {
        grid-template-columns: 1fr;
    }

    .sidebar-panel {
        position: static;
    }

    .category-nav {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 720px) {
    .products-hero {
        padding-top: 48px;
    }

    .content-toolbar {
        align-items: start;
        flex-direction: column;
    }

    .catalog-section__head {
        flex-direction: column;
        align-items: start;
    }

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

    .lightbox-dialog {
        max-width: calc(100vw - 48px);
    }

    .lightbox-arrow {
        bottom: 24px;
        top: auto;
        transform: none;
    }

    .lightbox-arrow--prev {
        left: calc(50% - 64px);
    }

    .lightbox-arrow--next {
        right: calc(50% - 64px);
    }
    .sidebar ul {
        display: flex;
        overflow-x: auto;
        gap: 10px;
    }
    .sidebar li {
        white-space: nowrap;
    }
    /* Disable puzzle on mobile/tablet or recalculate? 
       For simplicity, let's keep it but it might break. 
       Ideally switch to cover.
    */
    .section-left, .section-right .card {
        background-size: cover;
        background-position: center;
    }
}
