/*****************************************************************
    UTOPIA WINE GALLERY
*****************************************************************/

:root {
    --utopia-white: #ffffff;
    --utopia-cream: #f4efe6;
    --utopia-ink: #211f1b;
    --utopia-muted: #7b7468;
    --utopia-gold: #b79a5b;
    --utopia-gold-dark: #8f743d;
    --utopia-line: rgba(33, 31, 27, 0.12);
    --utopia-shadow: 0 24px 70px rgba(33, 31, 27, 0.12);
}

body {
    background: var(--utopia-white);
    color: var(--utopia-ink);
}

.wine-store-page {
    background: #ffffff;
}

.wine-store-hero {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.wine-kicker {
    margin: 0 0 14px;
    font-size: 0.76rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--utopia-gold-dark);
}

.wine-store-hero h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -0.06em;
}

.wine-store-hero p {
    max-width: 560px;
    margin: 24px auto 0;
    color: var(--utopia-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}


/*****************************************************************
    GALLERY SHELL
*****************************************************************/

.wine-gallery-shell {
    position: relative;
    max-width: 1180px;
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 72px 1fr 72px;
    align-items: center;
}

.wine-stage {
    position: relative;
    height: 620px;
    overflow: hidden;
}

.wine-loading {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--utopia-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

/*****************************************************************
    WINE CARDS
*****************************************************************/

.gallery-wine-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(360px, 72vw);
    height: 100%;
    transform: translateX(-50%) scale(0.72);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 420ms ease,
        opacity 420ms ease,
        filter 420ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.gallery-wine-card.is-active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
}

.gallery-wine-card.is-prev {
    transform: translateX(-145%) scale(0.72);
    opacity: 0.38;
    z-index: 2;
    filter: grayscale(15%);
}

.gallery-wine-card.is-next {
    transform: translateX(45%) scale(0.72);
    opacity: 0.38;
    z-index: 2;
    filter: grayscale(15%);
}

.gallery-wine-card.is-hidden {
    opacity: 0;
    transform: translateX(-50%) scale(0.58);
}

.wine-bottle-wrap {
    position: relative;
    min-height: 240px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.wine-bottle-wrap::after {
    content: "";
    position: absolute;
    bottom: 6px;
    width: 54%;
    height: 22px;
    border-radius: 999px;
    background: rgba(33, 31, 27, 0.16);
    filter: blur(18px);
    z-index: 0;
}

.gallery-wine-card img {
    position: relative;
    z-index: 1;
    max-height: 195px;
    max-width: 82%;
    object-fit: contain;
}

.gallery-wine-card.is-active img {
    max-height: 235px;
}

.gallery-wine-info {
    margin-top: 4px;
}

.gallery-wine-info h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: -0.045em;
}

.gallery-wine-meta {
    margin: 12px 0 0;
    color: var(--utopia-muted);
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-wine-price {
    margin: 14px 0 0;
    color: var(--utopia-gold-dark);
    font-size: 1rem;
}

.gallery-wine-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 22px;
}

.gallery-wine-actions .event-pickup-button {
    background: #7a3129;
    border-color: #7a3129;
}

.gallery-wine-actions .event-pickup-button.is-selected {
    background: var(--utopia-gold);
    border-color: var(--utopia-gold);
    color: var(--utopia-ink);
}

.onsite-choice-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px 0;
}

.onsite-choice-tabs button {
    border: 1px solid var(--utopia-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--utopia-ink);
    padding: 9px 15px;
    font: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.onsite-choice-tabs button.is-active {
    border-color: var(--utopia-gold);
    background: var(--utopia-ink);
    color: #fffdf8;
}

.store-offering-detail {
    width: min(520px, calc(100vw - 32px));
    border: 0;
    border-radius: 22px;
    padding: 0;
    color: var(--utopia-ink);
    background: #fffdf8;
    box-shadow: 0 28px 90px rgba(20, 24, 20, 0.28);
}

.store-offering-detail::backdrop {
    background: rgba(18, 22, 19, 0.55);
}

.store-offering-detail__card {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 30px;
}

.store-offering-detail__card h2,
.store-offering-detail__card h3,
.store-offering-detail__card p {
    margin: 0;
}

.store-offering-detail__card > button:not(.store-offering-detail__close) {
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    background: var(--utopia-ink);
    color: #fffdf8;
    cursor: pointer;
}

.store-offering-detail__close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 1px solid var(--utopia-line);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    background: #fff;
    cursor: pointer;
}

.gallery-wine-actions button,
.detail-actions button {
    border: 1px solid var(--utopia-gold);
    background: var(--utopia-ink);
    color: #fffdf8;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.gallery-wine-actions button.secondary {
    background: transparent;
    color: var(--utopia-ink);
}

.gallery-wine-actions button:hover,
.detail-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(33, 31, 27, 0.12);
}

/*****************************************************************
    ARROWS
*****************************************************************/

.gallery-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--utopia-line);
    background: rgba(255, 255, 255, 0.74);
    color: var(--utopia-ink);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(33, 31, 27, 0.08);
    z-index: 10;
}

.gallery-arrow:hover {
    border-color: var(--utopia-gold);
    color: var(--utopia-gold-dark);
}


/*****************************************************************
    WINE DETAIL SECTIONS
*****************************************************************/

.wine-section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 22px;
}

.wine-section-tab {
    border: 1px solid var(--utopia-line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--utopia-muted);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.68rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
}

.wine-section-tab.is-active {
    border-color: var(--utopia-gold);
    background: var(--utopia-ink);
    color: #fffdf8;
}

.wine-section-renderer {
    margin-top: 18px;
}

.wine-info-section {
    border-top: 1px solid var(--utopia-line);
    padding-top: 20px;
}

.wine-section-label {
    margin: 0 0 12px;
    color: var(--utopia-gold-dark);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wine-section-copy {
    margin: 0;
    color: var(--utopia-muted);
    font-size: 1.13rem;
    line-height: 1.86;
}

.wine-section-card {
    margin-top: 14px;
    border: 1px solid var(--utopia-line);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    padding: 16px 18px;
}

.wine-section-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--utopia-gold-dark);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wine-section-card p {
    margin: 0;
    color: var(--utopia-muted);
    font-size: 1.06rem;
    line-height: 1.78;
}

.wine-section-locked {
    opacity: 0.85;
}

.wine-purchase-card {
    border: 1px solid var(--utopia-line);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 20px;
    padding: 20px;
    display: grid;
    gap: 12px;
}

.wine-purchase-card strong {
    color: var(--utopia-ink);
    font-size: 2rem;
    font-weight: 400;
}

.wine-purchase-card span {
    color: var(--utopia-muted);
}

.wine-purchase-card button {
    border: 1px solid var(--utopia-gold);
    background: var(--utopia-ink);
    color: #fffdf8;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.wine-purchase-card button.secondary {
    background: transparent;
    color: var(--utopia-ink);
}


/* taste level formatting  */


.taste-fingerprint {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.taste-fingerprint-row {
    display: grid;
    grid-template-columns: 110px 1fr 120px;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--utopia-line);
    background: rgba(255, 255, 255, .76);
    border-radius: 16px;
    padding: 13px 15px;
}

.taste-fingerprint-row span {
    color: var(--utopia-muted);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.taste-dots {
    display: flex;
    gap: 7px;
}

.taste-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid var(--utopia-gold);
    background: transparent;
}

.taste-dots i.is-filled {
    background: var(--utopia-gold);
}

.taste-fingerprint-row strong {
    color: var(--utopia-ink);
    font-size: .78rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .08em;
}

@media (max-width: 620px) {
    .taste-fingerprint-row {
        grid-template-columns: 1fr;
    }
}

.taste-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(242, 140, 40, 0.55);
    background: transparent;
}

.taste-dots i.is-filled {
    background: #f28c28;
    border-color: #f28c28;
    box-shadow: 0 0 11px rgba(242, 140, 40, 0.42);
}

/* taste level formatting */


/* winden data panel and give it a royal touch */

/*****************************************************************
    WINEMAKING JOURNEY
*****************************************************************/

.winemaking-journey {
    padding-top: 26px;
}

.winemaking-timeline {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.winemaking-stage {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
    align-items: start;
    padding: 22px 24px;
    border: 1px solid rgba(183, 154, 91, 0.28);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 245, 238, 0.82));
    box-shadow: 0 18px 44px rgba(33, 31, 27, 0.07);
}

.winemaking-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--utopia-gold);
    color: var(--utopia-gold-dark);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
}

.winemaking-stage h4 {
    margin: 0 0 8px;
    color: var(--utopia-ink);
    font-size: 1.18rem;
    font-weight: 400;
}

.winemaking-stage p {
    margin: 0;
    color: var(--utopia-muted);
    line-height: 1.65;
    font-size: 0.98rem;
}



/* winden data panel and give iot a royal touch*/

/*****************************************************************
    EDITORIAL IDENTITY EXPERIENCE
*****************************************************************/

.wine-identity-experience {
    border-top: 0;
    padding-top: 10px;
}

.wine-hero-quote {
    max-width: 880px;
    margin: 18px 0 34px;
    color: var(--utopia-ink);
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    line-height: 1.28;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.wine-editorial-story {
    max-width: 820px;
    margin-bottom: 34px;
}

.wine-editorial-story p {
    margin: 0;
    color: var(--utopia-muted);
    font-size: 1.16rem;
    line-height: 1.9;
}

.wine-quick-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 920px;
}

.wine-fact-card {
    border: 1px solid var(--utopia-line);
    border-radius: 18px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.76);
}

.wine-fact-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--utopia-gold-dark);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wine-fact-card strong {
    color: var(--utopia-ink);
    font-size: 1.04rem;
    font-weight: 400;
    line-height: 1.45;
}

@media (max-width: 620px) {
    .wine-quick-facts {
        grid-template-columns: 1fr;
    }
}


/* font override  */
/*****************************************************************
    DETAIL TYPOGRAPHY UPSIZE
*****************************************************************/

.detail-meta span {
    padding: 10px 18px;
    font-size: 0.82rem;
    letter-spacing: 0.13em;
}

.wine-section-tab {
    padding: 11px 17px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.detail-story {
    font-size: 1.38rem;
    line-height: 1.82;
}

.detail-block h3 {
    font-size: 0.9rem;
}

.detail-block p {
    font-size: 1.2rem;
    line-height: 1.78;
}

.wine-section-copy {
    font-size: 1.24rem;
    line-height: 1.82;
}

.wine-editorial-story p {
    font-size: 1.28rem;
    line-height: 1.9;
}

.wine-fact-card {
    padding: 22px 24px;
}

.wine-fact-card span {
    font-size: 0.76rem;
}

.wine-fact-card strong {
    font-size: 1.22rem;
    line-height: 1.5;
}

.detail-actions button,
.gallery-wine-actions button {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* font override */

/* immersive front end */

/*****************************************************************
    IMMERSIVE 4-WINE HERO GALLERY
*****************************************************************/

.immersive-wine-hero {
    max-width: 980px;
    margin-bottom: 26px;
}

.immersive-gallery-shell {
    max-width: none;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 20px 5vw 70px;
    grid-template-columns: 72px 1fr 72px;
    overflow: hidden;
    isolation: isolate;
}

.wine-blur-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blur-wine {
    position: absolute;
    max-height: 360px;
    opacity: 0.13;
    filter: blur(10px) grayscale(18%);
    transform: scale(1.08);
}

.blur-wine-0 {
    left: 4%;
    top: 8%;
}

.blur-wine-1 {
    left: 18%;
    bottom: 6%;
}

.blur-wine-2 {
    right: 8%;
    top: 10%;
}

.blur-wine-3 {
    right: 22%;
    bottom: 4%;
}

.blur-wine-4 {
    left: 42%;
    top: 2%;
}

.blur-wine-5 {
    right: 40%;
    bottom: 0;
}

.blur-wine-6 {
    left: 2%;
    bottom: 22%;
}

.blur-wine-7 {
    right: 2%;
    bottom: 24%;
}

.immersive-wine-stage {
    position: relative;
    z-index: 2;
    height: min(760px, calc(100vh - 230px));
    min-height: 620px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 34px);
    align-items: end;
    overflow: visible;
}

.hero-wine-card {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    justify-content: flex-end;
    padding: 24px 12px 34px;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 239, 230, 0.42));
    box-shadow: 0 28px 80px rgba(33, 31, 27, 0.09);
    backdrop-filter: blur(8px);
}

.hero-wine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 96px rgba(33, 31, 27, 0.14);
}

.hero-wine-card .wine-bottle-wrap {
    min-height: 380px;
}

.hero-wine-card img {
    max-height: 360px;
}

.hero-slot-0,
.hero-slot-1,
.hero-slot-2,
.hero-slot-3 {
    transform: none;
}

.hero-slot-0:hover,
.hero-slot-1:hover,
.hero-slot-2:hover,
.hero-slot-3:hover {
    transform: translateY(-6px);
}

.hero-wine-card .gallery-wine-info h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.7rem);
}

.hero-wine-card .gallery-wine-meta {
    min-height: 34px;
}

.immersive-gallery-shell .gallery-arrow {
    position: relative;
    z-index: 4;
}

@media (max-width: 1100px) {
    .immersive-wine-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        min-height: 900px;
    }

    .hero-slot-0,
    .hero-slot-1,
    .hero-slot-2,
    .hero-slot-3 {
        transform: none;
    }

    .hero-wine-card:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 620px) {
    .immersive-gallery-shell {
        grid-template-columns: 1fr;
        padding: 10px 4vw 60px;
    }

    .immersive-wine-stage {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-wine-card {
        min-height: 620px;
    }

    .hero-wine-card img {
        max-height: 390px;
    }

    .blur-wine {
        opacity: 0.08;
    }
}

/* immersive front end */

/* increase height of hear card and thew hole render */
/*****************************************************************
    IMMERSIVE HEIGHT EXPANSION
*****************************************************************/

.immersive-gallery-shell {
    height: calc(100vh - 96px);
    min-height: 0;
    padding-top: 0;
    padding-bottom: 18px;
}

.immersive-wine-stage {
    height: 100%;
    min-height: 0;
    align-items: stretch;
}

.hero-wine-card {
    min-height: 0;
    height: 100%;
    justify-content: space-between;
    padding: 0 12px 18px;
}

.hero-wine-card .wine-bottle-wrap {
    flex: 1;
    min-height: 0;
    align-items: flex-start;
    padding-top: 0;
}

.hero-wine-card img {
    max-height: min(66vh, 560px);
    width: auto;
    margin-top: -46px;
}

.hero-wine-card .gallery-wine-info {
    margin-top: -22px;
}

@media (max-width: 1100px) {
    .immersive-wine-stage {
        height: auto;
        min-height: auto;
    }

    .hero-wine-card {
        min-height: 720px;
    }
}

@media (max-width: 620px) {
    .hero-wine-card {
        min-height: calc(100vh - 130px);
    }

    .hero-wine-card .wine-bottle-wrap {
        min-height: 420px;
    }
}

/* increase height of hear card and thew hole render */
/*****************************************************************
    SAFE IMMERSIVE VIEWPORT FIX
*****************************************************************/

.immersive-gallery-shell {
    height: calc(100vh - 74px);
    min-height: 680px;
    padding-top: 0;
    padding-bottom: 20px;
    overflow: hidden;
}

.immersive-wine-stage {
    height: 100%;
    min-height: 640px;
    align-items: stretch;
}

.hero-wine-card {
    height: 620px;
    min-height: 620px;

    justify-content: flex-start;

    padding: 18px 22px 22px;

    overflow: hidden;
}

.hero-wine-card .wine-bottle-wrap {
    flex: 0 0 330px;

    min-height: 330px;
    height: 330px;

    align-items: center;
    justify-content: center;

    padding: 4px 12px 0;
}

.hero-wine-card img {
    display: block;

    width: auto;
    height: auto;

    max-width: 82%;
    max-height: 300px;

    margin: 0;

    object-fit: contain;
    object-position: center;
}

.hero-wine-card .gallery-wine-info {
    width: 100%;
    margin: 8px 0 0;
    padding: 0 18px;

    text-align: left;
}

.hero-wine-card .gallery-wine-actions {
    margin-top: 16px;
}

.hero-wine-card .gallery-wine-meta {
    margin-top: 8px;
    min-height: 0;
}

.hero-wine-card .gallery-wine-price {
    margin-top: 8px;
}

.hero-wine-card .gallery-wine-actions {
    margin-top: 14px;
}


.hero-wine-card img {
    margin-top: 0 !important;
}

.hero-wine-card .gallery-wine-info {
    margin-top: 8px !important;
}

/* increase height of hear card and thew hole render   */

/*****************************************************************
    FINAL DETAIL VIEW — TWO BOX LUXURY PRODUCT LAYOUT
*****************************************************************/

body:has(.wine-detail-view.is-open) {
    overflow: hidden;
    height: 100vh;
}

.wine-detail-view.is-open {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: block;
    padding: 22px;
    background: #211f1b;
    overflow: hidden;
}

.wine-detail-layout {
    height: calc(100vh - 44px);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(390px, .65fr);
    gap: 0;
    border-radius: 42px;
    overflow: hidden;
    background: #fffdf8;
}

.wine-detail-artbox {
    min-height: 0;
    background: #f5efe4;
    overflow: hidden;
}

.wine-detail-productbox {
    min-height: 0;
    padding: 42px 38px 34px;
    background: linear-gradient(180deg, #fffdf8, #f7f1e7);
    border-left: 1px solid rgba(183, 154, 91, 0.22) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wine-section-renderer {
    width: 100%;
    height: 100%;
    margin: 0;
    max-height: none;
    overflow: hidden;
}

.wine-bottle-hero {
    flex: 1;
    min-height: 0;
    display: grid;
    place-items: center;
}

.wine-detail-bottle-img {
    max-height: 46vh;
    max-width: 92%;
    object-fit: contain;
}


/*****************************************************************
    WINE DETAIL CLOSED STATE
*****************************************************************/

.wine-detail-view[aria-hidden="true"] {
    display: none !important;
}

.wine-detail-view[aria-hidden="false"] {
    display: block;
}

/*****************************************************************
    DETAIL VIEW POLISH — LUXURY EDITORIAL BALANCE
*****************************************************************/

.wine-detail-layout {
    grid-template-columns: minmax(0, 1.42fr) minmax(420px, .58fr);
    box-shadow: 0 34px 100px rgba(0, 0, 0, .28);
}

.wine-detail-artbox {
    background: #f3ede2;
    box-shadow: inset -18px 0 36px rgba(33, 31, 27, .035);
}

.wine-detail-productbox {
    background:
        radial-gradient(circle at 50% 46%, rgba(183, 154, 91, .18), transparent 42%),
        linear-gradient(180deg, #fffdf8, #f8f2e8);
    padding: 34px 42px 30px;
}

.wine-detail-productbox .wine-kicker {
    margin-bottom: 20px;
}

.wine-detail-productbox h2 {
    max-width: 560px;
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 4.2vw, 5.2rem);
    line-height: .9;
}

.detail-meta {
    margin: 0 0 22px;
}

.detail-meta span {
    background: rgba(255, 255, 255, .66);
    border-color: rgba(183, 154, 91, .22);
}

.wine-section-tabs {
    margin: 0 0 24px;
    gap: 9px;
}

.wine-section-tab {
    background: rgba(255, 255, 255, .74);
    border-color: rgba(183, 154, 91, .18);
    box-shadow: 0 8px 20px rgba(33, 31, 27, .035);
}

.wine-section-tab.is-active {
    background: var(--utopia-ink);
    border-color: var(--utopia-ink);
    color: #fffdf8;
}

.wine-bottle-hero {
    flex: 1;
    min-height: 0;
    border-top: 1px solid rgba(183, 154, 91, .14);
    border-bottom: 1px solid rgba(183, 154, 91, .14);
    margin: 0 0 20px;
}

.wine-detail-bottle-img {
    max-height: 56vh;
    max-width: 98%;
    transform: translateY(8px) scale(1.12);
    filter:
        drop-shadow(0 38px 34px rgba(33, 31, 27, .24)) drop-shadow(0 8px 12px rgba(33, 31, 27, .12));
}

.purchase-panel {
    gap: 12px;
    margin-top: 0;
}

.purchase-panel button {
    min-height: 58px;
    border-radius: 4px;
    background: linear-gradient(180deg, #cba764, #a4772b);
    border: 1px solid rgba(143, 116, 61, .55);
    box-shadow: 0 18px 34px rgba(143, 116, 61, .22);
}

.purchase-panel button.secondary {
    background: rgba(255, 255, 255, .7);
    color: var(--utopia-gold-dark);
    box-shadow: none;
}

.wine-detail-artbox .identity-cover-art {
    box-shadow: 0 20px 55px rgba(33, 31, 27, .08);
}

.wine-detail-artbox .identity-cover-art img {
    width: 105%;
    height: 105%;
    object-fit: cover;
    object-position: center;
    transform: translate(-2.5%, -2.5%);
}

.identity-cover-copy {
    min-height: 126px;
}

.identity-cover-copy .wine-fact-card {
    padding: 22px 26px;
}

.identity-cover-copy .wine-fact-card span {
    margin-bottom: 10px;
    color: var(--utopia-gold-dark);
    font-size: .72rem;
    letter-spacing: .18em;
}

.identity-cover-copy .wine-fact-card strong {
    font-size: 1.1rem;
    line-height: 1.5;
}

.detail-story {
    display: block;
    margin: 0 0 18px;
    max-height: 92px;
    overflow: hidden;
    color: var(--utopia-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.detail-block {
    display: none;
}

/*****************************************************************
    DETAIL VIEW RESET — 50/50 EDITORIAL SPREAD
*****************************************************************/

.wine-detail-layout {
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    background: #fffdf8;
}

.wine-detail-artbox {
    position: relative;
    background: #fffdf8 !important;
    box-shadow: none !important;
}

.wine-detail-artbox::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 22%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg,
            rgba(255, 253, 248, 0) 0%,
            rgba(255, 253, 248, .72) 72%,
            #fffdf8 100%);
    z-index: 4;
}

.wine-detail-productbox {
    background: #fffdf8 !important;
    border-left: 0 !important;
    padding: 54px 56px 42px !important;
    display: grid !important;
    grid-template-rows: auto auto auto auto 1fr auto;
    overflow: hidden;
}

.wine-detail-productbox h2 {
    font-size: clamp(3rem, 4.8vw, 6.2rem) !important;
    line-height: .88 !important;
    max-width: 620px;
    margin: 0 0 18px !important;
}

.detail-meta {
    margin: 0 0 20px !important;
}

.wine-section-tabs {
    margin: 0 0 24px !important;
}

.wine-bottle-hero {
    border: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.wine-detail-bottle-img {
    max-height: 72vh !important;
    max-width: 82% !important;
    transform: none !important;
    filter: drop-shadow(0 34px 32px rgba(33, 31, 27, .22)) !important;
}

.detail-story {
    display: block !important;
    max-width: 520px;
    margin: 14px 0 22px !important;
    color: var(--utopia-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.purchase-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 0 !important;
}

.purchase-panel button {
    min-height: 58px;
    border-radius: 0 !important;
    background: var(--utopia-ink) !important;
    color: #fffdf8 !important;
}

.purchase-panel button.secondary {
    background: transparent !important;
    color: var(--utopia-ink) !important;
    border: 1px solid rgba(183, 154, 91, .45) !important;
    box-shadow: none !important;
}

.wine-detail-artbox .identity-cover-art img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
}

.identity-cover-copy {
    min-height: 118px;
}


/*****************************************************************
    RHS BOTTLE HERO — FULL HEIGHT PRODUCT FOCUS
*****************************************************************/

.wine-detail-layout {
    grid-template-columns: 1fr 1fr !important;
}

.wine-detail-productbox {
    position: relative;
    padding: 28px 48px 34px !important;
    display: grid !important;
    grid-template-rows: auto auto 1fr auto !important;
    background: #fffdf8 !important;
}

.wine-detail-productbox .wine-kicker {
    margin: 0 0 8px !important;
    font-size: .68rem !important;
}

.wine-detail-productbox h2 {
    font-size: clamp(2rem, 3.2vw, 4.2rem) !important;
    line-height: .9 !important;
    margin: 0 0 10px !important;
    max-width: 520px !important;
}

.detail-meta {
    margin: 0 0 10px !important;
}

.detail-meta span {
    padding: 6px 10px !important;
    font-size: .62rem !important;
}

.wine-section-tabs {
    margin: 0 0 8px !important;
    gap: 6px !important;
}

.wine-section-tab {
    padding: 8px 12px !important;
    font-size: .62rem !important;
}

.wine-bottle-hero {
    align-self: stretch;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    border: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

.wine-detail-bottle-img {
    max-height: calc(100vh - 175px) !important;
    height: calc(100vh - 175px) !important;
    max-width: 72% !important;
    object-fit: contain !important;
    transform: translateX(18px) !important;
    filter: drop-shadow(0 38px 34px rgba(33, 31, 27, .24)) !important;
}

.detail-story {
    position: absolute;
    left: 48px;
    bottom: 108px;
    width: 42%;
    max-height: 90px;
    margin: 0 !important;
    font-size: .95rem;
    line-height: 1.55;
}

.purchase-panel {
    grid-template-columns: 1fr 1fr !important;
    align-self: end;
    margin-top: 12px !important;
}

/*****************************************************************
    DETAIL VIEW — 4 BOX LUXURY SPREAD
*****************************************************************/

.wine-detail-view.is-open {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: block;
    padding: 22px;
    background: #211f1b;
    overflow: hidden;
}

.wine-detail-view::before {
    display: none;
}

body:has(.wine-detail-view.is-open) {
    overflow: hidden;
}

.detail-back-button {
    position: absolute;
    top: 42px;
    left: 48px;
    z-index: 20;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, .9);
    color: var(--utopia-ink);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}

.wine-detail-layout {
    height: calc(100vh - 44px);
    display: grid;
    grid-template-columns: 1.35fr .62fr .58fr;
    grid-template-rows: minmax(0, 1fr) 132px;
    gap: 0;
    border-radius: 42px;
    overflow: hidden;
    background: #fffdf8;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .28);
}

.wine-detail-artbox {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    overflow: hidden;
    background: #fffdf8;
}

.wine-detail-artbox::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 24%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 253, 248, 0),
            rgba(255, 253, 248, .82),
            #fffdf8);
    pointer-events: none;
    z-index: 3;
}

.wine-detail-copybox {
    grid-column: 2;
    grid-row: 1;
    padding: 92px 34px 24px;
    background: #fffdf8;
    overflow: hidden;
}

.wine-detail-bottlebox {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    padding: 42px 28px 0;
    background: #fffdf8;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.wine-detail-infobar {
    grid-column: 1 / 4;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: center;
    padding: 22px 42px;
    border-top: 1px solid rgba(183, 154, 91, .22);
    background: rgba(255, 253, 248, .96);
}

.wine-section-renderer,
.wine-identity-cover,
.identity-cover-art {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.identity-cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.identity-cover-copy {
    display: none;
}

.utopia-brand {
    color: var(--utopia-gold-dark);
    font-size: .78rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.wine-bottle-hero {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.wine-detail-bottle-img {
    height: calc(100vh - 210px);
    max-height: calc(100vh - 210px);
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 38px 34px rgba(33, 31, 27, .24));
}

.wine-detail-copybox h2 {
    margin: 0 0 24px;
    font-size: clamp(2.2rem, 3vw, 4.2rem);
    line-height: .95;
    font-weight: 400;
    letter-spacing: -.055em;
}

.detail-meta {
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-story {
    display: block;
    margin: 26px 0 0;
    color: var(--utopia-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.detail-block {
    display: block;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(183, 154, 91, .18);
}

.wine-section-tabs {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.purchase-panel {
    display: grid;
    gap: 10px;
}

.purchase-panel button {
    min-height: 54px;
    border-radius: 4px;
    border: 1px solid var(--utopia-gold);
    background: linear-gradient(180deg, #cba764, #a4772b);
    color: #fffdf8;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

.purchase-panel button.secondary {
    background: transparent;
    color: var(--utopia-gold-dark);
}

/*****************************************************************
    BOTTLE BACKGROUND BLEND FIX
*****************************************************************/

:root {
    --wine-detail-cream: #fffdf8;
}

.wine-detail-layout,
.wine-detail-copybox,
.wine-detail-bottlebox,
.wine-detail-infobar,
.wine-bottle-hero {
    background: var(--wine-detail-cream) !important;
}

.wine-detail-bottle-img {
    background: var(--wine-detail-cream) !important;
    mix-blend-mode: multiply;
}

/*****************************************************************
    DETAIL VIEW BALANCE — 3 FRAME REWEIGHT
*****************************************************************/
/*****************************************************************
    FINAL DETAIL VIEW BALANCE — 3 FRAME PRODUCT SPREAD
*****************************************************************/

.wine-detail-layout {
    grid-template-columns: 1.28fr 0.92fr 0.72fr !important;
    grid-template-rows: minmax(0, 1fr) 132px !important;
}

/* FRAME 1 — let tab content breathe */
.wine-detail-artbox {
    padding: 34px 38px 24px !important;
    background: #fffdf8 !important;
}

.wine-detail-artbox .wine-section-renderer {
    height: 100% !important;
    overflow: hidden !important;
}

.taste-fingerprint {
    height: auto !important;
    gap: 14px !important;
}

.taste-fingerprint-row {
    padding: 16px 18px !important;
    grid-template-columns: 120px 1fr 60px !important;
}

.detail-block {
    display: block !important;
    margin-top: 26px !important;
    max-width: 92% !important;
}

.detail-block p {
    font-size: 1.12rem !important;
    line-height: 1.75 !important;
}

/* FRAME 2 — reduce width, balance text */
.wine-detail-copybox {
    padding: 88px 36px 28px !important;
    background: #fffdf8 !important;
}

.wine-detail-copybox h2 {
    font-size: clamp(3.2rem, 3.9vw, 5.2rem) !important;
    line-height: 0.9 !important;
    max-width: 560px !important;
    margin-bottom: 28px !important;
}

.detail-meta {
    margin-bottom: 34px !important;
}

.detail-story {
    position: static !important;
    width: auto !important;
    max-width: 92% !important;
    max-height: none !important;
    font-size: 1.18rem !important;
    line-height: 1.75 !important;
}

/* FRAME 3 — bottle prominent but not cropped */
.wine-detail-bottlebox {
    padding: 24px 12px 0 !important;
    background: #fffdf8 !important;
    overflow: hidden !important;
}

.wine-bottle-hero {
    align-items: flex-end !important;
    justify-content: center !important;
    background: #fffdf8 !important;
}

.wine-detail-bottle-img {
    height: calc(100vh - 190px) !important;
    max-height: calc(100vh - 190px) !important;
    max-width: 118% !important;
    transform: translateX(-4px) scale(1.04) !important;
    background: #fffdf8 !important;
    mix-blend-mode: multiply;
}

/*****************************************************************
    FINAL DETAIL CONTENT CENTERING
*****************************************************************/

.wine-detail-artbox {
    display: flex !important;
    align-items: center !important;
    padding: 48px 52px 70px !important;
}

.wine-detail-artbox .wine-section-renderer {
    width: 100% !important;
}

.wine-detail-copybox {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 44px 40px 70px !important;
}

.wine-detail-copybox h2 {
    margin-bottom: 34px !important;
}

.detail-meta {
    margin-bottom: 34px !important;
}

.detail-block,
.detail-story {
    margin-top: 28px !important;
}

/*****************************************************************
    FINAL FRAME 1 CENTERING — TASTE PROFILE BALANCE
*****************************************************************/

.wine-detail-artbox {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 64px 58px 110px !important;
}

.wine-detail-artbox .wine-section-renderer {
    width: 100% !important;
    max-width: 620px !important;
    height: auto !important;
}

.taste-fingerprint {
    gap: 12px !important;
}

.taste-fingerprint-row {
    min-height: 48px !important;
}

.detail-block {
    margin-top: 42px !important;
}

/*****************************************************************
    FRAME 1 EDITORIAL BLURB LAYOUT
    Applies to Vineyard, Vinification, Marketing, Media, Pricing
*****************************************************************/

.wine-detail-artbox {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 54px 64px 96px !important;
}

.wine-detail-artbox .wine-section-renderer {
    width: 100% !important;
    max-width: 680px !important;
    height: auto !important;
}

.wine-detail-artbox .wine-info-section {
    border-top: 1px solid rgba(183, 154, 91, .18) !important;
    padding-top: 22px !important;
}

.wine-detail-artbox .wine-section-label {
    margin-bottom: 22px !important;
}

.wine-detail-artbox .wine-section-copy,
.wine-detail-artbox .wine-section-card p,
.wine-detail-artbox .detail-block p {
    font-size: 1.12rem !important;
    line-height: 1.72 !important;
    max-width: 660px !important;
}

.wine-detail-artbox .wine-section-card {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin-top: 18px !important;
}


/*****************************************************************
    MARKETING / MEDIA / PRICING — WIDER EDITORIAL SPREAD
*****************************************************************/

.wine-spec-section-marketing,
.wine-spec-section-media,
.wine-spec-section-pricing {
    width: 100% !important;
}

.wine-spec-section-marketing .wine-spec-grid,
.wine-spec-section-media .wine-spec-grid,
.wine-spec-section-pricing .wine-spec-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
}

.wine-spec-section-marketing .wine-spec-card,
.wine-spec-section-media .wine-spec-card,
.wine-spec-section-pricing .wine-spec-card {
    padding-bottom: 18px !important;
    border-bottom: 1px solid rgba(183, 154, 91, .16) !important;
}

.wine-spec-section-marketing .wine-spec-card strong,
.wine-spec-section-media .wine-spec-card strong,
.wine-spec-section-pricing .wine-spec-card strong {
    display: block !important;
    max-width: 660px !important;
    font-size: 1.12rem !important;
    line-height: 1.9 !important;
}


/* vineyard section formatting */

.wine-spec-section-vineyard .wine-spec-card,
.wine-spec-section-harvest-notes .wine-spec-card {
    padding-bottom: 18px !important;
    border-bottom: 1px solid rgba(183, 154, 91, .16) !important;
}

.wine-spec-section-vineyard .wine-spec-card strong,
.wine-spec-section-harvest-notes .wine-spec-card strong {
    display: block !important;
    line-height: 1.9 !important;
}

/*****************************************************************
    VINEYARD VIEWPORT FIT
*****************************************************************/

.wine-spec-section-vineyard,
.wine-spec-section-harvest-notes {
    height: auto !important;
}

.wine-spec-section-vineyard .wine-spec-grid,
.wine-spec-section-harvest-notes .wine-spec-grid {
    gap: 12px !important;
}

.wine-spec-section-vineyard .wine-spec-card,
.wine-spec-section-harvest-notes .wine-spec-card {
    padding: 0 0 10px !important;
    margin: 0 !important;
}

.wine-spec-section-vineyard .wine-spec-card span,
.wine-spec-section-harvest-notes .wine-spec-card span {
    margin-bottom: 4px !important;
}

.wine-spec-section-vineyard .wine-spec-card strong,
.wine-spec-section-harvest-notes .wine-spec-card strong {
    line-height: 1.65 !important;
}

.wine-spec-section-harvest-notes {
    margin-top: 18px !important;
}

/*****************************************************************
    FRAME 3 PURE WHITE BOTTLE BACKGROUND
*****************************************************************/

.wine-detail-bottlebox,
.wine-bottle-hero {
    background: #ffffff !important;
}

.wine-detail-bottle-img {
    background: #ffffff !important;
    mix-blend-mode: normal !important;
}


/*****************************************************************
    FRAME 3 TRUE WHITE PRODUCT PANEL
*****************************************************************/

.wine-detail-bottlebox {
    background: #ffffff !important;
    border-left: 1px solid rgba(33, 31, 27, 0.08) !important;
    box-shadow: -24px 0 54px rgba(33, 31, 27, 0.055) !important;
    padding-top: 34px !important;
    overflow: hidden !important;
}

.wine-bottle-hero {
    background: #ffffff !important;
    align-items: center !important;
    justify-content: center !important;
}

.wine-detail-bottle-img {
    background: #ffffff !important;
    mix-blend-mode: normal !important;
    height: calc(100vh - 225px) !important;
    max-height: calc(100vh - 225px) !important;
    max-width: 116% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: translateX(-4px) scale(1.02) !important;
}

/*****************************************************************
    FINAL FRAME 3 TRUE WHITE ISOLATION
*****************************************************************/

.wine-detail-layout {
    background: #ffffff !important;
}

.wine-detail-artbox,
.wine-detail-copybox,
.wine-detail-infobar {
    background: #fffdf8 !important;
}

.wine-detail-bottlebox {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    position: relative !important;
    padding: 34px 0 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border-left: 1px solid rgba(33, 31, 27, 0.06) !important;
}

.wine-detail-bottlebox::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: 0;
}

.wine-detail-bottlebox>* {
    position: relative;
    z-index: 1;
}

.wine-bottle-hero {
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wine-detail-bottle-img {
    background: transparent !important;
    mix-blend-mode: normal !important;
    height: calc(100vh - 225px) !important;
    max-height: calc(100vh - 225px) !important;
    max-width: 116% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: translateX(-4px) scale(1.02) !important;
}

/*****************************************************************
    STOREFRONT SHELL GRID PLACEMENT FIX
*****************************************************************/

#wineGalleryShell {
    grid-template-columns: 72px minmax(0, 1fr) 72px;
}

#wineGalleryShell #galleryPrevBtn {
    grid-column: 1;
    grid-row: 1;
}

#wineGalleryShell #wineStage {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
}

#wineGalleryShell #galleryNextBtn {
    grid-column: 3;
    grid-row: 1;
}

/*****************************************************************
    MEMBERSHIP STOREFRONT CARDS
*****************************************************************/

.membership-store-card {
    position: relative;
}

.membership-store-card__visual {
    position: relative;
    background: #050505;
    overflow: hidden;
}

.membership-store-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050505;
    display: block;
}

.membership-store-card__image--empty {
    background:
        radial-gradient(circle at 50% 38%, rgba(208, 174, 79, 0.24), transparent 46%),
        #050505;
}

.membership-store-card__overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.08) 58%,
        rgba(0, 0, 0, 0.48) 100%);

    pointer-events: none;
}

.membership-store-card__eyebrow {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;

    padding: 8px 12px;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;

    color: #ffffff;
    background: rgba(28, 25, 21, 0.46);
    backdrop-filter: blur(8px);

    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.membership-store-card__tier-code {
    position: absolute;
    right: 22px;
    bottom: 20px;
    z-index: 2;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.06em;

    text-shadow:
        0 4px 18px rgba(0, 0, 0, 0.24);
}

.membership-store-card .store-card__body {
    padding: 20px 22px 22px;
}

.membership-store-card .wine-kicker {
    margin: 0 0 7px;

    color: #94763d;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.membership-store-card .store-card__title {
    margin-bottom: 12px;

    color: #211f1b;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.membership-store-card__meta {
    min-height: 88px;
}

.membership-store-card__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;

    width: 100%;
}

.membership-store-card__benefits>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 70px;
    padding: 10px 8px;

    border: 1px solid rgba(33, 31, 27, 0.1);
    border-radius: 14px;

    background: #f7f2e9;
    text-align: center;
}

.membership-store-card__benefits strong {
    display: block;
    margin-bottom: 5px;

    color: #211f1b;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.membership-store-card__benefits span {
    color: #756e64;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.membership-store-card__price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-top: 12px;
    padding-top: 13px;

    border-top: 1px solid rgba(33, 31, 27, 0.1);
}

.membership-store-card__price span {
    color: #7b7468;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.membership-store-card__price strong {
    color: #211f1b;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.membership-store-card .store-card__footer {
    gap: 9px;
    padding-top: 14px;
}

.membership-store-card .store-card__footer button {
    padding: 0 12px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.membership-store-card .store-card__footer .secondary {
    border: 1px solid rgba(33, 31, 27, 0.18);
    color: #211f1b;
    background: transparent;
}

.membership-store-card .store-card__footer button:not(.secondary) {
    border: 1px solid #211f1b;
    color: #ffffff;
    background: #211f1b;
}

.membership-store-card .store-card__footer button:hover {
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .membership-store-card__tier-code {
        font-size: 48px;
    }

    .membership-store-card .store-card__title {
        font-size: 25px;
    }
}

/*****************************************************************
    UNIFIED STOREFRONT — PREVENT MIXED CARD OVERLAP
*****************************************************************/

#wineStage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;

    align-items: start;

    width: 100%;
}

/*
 * Remove the original cinematic slot offsets whenever cards are
 * rendered together in the unified storefront.
 */
#wineStage>.store-card,
#wineStage>.gallery-wine-card {
    position: relative;
    inset: auto;

    width: 100%;
    min-width: 0;
    max-width: none;

    margin: 0;

    transform: none;
    translate: none;
}

/*
 * Explicitly neutralize hero-slot positioning and transforms.
 */
#wineStage>.hero-slot-0,
#wineStage>.hero-slot-1,
#wineStage>.hero-slot-2,
#wineStage>.hero-slot-3 {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;

    margin: 0;
    transform: none;
}

/*
 * Prevent cards or images from expanding beyond their grid cells.
 */
#wineStage>* {
    box-sizing: border-box;
    min-width: 0;
}

#wineStage img {
    max-width: 100%;
}

/*****************************************************************
    RESPONSIVE UNIFIED STOREFRONT
*****************************************************************/

@media (max-width: 1380px) {
    #wineStage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 980px) {
    #wineStage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 680px) {
    #wineStage {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

/*****************************************************************
    STOREFRONT HERO — SINGLE-LINE TITLE + SIDE ARROWS
*****************************************************************/

.wine-store-hero {
    padding-bottom: 34px;
}

.storefront-hero-heading-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 22px;

    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
}

.storefront-hero-heading-row h1 {
    margin: 0;

    font-size: clamp(48px, 6.2vw, 104px);
    line-height: 0.95;
    letter-spacing: -0.055em;
    text-align: center;

    white-space: nowrap;
}

.storefront-heading-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    padding: 0;

    border: 1px solid rgba(165, 128, 65, 0.34);
    border-radius: 50%;

    color: #a58041;
    background: rgba(255, 253, 248, 0.9);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.storefront-heading-arrow:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(165, 128, 65, 0.7);
    background: #fffdf8;
}

.storefront-heading-arrow:disabled {
    opacity: 0.28;
    cursor: default;
}

/*
 * Ensure old absolute gallery-arrow positioning does not affect
 * the buttons after moving them into the hero.
 */
.storefront-hero-heading-row .gallery-arrow,
.storefront-heading-arrow {
    position: static;
    inset: auto;
    transform: none;
}

/*****************************************************************
    RESPONSIVE HERO
*****************************************************************/

@media (max-width: 1180px) {
    .storefront-hero-heading-row {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        gap: 14px;
    }

    .storefront-hero-heading-row h1 {
        font-size: clamp(40px, 6vw, 72px);
    }

    .storefront-heading-arrow {
        width: 48px;
        height: 48px;
        font-size: 36px;
    }
}

@media (max-width: 820px) {
    .storefront-hero-heading-row {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        width: calc(100% - 24px);
        gap: 8px;
    }

    .storefront-hero-heading-row h1 {
        font-size: clamp(30px, 7vw, 48px);
        white-space: normal;
    }

    .storefront-heading-arrow {
        width: 42px;
        height: 42px;
        font-size: 32px;
    }
}

/*
 * Storefront scroll authority
 *
 * The immersive gallery may size its cards against the viewport, but the
 * public storefront itself must remain a normal document that can grow and
 * scroll. This deliberately overrides the earlier fixed-viewport gallery
 * treatment without changing the wine-detail overlay.
 */
.wine-store-page:not([hidden]) {
    min-height: 100%;
    overflow: visible;
}

.wine-store-page:not([hidden]) .immersive-gallery-shell {
    height: auto;
    min-height: 620px;
    overflow: visible;
}

.wine-store-page:not([hidden]) .immersive-wine-stage {
    height: auto;
    min-height: 620px;
}

/*****************************************************************
    WINE DETAIL — MAXIMUM READABILITY ACROSS EVERY TAB
*****************************************************************/

.wine-detail-view.is-open .wine-detail-copybox,
.wine-detail-view.is-open .wine-detail-artbox .wine-section-renderer {
    scrollbar-color: rgba(91, 67, 27, .55) transparent;
    scrollbar-width: thin;
}

.wine-detail-view.is-open .wine-detail-copybox {
    overflow-y: auto !important;
}

.wine-detail-view.is-open .wine-detail-artbox:not(:has(.wine-identity-cover)) .wine-section-renderer {
    max-width: 760px !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    padding: 10px 18px 22px 2px !important;
}

/* Attribute labels — deliberately around twice the original UI scale. */
.wine-detail-view.is-open .wine-section-label,
.wine-detail-view.is-open .wine-section-card span,
.wine-detail-view.is-open .wine-spec-card span,
.wine-detail-view.is-open .taste-fingerprint-row span,
.wine-detail-view.is-open .detail-block h3 {
    color: #17140f !important;
    font-size: clamp(1.25rem, 1.35vw, 1.65rem) !important;
    line-height: 1.25 !important;
    font-weight: 850 !important;
    letter-spacing: .025em !important;
    opacity: 1 !important;
}

/* Published values and editorial copy. */
.wine-detail-view.is-open .wine-section-copy,
.wine-detail-view.is-open .wine-section-card p,
.wine-detail-view.is-open .wine-spec-card strong,
.wine-detail-view.is-open .taste-fingerprint-row strong,
.wine-detail-view.is-open .detail-block p {
    color: #211d17 !important;
    font-size: clamp(1.55rem, 1.55vw, 1.95rem) !important;
    line-height: 1.52 !important;
    font-weight: 560 !important;
    opacity: 1 !important;
}

.wine-detail-view.is-open .detail-story {
    color: #302a22 !important;
    font-size: clamp(1.42rem, 1.45vw, 1.8rem) !important;
    line-height: 1.58 !important;
    opacity: 1 !important;
}

.wine-detail-view.is-open .detail-meta span {
    color: #2b251d !important;
    font-size: clamp(1.05rem, 1.05vw, 1.3rem) !important;
    font-weight: 850 !important;
    opacity: 1 !important;
}

.wine-detail-view.is-open .taste-fingerprint {
    gap: 20px !important;
}

.wine-detail-view.is-open .taste-fingerprint-row {
    min-height: 82px !important;
    grid-template-columns: minmax(160px, .8fr) minmax(220px, 1fr) minmax(84px, auto) !important;
    gap: 20px !important;
    padding: 20px 22px !important;
    background: rgba(255, 255, 255, .72) !important;
    border-color: rgba(83, 61, 25, .28) !important;
}

/* Read-only palate sliders in the wine detail Taste Profile. */
.wine-detail-view.is-open .taste-static-slider-row {
    --taste-color: #d78a2d;
    --taste-start: #8d4d17;
}

.wine-detail-view.is-open .taste-static-slider-row:nth-child(2) { --taste-color: #b03b53; --taste-start: #64152a; }
.wine-detail-view.is-open .taste-static-slider-row:nth-child(3) { --taste-color: #c34878; --taste-start: #6f2046; }
.wine-detail-view.is-open .taste-static-slider-row:nth-child(4) { --taste-color: #a1874b; --taste-start: #4e4827; }
.wine-detail-view.is-open .taste-static-slider-row:nth-child(5) { --taste-color: #c87045; --taste-start: #74341c; }
.wine-detail-view.is-open .taste-static-slider-row:nth-child(6) { --taste-color: #a36143; --taste-start: #502819; }

.wine-detail-view.is-open .taste-static-slider {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(40, 31, 23, .09);
    box-shadow: inset 0 0 0 1px rgba(83, 61, 25, .18);
}

.wine-detail-view.is-open .taste-static-slider i {
    display: grid;
    min-height: 40px;
    place-items: center;
    border-radius: 999px;
    color: rgba(43, 34, 25, .45);
    font-size: .68rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wine-detail-view.is-open .taste-static-slider i.is-current {
    background: linear-gradient(100deg, var(--taste-start), var(--taste-color));
    color: #fffdf8;
    box-shadow: 0 5px 16px color-mix(in srgb, var(--taste-color) 35%, transparent), inset 0 0 0 2px rgba(255, 255, 255, .72);
}

.wine-detail-view.is-open .taste-static-value {
    color: #3a291b !important;
    font-size: clamp(1rem, 1.08vw, 1.28rem) !important;
    font-weight: 850 !important;
    letter-spacing: .035em !important;
    text-align: right;
}

.wine-detail-view.is-open .taste-static-value.is-unset {
    color: #82776a !important;
    font-size: .92rem !important;
    font-style: italic;
    font-weight: 700 !important;
    text-transform: none;
}

/* Public Food Pairings tab — structured icons selected in Wine Profiles. */
.wine-detail-view.is-open .wine-food-pairings-section h3 {
    margin: 0 0 20px;
    color: #211d17;
    font-size: clamp(1.7rem, 2.1vw, 2.55rem);
}

.food-pairing-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.food-pairing-icon-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 14px;
    border: 1px solid rgba(83, 61, 25, .22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 253, 248, .96), rgba(241, 231, 206, .7));
}

.food-pairing-icon-card span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #2a231b;
    font-size: 23px;
}

.wine-detail-view.is-open .food-pairing-icon-card strong {
    color: #2e241a !important;
    font-family: inherit;
    font-size: 1rem !important;
    font-weight: 850 !important;
    letter-spacing: .01em !important;
    line-height: 1.2 !important;
}

.food-pairing-editorial-note {
    margin-top: 22px;
    padding: 18px 20px;
    border-left: 4px solid #c99e4e;
    background: rgba(204, 171, 99, .13);
    color: #30251b;
    font-size: 1.05rem;
    line-height: 1.55;
}

.wine-detail-view.is-open .wine-spec-grid {
    gap: 24px !important;
}

.wine-detail-view.is-open .wine-spec-card,
.wine-detail-view.is-open .wine-section-card {
    padding-bottom: 22px !important;
    border-bottom: 2px solid rgba(83, 61, 25, .2) !important;
}

.wine-detail-view.is-open .wine-spec-card span,
.wine-detail-view.is-open .wine-section-card span {
    display: block !important;
    margin-bottom: 9px !important;
}

.wine-detail-view.is-open .wine-section-tab {
    min-height: 48px !important;
    padding: 12px 18px !important;
    color: #302a22 !important;
    font-size: clamp(.88rem, .82vw, 1.04rem) !important;
    font-weight: 850 !important;
    opacity: 1 !important;
}

.wine-detail-view.is-open .wine-section-tab.is-active {
    color: #ffffff !important;
}

@media (max-width: 1280px) {
    .wine-detail-view.is-open .wine-detail-artbox:not(:has(.wine-identity-cover)) {
        padding: 76px 38px 38px !important;
    }
}

@media (max-width: 820px) {
    .wine-detail-view.is-open .wine-detail-artbox:not(:has(.wine-identity-cover)) .wine-section-renderer {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    .wine-detail-view.is-open .taste-fingerprint-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/*****************************************************************
    STOREFRONT PRODUCT GRID — VERTICAL SCROLL
*****************************************************************/

#wineStage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;

    width: min(1500px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 64px;

    overflow: visible;
}

#wineStage > * {
    min-width: 0;
    width: 100%;
    margin: 0;

    position: relative;
    inset: auto;
    transform: none;
}

/*
 * Storefront card rhythm
 *
 * The gallery was originally given a fixed "hero" card height.  That is
 * attractive for short labels, but it clips the action row when a wine name
 * wraps to three lines.  Product cards in the public storefront are a grid,
 * not a viewport carousel: reserve room for the longest normal title and pin
 * both actions to the shared card baseline.
 */
#wineStage > .hero-wine-card {
    display: flex;
    flex-direction: column;
    height: 710px;
    min-height: 710px;
    overflow: hidden;
}

#wineStage > .hero-wine-card .wine-bottle-wrap {
    flex: 0 0 300px;
    min-height: 300px;
    height: 300px;
}

#wineStage > .hero-wine-card .gallery-wine-info {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

#wineStage > .hero-wine-card .gallery-wine-info h2 {
    min-height: 3.35em;
    margin: 0 0 22px;
    font-size: clamp(1.65rem, 1.8vw, 2.35rem);
    line-height: 1.08;
}

#wineStage > .hero-wine-card .gallery-wine-meta {
    min-height: 0;
    margin: 0;
    font-size: .82rem;
    line-height: 1.25;
}

#wineStage > .hero-wine-card .gallery-wine-price {
    margin: 6px 0 0;
    font-size: .98rem;
    line-height: 1.2;
}

#wineStage > .hero-wine-card .gallery-wine-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: auto;
}

#wineStage > .hero-wine-card .gallery-wine-actions .event-pickup-button {
    grid-column: 1 / -1;
}

.event-pickup-modal[hidden] {
    display: none;
}

.event-pickup-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.event-pickup-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 20, 15, 0.62);
}

.event-pickup-sheet {
    position: relative;
    width: min(100%, 520px);
    max-height: min(720px, calc(100vh - 48px));
    overflow: auto;
    padding: 30px;
    border: 1px solid rgba(194, 150, 63, 0.65);
    border-radius: 24px;
    background: #fbf8f2;
    color: var(--utopia-ink);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.event-pickup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(51, 43, 34, 0.22);
    border-radius: 50%;
    background: transparent;
    color: var(--utopia-ink);
    font-size: 1.55rem;
    cursor: pointer;
}

.event-pickup-sheet .wine-kicker {
    margin: 0 0 8px;
    color: #89651d;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.event-pickup-sheet h2 {
    margin: 0;
    font-family: var(--utopia-display, Georgia, serif);
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1;
}

.event-pickup-intro {
    margin: 14px 0 22px;
    color: #62594f;
    line-height: 1.55;
}

.event-pickup-lines {
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.event-pickup-lines li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(89, 70, 39, 0.2);
    border-radius: 12px;
    font-size: 0.94rem;
}

.event-pickup-lines .event-pickup-total {
    border-color: rgba(170, 127, 37, 0.55);
    background: rgba(209, 168, 76, 0.12);
}

.event-pickup-sheet label {
    display: grid;
    gap: 7px;
    margin: 14px 0;
    color: #4d453c;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-pickup-sheet input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid rgba(89, 70, 39, 0.3);
    border-radius: 12px;
    background: #fffdf9;
    color: var(--utopia-ink);
    font: inherit;
    text-transform: none;
}

.event-pickup-status {
    min-height: 1.3em;
    margin: 14px 0 0;
    color: #8b2e28;
    font-weight: 700;
}

.event-pickup-submit {
    width: 100%;
    margin-top: 18px;
    padding: 15px 18px;
    border: 0;
    border-radius: 999px;
    background: #231d18;
    color: #fffdf9;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.event-pickup-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

body.event-pickup-open {
    overflow: hidden;
}

#wineStage > .hero-wine-card .gallery-wine-actions button {
    min-width: 0;
    padding-inline: 12px;
    white-space: nowrap;
}

@media (max-width: 1300px) {
    #wineStage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 940px) {
    #wineStage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 640px) {
    #wineStage > .hero-wine-card {
        height: auto;
        min-height: 650px;
    }

    #wineStage > .hero-wine-card .wine-bottle-wrap {
        flex-basis: 300px;
    }

    #wineStage > .hero-wine-card .gallery-wine-info h2 {
        font-size: clamp(1.85rem, 7vw, 2.25rem);
        margin-bottom: 18px;
    }
}

@media (max-width: 640px) {
    #wineStage {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

/*****************************************************************
    WINE DETAIL — IMMERSIVE IDENTITY + HIGH-CONTRAST TYPOGRAPHY
    This final layer intentionally wins over the legacy detail rules above.
*****************************************************************/

.wine-detail-view.is-open .wine-detail-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(430px, .9fr) minmax(260px, .48fr) !important;
}

body:has(.wine-detail-view.is-open) header.site-header[data-public-shell-header],
body:has(.wine-detail-view.is-open) .site-floating-nav,
body:has(.wine-detail-view.is-open) footer.site-footer[data-public-shell-footer] {
    display: none !important;
}

/* Identity artwork is a true hero: no inset mat, no artificial width cap. */
.wine-detail-view.is-open .wine-detail-artbox:has(.wine-identity-cover) {
    display: block !important;
    padding: 0 !important;
    background: #e8dfcf !important;
}

.wine-detail-view.is-open .wine-detail-artbox:has(.wine-identity-cover)::after {
    width: 18%;
    background: linear-gradient(90deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, .38), #fffdf8);
}

.wine-detail-view.is-open .wine-detail-artbox:has(.wine-identity-cover) .wine-section-renderer,
.wine-detail-view.is-open .wine-detail-artbox:has(.wine-identity-cover) .wine-identity-cover,
.wine-detail-view.is-open .wine-detail-artbox:has(.wine-identity-cover) .identity-cover-art {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.wine-detail-view.is-open .wine-detail-artbox:has(.wine-identity-cover) .identity-cover-art img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: 48% center !important;
    filter: saturate(.94) contrast(1.04) !important;
}

/* Give every wine attribute enough scale and contrast to read at a glance. */
.wine-detail-view.is-open .wine-detail-copybox {
    padding: 48px 42px 58px !important;
}

.wine-detail-view.is-open .wine-kicker {
    color: #87651f !important;
    font-size: .9rem !important;
    font-weight: 800 !important;
    letter-spacing: .22em !important;
}

.wine-detail-view.is-open .wine-detail-copybox h2 {
    color: #211f1b !important;
    font-size: clamp(3rem, 3.7vw, 5rem) !important;
    line-height: .94 !important;
}

.wine-detail-view.is-open .detail-meta span {
    color: #51483d !important;
    font-size: .92rem !important;
    font-weight: 750 !important;
    letter-spacing: .08em !important;
}

.wine-detail-view.is-open .detail-story {
    max-width: 100% !important;
    color: #51483d !important;
    font-size: clamp(1.15rem, 1.15vw, 1.38rem) !important;
    line-height: 1.68 !important;
}

.wine-detail-view.is-open .detail-block {
    max-width: 100% !important;
    margin-top: 28px !important;
    padding-top: 22px !important;
    border-top-color: rgba(135, 101, 31, .25) !important;
}

.wine-detail-view.is-open .detail-block h3,
.wine-detail-view.is-open .wine-section-label {
    color: #2d2923 !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
}

.wine-detail-view.is-open .detail-block p,
.wine-detail-view.is-open .wine-section-copy,
.wine-detail-view.is-open .wine-section-card p,
.wine-detail-view.is-open .wine-spec-card strong {
    color: #403a32 !important;
    font-size: clamp(1.08rem, 1.05vw, 1.28rem) !important;
    line-height: 1.68 !important;
}

.wine-detail-view.is-open .wine-section-card span,
.wine-detail-view.is-open .wine-spec-card span {
    color: #725724 !important;
    font-size: .92rem !important;
    font-weight: 800 !important;
    letter-spacing: .09em !important;
}

.wine-detail-view.is-open .wine-section-tab {
    min-height: 42px !important;
    padding: 10px 15px !important;
    color: #62594d !important;
    font-size: .76rem !important;
    font-weight: 800 !important;
}

.wine-detail-view.is-open .wine-section-tab.is-active {
    color: #fffdf8 !important;
    background: #29261f !important;
}

@media (max-width: 1280px) {
    .wine-detail-view.is-open {
        padding: 12px;
        overflow: auto;
    }

    .wine-detail-view.is-open .wine-detail-layout {
        height: auto;
        min-height: calc(100vh - 24px);
        grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr) !important;
        grid-template-rows: minmax(620px, 1fr) auto auto !important;
        border-radius: 28px;
    }

    .wine-detail-view.is-open .wine-detail-bottlebox {
        display: none !important;
    }

    .wine-detail-view.is-open .wine-detail-infobar {
        grid-column: 1 / 3 !important;
        grid-row: 2 !important;
    }
}

@media (max-width: 820px) {
    .wine-detail-view.is-open .wine-detail-layout {
        display: block !important;
        min-height: 100vh;
        overflow: visible;
    }

    .wine-detail-view.is-open .wine-detail-artbox:has(.wine-identity-cover) {
        height: 48vh !important;
        min-height: 380px !important;
    }

    .wine-detail-view.is-open .wine-detail-artbox:not(:has(.wine-identity-cover)) {
        padding: 82px 24px 34px !important;
    }

    .wine-detail-view.is-open .wine-detail-copybox {
        padding: 42px 26px !important;
    }

    .wine-detail-view.is-open .wine-detail-infobar {
        display: block !important;
        padding: 22px 20px 28px !important;
    }

    .wine-detail-view.is-open .wine-section-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 10px;
    }

    .wine-detail-view.is-open .wine-section-tab {
        flex: 0 0 auto;
    }

    .wine-detail-view.is-open .purchase-panel {
        margin-top: 14px !important;
    }
}

/* Final authority: large, dark type on every wine-detail content screen. */
.wine-detail-view.is-open .wine-detail-copybox {
    overflow-y: auto !important;
}

.wine-detail-view.is-open .wine-detail-artbox:not(:has(.wine-identity-cover)) .wine-section-renderer {
    max-width: 760px !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    padding-right: 18px !important;
}

.wine-detail-view.is-open .wine-section-label,
.wine-detail-view.is-open .wine-section-card span,
.wine-detail-view.is-open .wine-spec-card span,
.wine-detail-view.is-open .taste-fingerprint-row span,
.wine-detail-view.is-open .detail-block h3 {
    color: #17140f !important;
    font-size: clamp(1.25rem, 1.35vw, 1.65rem) !important;
    line-height: 1.25 !important;
    font-weight: 850 !important;
    letter-spacing: .025em !important;
    opacity: 1 !important;
}

.wine-detail-view.is-open .wine-section-copy,
.wine-detail-view.is-open .wine-section-card p,
.wine-detail-view.is-open .wine-spec-card strong,
.wine-detail-view.is-open .taste-fingerprint-row strong,
.wine-detail-view.is-open .detail-block p {
    color: #211d17 !important;
    font-size: clamp(1.55rem, 1.55vw, 1.95rem) !important;
    line-height: 1.52 !important;
    font-weight: 560 !important;
    opacity: 1 !important;
}

.wine-detail-view.is-open .detail-story {
    color: #302a22 !important;
    font-size: clamp(1.42rem, 1.45vw, 1.8rem) !important;
    line-height: 1.58 !important;
    opacity: 1 !important;
}

.wine-detail-view.is-open .detail-meta span {
    color: #2b251d !important;
    font-size: clamp(1.05rem, 1.05vw, 1.3rem) !important;
    font-weight: 850 !important;
    opacity: 1 !important;
}

.wine-detail-view.is-open .taste-fingerprint-row {
    min-height: 82px !important;
    grid-template-columns: minmax(160px, .8fr) minmax(220px, 1fr) minmax(84px, auto) !important;
    gap: 20px !important;
    padding: 20px 22px !important;
    border-color: rgba(83, 61, 25, .28) !important;
}

.wine-detail-view.is-open .wine-section-tab {
    min-height: 48px !important;
    padding: 12px 18px !important;
    color: #302a22 !important;
    font-size: clamp(.88rem, .82vw, 1.04rem) !important;
    font-weight: 850 !important;
    opacity: 1 !important;
}

.wine-detail-view.is-open .wine-section-tab.is-active {
    color: #fff !important;
}

@media (max-width: 820px) {
    .wine-detail-view.is-open .wine-detail-artbox:not(:has(.wine-identity-cover)) .wine-section-renderer {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    .wine-detail-view.is-open .taste-fingerprint-row {
        grid-template-columns: 1fr !important;
    }
}
/* Palette selector — retained after removing the legacy dropdown filter bar. */
.palate-selector {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 34px;
    padding: 28px 32px 32px;
    border: 1px solid rgba(183, 154, 91, .32);
    border-radius: 30px;
    background: radial-gradient(circle at 8% 0%, rgba(230, 193, 99, .18), transparent 30%), #241f1a;
    box-shadow: 0 22px 54px rgba(33, 31, 27, .14);
    color: #fffaf1;
}
.palate-selector-heading { display: grid; gap: 5px; margin-bottom: 24px; }
.palate-selector-heading .wine-kicker { margin: 0; color: #e7c35e; }
.palate-selector-heading h2 { margin: 0; color: #fffaf1; font-size: clamp(1.65rem, 2.8vw, 2.5rem); line-height: 1; }
.palate-selector-heading p:last-child { margin: 0; color: rgba(255,250,241,.74); }
.palate-slider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.palate-slider { --palate-color: #e0ad43; --palate-start: #80521e; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 14px; }
.palate-slider:nth-child(2) { --palate-color: #c44963; --palate-start: #5d1627; }
.palate-slider:nth-child(3) { --palate-color: #d55588; --palate-start: #6b2044; }
.palate-slider:nth-child(4) { --palate-color: #a68b4f; --palate-start: #4d4827; }
.palate-slider:nth-child(5) { --palate-color: #dc8150; --palate-start: #7d351b; }
.palate-slider:nth-child(6) { --palate-color: #b06e4b; --palate-start: #512819; }
.palate-slider-label { color: #fffaf1; font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.palate-stops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; border-radius: 999px; background: rgba(255,250,241,.11); box-shadow: inset 0 0 0 1px rgba(255,250,241,.15); }
.palate-stops button { min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,250,241,.7); cursor: pointer; font-size: .74rem; font-weight: 800; letter-spacing: .02em; transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.palate-stops button:hover { color: #fff; transform: translateY(-1px); }
.palate-stops button.is-selected { background: linear-gradient(100deg, var(--palate-start), var(--palate-color)); color: #fff; box-shadow: 0 5px 16px color-mix(in srgb, var(--palate-color) 42%, transparent), inset 0 0 0 2px rgba(255,255,255,.72); }
@media (max-width: 760px) { .palate-selector { padding: 24px 18px; } .palate-slider-grid { grid-template-columns: 1fr; } .palate-slider { grid-template-columns: 80px minmax(0, 1fr); gap: 8px; } .palate-stops button { min-height: 39px; font-size: .65rem; } }
