/* =========================================================
   spaProducts.css — Products preview wheel (Spa home page)
   MATCHES PACKAGES BEHAVIOR + CONTROLS:
   - overlay arrows on desktop/tablet
   - bottom row arrows + "View all products" on mobile
   - solid cards (no see-through)
   - center clear, edges softened via DIM overlay (NO blur)
   - ultra-wide 5: 3 crisp (no overlap) + 2 ghosted behind
   ========================================================= */

/* Section wrapper */
html[data-brand="spa"] .spa-products {
    padding: 0px 0 110px;
    position: relative;
    overflow-x: clip;
    /* prevent page-level horizontal scroll */
}

@supports not (overflow: clip) {
    html[data-brand="spa"] .spa-products {
        overflow-x: hidden;
    }
}

html[data-brand="spa"] .spa-products::before {
    content: "";
    position: absolute;
    inset: -140px -120px auto -120px;
    height: 360px;
    pointer-events: none;
}

/* Shell (no frame) */
html[data-brand="spa"] .prod-wheel-shell {
    position: relative;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html[data-brand="spa"] .prod-wheel-shell {
        overflow-x: hidden;
    }
}

/* Stage (wheel mode) */
html[data-brand="spa"] .prod-wheel {
    position: relative;
    height: 440px;
    touch-action: pan-y;
}

/* Card base (wheel mode) */
html[data-brand="spa"] .prod-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(520px, 92vw);
    height: 100%;
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: none;

    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);

    background:
        radial-gradient(1200px 700px at 20% 0%, rgba(214, 163, 107, .14), transparent 55%),
        #fff;

    box-shadow: 0 18px 55px rgba(0, 0, 0, .12);
    color: rgba(0, 0, 0, .86);
    padding: 22px;

    /* ✅ buttons can pin to bottom */
    display: flex;
    flex-direction: column;

    transition:
        transform 520ms cubic-bezier(.2, .9, .2, 1),
        filter 520ms cubic-bezier(.2, .9, .2, 1);
}

/* dim overlay (does NOT create transparency like opacity does) */
html[data-brand="spa"] .prod-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 420ms ease;
}

/* Default 3-up: center clear, edges softened (NO BLUR) */
html[data-brand="spa"] .prod-card.is-center {
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
    filter: none;
    z-index: 3;
}

html[data-brand="spa"] .prod-card.is-left {
    pointer-events: auto;
    transform: translateX(calc(-50% - 360px)) scale(.95);
    /* ✅ removed blur; keep subtle “soften” via slight tone + overlay */
    filter: saturate(.92) contrast(.97) brightness(.985);
    z-index: 2;
}

html[data-brand="spa"] .prod-card.is-left::after {
    opacity: 1;
}

html[data-brand="spa"] .prod-card.is-right {
    pointer-events: auto;
    transform: translateX(calc(-50% + 360px)) scale(.95);
    /* ✅ removed blur */
    filter: saturate(.92) contrast(.97) brightness(.985);
    z-index: 2;
}

html[data-brand="spa"] .prod-card.is-right::after {
    opacity: 1;
}

/* Far cards OFF by default */
html[data-brand="spa"] .prod-card.is-far-left,
html[data-brand="spa"] .prod-card.is-far-right {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(.98);
    filter: none;
    z-index: 1;
}

html[data-brand="spa"] .prod-card.is-off {
    opacity: 0;
    pointer-events: none;
}

/* Media */
html[data-brand="spa"] .prod-media {
    width: 100%;
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    background: rgba(255, 255, 255, .55);
    margin-bottom: 14px;
}

html[data-brand="spa"] .prod-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Top row */
html[data-brand="spa"] .prod-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

html[data-brand="spa"] .prod-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(214, 163, 107, .18);
    border: 1px solid rgba(214, 163, 107, .22);
    font-weight: 750;
    font-size: .85rem;
    color: rgba(0, 0, 0, .76);
}

html[data-brand="spa"] .prod-price {
    font-size: .95rem;
    font-weight: 800;
    color: rgba(0, 0, 0, .62);
}

/* Text */
html[data-brand="spa"] .prod-title {
    margin: 6px 0 8px;
    font-size: 1.45rem;
    letter-spacing: -.02em;
}

html[data-brand="spa"] .prod-desc {
    margin: 0 0 14px;
    color: rgba(0, 0, 0, .62);
    line-height: 1.65;
    max-width: 70ch;
}

/* Actions (pinned to bottom) */
html[data-brand="spa"] .prod-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* -----------------------------
   NAV BUTTONS (shared style like packages)
------------------------------ */
html[data-brand="spa"] .prod-nav {
    width: 44px;
    height: 44px;
    border-radius: 12px;

    border: 1px solid rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .70);
    color: rgba(0, 0, 0, .72);
    font-weight: 900;
    cursor: pointer;

    backdrop-filter: blur(14px);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

html[data-brand="spa"] .prod-nav:hover {
    transform: translateY(-2px);
    background: rgba(214, 163, 107, .20);
    border-color: rgba(214, 163, 107, .26);
}

/* Overlay arrows (desktop/tablet) */
html[data-brand="spa"] .prod-nav--overlay {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

html[data-brand="spa"] .prod-nav--overlay.prod-prev {
    left: 14px;
}

html[data-brand="spa"] .prod-nav--overlay.prod-next {
    right: 14px;
}

/* ✅ CONTROLS UNDER THE WHEEL (ALWAYS VISIBLE)
   Desktop/tablet: ONLY the button, aligned LEFT
   Mobile: arrows + button row (pinned under cards)
*/
html[data-brand="spa"] .prod-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 16px;
}

html[data-brand="spa"] .prod-controls .prod-nav--row {
    display: none;
}

html[data-brand="spa"] .prod-controls .btn {
    width: auto;
    min-width: 220px;
    text-align: center;
}

/* ---------------------------------
   ULTRA-WIDE: 5 cards
---------------------------------- */
@media (min-width: 2000px) {
    html[data-brand="spa"] .prod-card.is-left {
        transform: translateX(calc(-50% - 560px)) scale(.98);
        filter: none;
    }

    html[data-brand="spa"] .prod-card.is-left::after {
        opacity: 0;
    }

    html[data-brand="spa"] .prod-card.is-right {
        transform: translateX(calc(-50% + 560px)) scale(.98);
        filter: none;
    }

    html[data-brand="spa"] .prod-card.is-right::after {
        opacity: 0;
    }

    html[data-brand="spa"] .prod-card.is-far-left,
    html[data-brand="spa"] .prod-card.is-far-right {
        opacity: .28;
        pointer-events: auto;
        z-index: 1;
        /* ✅ removed blur; keep ghost via overlay + mild tone */
        filter: saturate(.88) contrast(.95) brightness(.97);
    }

    html[data-brand="spa"] .prod-card.is-far-left {
        transform: translateX(calc(-50% - 840px)) scale(.92);
    }

    html[data-brand="spa"] .prod-card.is-far-right {
        transform: translateX(calc(-50% + 840px)) scale(.92);
    }

    html[data-brand="spa"] .prod-card.is-far-left::after,
    html[data-brand="spa"] .prod-card.is-far-right::after {
        opacity: 1;
        background: rgba(255, 255, 255, .28);
    }
}

/* ---------------------------------
   MID: tighten spacing slightly
---------------------------------- */
@media (max-width: 1280px) {
    html[data-brand="spa"] .prod-card.is-left {
        transform: translateX(calc(-50% - 320px)) scale(.955);
    }

    html[data-brand="spa"] .prod-card.is-right {
        transform: translateX(calc(-50% + 320px)) scale(.955);
    }
}

/* ---------------------------------
   TABLET / SMALL DESKTOP
---------------------------------- */
@media (max-width: 1050px) {
    html[data-brand="spa"] .prod-wheel {
        height: 400px;
    }

    html[data-brand="spa"] .prod-card {
        width: min(440px, 86vw);
        padding: 18px;
        border-radius: 20px;
    }

    html[data-brand="spa"] .prod-card.is-left {
        opacity: .55;
        transform: translateX(calc(-50% - 255px)) scale(.94);
        filter: saturate(.92) contrast(.97) brightness(.985);
        /* ✅ no blur */
    }

    html[data-brand="spa"] .prod-card.is-right {
        opacity: .55;
        transform: translateX(calc(-50% + 255px)) scale(.94);
        filter: saturate(.92) contrast(.97) brightness(.985);
        /* ✅ no blur */
    }

    html[data-brand="spa"] .prod-title {
        font-size: 1.25rem;
    }

    html[data-brand="spa"] .prod-desc {
        font-size: .95rem;
    }

    html[data-brand="spa"] .prod-nav--overlay.prod-prev {
        left: 10px;
    }

    html[data-brand="spa"] .prod-nav--overlay.prod-next {
        right: 10px;
    }
}

/* ---------------------------------
   SMALL VIEW (≤ 900px)
---------------------------------- */
@media (max-width: 900px) {
    html[data-brand="spa"] .spa-products {
        padding: 70px 0 70px;
    }

    /* scale from top */
    html[data-brand="spa"] .prod-card {
        transform-origin: top center;
    }

    /* keep your breathing room */
    html[data-brand="spa"] .prod-wheel {
        height: 400px;
        touch-action: pan-y;
    }

    /* skinnier */
    html[data-brand="spa"] .prod-card {
        width: min(300px, 78vw);
        padding: 16px 16px 18px;
        border-radius: 20px;
    }

    html[data-brand="spa"] .prod-card.is-center {
        transform: translateX(-50%) scale(.8);
    }

    html[data-brand="spa"] .prod-card.is-left {
        transform: translateX(calc(-50% - 165px)) scale(.75);
        opacity: .55;
        filter: saturate(.92) contrast(.97) brightness(.985);
        /* ✅ no blur */
    }

    html[data-brand="spa"] .prod-card.is-right {
        transform: translateX(calc(-50% + 165px)) scale(.75);
        opacity: .55;
        filter: saturate(.92) contrast(.97) brightness(.985);
        /* ✅ no blur */
    }

    html[data-brand="spa"] .prod-title {
        font-size: 1.05rem;
        margin: 6px 0;
    }

    html[data-brand="spa"] .prod-desc {
        font-size: .9rem;
        margin: 0 0 10px;
        line-height: 1.55;
    }

    /* hide overlay arrows */
    html[data-brand="spa"] .prod-nav--overlay {
        display: none;
    }

    /* reserve space + pin controls to bottom of the wheel shell */
    html[data-brand="spa"] .prod-wheel-shell {
        padding-bottom: calc(var(--controls-h) + var(--controls-gap));
    }

    html[data-brand="spa"] .prod-controls {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;

        margin-top: 0;
        justify-content: space-between;
        gap: 10px;
    }

    html[data-brand="spa"] .prod-controls .prod-nav--row {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        transform: none;
    }

    html[data-brand="spa"] .prod-controls .btn {
        flex: 1;
        width: auto;
        min-width: 0;
        text-align: center;
    }

    html[data-brand="spa"] .spa-team {
        padding: 70px 0 90px;
    }
}

html[data-brand="spa"] .prod-card-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* was space-between */
    gap: 10px;
}

html[data-brand="spa"] .prod-providers {
    font-weight: 650;
    font-size: .9rem;
    color: rgba(0, 0, 0, .62);
}

