:root {
  --brown-950: #1f1107;
  --brown-900: #2a1709;
  --brown-800: #3b2314;
  --brown-700: #4e301c;
  --brown-600: #6b4428;
  --gold: #ffc62a;
  --gold-600: #f0b000;
  --gold-soft: #ffe08a;
  --cream: #fff8e6;
  --paper: #fffdf7;
  --ink: #2a1709;
  --muted: #7a5c45;
  --line: #ead9b8;
  --ok: #2f8a4b;
  --warn: #c97a00;
  --bad: #b8382e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 23, 9, .12);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-script: 'Yellowtail', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3, .head {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 0 0 .4em;
}
.script { font-family: var(--font-script); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em;
  border: 2px solid var(--brown-900);
  border-radius: 999px;
  background: var(--gold);
  color: var(--brown-900);
  font-family: var(--font-head);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--brown-900);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { background: var(--gold-soft); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--brown-900); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.dark { background: var(--brown-900); color: var(--gold); border-color: var(--gold); box-shadow: 3px 3px 0 var(--gold); }
.btn.dark:hover { background: var(--brown-700); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 198, 42, .2); }
.btn.small { padding: .45em .9em; font-size: .85rem; box-shadow: 2px 2px 0 var(--brown-900); }
.btn.block { width: 100%; }
.btn.danger { background: #fbe3e0; color: var(--bad); border-color: var(--bad); box-shadow: 2px 2px 0 var(--bad); }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3em; }
.input, input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%;
  padding: .7em .9em;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 3px rgba(255, 198, 42, .3); }
textarea { resize: vertical; min-height: 90px; }
.field { margin-bottom: 1rem; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* ---------- announcement & header ---------- */
.announce {
  background: var(--gold);
  color: var(--brown-900);
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  padding: .5em 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--brown-900);
  border-bottom: 3px solid var(--gold);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; height: 76px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .5em .9em;
  border-radius: 999px;
}
.nav a:hover, .nav a.active { color: var(--gold); }
.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .4em;
  background: var(--gold);
  color: var(--brown-900);
  border: 0; border-radius: 999px;
  padding: .55em 1em;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer;
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--brown-900); color: var(--gold);
  border-radius: 999px; font-size: .78rem; font-family: var(--font-body); font-weight: 700;
}
.menu-btn { display: none; background: none; border: 0; color: var(--gold); cursor: pointer; padding: .4em; }
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 760px) {
  .site-header .wrap { height: 64px; }
  .brand img { height: 44px; }
  .menu-btn { display: block; margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--brown-900);
    border-bottom: 3px solid var(--gold);
    padding: .5rem 16px 1rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8em .2em; border-radius: 0; border-bottom: 1px solid var(--brown-700); }
  .cart-btn .label { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 198, 42, .18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 198, 42, .12), transparent 40%),
    var(--brown-800);
  color: var(--cream);
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero-logo { width: min(560px, 100%); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); }
.hero p.lead { font-size: 1.2rem; max-width: 34ch; color: var(--gold-soft); margin: 1.2rem 0 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-glasses { position: relative; height: 440px; }
.hero-glasses img {
  position: absolute; width: 52%; border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
  border: 3px solid var(--gold);
  background: #fff;
}
.hero-glasses img:nth-child(1) { left: 0; top: 30px; transform: rotate(-7deg); }
.hero-glasses img:nth-child(2) { right: 0; top: 0; transform: rotate(6deg); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-glasses { height: 340px; max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---------- sections ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.section-head .script { color: var(--gold-600); font-size: 1.6rem; display: block; margin-bottom: -.2em; }
.band { background: var(--brown-900); color: var(--cream); }
.band .section-head .script { color: var(--gold); }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
  border: 2px solid var(--brown-900); background: transparent; color: var(--brown-900);
  border-radius: 999px; padding: .4em 1em; cursor: pointer;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem;
}
.chip.active, .chip:hover { background: var(--brown-900); color: var(--gold); }

/* ---------- product cards ---------- */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--brown-900);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 5px 5px 0 var(--brown-900);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--brown-900); }
.card .img { aspect-ratio: 4 / 5; background: #fff; overflow: hidden; border-bottom: 2px solid var(--brown-900); }
.card .img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .img img { transform: scale(1.04); }
.card .img { position: relative; }
.card .img .back { position: absolute; inset: 0; opacity: 0; transition: opacity .25s, transform .3s; }
.card:hover .img.flip .back, .card:focus-visible .img.flip .back { opacity: 1; }
.card .sides { position: absolute; right: 10px; bottom: 10px; background: rgba(42, 23, 9, .85); color: var(--gold); font-size: .7rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; }
.card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.card .collection { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.card h3 { font-size: 1.3rem; margin: 0; }
.card .foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-family: var(--font-head); font-size: 1.35rem; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--brown-900); color: var(--gold);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem;
  padding: .3em .7em; border-radius: 999px;
}
.badge.out { background: var(--bad); color: #fff; }
.badge.low { background: var(--gold); color: var(--brown-900); border: 2px solid var(--brown-900); }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.product .gallery { position: sticky; top: 100px; display: grid; gap: .9rem; }
.product .photo {
  background: #fff; border: 2px solid var(--brown-900); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--brown-900); overflow: hidden;
}
.thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.thumb { width: 72px; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.thumb:hover { border-color: var(--gold-600); }
.thumb[aria-pressed="true"] { border-color: var(--brown-900); box-shadow: 2px 2px 0 var(--brown-900); }
.product .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.product h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.product .price { font-size: 2rem; }
.product .desc { font-size: 1.05rem; color: #4a3424; margin: 1rem 0 1.5rem; }
.stock-note { font-weight: 600; font-size: .9rem; margin: .3rem 0 1rem; }
.stock-note.ok { color: var(--ok); }
.stock-note.low { color: var(--warn); }
.stock-note.out { color: var(--bad); }
.buy-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--brown-900); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; }
.qty button:hover { background: var(--gold-soft); }
.qty input { width: 44px; border: 0; text-align: center; padding: 0; height: 44px; border-radius: 0; font-weight: 700; }
.qty input:focus { box-shadow: none; }
.perks { display: grid; gap: .6rem; margin-top: 2rem; padding: 1.2rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.perks div { display: flex; gap: .7rem; align-items: center; font-size: .95rem; }
.perks svg { width: 22px; height: 22px; flex: none; color: var(--gold-600); }
.back-link { display: inline-block; margin-bottom: 1.2rem; color: var(--muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--ink); }
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .product .gallery { position: static; }
}

/* ---------- how it works ---------- */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { padding: 1.5rem; border: 2px solid var(--gold); border-radius: var(--radius); background: var(--brown-800); }
.step .n { font-family: var(--font-script); color: var(--gold); font-size: 2.6rem; line-height: 1; }
.step h3 { color: var(--gold); margin-top: .4rem; }
.step p { margin: 0; color: #f1e3c5; }

/* ---------- cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(31, 17, 7, .55); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(420px, 100%);
  background: var(--cream);
  border-left: 3px solid var(--brown-900);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; background: var(--brown-900); color: var(--gold); }
.drawer-head h2 { margin: 0; font-size: 1.4rem; }
.icon-btn { background: none; border: 0; cursor: pointer; color: inherit; padding: .3em; display: inline-grid; place-items: center; }
.icon-btn svg { width: 24px; height: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.drawer-foot { padding: 1rem 1.2rem 1.4rem; border-top: 2px solid var(--line); background: var(--paper); }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 64px; height: 80px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.line-item .name { font-weight: 700; line-height: 1.25; }
.line-item .meta { font-size: .85rem; color: var(--muted); }
.line-item .qty button { width: 30px; height: 32px; font-size: 1rem; }
.line-item .qty input { width: 32px; height: 32px; }
.remove { background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; margin-top: .3rem; }
.totals { display: grid; gap: .35rem; margin-bottom: 1rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--font-head); font-size: 1.3rem; padding-top: .4rem; border-top: 2px solid var(--brown-900); margin-top: .3rem; }
.ship-hint { font-size: .85rem; background: var(--gold-soft); border-radius: 10px; padding: .6em .8em; margin-bottom: .8rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.empty .script { font-size: 2rem; color: var(--brown-700); display: block; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 2rem; align-items: start; }
.panel { background: var(--paper); border: 2px solid var(--brown-900); border-radius: var(--radius); padding: 1.5rem; box-shadow: 5px 5px 0 var(--brown-900); }
.panel h2 { font-size: 1.4rem; }
.panel + .panel { margin-top: 1.5rem; }
.summary { position: sticky; top: 100px; }
.toggle { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
.toggle label {
  display: flex; gap: .7rem; align-items: flex-start;
  border: 2px solid var(--line); border-radius: 12px; padding: .9rem 1rem; cursor: pointer; font-weight: 400; margin: 0;
  background: #fff;
}
.toggle label:has(input:checked) { border-color: var(--brown-900); background: var(--gold-soft); }
.toggle input { margin-top: .25rem; accent-color: var(--brown-900); }
.toggle strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.toggle small { color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); background: var(--cream); border-left: 4px solid var(--gold); padding: .7em 1em; border-radius: 0 10px 10px 0; }
.error { background: #fbe3e0; color: var(--bad); border: 2px solid var(--bad); padding: .7em 1em; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }
@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
}

/* ---------- order status ---------- */
.status-hero { text-align: center; margin-bottom: 2rem; }
.status-hero .script { font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--brown-700); display: block; }
.order-no { display: inline-block; font-family: var(--font-head); font-size: 1.4rem; letter-spacing: .1em; background: var(--brown-900); color: var(--gold); padding: .2em .8em; border-radius: 8px; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); margin: 2rem 0 1rem; position: relative; }
.progress::before { content: ''; position: absolute; top: 17px; left: 12.5%; right: 12.5%; height: 4px; background: var(--line); }
.progress .bar { position: absolute; top: 17px; left: 12.5%; height: 4px; background: var(--brown-900); transition: width .4s; }
.progress .p { text-align: center; position: relative; font-size: .85rem; font-weight: 600; color: var(--muted); }
.progress .dot { width: 38px; height: 38px; margin: 0 auto .4rem; border-radius: 50%; border: 3px solid var(--line); background: #fff; display: grid; place-items: center; font-family: var(--font-head); }
.progress .p.done { color: var(--ink); }
.progress .p.done .dot { background: var(--gold); border-color: var(--brown-900); }

/* ---------- footer ---------- */
.site-footer { background: var(--brown-950); color: #d9c6a3; padding: 48px 0 28px; border-top: 3px solid var(--gold); }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: 1.2fr 1fr 1fr; }
.site-footer img { height: 90px; width: auto; }
.site-footer h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 0 0 .6rem; }
.site-footer a { color: #f1e3c5; text-decoration: none; display: block; padding: .15em 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--brown-700); padding-top: 1.2rem; font-size: .8rem; color: #a38a69; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 150%);
  background: var(--brown-900); color: var(--gold);
  border: 2px solid var(--gold); border-radius: 999px;
  padding: .7em 1.4em; font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .25s;
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

.loading { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.spinner { width: 36px; height: 36px; border: 4px solid var(--line); border-top-color: var(--brown-900); border-radius: 50%; margin: 0 auto 1rem; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.toast { visibility: hidden; }
.toast.show { visibility: visible; }
.totals .ship-hint { display: block; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .card .body { padding: .7rem .75rem .9rem; }
  .card h3 { font-size: 1rem; }
  .card .collection { font-size: .65rem; }
  .card .price { font-size: 1.1rem; }
  .card .badge { font-size: .62rem; top: 8px; left: 8px; }
}

/* Featured row: center a short lineup instead of leaving the right side empty */
.grid-feature { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; }
@media (max-width: 560px) { .grid-feature { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .hero-glasses { width: 86%; } }

.policies { max-width: 760px; }
.policy { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.policy h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.policy p { margin: 0; color: #4a3424; }
.policies .note { margin-top: 1.5rem; }

/* Venmo pay box on the order page */
.venmo-box { border: 2px solid var(--brown-900); border-radius: var(--radius); background: #eef6ff; padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; display: grid; gap: .8rem; }
.venmo-top { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.venmo-top > div { flex: 1 1 260px; min-width: 0; }
.venmo-top strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 1.2rem; }
.venmo-top p { margin: .2rem 0 0; color: #3a4a5c; }
.venmo-btn { background: #008cff; color: #fff; border-color: #00447c; box-shadow: 3px 3px 0 #00447c; }
.venmo-btn:hover { background: #3aa6ff; }
.venmo-manual, .venmo-other { margin: 0; font-size: .9rem; color: #3a4a5c; }
.venmo-manual .btn { margin-left: .3rem; vertical-align: middle; }
