/* =========================================================================
   PAVLOVA — editorial flower shop storefront
   Design ported from /theme (Pavlova Flowers)
   ========================================================================= */
:root {
    --cream:      #F7F2E9;   /* page background */
    --cream-2:    #FCFAF4;   /* cards / panels */
    --cream-3:    #F1EBDF;
    --ink:        #221E1A;   /* headings */
    --ink-2:      #2A2621;   /* body text */
    --green:      #2E463A;   /* primary accent */
    --green-dark: #22352B;   /* button hover */
    --green-soft: #5F7A66;
    --gold:       #A8895C;   /* eyebrow labels */
    --gold-2:     #C9A87E;
    --muted:      #8A8272;   /* secondary text */
    --muted-2:    #5A5347;   /* paragraph text */
    --rose:       #B06A56;   /* wishlist / remove hover */
    --line:       rgba(42, 38, 33, 0.12);
    --line-soft:  rgba(42, 38, 33, 0.10);
    --btn-text:   #F4EFE4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--cream);
    color: var(--ink-2);
    font-family: 'Jost', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; }
em { font-style: italic; color: var(--green); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* Below-fold blocks render lazily: the browser skips layout/paint (and any
   image fetches inside) until the section nears the viewport. The intrinsic
   size reserves space so the scrollbar doesn't jump; `auto` remembers the
   real height once rendered. */
.lazy-block { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* Visible counterpart: blocks fade + rise in as they enter the viewport.
   The hidden initial state is gated on .reveal-on (set by JS), so without
   JavaScript everything simply stays visible. */
.reveal-on .lazy-block { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on .lazy-block.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal-on .lazy-block { opacity: 1; transform: none; transition: none; }
}
.eyebrow { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--green); color: var(--btn-text);
    padding: 15px 30px; border-radius: 2px;
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    transition: background .25s ease, transform .25s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn:disabled { background: #b7b0a2; cursor: not-allowed; transform: none; }
.btn-sm { padding: 13px 26px; font-size: 11px; }
.btn-block { width: 100%; }

/* Underline / link-style button */
.btn-link {
    display: inline-block; color: var(--green);
    border-bottom: 1px solid rgba(46,70,58,0.4); padding-bottom: 2px;
    font-size: 11px; letter-spacing: 0.11em; text-transform: uppercase;
    transition: color .2s ease, border-color .2s ease; background: none;
}
.btn-link:hover { color: var(--gold); border-color: var(--gold); }
.btn-ghost {
    color: var(--muted-2); border-bottom: 1px solid var(--ink-2); border-radius: 0;
    padding: 0 2px 5px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    background: none; transition: color .25s, border-color .25s;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

/* ---- Announcement + header ---- */
.announce {
    background: var(--green); color: #EBE4D5; text-align: center;
    font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; padding: 9px 16px;
}
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    background: rgba(247, 242, 233, 0.82); border-bottom: 1px solid var(--line);
}
.header-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: 74px;
}
.main-nav { display: flex; gap: 26px; font-size: 11.5px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--muted-2); }
.main-nav a:hover, .header-actions a:hover { color: var(--gold); }
.brand {
    font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 27px;
    letter-spacing: 0.28em; text-align: center; padding-left: 0.28em; color: var(--ink-2);
}
.header-actions {
    display: flex; gap: 20px; justify-content: flex-end; align-items: center;
    font-size: 11.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-2);
}
.header-actions .cart-link { color: var(--green); font-weight: 500; }
.header-actions .studio {
    color: #9A9284; font-size: 10px; letter-spacing: 0.14em;
    border-left: 1px solid rgba(42,38,33,0.18); padding-left: 18px;
}
.header-actions .studio:hover { color: var(--green); }
.header-actions .hi { color: var(--green); font-weight: 500; }
.header-actions .lang { display: flex; gap: 6px; align-items: center; font-size: 10px; letter-spacing: 0.12em; }
.header-actions .lang a { color: #9A9284; }
.header-actions .lang a.on { color: var(--green); font-weight: 500; }
.header-actions .lang a:hover { color: var(--green); }
.header-actions .lang .sep { color: rgba(42,38,33,0.28); }

/* ---- Flash + toast ---- */
.flash {
    margin: 18px auto 0; max-width: 1240px;
    padding: 12px 18px; border-radius: 3px; font-size: 13px; letter-spacing: 0.04em;
}
.flash-success { background: rgba(46,70,58,0.08); color: var(--green); }
.flash-error   { background: rgba(176,86,62,0.10); color: var(--rose); }

.toast {
    position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(16px);
    z-index: 120; background: var(--ink); color: #F5F0E5;
    padding: 13px 24px; border-radius: 2px; font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; box-shadow: 0 16px 40px -14px rgba(0,0,0,0.5);
    opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { background: var(--rose); }

/* ---- Hero ---- */
.section { max-width: 1240px; margin: 0 auto; padding: 0 28px clamp(56px, 8vw, 112px); }
.hero {
    max-width: 1240px; margin: 0 auto;
    padding: clamp(44px,6vw,92px) 28px clamp(52px,7vw,104px);
    display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(30px,5vw,74px); align-items: center;
}
.hero h1 {
    font-size: clamp(46px, 7vw, 90px); line-height: 0.98; letter-spacing: -0.012em;
    margin: 22px 0 26px; color: var(--ink);
}
.hero-sub { max-width: 440px; font-size: 17px; line-height: 1.6; color: var(--muted-2); font-weight: 300; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats .num { font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--green); }
.hero-stats .lbl { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.hero-visual { position: relative; }
.hero-tile {
    aspect-ratio: 4/5; border-radius: 3px; overflow: hidden; border: 1px solid var(--line-soft);
    box-shadow: 0 30px 70px -30px rgba(42,38,33,0.35); position: relative;
    /* Parallax: JS sets --pvsy to the (capped) scroll offset. */
    transform: translateY(calc(var(--pvsy, 0px) * -0.09));
    will-change: transform;
}
.hero-tile .fig { position: absolute; left: 16px; top: 16px; font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(42,38,33,0.5); }
.hero-card {
    position: absolute; left: -14px; bottom: 26px; background: var(--cream-2);
    border: 1px solid var(--line-soft); border-radius: 3px; padding: 16px 20px;
    box-shadow: 0 18px 40px -20px rgba(42,38,33,0.3); min-width: 190px;
    transform: translateY(calc(var(--pvsy, 0px) * 0.07));
    will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
    .hero-tile, .hero-card { transform: none; }
}
.hero-card .nm { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--ink); line-height: 1; }
.hero-card .sub { font-size: 11px; color: var(--muted); margin: 5px 0 9px; }
.hero-card .row { display: flex; justify-content: space-between; align-items: center; }
.hero-card .price { color: var(--green); font-weight: 500; font-size: 15px; }
.hero-card .tag { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ---- Section heads ---- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.section-head.center { display: block; text-align: center; margin-bottom: 42px; }
.section-title { font-size: clamp(30px, 4vw, 46px); color: var(--ink); margin-top: 10px; }
.section-head .eyebrow { display: block; margin-bottom: 10px; }

/* ---- Category collection tiles ---- */
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-tile {
    position: relative; display: block; aspect-ratio: 3/4; border-radius: 3px; overflow: hidden;
    border: 1px solid var(--line-soft); transition: transform .3s ease, box-shadow .3s ease;
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -24px rgba(42,38,33,0.4); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(34,45,38,0.6), rgba(0,0,0,0) 52%); }
.cat-tile .label { position: absolute; left: 22px; bottom: 20px; color: #F5F0E5; z-index: 2; }
.cat-tile .label .nm { font-family: 'Cormorant Garamond', serif; font-size: 27px; line-height: 1; }
.cat-tile .label .go { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.88; margin-top: 7px; }

/* ---- Product grid + cards ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { position: relative; }
.wish {
    position: absolute; top: 13px; right: 13px; z-index: 3; width: 34px; height: 34px;
    border-radius: 50%; background: rgba(252,250,244,0.94); color: var(--rose);
    font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.25); transition: transform .2s ease;
}
.wish:hover { transform: scale(1.14); }
.product-tile {
    display: block; position: relative; aspect-ratio: 4/5; border-radius: 3px; overflow: hidden;
    border: 1px solid var(--line-soft); transition: transform .3s ease, box-shadow .3s ease;
}
.product-tile:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -24px rgba(42,38,33,0.4); }
/* Lazy photo layer: sits over the gradient placeholder, under the badges. */
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-badge {
    position: absolute; left: 12px; top: 12px; background: rgba(34,45,38,0.86); color: #F5F0E5;
    font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px;
    z-index: 1;
}
.product-info { padding: 15px 2px 0; }
.product-info .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.product-name { font-size: 22px; margin: 0; color: var(--ink); }
.product-name a:hover { color: var(--gold); }
.product-price { color: var(--green); font-weight: 500; font-size: 15px; white-space: nowrap; }
.product-blurb { font-size: 13px; color: var(--muted); font-weight: 300; margin: 5px 0 12px; min-height: 34px; line-height: 1.45; }
.product-meta { display: flex; justify-content: space-between; align-items: center; }
.rating { font-size: 11px; letter-spacing: 0.04em; color: var(--gold); }

/* ---- Service band + quote ---- */
.service-band { background: var(--green); color: #E7E0D1; }
.service-inner { max-width: 1240px; margin: 0 auto; padding: clamp(54px,7vw,94px) 28px; display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(28px,4vw,56px); }
.service-num { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--gold-2); line-height: 1; }
.service-band h3 { font-size: 25px; margin: 16px 0 10px; color: #F4EFE4; }
.service-band p { font-size: 14px; font-weight: 300; line-height: 1.6; color: #C4BCAD; }
.quote-section { max-width: 880px; margin: 0 auto; padding: clamp(62px,9vw,118px) 28px; text-align: center; }
.quote-section blockquote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(26px,3.6vw,40px); line-height: 1.28; color: var(--ink-2); }
.quote-by { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 26px; }

/* Testimonial slideshow */
.quote-section .eyebrow { display: block; margin-bottom: 34px; }
.testimonial-slider { position: relative; }
.testimonial-track { position: relative; display: grid; }
.testimonial-slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.testimonial-slide.active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.testimonial-stars { color: var(--gold-2); letter-spacing: 4px; font-size: 15px; margin-bottom: 20px; }
.testimonial-slide blockquote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(24px,3.4vw,38px); line-height: 1.28; color: var(--ink-2); margin: 0; }
.testimonial-slide .quote-by { margin-top: 26px; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.testimonial-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .3s ease, transform .3s ease; }
.testimonial-dot:hover { background: var(--muted); }
.testimonial-dot.active { background: var(--green); transform: scale(1.25); }

/* ---- Shop toolbar ---- */
.shop-head { max-width: 1240px; margin: 0 auto; padding: clamp(34px,5vw,60px) 28px 0; }
.shop-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.shop-title { font-size: clamp(34px,5vw,58px); color: var(--ink); line-height: 1; }
.shop-count { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.shop-toolbar {
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
    margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cat-pills { display: flex; gap: 9px; flex-wrap: wrap; }
.pill {
    font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 16px;
    border-radius: 999px; border: 1px solid var(--line); color: var(--muted-2); background: none;
    transition: all .2s ease; cursor: pointer;
}
.pill:hover { border-color: var(--gold); color: var(--gold); }
.pill.active { background: var(--green); color: #F4EFE4; border-color: var(--green); }
.shop-search { display: flex; gap: 22px; align-items: center; }
.line-input {
    background: none; border: none; border-bottom: 1px solid rgba(42,38,33,0.25);
    outline: none; font-size: 13px; color: var(--ink-2); padding: 5px 0; font-weight: 300;
    font-family: inherit;
}
.line-input:focus { border-color: var(--green); }

/* ---- Empty states ---- */
.empty { text-align: center; padding: 70px 0; }
.empty .big { font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--ink); margin-bottom: 8px; }
.empty p { color: var(--muted); font-weight: 300; margin-bottom: 22px; }

/* ---- Breadcrumb / back ---- */
.back-link { display: inline-block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: clamp(24px,3vw,40px) 0; }
.back-link:hover { color: var(--green); }

/* ---- Product detail ---- */
.pd { max-width: 1240px; margin: 0 auto; padding: 0 28px clamp(48px,7vw,88px); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,72px); align-items: start; }
.pd-visual { position: relative; }
.pd-tile { aspect-ratio: 4/5; border-radius: 3px; overflow: hidden; border: 1px solid var(--line-soft); box-shadow: 0 30px 70px -34px rgba(42,38,33,0.4); position: relative; }
.pd-tile .fig { position: absolute; left: 18px; top: 18px; font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(42,38,33,0.5); }
.pd-title { font-size: clamp(38px,5vw,62px); line-height: 1; margin: 14px 0 16px; color: var(--ink); }
.pd-metarow { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.pd-metarow .stock { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-soft); }
.pd-metarow .oos { color: var(--rose); }
.pd-price { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--green); margin-bottom: 22px; }
.pd-desc { font-size: 15.5px; font-weight: 300; line-height: 1.65; color: var(--muted-2); margin-bottom: 26px; }
.pd-fields { display: flex; gap: 24px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); }
.pd-buy { display: flex; gap: 14px; align-items: stretch; margin-top: 26px; }
.pd-note { font-size: 11.5px; color: var(--muted); font-weight: 300; margin-top: 14px; }
.pd-details { margin-top: 30px; display: flex; flex-direction: column; gap: 11px; }
.pd-details .d { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; font-weight: 300; color: var(--muted-2); }
.pd-details .d span { color: var(--gold); }

/* Quantity control */
.qty {
    display: flex; align-items: center; border: 1px solid rgba(42,38,33,0.2); border-radius: 2px;
}
.qty button { width: 46px; height: 54px; font-size: 18px; color: var(--muted-2); }
.qty button:hover { color: var(--green); }
.qty input { width: 44px; text-align: center; border: none; background: none; font: inherit; font-size: 15px; -moz-appearance: textfield; outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-buy .btn { flex: 1; height: 54px; padding: 0 20px; letter-spacing: 0.14em; }

/* ---- Cart ---- */
.narrow { max-width: 1120px; margin: 0 auto; padding: clamp(34px,5vw,60px) 28px clamp(60px,8vw,100px); }
.page-eyebrow { display: block; margin-bottom: 12px; }
.page-title { font-size: clamp(34px,5vw,58px); margin: 0 0 clamp(24px,4vw,40px); color: var(--ink); line-height: 1; }
.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.cart-thumb { width: 76px; height: 94px; flex: none; border-radius: 2px; border: 1px solid var(--line-soft); position: relative; overflow: hidden; display: block; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cart-line h3 { font-size: 22px; margin: 0; color: var(--ink); }
.cart-line .cat { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); margin: 4px 0 12px; }
.cart-line .controls { display: flex; justify-content: space-between; align-items: center; }
.cart-line .line-total { color: var(--green); font-weight: 500; font-size: 15px; white-space: nowrap; }
.qty-sm { display: flex; align-items: center; border: 1px solid rgba(42,38,33,0.18); border-radius: 2px; }
.qty-sm button { width: 34px; height: 36px; font-size: 16px; color: var(--muted-2); }
.qty-sm button:hover { color: var(--green); }
.qty-sm input { width: 34px; text-align: center; border: none; background: none; font: inherit; font-size: 13px; -moz-appearance: textfield; outline: none; }
.qty-sm input::-webkit-outer-spin-button, .qty-sm input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.remove { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #9A9284; }
.remove:hover { color: var(--rose); }

.summary { background: var(--cream-2); border: 1px solid var(--line); border-radius: 4px; padding: 26px; }
.summary.sticky { position: sticky; top: 96px; }
.summary h3 { font-size: 26px; color: var(--ink); margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 15.5px; color: var(--ink-2); padding: 10px 0; }
.summary-row.border { border-bottom: 1px solid var(--line-soft); }
.summary-row.total { font-size: 20px; color: var(--ink); font-weight: 600; padding: 16px 0 22px; }
.free-progress { margin-bottom: 20px; }
.free-progress .msg { font-size: 12px; color: var(--muted-2); font-weight: 300; margin-bottom: 9px; }
.free-progress .msg strong { color: var(--green); font-weight: 500; }
.free-bar { height: 4px; background: rgba(42,38,33,0.1); border-radius: 3px; overflow: hidden; }
.free-bar > div { height: 100%; background: var(--green); transition: width .3s ease; }
.free-unlocked { font-size: 12px; color: var(--green-soft); letter-spacing: 0.04em; margin-bottom: 20px; }
.summary .btn { margin-top: 6px; }
.summary .link-btn { width: 100%; margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.summary .link-btn:hover { color: var(--green); }

/* ---- Checkout ---- */
.co-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.co-step { margin-bottom: 34px; }
.co-step .num { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 20px; }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co-field.span2 { grid-column: span 2; }
.co-field label { font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; margin-bottom: 9px; display: block; }
.field-input, textarea.field-input, select.field-input {
    width: 100%; background: var(--cream-2); border: 1px solid rgba(42,38,33,0.18); border-radius: 3px;
    outline: none; font-size: 16px; color: var(--ink); padding: 14px 16px; font-weight: 400; font-family: inherit;
}
/* Same height for every single-line control — selects otherwise render a
   couple of pixels off from text inputs (textareas keep natural height). */
input.field-input, select.field-input { height: 53px; }
.field-input:focus { border-color: var(--green); }
textarea.field-input { line-height: 1.5; resize: vertical; min-height: 80px; }
.field-error { font-size: 13.5px; color: var(--rose); font-weight: 500; margin-top: 7px; }
.co-note { font-size: 13.5px; color: #8A8272; font-weight: 400; margin-top: 12px; line-height: 1.55; }

/* ---- Payment methods ---- */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.pay-method { position: relative; display: block; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method-body {
    display: block; border: 1px solid rgba(42,38,33,0.15); border-radius: 4px;
    padding: 16px 18px; background: var(--cream-2); transition: border-color .2s ease, box-shadow .2s ease;
}
.pay-method:hover .pay-method-body { border-color: var(--gold); }
.pay-method.selected .pay-method-body,
.pay-method input:checked + .pay-method-body {
    border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green);
}
.pay-method-top { display: flex; align-items: center; justify-content: space-between; }
.pay-name { font-size: 16px; font-weight: 500; color: var(--ink); }
.pay-sub { display: block; font-size: 13px; color: var(--muted-2); font-weight: 400; margin-top: 4px; }
/* Custom radio dot */
.pay-glyph { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(42,38,33,0.3); flex: none; transition: all .2s ease; }
.pay-method.selected .pay-glyph,
.pay-method input:checked + .pay-method-body .pay-glyph {
    border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px var(--cream-2);
}

.pay-panel { display: none; }
.pay-panel.active { display: block; }

/* Apple Pay button */
.applepay-btn {
    display: inline-flex; align-items: center; gap: 4px; background: #000; color: #fff;
    border-radius: 4px; padding: 13px 26px; font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
    opacity: 0.9; cursor: default;
}
.applepay-logo { font-family: -apple-system, 'SF Pro', system-ui, sans-serif; }
.applepay-logo::before { content: "\F8FF"; } /* Apple logo in Apple fonts; blank elsewhere */

/* Bank link chooser */
.co-field-label { font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; margin-bottom: 12px; display: block; }
.bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bank-option { position: relative; cursor: pointer; }
.bank-option input { position: absolute; opacity: 0; pointer-events: none; }
.bank-option span {
    display: block; text-align: center; border: 1px solid rgba(42,38,33,0.15); border-radius: 4px;
    padding: 16px 10px; background: var(--cream-2); font-size: 15.5px; font-weight: 500; color: var(--ink-2);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bank-option:hover span { border-color: var(--gold); }
.bank-option input:checked + span { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); color: var(--green); }
.order-lines { border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; margin-bottom: 12px; }
.order-line { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--ink-2); padding: 7px 0; }

/* ---- Confirmation ---- */
.confirm { max-width: 620px; margin: 0 auto; padding: clamp(56px,9vw,120px) 28px; text-align: center; }
.confirm-check { width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: var(--btn-text); font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; }
.confirm h1 { font-size: clamp(40px,6vw,68px); margin: 0 0 20px; color: var(--ink); line-height: 1; }
.confirm p { font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--muted-2); margin: 0 auto 30px; max-width: 420px; }
.confirm-facts { display: inline-flex; gap: 38px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 4px; padding: 22px 34px; margin-bottom: 34px; text-align: left; }
.confirm-facts .k { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.confirm-facts .v { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--ink); }
.confirm-cta { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.confirm-cta a.link { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid rgba(42,38,33,0.25); padding-bottom: 3px; }
.confirm-cta a.link:hover { color: var(--green); }

/* ---- Auth (login / register) ---- */
.auth { max-width: 480px; margin: 0 auto; padding: clamp(40px,6vw,80px) 28px clamp(60px,8vw,100px); }
.auth-card { background: var(--cream-2); border: 1px solid var(--line); border-radius: 6px; padding: clamp(28px,4vw,42px); box-shadow: 0 30px 70px -40px rgba(42,38,33,0.35); }
.auth-title { font-size: clamp(30px,4vw,40px); color: var(--ink); margin: 8px 0 6px; line-height: 1.02; }
.auth-sub { font-size: 14px; font-weight: 300; color: var(--muted-2); margin-bottom: 26px; }
.auth-card .co-field { margin-bottom: 16px; }
.auth-card .btn { margin-top: 8px; }
.auth-error { background: rgba(176,86,62,0.10); color: var(--rose); padding: 11px 15px; border-radius: 3px; font-size: 13px; margin-bottom: 18px; }
.google-btn {
    display: flex; align-items: center; justify-content: center; gap: 11px;
    width: 100%; padding: 12px 16px; background: #fff;
    border: 1px solid rgba(42,38,33,0.18); border-radius: 3px;
    font-size: 13.5px; font-weight: 500; color: var(--ink-2); letter-spacing: 0.02em;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.google-btn:hover { border-color: rgba(42,38,33,0.35); box-shadow: 0 4px 14px -8px rgba(42,38,33,0.4); }
.google-g { flex: none; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--muted); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--green); font-weight: 500; margin-left: 4px; }
.auth-alt a:hover { color: var(--gold); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #B8B1A2; margin-top: 20px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: clamp(54px,7vw,86px) 28px 36px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(28px,4vw,52px); }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 28px; letter-spacing: 0.24em; color: #F0EADB; padding-left: 0.24em; }
.footer-cols p { font-size: 13.5px; font-weight: 300; line-height: 1.6; color: #8F887A; margin-top: 16px; max-width: 250px; }
.footer-cols h4 { font-family: 'Jost', sans-serif; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: #6F6A5E; margin-bottom: 16px; font-weight: 500; }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; font-weight: 300; color: #C4BDAF; }
.footer-links a:hover { color: #F0EADB; }
.footer-links a.dim { color: #8F887A; }
.footer-links a.dim:hover { color: var(--gold-2); }
.footer-news { display: flex; border-bottom: 1px solid #3A362E; padding-bottom: 9px; gap: 10px; }
.footer-news input { flex: 1; background: none; border: none; outline: none; font-size: 13.5px; color: #F0EADB; font-weight: 300; font-family: inherit; }
.footer-news button { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); }
.footer-news button:hover { color: #F0EADB; }
.footer-bottom { margin-top: clamp(40px,5vw,64px); padding-top: 24px; border-top: 1px solid #302C25; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #6F6A5E; }
.footer-bottom .social { display: flex; gap: 20px; align-items: center; }
.footer-bottom .social a:hover { color: #C4BDAF; }
.footer-bottom .social-icon { display: inline-flex; color: #8A8474; transition: color .2s ease; }
.footer-bottom .social-icon:hover { color: #C4BDAF; }
.footer-bottom .social-icon svg { display: block; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
    .hero, .pd-grid, .cart-grid, .co-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .main-nav { display: none; }
    .nav-burger { display: flex; }
    .header-inner { grid-template-columns: auto 1fr auto; height: 64px; }
    .brand { text-align: center; font-size: 23px; }
    /* On mobile the header keeps only the cart; everything else moves to the drawer. */
    .header-actions > a:not(.cart-link), .header-actions .lang, .header-actions .acc-name { display: none; }
    .header-actions .cart-link { font-size: 12px; }
    .product-grid, .product-grid.cols-3, .collection-grid { grid-template-columns: repeat(2, 1fr); }
    .service-inner { grid-template-columns: 1fr; gap: 30px; }
    .summary.sticky { position: static; }
}
@media (max-width: 520px) {
    .product-grid, .product-grid.cols-3, .collection-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .announce { font-size: 9.5px; letter-spacing: 0.14em; }
}

/* ---- Mobile nav: burger + drawer ---- */
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(34,30,26,0.42); backdrop-filter: blur(2px); }
.nav-drawer-panel {
    position: absolute; top: 0; left: 0; height: 100%; width: min(320px, 82%);
    background: var(--cream); box-shadow: 0 0 60px rgba(42,38,33,0.35);
    padding: 68px 30px 30px; display: flex; flex-direction: column;
    transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-close { position: absolute; top: 20px; right: 22px; background: none; border: none; font-size: 20px; color: var(--muted-2); cursor: pointer; }
.nav-drawer-links { display: flex; flex-direction: column; gap: 4px; }
.nav-drawer-links a { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--ink); padding: 8px 0; }
.nav-drawer-links a:hover { color: var(--gold); }
.nav-drawer-sep { height: 1px; background: var(--line); margin: 14px 0; }
.nav-drawer-lang { margin-top: auto; display: flex; gap: 16px; font-size: 12px; letter-spacing: 0.14em; padding-top: 20px; border-top: 1px solid var(--line); }
.nav-drawer-lang a { color: var(--muted); }
.nav-drawer-lang a.on { color: var(--green); font-weight: 500; }
body.drawer-open { overflow: hidden; }

/* ---- Reviews (product page) ---- */
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.reviews-avg { display: flex; align-items: center; gap: 12px; }
.reviews-avg-num { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--green); line-height: 1; }
.reviews-avg-stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.reviews-avg-stars .dim { color: rgba(42,38,33,0.2); }
.reviews-avg-count { font-size: 12px; color: var(--muted); }
.review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 8px; }
.review { background: var(--cream-2); border: 1px solid var(--line); border-radius: 5px; padding: 20px 22px; }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-author { font-weight: 500; color: var(--ink); }
.review-stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.review-text { font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--muted-2); }
.review-date { font-size: 11px; color: var(--muted); margin-top: 10px; letter-spacing: 0.04em; }
.pd-metarow a.rating { color: var(--gold); border-bottom: 1px solid transparent; }
.pd-metarow a.rating:hover { border-color: var(--gold); }
@media (max-width: 640px) { .review-list { grid-template-columns: 1fr; } }

/* ---- Account page ---- */
.acc-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px,4vw,48px); align-items: start; }
.acc-card { background: var(--cream-2); border: 1px solid var(--line); border-radius: 6px; padding: 26px; position: sticky; top: 96px; }
.acc-field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; }
.acc-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.acc-links { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.acc-links a { color: var(--green); font-weight: 500; font-size: 14px; }
.acc-links a:hover { color: var(--gold); }
.acc-h2 { font-size: clamp(24px,3vw,32px); color: var(--ink); margin-bottom: 20px; }
.acc-order { background: var(--cream-2); border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px; margin-bottom: 14px; }
.acc-order-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acc-order-no { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--ink); }
.acc-order-date { color: var(--muted); font-size: 13px; }
.acc-order-total { margin-left: auto; color: var(--green); font-weight: 500; }
.acc-order-items { font-size: 13px; color: var(--muted-2); font-weight: 300; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.acc-order-deliver { font-size: 12px; color: var(--muted); margin-top: 8px; }
@media (max-width: 720px) { .acc-grid { grid-template-columns: 1fr; } .acc-card { position: static; } }

/* ---- Cookie notice ---- */
.cookie-bar {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    z-index: 130; display: flex; align-items: center; gap: 18px;
    max-width: min(680px, calc(100% - 32px));
    background: var(--ink); color: #EDE8DB;
    padding: 14px 18px; border-radius: 4px;
    box-shadow: 0 18px 44px -16px rgba(0,0,0,0.5);
    font-size: 13px; font-weight: 300; line-height: 1.5;
}
.cookie-bar .cookie-text a { color: var(--gold-2); border-bottom: 1px solid rgba(201,168,126,0.5); }
.cookie-bar .cookie-text a:hover { color: #F0EADB; }
.cookie-bar .btn { flex: none; padding: 10px 20px; }
@media (max-width: 560px) {
    .cookie-bar {
        left: 0; right: 0; bottom: 0; transform: none;
        max-width: none; border-radius: 0;
        flex-direction: row; align-items: center; text-align: left;
        gap: 12px; padding: 10px 14px; font-size: 12px; line-height: 1.4;
    }
    .cookie-bar .btn { padding: 9px 16px; }
}

.terms-body { font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--muted-2); }

/* ---- Visitor feedback form ---- */
.fb-wrap { margin-top: 34px; }
.fb-form {
    max-width: 520px; margin: 22px auto 0; text-align: left;
    background: var(--cream-2); border: 1px solid var(--line); border-radius: 6px;
    padding: 24px; box-shadow: 0 24px 54px -34px rgba(42,38,33,0.35);
}
.fb-title { font-size: 22px; color: var(--ink); margin-bottom: 16px; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.fb-form .co-field { margin-bottom: 14px; }
.fb-form .co-field label { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; margin-bottom: 8px; display: block; }
.fb-hp { position: absolute; left: -9999px; top: -9999px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 6px; padding-top: 2px; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
/* Doubled selectors out-rank the generic `.fb-form .co-field label` styles
   (13px uppercase) that were shrinking and greying the stars. */
.star-pick label,
.fb-form .co-field .star-pick label {
    font-size: 34px; line-height: 1; margin: 0; display: inline-block;
    color: rgba(42,38,33,0.25); cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}
.star-pick input:checked ~ label,
.star-pick label:hover, .star-pick label:hover ~ label,
.fb-form .co-field .star-pick input:checked ~ label,
.fb-form .co-field .star-pick label:hover,
.fb-form .co-field .star-pick label:hover ~ label { color: #D9A441; }
.star-pick label:hover { transform: scale(1.1); }
@media (max-width: 520px) { .fb-row { grid-template-columns: 1fr; } }

body.has-cookie-bar { padding-bottom: 92px; }
@media (max-width:560px){ body.has-cookie-bar { padding-bottom: 132px; } }

/* Burger visibility must come after the base .nav-burger rule to win source order. */
@media (max-width: 820px) {
    .nav-burger { display: flex; }
}

/* ---- Wishlist ---- */
.header-actions .saved-link { color: var(--rose); font-weight: 500; letter-spacing: 0.05em; }
.header-actions .saved-link:hover { color: var(--gold); }
.wish.on { color: var(--rose); }
.wish { transition: transform .18s ease, color .18s ease; }
.wish:active { transform: scale(0.85); }
@media (max-width: 820px) { .header-actions .saved-link { display: none; } }

/* ---- Checkout readability ---- */
.co-fields { gap: 18px 16px; }
.co-step { margin-bottom: 40px; }
.field-input::placeholder { color: #A89F8F; opacity: 1; }

.acc-form .co-field { margin-bottom: 14px; }
.acc-form .field-input:disabled { color: var(--muted); background: var(--cream-3); }

/* ---- Account avatar ---- */
.acc-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
    padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.acc-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none;
    border: 1px solid var(--line); }
.acc-avatar-initial { display: inline-flex; align-items: center; justify-content: center;
    background: var(--green); color: var(--btn-text); font-family: 'Cormorant Garamond', serif;
    font-size: 30px; }
.acc-avatar-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.acc-avatar-remove { color: var(--rose); }
.acc-avatar-hint { font-size: 12px; }
.acc-name { display: inline-flex; align-items: center; gap: 8px; }
.acc-name-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.acc-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.acc-tab { padding: 0 2px 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.acc-tab.on { color: var(--green); border-bottom-color: var(--green); }
.acc-tab:hover { color: var(--green); }
.acc-order-actions { margin-top: 10px; }
.addr-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.addr-card:last-of-type { border-bottom: none; }

/* ---- Checkout: account options ---- */
.co-guest-note { font-size: 13.5px; color: var(--muted-2); margin: -6px 0 18px; }
.co-save-details { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted-2); cursor: pointer; }
.co-save-details input { width: 15px; height: 15px; accent-color: var(--green); flex: none; }

/* ---- Dropdown calendar (datepicker.js) ---- */
.dp-pop { position: absolute; z-index: 1000; width: 254px; padding: 12px;
    background: var(--cream-2); border: 1px solid var(--line); border-radius: 4px;
    box-shadow: 0 14px 34px -14px rgba(42,38,33,.35); font-family: inherit; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font-weight: 500; font-size: 14px; color: var(--ink); text-transform: capitalize; }
.dp-nav { border: none; background: none; cursor: pointer; font: inherit; font-size: 18px;
    line-height: 1; padding: 4px 9px; border-radius: 3px; color: var(--ink); }
.dp-nav:hover { background: var(--cream-3); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: 10px; font-weight: 500; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 0; }
.dp-day { border: none; background: none; cursor: pointer; font: inherit; font-size: 13px;
    text-align: center; padding: 5px 0; border-radius: 3px; color: var(--ink-2); }
.dp-day:hover { background: var(--cream-3); }
.dp-day.other { color: #c2bcae; }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--gold); }
.dp-day.sel { background: var(--green); color: var(--btn-text); }
.dp-day.off { color: #d5cfc2; cursor: default; }
.dp-day.off:hover { background: none; }
