/* Halcyon Eyewear — sunglasses (fictional demo shop)
   BATCH FORMAT: full-bleed zoom/lightbox product photography + gift-wrap
   checkout. Same centerpiece as Ora Lane / Solace Timepieces / Marlowe & Fen,
   different palette/type/copy. Bold near-black editorial theme + sunset
   coral-orange accent, fashion-editorial serif display type. */

:root {
  --bg: #100e10;
  --bg-2: #1c171a;
  --panel: #171315;
  --line: #2e2528;
  --ink: #f5efe9;
  --muted: #a3948d;
  --gold: #e8623f;
  --gold-ink: #f27e5c;
  --bronze: #d64f8a;
  --danger: #e5646a;
  --r: 4px;
  --wrap: 1200px;
  --display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --sans: "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0; }

.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 13.5px; letter-spacing: .03em; padding: 14px 30px; border-radius: 2px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn-accent { background: var(--gold); color: #17090a; }
.btn-accent:hover { transform: translateY(-2px); background: var(--gold-ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(16,14,16,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.cart-btn { position: relative; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; display: flex; }
.cart-badge { position: absolute; top: -2px; right: -2px; background: var(--gold); color: #17090a; font-size: 10.5px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 2px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.announce { background: var(--gold); color: #17090a; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 9px; }

.hero { position: relative; height: 82vh; min-height: 540px; display: flex; align-items: center; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,14,16,.96) 0%, rgba(16,14,16,.68) 55%, rgba(16,14,16,.14) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 600px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); }
.hero h1 em { font-style: italic; color: var(--gold-ink); }
.hero-lead { font-size: 16px; color: var(--muted); max-width: 44ch; margin: 20px 0 28px; }

section { padding: 78px 0; }
.sec-head { text-align: center; max-width: 46ch; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(28px, 3.8vw, 40px); }
.sec-head h2 em { font-style: italic; color: var(--gold-ink); }
.sec-head p { color: var(--muted); margin: 12px 0 0; font-size: 14px; }

.value-strip { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; padding: 18px 0; }
.value-row span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.value-row b { color: var(--gold-ink); }

/* ---------- Editorial portrait grid (layout variety vs. earlier square grids) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--panel); cursor: pointer; }
.card-media { position: relative; aspect-ratio: 4/5; background: var(--bg-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.045); }
.zoom-hint { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(16,14,16,.85); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.card:hover .zoom-hint { opacity: 1; transform: none; }
.zoom-hint svg { width: 16px; height: 16px; color: var(--ink); }
.card-body { padding: 16px 2px; text-align: center; }
.card-body h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; letter-spacing: .01em; }
.card-body .price { font-family: var(--sans); color: var(--gold-ink); font-size: 14px; font-weight: 700; }

.lifestyle img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }

/* ---------- Full-bleed zoom lightbox (centerpiece) ---------- */
.overlay-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.78); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.overlay-scrim.open { opacity: 1; pointer-events: auto; }

.lightbox { position: fixed; inset: 16px; z-index: 101; background: var(--panel); opacity: 0; pointer-events: none; transform: scale(.98); transition: opacity .3s ease, transform .3s ease; overflow: hidden; }
.lightbox.open { opacity: 1; pointer-events: auto; transform: none; }
.lb-inner { display: grid; grid-template-columns: 1.3fr 1fr; height: 100%; }
.lb-image-wrap { position: relative; background: var(--bg-2); overflow: hidden; cursor: zoom-in; }
.lb-image-wrap img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; transition: transform .12s ease-out; will-change: transform; }
.lb-image-wrap.zoomed img { cursor: zoom-out; }
.lb-zoom-tag { position: absolute; left: 20px; bottom: 20px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.6); padding: 7px 13px; border-radius: 100px; pointer-events: none; }
.lb-body { padding: 44px 40px; overflow-y: auto; position: relative; display: flex; flex-direction: column; }
.lb-close { position: absolute; top: 20px; right: 20px; background: none; border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; color: var(--ink); cursor: pointer; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { background: var(--bg-2); }
.lb-body h3 { font-size: 27px; margin: 6px 40px 8px 0; }
.lb-price { font-family: var(--sans); font-size: 19px; font-weight: 700; color: var(--gold-ink); margin-bottom: 16px; }
.lb-desc { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }

.variant-row { margin-bottom: 20px; }
.variant-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt { border: 1px solid var(--line); background: var(--panel); border-radius: 100px; padding: 8px 16px; font-size: 13px; cursor: pointer; transition: all .15s; color: var(--ink); }
.variant-opt:hover { border-color: var(--gold); }
.variant-opt.selected { background: var(--gold); border-color: var(--gold); color: #17090a; }

.engrave-row { margin-bottom: 20px; }
.engrave-row input { width: 100%; font: inherit; font-size: 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--ink); }
.engrave-row input:focus { outline: none; border-color: var(--gold); }
.engrave-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.qty-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; }
.qty-stepper button { width: 36px; height: 36px; background: none; border: 0; color: var(--ink); font-size: 16px; cursor: pointer; }
.qty-stepper span { min-width: 30px; text-align: center; font-weight: 700; }

.lb-foot { margin-top: auto; }

.site-footer { background: #0a0809; color: #8f8280; padding: 56px 0 28px; border-top: 1px solid var(--line); }
.foot-top { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid #2a2224; }
.foot-brand { max-width: 30ch; } .foot-brand .brand { margin-bottom: 12px; color: #fff; } .foot-brand p { color: #6e6260; font-size: 13.5px; margin: 0; }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-col h5 { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #e8623f; margin: 0 0 12px; }
.foot-col a { display: block; color: #6e6260; font-size: 13.5px; margin-bottom: 9px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { padding-top: 18px; font-size: 12px; color: #4a413f; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--panel); border-left: 1px solid var(--line); z-index: 101; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.cart-drawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 18px; }
.cart-close { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }
.cart-close:hover { color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-empty { color: var(--muted); text-align: center; padding: 60px 20px; font-size: 14px; }
.cart-line { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 60px; height: 60px; object-fit: cover; background: var(--bg-2); }
.cart-line .cl-name { font-size: 14px; font-weight: 600; }
.cart-line .cl-variant { font-size: 12px; color: var(--gold-ink); margin-top: 2px; font-weight: 600; }
.cart-line .cl-price { font-family: var(--sans); color: var(--ink); font-size: 14px; margin-top: 8px; }
.cart-line .cl-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line .qty-stepper button { width: 26px; height: 26px; font-size: 13px; }
.cart-line .remove-btn { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.cart-line .remove-btn:hover { color: var(--danger); }
.cart-foot { padding: 22px 24px; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.cart-subtotal b { color: var(--gold-ink); }

.checkout { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-48%); width: min(720px, calc(100% - 32px)); max-height: 88vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); z-index: 102; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.checkout.open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%); }
.checkout-inner { padding: 36px; position: relative; }
.checkout-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 22px; }
.checkout-close:hover { color: var(--ink); }
.steps-track { display: flex; gap: 8px; margin-bottom: 30px; }
.steps-track span { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-track span::after { content: ""; display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s ease; }
.steps-track span.done::after, .steps-track span.active::after { width: 100%; }
.co-step { display: none; }
.co-step.active { display: block; }
.co-step h3 { font-size: 22px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-error { font-size: 12px; color: var(--danger); margin-top: 6px; display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .field-error { display: block; }
.co-actions { display: flex; gap: 12px; margin-top: 26px; }
.demo-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; }
.review-list { border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px; margin-bottom: 14px; }
.review-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.review-line:last-child { border-bottom: 0; }
.upsell-row { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px; font-size: 13.5px; }
.upsell-row input { accent-color: var(--gold); width: 16px; height: 16px; }
.upsell-row b { color: var(--gold-ink); }
.review-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; padding-top: 14px; }
.review-total b { color: var(--gold-ink); }
.confirm { text-align: center; padding: 20px 0; }
.confirm .check { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: #17090a; display: grid; place-items: center; margin: 0 auto 20px; font-size: 30px; font-weight: 800; }
.confirm h3 { font-size: 26px; margin-bottom: 10px; }
.confirm .order-no { font-family: var(--sans); color: var(--gold-ink); font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.confirm p { color: var(--muted); max-width: 40ch; margin: 0 auto 24px; }

html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox { inset: 0; }
  .lb-inner { grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; }
  .lb-body { padding: 26px 22px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; gap: 4px; padding: 16px 24px 22px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 59; }
  .nav-links.open a { padding: 10px 0; font-size: 13px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .checkout-inner { padding: 22px; }
}
