/* Gramz Miami storefront.
   One family (Archivo) across its width axis: expanded = brand voice,
   normal = reading, condensed = label data. No third-party requests. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}

:root {
  --bay: #E7ECEA;          /* overcast Biscayne Bay — page */
  --paper: #FFFFFF;
  --ink: #0B2B2E;          /* Biscayne at night */
  --ink-2: #3C5558;
  --poinciana: #D93A17;    /* royal poinciana bloom — the one accent */
  --poinciana-ink: #B82C0E; /* same hue, dark enough for small text on --bay (AA) */
  --sun: #FFD84A;          /* swap-shop price sticker */
  --twill: #F6F3EA;        /* woven-label cloth */
  --rule: #B4C2BF;
  --ok: #0A6B45; --err: #A3200B;
  --r: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bay); color: var(--ink); font: 400 1rem/1.55 "Archivo", system-ui, sans-serif; font-stretch: 100%; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.02; font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 2rem); }
h3 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--poinciana); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* condensed "label" voice */
.tag, .eyebrow, .meta { font-stretch: 68%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.86rem; }
.meta { color: var(--ink-2); }

/* ---------- announcement + header ---------- */
.strip { background: var(--ink); color: #fff; font-stretch: 68%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; text-align: center; padding: 8px var(--gutter); }
.testbar { background: var(--sun); color: var(--ink); text-align: center; padding: 8px var(--gutter); font-weight: 700; }
.header { position: sticky; top: 0; z-index: 40; background: var(--bay); border-bottom: 2px solid var(--ink); }
.header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.wordmark { font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(1.05rem, 3.4vw, 1.45rem); text-decoration: none; line-height: 1; margin-right: auto; }
.wordmark span { color: var(--poinciana-ink); }
.nav { display: flex; gap: clamp(12px, 2.4vw, 28px); }
.nav a { font-stretch: 68%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--poinciana); }
.cartbtn { font: inherit; font-stretch: 68%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: var(--ink); color: #fff; border: 0; border-radius: var(--r); padding: 10px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.cartbtn .count { background: var(--sun); color: var(--ink); border-radius: 99px; min-width: 22px; padding: 0 6px; text-align: center; font-stretch: 100%; }
@media (max-width: 640px) { .nav .opt { display: none; } }

/* ---------- buttons + forms ---------- */
.btn { font: inherit; font-stretch: 100%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: #123f43; }
.btn-accent { background: var(--poinciana); border-color: var(--poinciana); }
.btn-accent:hover { background: #bd3013; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(11, 43, 46, 0.07); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
label, legend { font-weight: 700; font-size: 0.95rem; }
.field { margin: 0 0 16px; }
.field label { display: block; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--ink-2); font-size: 0.92rem; }
input[type=text], input[type=email], input[type=tel], select, textarea { font: inherit; width: 100%; min-height: 50px; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 2px solid var(--ink-2); border-radius: var(--r); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-weight: 600; font-size: 0.92rem; margin: 6px 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.notice { border: 2px solid var(--ink); border-left-width: 10px; background: var(--paper); padding: 14px 16px; border-radius: var(--r); margin: 0 0 20px; }
.notice-err { border-color: var(--err); }
.notice-sun { background: var(--sun); }

/* ---------- home ---------- */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(20px, 4vw, 40px); border-bottom: 2px solid var(--ink); }
.hero h1 { font-size: clamp(2.8rem, 13.2vw, 10.5rem); font-weight: 900; letter-spacing: -0.045em; line-height: 0.86; }
.hero h1 span { display: block; }
.hero h1 .mia { color: var(--poinciana); }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(16px, 3vw, 32px); align-items: end; }
.hero-foot p { margin: 0; max-width: 46ch; font-size: 1.1rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.facts li { border: 2px solid var(--ink); border-radius: 99px; padding: 5px 14px; }
.section { padding-block: clamp(28px, 5vw, 56px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.filters a { display: block; text-decoration: none; border: 2px solid var(--ink); border-radius: 99px; padding: 6px 16px; }
.filters a[aria-current="page"] { background: var(--ink); color: #fff; }

.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 2vw, 24px); list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .products { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4 / 5; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-name { margin-top: 12px; font-stretch: 112%; font-weight: 700; font-size: 1rem; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.card-name a { text-decoration: none; }
.card-name a::after { content: ""; position: absolute; inset: 0; }
.card-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.soldout { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; padding: 3px 10px; border-radius: 2px; }
.empty { border: 2px dashed var(--ink-2); border-radius: var(--r); padding: clamp(24px, 6vw, 64px); text-align: center; }

/* ---------- product page ---------- */
.pdp { display: grid; gap: clamp(20px, 4vw, 56px); padding-block: clamp(16px, 3vw, 40px) 56px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .pdp-info { position: sticky; top: 88px; } }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0 0 8px; }
.gallery li { scroll-snap-align: start; aspect-ratio: 4 / 5; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery li[hidden] { display: none; }
.gallery li { position: relative; }
.render-note { margin: 6px 0 14px; max-width: 46ch; }
@media (min-width: 900px) { .gallery { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; } .gallery li:first-child { grid-column: 1 / -1; } }
.pdp h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.pdp-price { font-size: 1.5rem; font-weight: 800; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.opt-group { margin: 22px 0 0; }
.opt-group legend { margin-bottom: 8px; }
.opt-group legend b { font-weight: 400; color: var(--ink-2); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts label { display: inline-flex; align-items: center; gap: 8px; min-width: 56px; min-height: 48px; justify-content: center; padding: 8px 14px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper); cursor: pointer; font-weight: 700; }
.opts input:checked + label { background: var(--ink); color: #fff; }
.opts input:focus-visible + label { outline: 3px solid var(--poinciana); outline-offset: 3px; }
.opts input:disabled + label { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; border-style: dashed; }
.opts .sw { border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.35); }
.stock { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.stock.low { color: var(--err); }
.buy { margin-top: 12px; }
.assure { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; color: var(--ink-2); }
.assure li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.prose { max-width: 62ch; }
.prose h2 { margin: 1.6em 0 0.5em; }
.prose h3 { margin: 1.4em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0.3em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.details { margin-top: 28px; border-top: 2px solid var(--ink); }
.details details { border-bottom: 2px solid var(--ink); }
.details summary { cursor: pointer; padding: 14px 0; font-stretch: 112%; font-weight: 800; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: "+"; font-weight: 400; }
.details details[open] summary::after { content: "–"; }
.details .body { padding: 0 0 16px; }

/* THE SIGNATURE — the sewn-in label. Origin, fiber content and care are the
   things the FTC requires on every listing; here they are the brand. */
.sewn { margin: 28px 0 0; max-width: 340px; background: var(--twill);
  background-image: repeating-linear-gradient(45deg, rgba(11, 43, 46, 0.045) 0 2px, transparent 2px 5px);
  color: var(--ink); text-align: center; padding: 22px 20px; position: relative;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18), 0 8px 18px -12px rgba(11, 43, 46, 0.5); }
.sewn::before, .sewn::after { content: ""; position: absolute; left: 10px; right: 10px; border-top: 2px dashed var(--poinciana); }
.sewn::before { top: 8px; } .sewn::after { bottom: 8px; }
.sewn-brand { font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; font-size: 1.15rem; }
.sewn-size { font-stretch: 125%; font-weight: 900; font-size: 2.6rem; line-height: 1; margin: 8px 0; min-height: 1em; }
.sewn dl { margin: 0; font-stretch: 68%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; line-height: 1.45; }
.sewn dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sewn dd { margin: 0; }
.sewn dd + dt + dd { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) { .sewn-size.swap { animation: stamp 0.22s ease-out; } }
@keyframes stamp { from { transform: scale(1.18); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* ---------- cart drawer + cart page ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); background: var(--bay); border-left: 2px solid var(--ink); z-index: 60; display: flex; flex-direction: column; transform: translateX(102%); visibility: hidden; transition: transform 0.25s ease, visibility 0s 0.25s; }
.drawer.open { transform: none; visibility: visible; transition: transform 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .drawer, .card-img img { transition: none; } html { scroll-behavior: auto; } }
.scrim { position: fixed; inset: 0; background: rgba(11, 43, 46, 0.55); z-index: 50; }
.scrim[hidden] { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 2px solid var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 2px solid var(--ink); background: var(--paper); }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.line-img { width: 72px; aspect-ratio: 4 / 5; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-weight: 700; line-height: 1.25; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--r); margin-top: 8px; background: var(--paper); }
.qty button { font: inherit; font-weight: 800; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.sumrow { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-variant-numeric: tabular-nums; }
.sumrow.total { font-weight: 800; font-size: 1.2rem; border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; }
.fine { font-size: 0.9rem; color: var(--ink-2); margin: 10px 0 0; }

/* ---------- checkout ---------- */
.co { display: grid; gap: clamp(20px, 4vw, 48px); padding-block: clamp(20px, 3vw, 40px) 64px; }
@media (min-width: 940px) { .co { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } .co-sum { position: sticky; top: 88px; } }
.co h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 20px; }
.co legend.big { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.15rem; padding: 0; margin-bottom: 12px; }
.panel { background: var(--paper); border-radius: var(--r); padding: clamp(16px, 3vw, 24px); border: 2px solid var(--ink); }
.methods { display: grid; gap: 10px; }
.method { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; border: 2px solid var(--ink-2); border-radius: var(--r); padding: 14px; background: var(--paper); cursor: pointer; }
.method:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.method input { width: 22px; height: 22px; accent-color: var(--ink); }
.method small { grid-column: 2 / -1; color: var(--ink-2); font-weight: 400; font-size: 0.92rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400; margin: 0 0 14px; }
.check input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--ink); }
[hidden] { display: none !important; }

/* ---------- order status ---------- */
.status-head { padding-block: clamp(24px, 4vw, 48px) 8px; }
.track { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 0; }
.track li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; position: relative; color: var(--ink-2); }
.track li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ink-2); background: var(--bay); margin-top: 2px; z-index: 1; }
.track li::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; border-left: 2px solid var(--rule); }
.track li:last-child::after { display: none; }
.track li.done { color: var(--ink); font-weight: 700; }
.track li.done::before { background: var(--ink); border-color: var(--ink); }
.track li.now::before { background: var(--poinciana); border-color: var(--poinciana); }
.cols { display: grid; gap: 24px; }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #DCE6E4; margin-top: 40px; padding: clamp(32px, 5vw, 64px) 0 28px; }
.footer a { color: #fff; }
.footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0.02em; margin-bottom: 12px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer address { font-style: normal; line-height: 1.6; }
.footer .pay-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; list-style: none; padding: 0; }
.pay-row li { border: 1px solid #6F8A8C; border-radius: 3px; padding: 2px 8px; font-stretch: 68%; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; color: #fff; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid #2E5357; font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); z-index: 80; font-weight: 600; max-width: calc(100% - 32px); }

.flashmsg { margin-top: 16px; }
.upcoming { border-top: 2px solid var(--ink); }
.preview-img { position: relative; }
.preview-tag { position: absolute; left: 10px; bottom: 10px; background: var(--sun); color: var(--ink); padding: 4px 10px; border-radius: 2px; }
#notify { margin-top: 24px; }
#notify h2 { font-size: 1.15rem; margin-bottom: 14px; }
