/* ==========================================================================
   Montague Inn — Storefront design system
   Brand palette taken from montagueinn.com: deep crimson/burgundy, charcoal-teal,
   warm ivory, antique brass accents. Type: Playfair Display + Open Sans.
   ========================================================================== */

:root {
    /* Brand palette */
    --brand:       #960101;  /* signature crimson */
    --brand-dark:  #7a0101;
    --brand-deep:  #5a0a12;
    --wine:        #8f1424;
    --maroon-900:  #410000;  /* darkest — footer / deep sections */
    --charcoal:    #17252a;  /* headings, dark sections */
    --charcoal-700:#243a41;
    --gold:        #c2a878;
    --gold-600:    #b08d57;
    --gold-700:    #8a6d3b;
    --ivory:       #f8f4ec;
    --cream:       #fbf8f1;
    --paper:       #ffffff;
    --ink:         #21272a;
    --ink-soft:    #45494b;
    --muted:       #756f6a;
    --line:        #e6dfd1;
    --line-soft:   #efe9dd;
    --danger:      #9c3b32;
    --success:     #2f6b4f;

    /* Typography */
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Layout */
    --container: 1180px;
    --radius: 4px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 2px rgba(23, 37, 42, .06), 0 2px 8px rgba(23, 37, 42, .05);
    --shadow-md: 0 6px 24px rgba(23, 37, 42, .10);
    --shadow-lg: 0 18px 50px rgba(23, 37, 42, .18);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--charcoal); letter-spacing: .2px; }

/* ----- Helpers ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.sr-only, .skip-link {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed; top: 1rem; left: 1rem; width: auto; height: auto; clip: auto;
    background: var(--charcoal); color: var(--ivory); padding: .6rem 1rem; border-radius: var(--radius); z-index: 200;
}
.eyebrow {
    font-family: var(--font-body); text-transform: uppercase; letter-spacing: .24em;
    font-size: .72rem; font-weight: 700; color: var(--brand); margin-bottom: .9rem;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 600; font-size: .92rem; letter-spacing: .02em;
    padding: .8rem 1.6rem; border-radius: var(--radius); border: 1.5px solid transparent;
    transition: transform .15s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
    cursor: pointer; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold-600); color: #fff; }
.btn-gold:hover { background: var(--gold-700); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); }
.btn-ghost { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .6); color: #fff; backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }

/* ----- Header ----- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251, 248, 241, .94);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 80px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { height: 52px; width: auto; }
.primary-nav ul { display: flex; gap: 1.9rem; list-style: none; padding: 0; }
.primary-nav a {
    font-size: .85rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase;
    padding: .35rem 0; position: relative;
}
.primary-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
    background: var(--brand); transition: width .25s var(--ease);
}
.primary-nav a:hover { color: var(--brand); }
.primary-nav a:hover::after { width: 100%; }
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--charcoal); transition: background-color .2s var(--ease); }
.cart-link:hover { background: var(--ivory); }
.cart-count {
    position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
    background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700;
    border-radius: 9px; display: grid; place-items: center;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(23, 37, 42, .5); z-index: 90; opacity: 0; transition: opacity .25s var(--ease); }
.nav-backdrop.is-open { opacity: 1; }

/* ----- Hero ----- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background-image:
        linear-gradient(115deg, rgba(20, 8, 8, .86) 0%, rgba(90, 10, 18, .58) 55%, rgba(23, 37, 42, .62) 100%),
        url('../img/brand/hero.webp');
    background-size: cover; background-position: center;
}
.hero-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, .35), transparent 60%);
}
.hero-content { position: relative; padding: 7rem 1.5rem 7.5rem; max-width: 720px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: .5px; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: rgba(255, 255, 255, .9); margin-top: 1.2rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* ----- Sections ----- */
.section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-sub { color: var(--muted); margin-top: .6rem; font-size: 1.05rem; }

/* ----- Collections ----- */
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.collection-card {
    position: relative; display: flex; flex-direction: column; align-items: flex-start;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2.2rem 2rem; box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    overflow: hidden;
}
.collection-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold)); transform: scaleX(0);
    transform-origin: left; transition: transform .3s var(--ease);
}
.collection-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.collection-card:hover::before { transform: scaleX(1); }
.collection-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--brand); font-weight: 700; margin-bottom: 1rem; }
.collection-card h3 { font-size: 1.7rem; }
.collection-card p { color: var(--muted); margin-top: .6rem; flex-grow: 1; }
.collection-link { margin-top: 1.4rem; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }

/* ----- Feature split ----- */
.section-feature { background: var(--ivory); border-block: 1px solid var(--line-soft); }
.feature-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.feature-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.feature-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.feature-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .65rem; }
.feature-list li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); }
.feature-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-600); }
.feature-art { position: relative; }
.feature-photo {
    width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.feature-art::after {
    content: ""; position: absolute; inset: 16px -16px -16px 16px; z-index: -1;
    border: 2px solid var(--gold-600); border-radius: var(--radius-lg);
}

/* ----- Trust strip ----- */
.trust-strip { background: var(--charcoal); color: var(--ivory); padding: 3rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.trust-item h4 { color: var(--gold); font-size: 1.25rem; margin-bottom: .35rem; }
.trust-item p { color: rgba(255, 255, 255, .78); font-size: .95rem; }

/* ----- Page hero / placeholders ----- */
.page-hero { background: linear-gradient(120deg, var(--maroon-900), var(--brand-deep) 60%, var(--charcoal)); color: #fff; padding: 4.5rem 0 4rem; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero-lead { color: rgba(255, 255, 255, .88); max-width: 560px; margin: 1rem auto 0; font-size: 1.1rem; }
.coming-soon { text-align: center; padding: 2rem 0 1rem; }
.coming-monogram {
    width: 96px; height: 96px; margin: 0 auto 1.5rem; display: grid; place-items: center;
    border-radius: 50%; border: 2px solid var(--gold-600); color: var(--brand);
    font-family: var(--font-display); font-size: 3rem; font-weight: 700; background: var(--ivory);
}
.coming-soon h2 { font-size: 2rem; }
.coming-soon p { color: var(--muted); margin: .6rem 0 1.8rem; }

/* ----- Error pages ----- */
.error-page { padding: 6rem 0; text-align: center; }
.error-code { font-family: var(--font-display); font-size: 6rem; font-weight: 700; color: var(--brand); line-height: 1; }
.error-page h1 { font-size: 2.2rem; margin: .5rem 0 .75rem; }
.error-page p { color: var(--muted); margin-bottom: 1.8rem; }

/* ----- Footer ----- */
.site-footer { background: var(--maroon-900); color: rgba(255, 255, 255, .8); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding: 4rem 1.5rem 3rem; }
.footer-logo { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-tag { color: rgba(255, 255, 255, .62); font-size: .92rem; margin-top: .4rem; max-width: 34ch; }
.footer-col h4 { color: var(--gold); font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-col a, .footer-col address a { color: rgba(255, 255, 255, .75); font-size: .92rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-col address { font-style: normal; font-size: .92rem; line-height: 1.9; color: rgba(255, 255, 255, .72); }
.footer-main-site { display: inline-block; margin-top: 1rem; color: var(--gold); font-weight: 600; font-size: .9rem; }
.newsletter { display: flex; gap: .5rem; margin-top: .9rem; }
.newsletter input {
    flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08); color: #fff; font-size: .9rem;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter input:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .14); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; padding: 1.3rem 1.5rem; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.footer-secure { display: inline-flex; align-items: center; gap: .4rem; }

/* ----- Flash messages ----- */
.flash-stack { margin-top: 1rem; display: grid; gap: .6rem; }
.flash { padding: .85rem 1.1rem; border-radius: var(--radius); font-size: .92rem; font-weight: 500; border: 1px solid; }
.flash-success { background: #eaf3ed; color: var(--success); border-color: #c5e0d0; }
.flash-error { background: #f6e9e7; color: var(--danger); border-color: #e6c6c0; }
.flash-info { background: #f3eee9; color: var(--brand-deep); border-color: #e4d8cb; }

/* ----- Forms (base) ----- */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); font-size: .95rem; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(150, 1, 1, .14);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .collection-grid, .trust-grid { grid-template-columns: 1fr; }
    .feature-split { grid-template-columns: 1fr; gap: 2.5rem; }
    .feature-art { order: -1; }
    .feature-art::after { inset: 12px -10px -10px 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; top: 0; left: 0; bottom: 0; width: min(80vw, 320px);
        background: var(--cream); z-index: 95; padding: 5.5rem 2rem 2rem;
        transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg);
    }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav ul { flex-direction: column; gap: 0; }
    .primary-nav li { border-bottom: 1px solid var(--line-soft); }
    .primary-nav a { display: block; padding: 1rem 0; font-size: 1rem; }
    .header-inner { min-height: 68px; }
    .brand-logo { height: 44px; }
    body.nav-open { overflow: hidden; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-content { padding: 5rem 1.5rem 5.5rem; }
    .section { padding: 3.5rem 0; }
    .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Catalog — shop, product, cart
   ========================================================================== */

.btn-sm { padding: .55rem 1rem; font-size: .82rem; }
.btn-block { width: 100%; }
.is-disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.page-hero-sm { padding: 3rem 0 2.6rem; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; font-size: .82rem; color: var(--muted); }
.breadcrumbs li { display: flex; gap: .4rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink-soft); font-weight: 600; }

/* Product grid + card */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.product-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--ivory); overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.product-card-media:hover .product-img { transform: scale(1.04); }
.product-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(150deg, var(--ivory), #efe6d6); }
.product-ph-mark { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; color: var(--gold-600); opacity: .7; }
.badge { position: absolute; top: .8rem; left: .8rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .55rem; border-radius: 3px; color: #fff; }
.badge-sale { background: var(--brand); }
.badge-out { background: var(--charcoal); }
.product-card-body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex-grow: 1; }
.product-card-cat { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); font-weight: 700; }
.product-card-title { font-size: 1.12rem; line-height: 1.25; }
.product-card-title a:hover { color: var(--brand); }
.product-card-price { display: flex; align-items: baseline; gap: .5rem; }
.price-now { font-weight: 700; color: var(--charcoal); font-size: 1.05rem; }
.price-was { text-decoration: line-through; color: var(--muted); font-size: .9rem; }
.product-card-add, .product-card-body > .btn, .product-card-body > .is-disabled { margin-top: auto; padding-top: .7rem; }
.product-card-add .btn, .product-card-body > .btn, .product-card-body > .is-disabled { width: 100%; }

/* Shop layout */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 4rem; align-items: start; }
.shop-sidebar { position: sticky; top: 100px; display: grid; gap: 1.6rem; }
.sidebar-block h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .8rem; }
.sidebar-cats { list-style: none; padding: 0; display: grid; gap: .15rem; }
.sidebar-cats a { display: flex; justify-content: space-between; padding: .5rem .7rem; border-radius: var(--radius); font-size: .92rem; color: var(--ink-soft); }
.sidebar-cats a:hover { background: var(--ivory); color: var(--brand); }
.sidebar-cats .is-active a { background: var(--ivory); color: var(--brand); font-weight: 600; }
.cat-count { color: var(--muted); font-size: .8rem; }
.sidebar-search { display: flex; gap: .4rem; }
.sidebar-search input { flex: 1; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; }
.sidebar-search input:focus { outline: none; border-color: var(--brand); }

/* Toolbar + pagination */
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
.result-count { color: var(--muted); font-size: .9rem; }
.sort-form { display: flex; align-items: center; gap: .5rem; }
.sort-form label { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sort-form select { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: .9rem; color: var(--ink); }
.sort-form select:focus { outline: none; border-color: var(--brand); }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 3rem; }
.page-link { min-width: 40px; padding: .5rem .7rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; color: var(--ink-soft); }
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.5rem; }

/* Product detail */
.product-page { padding-top: 1.5rem; padding-bottom: 4rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 1.2rem; }
.product-gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--ivory); border: 1px solid var(--line); }
.product-gallery-main .product-img, .product-gallery-main .product-ph { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-main .product-ph-mark { font-size: 6rem; }
.product-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.product-thumb { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; background: none; padding: 0; cursor: pointer; }
.product-thumb.is-active { border-color: var(--brand); }
.product-thumb .product-img { width: 100%; height: 100%; object-fit: cover; }
.product-info-cat { display: inline-block; }
.product-title { font-size: clamp(2rem, 4vw, 2.8rem); margin: .3rem 0 .8rem; }
.product-price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.2rem; }
.product-price .price-now { font-size: 1.7rem; }
.product-price .price-was { font-size: 1.1rem; }
.product-lead { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.2rem; }
.product-stock { margin-bottom: 1.4rem; }
.stock-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; padding: .3rem .8rem; border-radius: 20px; }
.stock-in { background: #eaf3ed; color: var(--success); }
.stock-low { background: #fbf1e3; color: #9a6a16; }
.stock-out { background: #f6e9e7; color: var(--danger); }
.product-add { margin-bottom: 1.2rem; }
.product-add-row { display: flex; gap: 1rem; align-items: stretch; margin-top: 1rem; }
.product-add-btn { flex: 1; }
.product-note { color: var(--muted); font-size: .9rem; font-style: italic; }
.product-description { max-width: 760px; margin-top: 3.5rem; }
.product-description h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.product-description p { color: var(--ink-soft); }
.related { margin-top: 4rem; }

/* Quantity stepper */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.qty-btn { width: 42px; height: 46px; background: var(--ivory); border: none; font-size: 1.1rem; color: var(--charcoal); display: grid; place-items: center; }
.qty-btn:hover { background: var(--line-soft); color: var(--brand); }
.qty-stepper input { width: 54px; height: 46px; text-align: center; border: none; border-inline: 1px solid var(--line); font-size: 1rem; -moz-appearance: textfield; appearance: textfield; background: var(--paper); color: var(--ink); }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }

/* Cart */
.cart-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.cart-items { display: grid; gap: 1rem; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 1.2rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; }
.cart-item-media { width: 90px; height: 90px; border-radius: var(--radius); overflow: hidden; background: var(--ivory); display: block; }
.cart-item-media .product-img, .cart-item-media .product-ph { width: 100%; height: 100%; object-fit: cover; }
.cart-item-media .product-ph-mark { font-size: 1.8rem; }
.cart-item-info { display: flex; flex-direction: column; gap: .2rem; }
.cart-item-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--charcoal); }
.cart-item-name:hover { color: var(--brand); }
.cart-item-variant, .cart-item-unit { font-size: .85rem; color: var(--muted); }
.cart-item-qty { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.cart-item-total { font-weight: 700; color: var(--charcoal); font-size: 1.05rem; min-width: 70px; text-align: right; }
.link-btn { background: none; border: none; color: var(--muted); font-size: .82rem; text-decoration: underline; padding: 0; cursor: pointer; }
.link-btn:hover { color: var(--brand); }
.cart-update-btn { font-size: .78rem; }
.cart-remove { margin-top: .2rem; }
.cart-summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; position: sticky; top: 100px; }
.cart-summary h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; padding: .6rem 0; font-size: .95rem; }
.summary-muted { color: var(--muted); border-top: 1px dashed var(--line); }
.cart-continue { display: block; text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.cart-continue:hover { color: var(--brand); }
.cart-secure { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 1.2rem; font-size: .8rem; color: var(--muted); }

/* Catalog responsive */
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .product-detail { grid-template-columns: 1fr; gap: 2rem; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}
@media (max-width: 680px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 560px) {
    .cart-item { grid-template-columns: 70px 1fr; grid-template-areas: "media info" "media qty" "total total"; row-gap: .7rem; }
    .cart-item-media { grid-area: media; width: 70px; height: 70px; }
    .cart-item-info { grid-area: info; }
    .cart-item-qty { grid-area: qty; align-items: flex-start; flex-direction: row; }
    .cart-item-total { grid-area: total; text-align: left; }
    .shop-toolbar { flex-direction: column; align-items: flex-start; gap: .8rem; }
}
@media (max-width: 420px) { .product-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Checkout, confirmation & gift cards (Phase 2)
   ========================================================================== */

.field-error { display: block; color: var(--danger); font-size: .8rem; margin-top: .25rem; }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* Checkout layout */
.checkout-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.checkout-main { display: grid; gap: 1.5rem; }
.checkout-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; }
.checkout-block h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.step-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-body); font-size: .85rem; font-weight: 700; flex: none; }

/* Fulfillment radio cards */
.fulfill-options { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1.2rem; }
.fulfill-option { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.fulfill-option input { position: absolute; opacity: 0; pointer-events: none; }
.fulfill-option.is-active { border-color: var(--brand); background: #fbf2f2; }
.fulfill-title { font-weight: 700; color: var(--charcoal); }
.fulfill-sub { font-size: .82rem; color: var(--muted); }
.pickup-info { background: var(--ivory); border-radius: var(--radius); padding: 1rem 1.2rem; }
.pickup-addr { font-weight: 600; color: var(--charcoal); }
.digital-note { color: var(--ink-soft); }

/* Square card field */
.card-container { min-height: 56px; border: 1px solid var(--line); border-radius: var(--radius); padding: .35rem .6rem; background: var(--paper); }
.pay-secure { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.cf-turnstile { margin-top: 1rem; }

/* Checkout summary */
.checkout-summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; position: sticky; top: 100px; }
.checkout-summary h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.summary-lines { display: grid; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 1rem; }
.summary-line { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; font-size: .9rem; align-items: baseline; }
.summary-qty { color: var(--muted); }
.summary-name small { display: block; color: var(--muted); font-size: .8rem; }
.summary-amt { font-weight: 600; white-space: nowrap; }
.summary-totals { display: grid; gap: .15rem; margin-bottom: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .95rem; }
.summary-grand { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .7rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--charcoal); }

/* Confirmation */
.confirm-hero { background: linear-gradient(120deg, var(--maroon-900), var(--brand-deep) 60%, var(--charcoal)); color: #fff; padding: 4rem 0 3.5rem; }
.confirm-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.confirm-hero .eyebrow { color: var(--gold); }
.confirm-sub { color: rgba(255, 255, 255, .85); margin-top: .8rem; }
.confirm-check { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 2px solid var(--gold); color: var(--gold); display: grid; place-items: center; }
.confirm-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.confirm-card { max-width: 640px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.confirm-items { display: grid; gap: .8rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line-soft); }
.confirm-item { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: baseline; }
.confirm-qty { color: var(--muted); }
.confirm-name small { display: block; color: var(--muted); font-size: .82rem; }
.confirm-amt { font-weight: 600; }
.confirm-totals { padding: 1.2rem 0; border-bottom: 1px solid var(--line-soft); }
.confirm-card-line { color: var(--muted); font-size: .85rem; margin-top: .5rem; text-align: right; }
.confirm-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-top: 1.4rem; }
.confirm-meta h4 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .5rem; }
.confirm-meta p { font-size: .92rem; color: var(--ink-soft); }

/* Gift cards */
.gc-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.gc-grid { display: grid; grid-template-columns: 380px 1fr; gap: 3rem; align-items: start; }
.gc-preview-col { position: sticky; top: 100px; }
.gc-card { aspect-ratio: 1.6 / 1; border-radius: 14px; padding: 1.6rem; color: #fff; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(130% 130% at 85% -10%, rgba(194, 168, 120, .45), transparent 55%), linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 55%, var(--charcoal) 100%); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .12); }
.gc-card-top { display: flex; flex-direction: column; }
.gc-card-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.gc-card-sub { font-size: .7rem; text-transform: uppercase; letter-spacing: .28em; color: var(--gold); }
.gc-card-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }
.gc-card-foot { display: flex; justify-content: space-between; align-items: flex-end; font-size: .85rem; color: rgba(255, 255, 255, .82); }
.gc-card-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.gc-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .6rem; }
.gc-points li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); font-size: .92rem; }
.gc-points li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-600); }
.gc-form { display: grid; gap: 1.8rem; }
.gc-fieldset { border: none; padding: 0; margin: 0; }
.gc-fieldset legend { font-family: var(--font-display); font-size: 1.3rem; color: var(--charcoal); margin-bottom: .9rem; padding: 0; }
.gc-amounts { display: flex; flex-wrap: wrap; gap: .6rem; }
.gc-chip { position: relative; }
.gc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.gc-chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 78px; padding: .65rem 1rem; border: 1.5px solid var(--line); border-radius: 40px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.gc-chip input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.gc-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.gc-custom { margin-top: 1rem; }
.gc-note { font-size: .82rem; color: var(--muted); text-align: center; font-style: italic; }

/* Responsive (Phase 2) */
@media (max-width: 960px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; order: -1; }
    .gc-grid { grid-template-columns: 1fr; gap: 2rem; }
    .gc-preview-col { position: static; max-width: 380px; }
}
@media (max-width: 560px) {
    .grid-2, .grid-3, .fulfill-options { grid-template-columns: 1fr; }
    .confirm-meta { grid-template-columns: 1fr; }
}

/* Gift-card redemption (Phase 3) */
.gc-applied { display: flex; justify-content: space-between; align-items: center; background: #faf7f0; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; margin-bottom: 1rem; }
.gc-applied-code { display: block; font-family: ui-monospace, monospace; font-weight: 700; color: var(--brand); font-size: .85rem; }
.gc-applied-bal { display: block; font-size: .78rem; color: var(--muted); }
.gc-apply { margin-bottom: 1rem; }
.gc-apply summary { cursor: pointer; font-size: .88rem; color: var(--brand); font-weight: 600; list-style: none; }
.gc-apply summary::-webkit-details-marker { display: none; }
.gc-apply summary::before { content: "＋ "; }
.gc-apply[open] summary::before { content: "－ "; }
.gc-apply-row { display: flex; gap: .5rem; margin-top: .6rem; }
.gc-apply-row input { flex: 1; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: .85rem; font-family: ui-monospace, monospace; text-transform: uppercase; }
.gc-apply-row input:focus { outline: none; border-color: var(--brand); }
.summary-credit { color: var(--success); }
.pay-covered { background: #eaf3ed; color: var(--success); border-radius: var(--radius); padding: .8rem 1rem; font-size: .9rem; font-weight: 600; }
.confirm-giftcards .gc-code-row { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.confirm-giftcards .gc-code-row:last-child { border-bottom: none; }
.gc-code { font-family: ui-monospace, monospace; font-size: 1.1rem; font-weight: 700; color: var(--brand); letter-spacing: 1px; }
.gc-code-sub { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.confirm-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.sandbox-hint { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: var(--radius); padding: .7rem .9rem; font-size: .82rem; color: #7a5b14; margin-bottom: .9rem; }
.sandbox-hint code { background: #fbe7c6; padding: .05rem .3rem; border-radius: 3px; font-size: .85em; }
