
/* =================================
   PRODUCTS INTRODUCTION
================================= */

.products-intro {
    text-align: center;
    padding-top: 45px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.products-intro .eyebrow {
    margin-bottom: 12px;
}

.products-intro h1 {
    font-size: clamp(37px, 5vw, 58px);
    margin-bottom: 12px;
}

.products-intro > p:last-child {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 14px;
}


/* =================================
   COMPACT HERO IMAGE SLIDER
================================= */

.hero-slider {
    position: relative;
    display: block;
    width: 100%;
    height: 500px;
    margin: 0 auto 25px;
    overflow: hidden;
    isolation: isolate;
    background: #eae5dc;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease, visibility .65s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(20,20,18,.78),
        rgba(20,20,18,.42) 58%,
        rgba(20,20,18,.08)
    );
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: min(680px, 82%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 25px 55px;
    color: #fff;
}

.hero-label {
    display: block;
    margin: 0 0 10px;
    color: #e9ad38;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.hero-slide-content h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.12;
    letter-spacing: -1.2px;
}

.hero-slide-content h2 em {
    color: #e9ad38;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

.hero-slide-content p {
    max-width: 410px;
    margin: 0 0 17px;
    color: rgba(255,255,255,.9);
    font-size: 13px;
    line-height: 1.65;
}

.hero-slide-content .button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #d99a25;
    color: #fff;
}


/* HERO ARROWS */

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #222;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.hero-arrow:hover {
    background: #d99a25;
    color: #fff;
}

.hero-prev {
    left: 14px;
}

.hero-next {
    right: 14px;
}


/* HERO DOTS */

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 13px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255,255,255,.65);
    cursor: pointer;
}

.hero-dot.active {
    width: 22px;
    background: #d99a25;
}


/* =================================
   PRODUCT CATALOG
================================= */

.catalog {
    padding-top: 15px;
    padding-bottom: 80px;
}

.catalog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.catalog-top > p {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
}


/* SEARCH BOX */

.search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    background: white;
    padding: 0 12px;
    width: min(270px, 100%);
}

.search-box > span {
    font-size: 22px;
    color: var(--muted);
}

.search-box input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    padding: 11px 0;
    background: transparent;
    font-size: 12px;
}


/* CATEGORY FILTERS */

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 28px;
}

.filter-chip {
    border: 1px solid var(--line);
    background: transparent;
    color: #5e5a53;
    padding: 8px 14px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
    transition: all .2s ease;
}

.filter-chip:hover,
.filter-chip.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
}


/* PRODUCT GRID */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 22px;
}

.catalog-card {
    min-width: 0;
}

.catalog-image {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.catalog-image img {
    aspect-ratio: 1.15 / 1;
    transition: transform .35s ease;
}

.catalog-image:hover img {
    transform: scale(1.035);
}

.image-action {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    color: white;
    background: linear-gradient(transparent, #161616a8);
    font-size: 11px;
    opacity: 0;
    transition: opacity .2s ease;
}

.catalog-image:hover .image-action,
.catalog-image:focus-visible .image-action {
    opacity: 1;
}


/* PRODUCT INFORMATION */

.catalog-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding-top: 13px;
}

.catalog-info h2 {
    font-size: 14px;
    letter-spacing: -.2px;
    margin-bottom: 4px;
}

.catalog-info p {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
}

.category-label {
    flex: 0 0 auto;
    color: var(--gold-dark);
    font-size: 8px;
    letter-spacing: .8px;
    padding-top: 4px;
    text-transform: uppercase;
}


/* EMPTY STATE */

.empty-state {
    text-align: center;
    padding: 45px 0;
    color: var(--muted);
    font-size: 13px;
}


/* =================================
   CATALOG CALL TO ACTION
================================= */

.catalog-cta {
    background: #f4eee5;
    padding: 34px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 65px;
}

.catalog-cta .eyebrow {
    margin-bottom: 8px;
}

.catalog-cta h2 {
    font-size: clamp(25px, 3vw, 34px);
    margin-bottom: 9px;
}

.catalog-cta p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.catalog-cta .button {
    flex: 0 0 auto;
}


/* ACCESSIBILITY */

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


/* =================================
   PRODUCT PAGINATION
================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 42px 0 8px;
}

.pagination[hidden] {
    display: none !important;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-control,
.page-number {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    border-radius: 2px;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.page-control:hover:not(:disabled),
.page-number:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.page-number[aria-current="page"] {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    font-weight: 700;
}

.page-control:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.page-control:focus-visible,
.page-number:focus-visible {
    outline: 2px solid var(--gold-dark);
    outline-offset: 2px;
}


/* =================================
   RESPONSIVE: TABLET
================================= */

@media (max-width: 800px) {

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 16px;
    }

    .catalog-info {
        display: block;
    }

    .category-label {
        display: inline-block;
        margin-top: 7px;
    }

}


/* =================================
   RESPONSIVE: MOBILE
================================= */

@media (max-width: 768px) {

    .hero-slider {
        height: 190px;
        margin-bottom: 20px;
    }

    .hero-slide-content {
        width: 90%;
        padding: 20px 32px;
    }

    .hero-slide-content h2 {
        font-size: 25px;
    }

    .hero-slide-content p {
        max-width: 290px;
        font-size: 12px;
    }

    .hero-label {
        font-size: 8px;
    }

    .hero-prev {
        left: 7px;
    }

    .hero-next {
        right: 7px;
    }

    .hero-arrow {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

}


@media (max-width: 600px) {

    .products-intro {
        padding-top: 30px;
        padding-bottom: 25px;
    }

    .products-intro h1 {
        font-size: 39px;
    }

    .catalog {
        padding-top: 10px;
        padding-bottom: 55px;
    }

    .catalog-top {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .filter-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
        margin-right: -5%;
    }

    .filter-chip {
        white-space: nowrap;
    }

    .catalog-grid {
        gap: 25px 12px;
    }

    .catalog-info h2 {
        font-size: 12px;
    }

    .catalog-info p {
        font-size: 10px;
    }

    .catalog-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 7%;
        margin-bottom: 45px;
    }

    .pagination {
        margin-top: 32px;
        gap: 5px;
    }

    .page-control,
    .page-number {
        min-width: 33px;
        height: 34px;
        padding-inline: 8px;
    }

    .page-numbers {
        gap: 4px;
    }

}
