.legacy-products {
    display: none;
}

.curated-products {
    align-items: stretch;
}

.curated-products .product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 126, 31, .62);
    box-shadow: 0 16px 45px rgba(8, 4, 4, .18), 0 0 0 1px rgba(255, 193, 86, .08), 0 0 24px rgba(240, 106, 42, .12);
    position: relative;
    isolation: isolate;
}

.curated-products .product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    border: 2px solid transparent;
    border-image: linear-gradient(115deg, #6b2414, #ff7b24 18%, #ffd277 30%, #8f3016 48%, #ff9a32 68%, #522016) 1;
    opacity: .82;
}

.curated-products .product-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 5%, rgba(255, 98, 20, .48), transparent 28%, transparent 68%, rgba(255, 190, 73, .4), transparent 95%);
    filter: blur(8px);
    opacity: .28;
    animation: ember-pulse 3.4s ease-in-out infinite alternate;
}

.curated-products .product-card[hidden] {
    display: none;
}

.product-showcase {
    height: 292px;
    background: linear-gradient(145deg, #ebe5de, #f8f4ee);
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.product-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 72%, rgba(78, 31, 18, .09));
    pointer-events: none;
}

.product-slides {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(82, 39, 25, .12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 5px 15px rgba(49, 23, 16, .08);
}

.product-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    opacity: 0;
    transform: translateX(18px) scale(.985);
    transition: opacity .5s ease, transform .55s ease;
}

.product-slide.active {
    opacity: 1;
    transform: none;
}

.product-slider-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 34px;
    height: 42px;
    border: 1px solid rgba(255, 175, 72, .65);
    background: rgba(43, 22, 23, .86);
    color: #ffd27a;
    cursor: pointer;
    transform: translateY(-50%);
    transition: .2s ease;
}

.product-slider-control:hover {
    background: #f06a2a;
    color: #fff;
}

.product-slider-control.prev {
    left: 21px;
}

.product-slider-control.next {
    right: 21px;
}

.product-slider-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 20px;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.product-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(43, 22, 23, .5);
    cursor: pointer;
}

.product-slider-dot.active {
    background: #f06a2a;
    border-color: #ffd27a;
    box-shadow: 0 0 10px rgba(240, 106, 42, .7);
}

.product-number {
    position: absolute;
    left: 17px;
    top: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: rgba(43, 22, 23, .88);
    border: 1px solid rgba(212, 154, 67, .8);
    color: var(--gold);
    font: 800 10px "Manrope";
    letter-spacing: .08em;
    backdrop-filter: blur(5px);
}

.curated-products .product-card:hover {
    border-color: #ff9b3d;
    box-shadow: 0 20px 55px rgba(8, 4, 4, .24), 0 0 32px rgba(240, 106, 42, .24);
}

.curated-products .product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 27px 27px 29px;
    border-top: 3px solid var(--gold);
}

.curated-products .product-body h3 {
    min-height: 53px;
}

.curated-products .product-body p {
    flex: 1;
    margin-bottom: 0;
}

.curated-products .product-body a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 19px;
    border-top: 1px solid #e5ddd5;
}

.curated-products .product-body a:hover {
    color: var(--orange);
}

.curated-products .product-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.18fr .82fr;
}

.product-card-featured .product-showcase {
    height: 100%;
    min-height: 430px;
}

.product-card-featured .product-body {
    justify-content: center;
    padding: 42px;
}

.product-card-featured .product-body h3 {
    font-size: 31px;
    min-height: auto;
}

.curated-products .product-cta {
    min-height: 292px;
    box-shadow: 0 16px 45px rgba(8, 4, 4, .18), 0 0 24px rgba(240, 106, 42, .12);
}

@keyframes ember-pulse {
    from {
        opacity: .18;
        transform: scale(.998);
    }

    to {
        opacity: .48;
        transform: scale(1.003);
    }
}

@media (max-width: 900px) {
    .curated-products .product-card-featured {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .product-card-featured .product-showcase {
        height: 330px;
        min-height: 0;
    }

    .product-card-featured .product-body {
        padding: 30px;
    }

    .product-showcase {
        height: 260px;
    }
}

@media (max-width: 620px) {
    .curated-products .product-card-featured {
        grid-column: auto;
    }

    .product-card-featured .product-showcase,
    .product-showcase {
        height: 250px;
        padding: 8px;
    }

    .product-card-featured .product-body {
        padding: 25px;
    }

    .product-card-featured .product-body h3 {
        font-size: 24px;
    }

    .curated-products .product-body h3 {
        min-height: auto;
    }

    .product-slide {
        padding: 15px;
    }

    .product-slider-control {
        width: 30px;
        height: 38px;
    }

    .product-slider-control.prev {
        left: 14px;
    }

    .product-slider-control.next {
        right: 14px;
    }

    .product-slider-dots {
        bottom: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .curated-products .product-card::after {
        animation: none;
    }
}

/* Single full-width product category presentation */
.curated-products {
    grid-template-columns: 1fr;
}

.curated-products .product-card,
.curated-products .product-card-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    width: 100%;
    min-height: 560px;
}

.curated-products .product-card[hidden],
.curated-products .product-cta {
    display: none;
}

.curated-products .product-showcase,
.curated-products .product-card-featured .product-showcase {
    height: 100%;
    min-height: 560px;
}

.curated-products .product-body,
.curated-products .product-card-featured .product-body {
    justify-content: center;
    padding: clamp(36px, 5vw, 72px);
    border-top: 0;
    border-left: 3px solid var(--gold);
}

.curated-products .product-body h3,
.curated-products .product-card-featured .product-body h3 {
    min-height: auto;
    font-size: clamp(30px, 3.3vw, 50px);
    line-height: 1.08;
}

.product-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.product-tabs button {
    width: 100%;
}

@media (max-width: 900px) {
    .curated-products .product-card,
    .curated-products .product-card-featured {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .curated-products .product-showcase,
    .curated-products .product-card-featured .product-showcase {
        height: 430px;
        min-height: 430px;
    }

    .curated-products .product-body,
    .curated-products .product-card-featured .product-body {
        padding: 30px;
        border-left: 0;
        border-top: 3px solid var(--gold);
    }
}

@media (max-width: 620px) {
    .product-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .product-tabs button {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
    }

    .curated-products .product-showcase,
    .curated-products .product-card-featured .product-showcase {
        height: 340px;
        min-height: 340px;
    }
}
