* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--brand-primary);
    background: #fcfbf7;
    font-family: "Jost", sans-serif;
    line-height: 1.55;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
}

.storefront-access-page {
    min-height: 100vh;
}

.storefront-access-hero {
    min-height: 100vh;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(18, 24, 33, 0.54), rgba(18, 24, 33, 0.82)),
        linear-gradient(135deg, #221f1c 0%, #2f2a26 44%, #15181e 100%);
    background-position: center;
    background-size: cover;
}

.storefront-access-shell {
    width: min(100%, 520px);
}

.storefront-access-card {
    padding: 36px;
    border-radius: 12px;
    background: rgba(252, 251, 247, 0.94);
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.22);
    display: grid;
    gap: 18px;
}

.storefront-access-logo {
    width: auto;
    max-width: 190px;
    max-height: 80px;
    object-fit: contain;
}

.storefront-access-form {
    display: grid;
    gap: 16px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--header-bar-bg);
    backdrop-filter: blur(4px);
    transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.header-inner,
.section-inner,
.footer-inner {
    width: min(1200px, calc(100vw - 48px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    transition: padding 220ms ease, gap 220ms ease;
}

.brandmark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    transition: gap 220ms ease;
}

.brandmark img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 52px;
    transition: width 220ms ease, height 220ms ease, flex-basis 220ms ease;
}

.brandmark-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brandmark-copy strong {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    transition: font-size 220ms ease;
}

.brandmark-copy span,
.site-nav a,
.eyebrow,
.metric-label,
.section-note,
.inventory,
.wine-meta,
.text-link,
.contact-block span,
.footer-links span,
.breadcrumb-link,
.product-meta-row span {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: rgba(255, 255, 255, 0.88);
    transition: gap 220ms ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: min-height 220ms ease, padding 220ms ease, background 220ms ease;
}

.header-action-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 17px;
}

.header-cart-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand-accent);
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 600;
}

.mobile-nav-toggle,
.mobile-nav-close {
    display: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.mobile-nav-toggle {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 180ms ease, transform 180ms ease;
}

body.header-condensed .site-header {
    background: rgba(18, 24, 33, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

body.header-condensed .header-inner {
    gap: 18px;
    padding: 14px 0;
}

body.header-condensed .brandmark {
    gap: 11px;
}

body.header-condensed .brandmark img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}

body.header-condensed.marketing-site .brandmark img {
    width: auto;
    height: 46px;
    flex: 0 0 auto;
}

body.header-condensed .brandmark-copy strong {
    font-size: 0.94rem;
}

body.header-condensed .site-nav {
    gap: 22px;
}

body.header-condensed .header-action-link {
    min-height: 38px;
    padding: 0 12px;
}

.mobile-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 220ms ease, opacity 220ms ease;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 18, 26, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 340px);
    height: 100vh;
    padding: 24px 22px;
    background: rgba(24, 29, 38, 0.96);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.24);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 260ms cubic-bezier(.22,.61,.36,1), opacity 220ms ease, visibility 0ms linear 260ms;
    z-index: 30;
    display: grid;
    align-content: start;
    gap: 28px;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.82rem;
}

.mobile-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-links {
    display: grid;
    gap: 14px;
}

.mobile-nav-links a {
    color: #fff;
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transform: translateX(12px);
    opacity: 0;
    transition: transform 240ms ease, opacity 240ms ease;
}

body.mobile-nav-open {
    overflow: hidden;
}

body.mobile-nav-open .mobile-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.mobile-nav-open .mobile-nav-drawer {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 260ms cubic-bezier(.22,.61,.36,1), opacity 220ms ease, visibility 0ms linear 0ms;
}

body.mobile-nav-open .mobile-nav-links a {
    transform: translateX(0);
    opacity: 1;
}

body.mobile-nav-open .mobile-nav-links a:nth-child(1) { transition-delay: 60ms; }
body.mobile-nav-open .mobile-nav-links a:nth-child(2) { transition-delay: 95ms; }
body.mobile-nav-open .mobile-nav-links a:nth-child(3) { transition-delay: 130ms; }
body.mobile-nav-open .mobile-nav-links a:nth-child(4) { transition-delay: 165ms; }
body.mobile-nav-open .mobile-nav-links a:nth-child(5) { transition-delay: 200ms; }

body.mobile-nav-open .mobile-nav-toggle {
    background: rgba(255, 255, 255, 0.16);
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    min-height: 92vh;
    padding: 144px 0 72px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.marketing-hero {
    min-height: 88vh;
    background:
        linear-gradient(180deg, rgba(18, 24, 33, 0.38), rgba(18, 24, 33, 0.72)),
        radial-gradient(circle at top right, rgba(212, 163, 115, 0.26), transparent 34%),
        linear-gradient(135deg, #221f1c 0%, #2f2a26 44%, #15181e 100%);
}

.marketing-clean-hero {
    min-height: 68vh;
    padding: 132px 0 56px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.hero-content {
    width: min(1200px, calc(100vw - 48px));
    margin: 0 auto;
    display: grid;
    gap: 18px;
    max-width: 720px;
}

.marketing-hero-content {
    max-width: 780px;
}

.marketing-clean-shell {
    display: block;
}

.marketing-clean-copy {
    display: grid;
    gap: 14px;
    max-width: 780px;
}

.eyebrow {
    margin: 0;
    color: var(--brand-accent);
    font-weight: 500;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    line-height: 0.96;
    font-weight: 500;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(3.8rem, 7vw, 6.6rem);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
}

h3 {
    font-size: clamp(1.7rem, 2.2vw, 2.2rem);
}

.hero-body,
.hero-quote,
.story-copy p,
.visit-copy p,
.wine-description,
.product-lede,
.product-description p,
.footer-copy {
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 60ch;
}

.hero-quote {
    color: rgba(255, 255, 255, 0.72);
    font-style: italic;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 8px;
}

.marketing-home h1 {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.04;
}

.marketing-home h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.6rem);
    line-height: 1.08;
}

.marketing-home .eyebrow {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.marketing-site .brandmark img {
    width: auto;
    height: 56px;
    flex: 0 0 auto;
    max-width: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.button-primary {
    background: var(--brand-accent);
    color: #1a1a1a;
}

.button-compact {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.76rem;
}

.button-block {
    width: 100%;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.metrics-band,
.story-band,
.wines-band,
.visit-band {
    padding: 84px 0;
}

.metrics-band {
    background: var(--brand-secondary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.metric {
    display: grid;
    gap: 10px;
    align-content: start;
}

.metric-value {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    line-height: 1;
}

.metric-label {
    color: rgba(38, 38, 38, 0.68);
}

.story-band {
    background: #fcfbf7;
}

.story-grid,
.visit-grid,
.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
}

.story-media img,
.visit-media img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
}

.product-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 620px;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, #faf7f1, #efe9dd);
}

.product-gallery img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: contain;
    object-position: center center;
}

.image-band {
    background: #efe9dd;
    padding: 24px 0 0;
}

.image-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.image-pair img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section-note {
    color: rgba(38, 38, 38, 0.7);
    max-width: 420px;
    line-height: 1.5;
}

.wine-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.wine-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(38, 38, 38, 0.1);
}

.wine-image {
    display: block;
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #faf7f1, #efe9dd);
}

.wine-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

.wine-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.wine-copy h3 a {
    display: inline;
}

.wine-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 6px;
    margin-top: auto;
}

.wine-footer-actions {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.wine-card-cart {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.wine-card-cart.is-updating {
    opacity: 0.72;
    pointer-events: none;
}

.cart-stepper {
    display: inline-flex;
    align-items: stretch;
    min-width: 136px;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: var(--brand-accent);
    color: #1a1a1a;
    box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.06);
}

.cart-stepper-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 14px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cart-stepper-buttons {
    display: grid;
    width: 36px;
    border-left: 1px solid rgba(26, 26, 26, 0.14);
}

.cart-stepper-button {
    width: 36px;
    height: 20px;
    border: 0;
    background: transparent;
    color: var(--brand-primary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.cart-stepper-button + .cart-stepper-button {
    border-top: 1px solid rgba(26, 26, 26, 0.14);
}

.price {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
}

.inventory {
    display: block;
    color: rgba(38, 38, 38, 0.68);
    margin-top: 4px;
}

.text-link {
    color: var(--brand-accent);
    font-weight: 600;
}

.visit-band {
    background: linear-gradient(180deg, #fcfbf7 0%, #f3ede1 100%);
}

.contact-block {
    display: grid;
    gap: 8px;
    padding-top: 12px;
}

.section-actions {
    padding-top: 12px;
}

.site-footer {
    background: #1d1d1d;
    color: rgba(255, 255, 255, 0.84);
    padding: 28px 0;
}

.marketing-band {
    padding: 96px 0;
}

.marketing-clean-metrics {
    padding: 44px 0;
}

.marketing-clean-band {
    padding-top: 72px;
}

.marketing-clean-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 460px);
    gap: 40px;
    align-items: start;
}

.marketing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 42px;
    align-items: start;
}

.marketing-copy p:last-of-type {
    margin-bottom: 0;
}

.marketing-lede,
.marketing-home .section-note,
.marketing-home .marketing-card p,
.marketing-home .marketing-feature-card p,
.marketing-home .marketing-list li,
.marketing-home .footer-copy {
    font-size: 0.98rem;
    line-height: 1.65;
}

.marketing-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.marketing-list li,
.marketing-feature-card p,
.marketing-card p {
    line-height: 1.7;
}

.marketing-list li {
    position: relative;
    padding-left: 22px;
}

.marketing-list li::before {
    content: "";
    position: absolute;
    top: 0.74em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand-accent);
}

.marketing-card-stack,
.marketing-feature-grid {
    display: grid;
    gap: 18px;
}

.marketing-card,
.marketing-feature-card {
    background: #fff;
    border: 1px solid rgba(38, 38, 38, 0.1);
    border-radius: 8px;
    padding: 24px;
}

.marketing-card {
    display: grid;
    gap: 10px;
}

.marketing-card-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(38, 38, 38, 0.58);
}

.marketing-card strong {
    font-size: 1.3rem;
    line-height: 1.2;
}

.marketing-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-service-card strong {
    font-size: 1.15rem;
}

.marketing-card p,
.marketing-feature-card p {
    margin: 0;
    color: rgba(38, 38, 38, 0.72);
}

.marketing-section-heading {
    align-items: start;
}

.marketing-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-platform-band {
    background: #fcfbf7;
}

.marketing-clean-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-clean-heading {
    margin-bottom: 28px;
}

.marketing-cta-band {
    background: linear-gradient(180deg, #24211d 0%, #1a1d24 100%);
    color: #fff;
}

.marketing-cta-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.marketing-cta-band .section-inner h2,
.marketing-cta-band .section-inner .eyebrow {
    color: inherit;
}

.marketing-cta-band .eyebrow {
    color: var(--brand-accent);
}

.footer-inner {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    margin: 0 0 8px;
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
    line-height: 1;
}

.footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
}

.footer-links {
    display: grid;
    gap: 8px;
    text-align: right;
}

.product-page {
    background: #fcfbf7;
    min-height: calc(100vh - 120px);
}

.product-hero {
    padding: 144px 0 84px;
}

.product-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 56px;
    align-items: start;
}

.breadcrumb-link {
    display: inline-block;
    margin-bottom: 22px;
    color: rgba(38, 38, 38, 0.68);
}

.product-copy h1 {
    font-size: clamp(2.6rem, 4.1vw, 4.2rem);
    line-height: 1.02;
    max-width: 11ch;
}

.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0 6px;
    color: rgba(38, 38, 38, 0.72);
}

.product-subtitle {
    margin: 10px 0 0;
    color: rgba(38, 38, 38, 0.64);
}

.product-copy {
    padding-top: 14px;
}

.reason-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.reason-list li {
    border-top: 1px solid rgba(38, 38, 38, 0.12);
    padding-top: 10px;
}

.product-purchase {
    padding-top: 24px;
}

.product-purchase-form {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}

.product-cart-note {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: rgba(38, 38, 38, 0.72);
}

.flash-banner {
    width: min(1200px, calc(100vw - 48px));
    margin: 124px auto 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.92rem;
}

.flash-banner-success {
    background: rgba(22, 101, 52, 0.12);
    color: #166534;
}

.flash-banner-error {
    background: rgba(153, 27, 27, 0.12);
    color: #991b1b;
}

.cart-toast-stack {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 70;
    display: grid;
    gap: 12px;
    pointer-events: none;
}

.cart-toast {
    min-width: 280px;
    max-width: min(420px, calc(100vw - 40px));
    padding: 14px 16px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    transform: translateX(18px);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

.cart-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.cart-toast-success {
    background: rgba(18, 24, 33, 0.94);
}

.cart-toast-error {
    background: rgba(127, 29, 29, 0.96);
}

body.cart-drawer-open {
    overflow: hidden;
}

.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 54;
    background: rgba(13, 18, 26, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    width: min(92vw, 420px);
    height: 100vh;
    background: #fcfbf7;
    color: var(--brand-primary);
    box-shadow: -24px 0 64px rgba(0, 0, 0, 0.18);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 260ms cubic-bezier(.22,.61,.36,1), opacity 220ms ease, visibility 0ms linear 260ms;
}

.cart-drawer-header,
.cart-drawer-footer {
    padding: 22px 24px;
}

.cart-drawer-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(38, 38, 38, 0.08);
}

.cart-drawer-eyebrow {
    margin: 0 0 6px;
    color: rgba(38, 38, 38, 0.6);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.cart-drawer-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    line-height: 1.02;
}

.cart-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: rgba(38, 38, 38, 0.06);
    color: rgba(38, 38, 38, 0.72);
    cursor: pointer;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
}

.cart-drawer-content {
    overflow-y: auto;
    padding: 22px 24px;
}

.cart-drawer-empty {
    display: grid;
    gap: 16px;
    align-content: start;
}

.cart-drawer-empty p {
    margin: 0;
    color: rgba(38, 38, 38, 0.7);
}

.cart-drawer-items {
    display: grid;
    gap: 14px;
}

.cart-drawer-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(38, 38, 38, 0.08);
}

.cart-drawer-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.cart-drawer-item-image {
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, #faf7f1, #efe9dd);
}

.cart-drawer-item-image img {
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.cart-drawer-item-copy {
    min-width: 0;
}

.cart-drawer-item-copy h3 {
    font-size: 1.2rem;
    line-height: 1.08;
}

.cart-drawer-item-copy p {
    margin: 8px 0 0;
    color: rgba(38, 38, 38, 0.66);
    font-size: 0.86rem;
}

.cart-drawer-line-total {
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.cart-drawer-footer {
    display: grid;
    gap: 12px;
    border-top: 1px solid rgba(38, 38, 38, 0.08);
    background: #fcfbf7;
}

.cart-drawer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.92rem;
}

.cart-drawer-total strong {
    font-size: 1rem;
}

.cart-drawer-secondary {
    border-color: rgba(38, 38, 38, 0.14);
    background: #fff;
    color: #1a1a1a;
}

body.cart-drawer-open .cart-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.cart-drawer-open .cart-drawer {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 260ms cubic-bezier(.22,.61,.36,1), opacity 220ms ease, visibility 0ms linear 0ms;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(38, 38, 38, 0.66);
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(38, 38, 38, 0.16);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    color: inherit;
}

.field select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(38, 38, 38, 0.16);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    color: inherit;
}

.field-inline {
    min-width: 90px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-note,
.panel-copy,
.panel-empty {
    margin: 0;
    color: rgba(38, 38, 38, 0.7);
    line-height: 1.7;
}

.form-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(153, 27, 27, 0.09);
    color: #991b1b;
}

.payment-form-error {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(153, 27, 27, 0.09);
    color: #991b1b;
}

.account-page,
.cart-page {
    min-height: calc(100vh - 120px);
    background: #fcfbf7;
}

.account-shell,
.cart-shell {
    padding: 148px 0 84px;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: 48px;
    align-items: start;
}

.account-copy p:last-child {
    max-width: 52ch;
    line-height: 1.75;
}

.account-card,
.account-panel,
.cart-summary,
.cart-empty {
    background: #fff;
    border: 1px solid rgba(38, 38, 38, 0.1);
    border-radius: 8px;
    padding: 28px;
}

.account-card form,
.cart-items {
    display: grid;
    gap: 16px;
}

.account-dashboard-header,
.cart-header,
.cart-layout,
.summary-row,
.cart-item {
    display: flex;
}

.account-dashboard-header,
.cart-header,
.summary-row {
    align-items: start;
    justify-content: space-between;
    gap: 24px;
}

.account-dashboard-header {
    margin-bottom: 28px;
}

.account-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.account-panel h2,
.cart-summary h2,
.cart-item h2 {
    margin-bottom: 12px;
}

.address-list {
    display: grid;
    gap: 14px;
}

.address-card {
    display: grid;
    gap: 6px;
    padding: 16px 0;
    border-top: 1px solid rgba(38, 38, 38, 0.1);
}

.cart-layout {
    align-items: start;
    gap: 24px;
}

.cart-header {
    margin-bottom: 22px;
}

.cart-header h1 {
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.02;
}

.cart-items {
    flex: 1 1 auto;
}

.cart-summary {
    width: min(100%, 340px);
    flex: 0 0 340px;
    display: grid;
    gap: 16px;
}

.summary-row-total {
    padding-top: 12px;
    border-top: 1px solid rgba(38, 38, 38, 0.12);
    font-weight: 600;
}

.cart-item {
    align-items: center;
    gap: 20px;
    padding: 22px;
    border: 1px solid rgba(38, 38, 38, 0.1);
    border-radius: 8px;
    background: #fff;
}

.cart-summary h2,
.cart-item h2 {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.06;
}

.cart-item-image {
    width: 110px;
    flex: 0 0 110px;
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #faf7f1, #efe9dd);
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.cart-item-copy {
    flex: 1 1 auto;
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 0;
    color: rgba(38, 38, 38, 0.7);
    font-size: 0.84rem;
}

.cart-item-actions {
    display: grid;
    gap: 12px;
    justify-items: end;
}

.cart-line-total {
    font-size: 0.98rem;
    font-weight: 600;
}

.cart-remove {
    border: 0;
    background: transparent;
    color: rgba(38, 38, 38, 0.56);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    cursor: pointer;
}

.cart-page .summary-row {
    font-size: 0.92rem;
}

.cart-page .summary-row-total {
    font-size: 1rem;
}

.cart-page .panel-copy {
    font-size: 0.92rem;
    line-height: 1.6;
}

.checkout-page {
    min-height: calc(100vh - 120px);
    background: #fcfbf7;
}

.checkout-shell {
    padding: 148px 0 84px;
}

.checkout-header,
.checkout-layout,
.checkout-panel-header,
.checkout-summary-item,
.checkout-success-actions {
    display: flex;
}

.checkout-header,
.checkout-panel-header {
    align-items: start;
    justify-content: space-between;
    gap: 24px;
}

.checkout-header {
    margin-bottom: 28px;
}

.checkout-layout {
    align-items: start;
    gap: 24px;
}

.checkout-form {
    flex: 1 1 auto;
    display: grid;
    gap: 20px;
}

.checkout-panel,
.checkout-summary,
.checkout-success {
    background: #fff;
    border: 1px solid rgba(38, 38, 38, 0.1);
    border-radius: 8px;
    padding: 28px;
}

.checkout-panel {
    display: grid;
    gap: 16px;
}

.checkout-panel h2,
.checkout-summary h2 {
    margin-bottom: 0;
}

.checkout-summary {
    width: min(100%, 360px);
    flex: 0 0 360px;
    display: grid;
    gap: 16px;
}

.checkout-summary-items {
    display: grid;
    gap: 14px;
}

.checkout-summary-item {
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(38, 38, 38, 0.08);
}

.checkout-summary-item strong,
.checkout-summary-item span {
    display: block;
}

.checkout-summary-item div span {
    margin-top: 4px;
    color: rgba(38, 38, 38, 0.66);
    font-size: 0.92rem;
}

.payment-method-list,
.payment-card-fields {
    display: grid;
    gap: 14px;
}

.payment-method-card {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(38, 38, 38, 0.1);
    border-radius: 8px;
    background: #fcfbf7;
    cursor: pointer;
}

.payment-method-card input[type="radio"] {
    margin-top: 2px;
}

.payment-method-card span {
    display: grid;
    gap: 4px;
}

.payment-method-card strong {
    font-size: 0.98rem;
}

.payment-method-card small {
    color: rgba(38, 38, 38, 0.64);
    font-size: 0.82rem;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.checkbox span {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(38, 38, 38, 0.66);
}

.billing-fields {
    display: grid;
    gap: 16px;
}

.field-grid-address {
    grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.9fr) minmax(140px, 0.6fr);
}

.checkout-success {
    max-width: 720px;
}

.checkout-success p {
    margin: 0;
}

.checkout-success h1 {
    margin: 10px 0 18px;
    font-size: clamp(2.5rem, 4.2vw, 4.4rem);
}

.checkout-success-actions {
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.checkout-secondary-button {
    border-color: rgba(38, 38, 38, 0.16);
    background: #fff;
    color: #1a1a1a;
}

@media (max-width: 1080px) {
    .wine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketing-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-grid,
    .cart-layout,
    .account-panels,
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
        flex-direction: column;
    }

    .cart-summary,
    .checkout-summary {
        width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 820px) {
    .header-inner,
    .section-inner,
    .footer-inner,
    .hero-content {
        width: min(100vw - 32px, 1200px);
    }

    .site-nav,
    .header-actions,
    .section-note {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    body.header-condensed .header-inner {
        padding: 12px 0;
    }

    .story-grid,
    .visit-grid,
    .product-grid,
    .marketing-grid,
    .marketing-clean-grid,
    .image-pair,
    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-heading,
    .marketing-cta-inner,
    .wine-footer {
        align-items: start;
        flex-direction: column;
    }

    .wine-footer-actions,
    .cart-item-actions {
        justify-items: start;
    }

    .wine-card-cart {
        justify-items: start;
    }

    .metrics-grid,
    .wine-grid,
    .marketing-service-grid,
    .marketing-clean-feature-grid,
    .marketing-feature-grid,
    .field-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .field-grid-address {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        min-height: 84vh;
        padding-top: 124px;
    }

    .flash-banner,
    .account-shell,
    .cart-shell {
        width: auto;
    }

    .cart-toast-stack {
        top: 88px;
        right: 16px;
        left: 16px;
    }

    .cart-toast {
        min-width: 0;
        max-width: none;
    }

    .cart-drawer {
        width: 100vw;
    }

    .cart-drawer-content,
    .cart-drawer-header,
    .cart-drawer-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cart-item {
        flex-direction: column;
        align-items: start;
    }

    .cart-item-image {
        width: 100%;
        max-width: 180px;
    }

    .product-gallery {
        min-height: 460px;
        padding: 14px;
    }

    .product-gallery img {
        max-height: 432px;
    }
}
