@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/static/fonts/cormorant-garamond-variable.woff2") format("woff2");
}
@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("/static/fonts/cormorant-garamond-italic-500.woff2") format("woff2");
}
@font-face {
    font-family: "Dancing Script";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/static/fonts/dancing-script.woff2") format("woff2");
}
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/static/fonts/montserrat-variable.woff2") format("woff2");
}

:root {
    /* Brand tokens recovered from the original site's own
       vixen-editable-homepage plugin (vixen-home.css) rather than
       guessed — this is the client's actual established palette, not
       a fresh invention. */
    --ink: #1c1714;
    --surface: #fbf9f5;
    --surface-alt: #f1ebe2;
    --surface-dark: #080706;
    --surface-dark-alt: #14100f;
    --on-dark: #f2e5d0;
    --muted: #726a60;
    --muted-on-dark: #c7c0ba;
    --accent: #5b0b12;
    --accent-ink: #ffffff;
    --gold: #c8a66a;
    --gold-light: #e1c58d;
    --border: #e3dccf;
    --border-on-dark: #3a302c;
    --radius: 3px;
    font-size: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Montserrat", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    /* .home-dark's full-bleed breakout uses width:100vw, which on most
       browsers includes the vertical scrollbar's own width — slightly
       wider than the actual visible viewport — and would otherwise add
       a horizontal scrollbar to the whole page. */
    overflow-x: hidden;
}

h1, h2, h3, .brand {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--ink);
    color: var(--surface);
    padding: 0.75rem 1rem;
    z-index: 1000;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.site-header {
    background: var(--surface-dark);
    border-bottom: 1px solid var(--border-on-dark);
}

.site-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.1rem 1.5rem;
    flex-wrap: wrap;
}

.brand {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-dark);
}
.brand:hover { text-decoration: none; opacity: 0.85; }

.nav-links, .nav-account {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.nav-links a, .nav-account a, .nav-account .link-button {
    color: var(--muted-on-dark);
}
.nav-links a:hover, .nav-account a:hover, .nav-account .link-button:hover {
    color: var(--gold);
    text-decoration: none;
}

.nav-account { margin-left: auto; }
.nav-account svg { width: 20px; height: 20px; display: block; }
.nav-cart { position: relative; display: inline-flex; }
.nav-cart-count {
    position: absolute;
    top: -6px;
    right: -9px;
    background: var(--gold);
    color: var(--surface-dark);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    min-width: 15px;
    height: 15px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.link-button {
    background: none;
    border: none;
    color: var(--muted-on-dark);
    cursor: pointer;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    padding: 0;
}

main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; min-height: 60vh; }

.site-footer {
    background: var(--surface-dark);
    color: var(--muted-on-dark);
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    margin-top: 3rem;
}

.messages {
    list-style: none;
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
}
.message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}
.message-success { background: #e4f3e8; color: #246b3a; }
.message-error { background: #fce8e6; color: #9a2a1f; }

.button {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    border: none;
    font: inherit;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 180ms ease;
}
.button:hover { background: #611831; text-decoration: none; }
.button-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.button-outline:hover { background: rgba(161, 98, 7, 0.08); }

.section-heading {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-align: center;
    margin: 0 0 2.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 2rem;
}

.product-card { display: block; color: inherit; }
.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--surface-alt);
}
.product-card h3 {
    margin: 1rem 0 0.25rem;
    font-size: 1.3rem;
    font-weight: 600;
}
.product-card .price {
    color: var(--gold);
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.filters {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.filter-group h4 { margin: 0 0 0.5rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: "Montserrat", sans-serif; font-weight: 600; }
.filter-group ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.filter-group a { font-size: 0.9rem; }
.filter-group a.active { font-weight: 700; color: var(--accent); text-decoration: underline; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.product-detail img { width: 100%; border-radius: var(--radius); background: var(--surface-alt); }
.product-detail h1 { font-size: 2.4rem; margin-bottom: 0.25rem; }
.product-detail .notes { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.25rem 0; }
.tag {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--ink);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 720px) {
    .product-detail { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
}

.field { display: block; width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; margin-top: 0.3rem; }
.field:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
form p { margin-bottom: 1.1rem; }
label { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

table.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
table.cart-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid var(--ink);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
table.cart-table td { text-align: left; padding: 0.9rem 0.75rem; border-bottom: 1px solid var(--border); }

.order-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; }
.order-status {
    display: inline-block;
    background: var(--surface-dark);
    color: var(--gold);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Homepage: the whole page is dark, bookended by hero/newsletter,
   matching the brand's own established design (recovered from the
   original site's vixen-editable-homepage plugin) rather than only
   darkening the hero/newsletter bookends. A plain negative-margin
   breakout only cancels <main>'s own padding — <main> is itself capped
   at max-width:1200px, so on any screen wider than that the light body
   background still shows either side as bars. The left:50%/-50vw trick
   below escapes that constraint entirely, spanning the true viewport
   width regardless of how deeply nested or how the ancestor is centered.
   Each section re-centers its own content at 1200px via .section-inner
   or an explicit max-width. ---- */
.home-dark {
    background: var(--surface-dark);
    color: var(--on-dark);
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -2.5rem;
    margin-bottom: -3rem;
    padding-bottom: 1px;
    overflow-x: hidden;
}
.home-dark .section-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.hero-banner {
    background-image: linear-gradient(90deg, rgba(8, 7, 6, 0.6) 0%, rgba(8, 7, 6, 0.25) 45%, rgba(8, 7, 6, 0.7) 100%), url("/static/img/hero.webp");
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 6vw;
}
.hero-banner-copy { max-width: 36rem; width: 100%; color: var(--on-dark); text-align: center; }
.hero-banner-copy .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.38em;
    font-size: 0.75rem;
    color: var(--gold);
    margin: 0 0 0.75rem;
}
.hero-banner-copy h1 {
    font-size: clamp(3.4rem, 8vw, 7rem);
    line-height: 0.85;
    letter-spacing: 0.04em;
    margin: 0.3rem 0 0.5rem;
    color: var(--on-dark);
}
.hero-banner-copy .script-tagline {
    font-family: "Dancing Script", cursive;
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--gold);
    margin: 0 0 1.25rem;
    transform: rotate(-3deg);
    display: inline-block;
}
.hero-banner-copy p:not(.eyebrow):not(.script-tagline) {
    color: var(--muted-on-dark);
    font-family: "Montserrat", sans-serif;
    margin: 0 0 1.75rem;
}

@media (max-width: 900px) {
    .hero-banner { min-height: 50vh; padding: 2.5rem 5vw; }
}

/* ---- Homepage: signature collection ---- */
.collection-section { padding: 4.5rem 0; }
.collection-section .section-heading { color: var(--on-dark); }
.section-subheading {
    text-align: center;
    color: var(--muted-on-dark);
    margin: -2rem 0 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}
.collection-card { text-align: center; }
.collection-card-image {
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--surface-dark-alt);
}
/* These product photos already have their own full styled background
   baked in (dark roses for Noir, red roses for Rouge, etc.) — they are
   NOT plain bottle-on-white studio shots. object-fit:contain + padding
   was shrinking a complete photo down into a small padded thumbnail and
   showing a mismatched flat CSS gradient around it; cover + no padding
   lets the real photo fill the card edge-to-edge as it should. The
   mood-* gradient classes are no longer needed and have been removed. */
.collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.collection-card h3 { margin: 0 0 0.25rem; font-size: 1.2rem; letter-spacing: 0.04em; }
.collection-card h3 a { color: var(--on-dark); }
.collection-card h3 a:hover { color: var(--gold); text-decoration: none; }
.collection-card-tagline { color: var(--muted-on-dark); font-size: 0.85rem; margin: 0 0 1rem; }
.button-small { padding: 0.55rem 1.4rem; font-size: 0.75rem; }

/* ---- Homepage: brand story ---- */
/* Deliberately edge-to-edge (no max-width) — the photo runs to the
   viewport edge, matching the original design; only the copy side gets
   its own breathing room. */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    background: #060606;
}
.story-photo { position: relative; overflow: hidden; min-height: 32rem; }
.story-photo img { width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(100%) brightness(0.65) contrast(1.1); }
.story-quote {
    position: absolute;
    left: 7%;
    top: 20%;
    right: 7%;
    margin: 0;
    color: var(--on-dark);
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.15;
    text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}
.story-copy { padding: 4.5rem clamp(2rem, 6vw, 6rem); }
.story-copy .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: var(--gold);
    margin: 0 0 1rem;
}
.story-copy h2 { margin: 0 0 0.25rem; color: var(--on-dark); }
.story-copy p { color: var(--muted-on-dark); line-height: 1.75; }

@media (max-width: 900px) {
    .story-section { grid-template-columns: 1fr; }
    .story-photo { min-height: 24rem; }
}

/* ---- Homepage: feature row ---- */
.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    border-top: 1px solid var(--border-on-dark);
    border-bottom: 1px solid var(--border-on-dark);
}
.feature svg { width: 32px; height: 32px; color: var(--gold); margin-bottom: 0.75rem; }
.feature h4 { margin: 0 0 0.25rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-dark); }
.feature p { margin: 0; color: var(--muted-on-dark); font-size: 0.85rem; }

/* ---- Homepage: testimonials ---- */
.testimonials-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
    text-align: center;
}
.testimonials-section .section-heading { color: var(--on-dark); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.testimonial { margin: 0; }
.testimonial p { font-style: italic; color: var(--muted-on-dark); margin: 0 0 0.75rem; }
.testimonial .stars { color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.testimonial cite { color: #9c938e; font-size: 0.85rem; font-style: normal; }

/* ---- Homepage: newsletter band ---- */
.newsletter-band {
    background-image: linear-gradient(120deg, rgba(8,7,6,0.75) 0%, rgba(34,7,10,0.6) 100%), url("/static/img/rose-smoke.webp");
    background-size: cover;
    background-position: center;
    padding: 4rem 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--on-dark);
    margin-bottom: 1rem;
}
.newsletter-copy h2 { color: var(--on-dark); margin: 0 0 0.5rem; }
.newsletter-copy p { color: var(--muted-on-dark); margin: 0 0 1.25rem; }
.newsletter-form { display: flex; gap: 0; max-width: 28rem; }
.newsletter-form input.field {
    border-radius: var(--radius) 0 0 var(--radius);
    border-right: none;
    margin-top: 0;
    background: rgba(255,255,255,0.05);
    color: var(--on-dark);
    border-color: var(--border-on-dark);
}
.newsletter-form input.field::placeholder { color: var(--muted-on-dark); }
.newsletter-form .button { border-radius: 0 var(--radius) var(--radius) 0; }
.newsletter-script {
    font-family: "Dancing Script", cursive;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--gold);
    text-align: right;
    margin: 0;
}

@media (max-width: 720px) {
    .newsletter-band { flex-direction: column; text-align: center; }
    .newsletter-script { text-align: center; }
}
