/* Layout: sticky shop header with 3 brand tabs → product grid per tab → slide-in cart drawer. Mobile first. */
:root {
  --paper: #FAF7FB;
  --surface: #FFFFFF;
  --ink: #221C2E;
  --muted: #6B6378;
  --line: #E6DFEA;
  --crafts: #C2185B;
  --custom: #6A3FB5;
  --goat: #221C2E;
  --goat-gold: #C99A2E;
  --accent: var(--crafts);
  --on-accent: #FFFFFF;
  --tint: #F7E4EE;
  --ok: #2E7D4F;
  --warn: #9A5B00;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17131E; --surface: #211B2B; --ink: #F3EEF7; --muted: #A99FB6; --line: #352D42;
    --crafts: #F06A9E; --custom: #A98AE8; --goat: #F3EEF7; --goat-gold: #E2B954;
    --on-accent: #17131E; --tint: #2E2034; --ok: #6CC991; --warn: #E2B954; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #17131E; --surface: #211B2B; --ink: #F3EEF7; --muted: #A99FB6; --line: #352D42;
  --crafts: #F06A9E; --custom: #A98AE8; --goat: #F3EEF7; --goat-gold: #E2B954;
  --on-accent: #17131E; --tint: #2E2034; --ok: #6CC991; --warn: #E2B954; color-scheme: dark;
}
body[data-tab="crafts"], body[data-tab="home"] { --accent: var(--crafts); }
body[data-tab="custom"] { --accent: var(--custom); }
body[data-tab="goat"] { --accent: var(--goat); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Announcement + header */
.announce { background: var(--ink); color: var(--paper); font-size: 13px; text-align: center; }
.announce .wrap { padding-block: 8px; }
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo b { font: 800 22px/1 var(--display); letter-spacing: -.02em; }
.logo span { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.cart-btn .count { background: var(--accent); color: var(--on-accent); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; font-variant-numeric: tabular-nums; }
nav.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
nav.tabs a { flex: none; text-decoration: none; font: 700 14px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); }
nav.tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
nav.tabs a.t-goat[aria-current="page"] { background: var(--goat); border-color: var(--goat); color: var(--paper); }

/* Hero */
.hero { padding-block: 40px 28px; display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
.hero h1 { font: 800 clamp(36px, 8vw, 72px)/.95 var(--display); letter-spacing: -.035em; margin: 10px 0 14px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--crafts); }
.hero p { max-width: 52ch; color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.hero-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-tiles a { text-decoration: none; border-radius: var(--radius); padding: 16px 12px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; font: 800 18px/1 var(--display); text-transform: uppercase; }
.hero-tiles a small { font: 500 12px/1.3 var(--body); text-transform: none; opacity: .9; }
.hero-tiles .h-crafts { background: #C2185B; }
.hero-tiles .h-custom { background: #6A3FB5; }
.hero-tiles .h-goat { background: #221C2E; color: #E2B954; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.2fr 1fr; padding-block: 64px 40px; } .hero-tiles a { min-height: 200px; font-size: 22px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; background: var(--accent); color: var(--on-accent); font-weight: 800; cursor: pointer; text-decoration: none; }
body[data-tab="goat"] .btn { background: var(--goat); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Section headings */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-block: 28px 16px; }
.sec-head h2 { font: 800 clamp(28px, 5vw, 44px)/1 var(--display); letter-spacing: -.03em; margin: 6px 0 0; text-wrap: balance; }
.sec-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.goat-banner { background: #221C2E; color: #F3EEF7; border-radius: var(--radius); padding: 28px 22px; margin-top: 24px; }
.goat-banner h2 { font: 800 clamp(40px, 10vw, 88px)/.9 var(--display); letter-spacing: -.04em; margin: 0; color: #E2B954; }
.goat-banner p { margin: 10px 0 0; max-width: 55ch; opacity: .85; }

/* Grid + cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 32px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.card { display: flex; flex-direction: column; gap: 8px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; min-width: 0; }
.card .img { aspect-ratio: 1; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--tint); position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .img img { transform: scale(1.04); }
.card h3 { font: 700 15px/1.3 var(--body); margin: 0; }
.card .price { font: 500 14px/1 var(--mono); font-variant-numeric: tabular-nums; }
.chip { position: absolute; left: 8px; top: 8px; background: var(--surface); color: var(--ink); font: 500 11px/1 var(--mono); padding: 5px 8px; border-radius: 999px; letter-spacing: .04em; }
.chip.low { color: var(--warn); }

/* Customization request + alerts */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.two { display: grid; gap: 18px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }
.panel h3 { font: 800 24px/1.1 var(--display); margin: 0 0 6px; letter-spacing: -.02em; }
.panel > p { margin: 0 0 16px; color: var(--muted); }
form.stack { display: grid; gap: 12px; }
label.f { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
label.f span.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], select, textarea { width: 100%; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; }
textarea { min-height: 96px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 14px; cursor: pointer; }
.note { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--tint); }
.note.ok { color: var(--ok); }

/* Product dialog + drawer */
dialog { border: 0; padding: 0; background: var(--surface); color: var(--ink); width: min(920px, calc(100% - 24px)); max-height: calc(100% - 24px); border-radius: 18px; }
dialog::backdrop { background: rgb(20 14 28 / .55); }
.pd { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pd { grid-template-columns: 1fr 1fr; } }
.pd .img { background: var(--tint); aspect-ratio: 1; max-width: 100%; }
.pd .img img { width: 100%; height: 100%; object-fit: cover; }
.pd .info { padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.pd h2 { font: 800 28px/1.05 var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.pd .price { font: 500 20px/1 var(--mono); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 700; font-size: 14px; min-width: 44px; text-align: center; }
.opts input:checked + label { border-color: var(--accent); background: var(--tint); }
.opts input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { background: none; border: 0; width: 38px; height: 38px; cursor: pointer; font-size: 18px; }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--surface); cursor: pointer; font-size: 20px; z-index: 2; }
.meta { font-size: 13px; color: var(--muted); }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--surface); z-index: 40; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.drawer.open { transform: none; }
.scrim { position: fixed; inset: 0; background: rgb(20 14 28 / .45); z-index: 39; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font: 800 22px/1 var(--display); margin: 0; }
.lines { flex: 1; overflow-y: auto; padding: 8px 18px; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.line h4 { margin: 0; font-size: 14px; }
.line .opt { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.line .amt { font: 500 14px/1 var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.line .rm { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 12px; padding: 4px 0; }
.totals { padding: 16px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.totals .row { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.totals .row.big { font-weight: 800; font-size: 18px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); margin-top: 20px; }
footer.site .wrap { padding-block: 28px; display: grid; gap: 18px; grid-template-columns: 1fr; font-size: 14px; color: var(--muted); }
@media (min-width: 760px) { footer.site .wrap { grid-template-columns: 2fr 1fr 1fr; } }
footer.site h4 { color: var(--ink); margin: 0 0 8px; font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== Two-brand layout ===== */
:root { --blackletter: "UnifrakturCook", "Pirata One", "Old English Text MT", serif; --block: "Graduate", "Arial Black", sans-serif; --goat-red: #D7262E; --goat-red-dark: #5E0B12; }
body[data-brand="goat"] {
  --paper: #121015; --surface: #1C1920; --ink: #F4F1F6; --muted: #ADA5B5; --line: #34303A;
  --accent: var(--goat-red); --on-accent: #FFFFFF; --tint: #2A1A1E; --goat: var(--goat-red); color-scheme: dark;
}
body[data-brand="goat"] .btn { background: var(--goat-red); color: #fff; }
body[data-brand="goat"] .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
body[data-brand="goat"] nav.tabs a[aria-current="page"] { background: var(--goat-red); border-color: var(--goat-red); color: #fff; }
body[data-brand="goat"] header.site { background: color-mix(in srgb, #121015 94%, transparent); }

.brands { display: flex; gap: 6px; align-items: center; min-width: 0; flex-wrap: wrap; }
.brand-pill { text-decoration: none; border-radius: 12px; padding: 6px 10px; border: 1.5px solid transparent; display: inline-flex; align-items: center; min-height: 44px; }
.brand-pill[aria-selected="true"] { border-color: var(--line); background: var(--surface); }
.crafty-word { display: flex; flex-direction: column; line-height: 1; }
.crafty-word b { font: 800 18px/1 var(--display); letter-spacing: -.02em; }
.crafty-word small { font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 640px) { .crafty-word b { font-size: 22px; } }

/* GOAT lockup: winged icon + blackletter wordmark */
.goat-lockup { display: inline-flex; align-items: center; gap: .3em; line-height: 1; white-space: nowrap; vertical-align: middle; }
.goat-lockup img { width: 1.6em; height: auto; flex: none; }
.goat-word { font-family: var(--blackletter); font-weight: 700; color: var(--goat-red); -webkit-text-stroke: .06em var(--goat-red-dark); paint-order: stroke fill; letter-spacing: .01em; text-transform: uppercase; }
.goat-lockup.sm { font-size: 20px; }
.goat-lockup.inline { font-size: 1em; }
.goat-lockup.stack { flex-direction: column; font-size: 22px; gap: 6px; align-items: flex-start; }
.goat-lockup.stack img { width: 2.4em; }
.goat-lockup.xl { font-size: clamp(42px, 11vw, 104px); flex-wrap: wrap; justify-content: center; white-space: normal; gap: .15em .3em; }
.goat-lockup.xl img { width: 1.5em; }
.goat-lockup.xl .goat-word { -webkit-text-stroke: .045em var(--goat-red-dark); text-shadow: 0 .04em 0 #000; }

/* Ticker banner */
.ticker { overflow: hidden; background: var(--accent); color: var(--on-accent); border-top: 1px solid var(--line); }
body[data-brand="goat"] .ticker { background: #000; color: #fff; border-top-color: #000; }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; padding-block: 7px; }
.ticker-track span { font: 700 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding-inline: 18px; white-space: nowrap; display: inline-flex; align-items: center; gap: 18px; }
.ticker-track span::after { content: "✦"; opacity: .7; }
body[data-brand="goat"] .ticker-track span { font-family: var(--blackletter); font-size: 16px; letter-spacing: .03em; text-transform: none; color: #fff; }
body[data-brand="goat"] .ticker-track span::after { color: var(--goat-red); opacity: 1; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Moving photo / logo strips */
.marquee { overflow: hidden; padding-block: 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: tick 60s linear infinite; padding-left: 12px; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee button { border: 0; padding: 0; background: var(--tint); border-radius: 12px; overflow: hidden; cursor: zoom-in; flex: none; height: 200px; }
.marquee button img { height: 100%; width: auto; max-width: none; display: block; }
@media (min-width: 760px) { .marquee button { height: 260px; } }
.logo-marquee { background: #0B0A0D; border-bottom-color: #000; }
.logo-marquee .marquee-track { animation-duration: 45s; gap: 28px; align-items: center; }
.logo-marquee .logo-tile { width: 180px; height: 180px; flex: none; display: grid; place-items: center; cursor: pointer; background: transparent; }
.logo-marquee .logo-tile svg, .logo-marquee .logo-tile img { width: 100%; height: 100%; object-fit: contain; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 32px; }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.gallery-grid button { border: 0; padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; max-width: 100%; background: var(--tint); cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid button:hover img { transform: scale(1.04); }
.pending { font-size: 14px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px; margin-bottom: 24px; }

/* Lightbox */
dialog.lightbox { background: #0B0A0D; color: #fff; width: min(1000px, calc(100% - 16px)); max-height: calc(100% - 16px); }
.lightbox figure { margin: 0; display: grid; gap: 8px; padding: 12px; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { text-align: center; font-size: 14px; color: #ccc; min-height: 1.4em; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .85); color: #111; font-size: 26px; cursor: pointer; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lightbox .close { background: rgb(255 255 255 / .85); color: #111; }

/* GOAT home */
.goat-hero { background: radial-gradient(120% 90% at 50% 0%, #2A1418 0%, #121015 60%); text-align: center; }
.goat-hero .wrap { padding-block: 40px 32px; display: grid; justify-items: center; gap: 14px; }
.goat-hero p { color: var(--muted); font-size: 18px; margin: 0; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.logo-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; padding-bottom: 32px; }
.logo-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.logo-box .art { aspect-ratio: 1; max-width: 100%; border-radius: 10px; display: grid; place-items: center; padding: 14px; transition: background .3s; }
.logo-box .art svg { width: 100%; height: 100%; }
.logo-box h3 { margin: 0; font: 800 18px/1.2 var(--display); }
.logo-box .bg-toggle { display: flex; gap: 6px; }
.logo-box .bg-toggle button { width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid var(--line); cursor: pointer; }

/* Swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 32px; height: 32px; border-radius: 999px; border: 2px solid var(--line); cursor: pointer; padding: 0; position: relative; }
.sw[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 2px; }
body[data-brand="goat"] .sw[aria-pressed="true"] { outline-color: #fff; }
.sw.wave { width: auto; padding: 0 12px; border-radius: 999px; color: #111; font: 800 11px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; min-height: 32px; }

/* Customize builder */
.builder { display: grid; gap: 20px; grid-template-columns: 1fr; padding-bottom: 32px; }
@media (min-width: 900px) { .builder { grid-template-columns: 1.05fr 1fr; align-items: start; } .preview-col { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 150px); } }
.preview-col { display: grid; gap: 10px; min-width: 0; }
.preview { background: radial-gradient(circle at 50% 30%, #2A262F, #17151A); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; overflow: hidden; }
.preview svg.garment { width: 92%; height: 92%; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; justify-self: center; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 800; }
.seg button[aria-pressed="true"] { background: var(--goat-red); color: #fff; }
.controls { display: grid; gap: 16px; min-width: 0; }
.controls fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0; display: grid; gap: 10px; background: var(--surface); }
.controls legend { font: 800 15px/1 var(--display); padding: 0 6px; }
.controls .inline { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.controls input[type=color] { width: 44px; height: 32px; border: 1.5px solid var(--line); border-radius: 8px; background: none; padding: 2px; }
.logo-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.logo-pick button { aspect-ratio: 1; max-width: 100%; border-radius: 10px; border: 2px solid var(--line); background: #3A3540; padding: 6px; cursor: pointer; }
.logo-pick button[aria-pressed="true"] { border-color: var(--goat-red); }
.logo-pick svg { width: 100%; height: 100%; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.big-price { font: 500 28px/1 var(--mono); font-variant-numeric: tabular-nums; }

/* Contact + socials */
.socials { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 20px; }
.social { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px 10px 10px; font-weight: 800; }
.social .ico { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: #fff; }
.social .ico svg { width: 24px; height: 24px; }
.social small { display: block; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.ico.ig { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF 80%, #515BD4); }
.ico.fb { background: #1877F2; }
.ico.tt { background: #000; border: 1px solid #333; }
.contact-panel { margin-bottom: 32px; max-width: 640px; }
.cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cta-panel h3 { margin-bottom: 4px; } .cta-panel p { margin: 0; }
.table-wrap { overflow-x: auto; }
table.sizes { border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 520px; width: 100%; }
table.sizes th, table.sizes td { padding: 8px; border-bottom: 1px solid var(--line); text-align: center; }
table.sizes td:first-child, table.sizes th:first-child { text-align: left; }
#goat-sizing { margin-bottom: 32px; }
.plain-list { display: grid; gap: 10px; padding-left: 18px; margin: 0; font-size: 15px; color: var(--muted); }
.alerts { margin-block: 12px 32px; }
.privacy { margin: 0; }
.chip.sample { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

nav.tabs a.to-other { border-color: #C2185B; color: #F06A9E; }
nav.tabs a.to-other::after { content: " \2197"; }

/* ===== v3: real logo files, Create'Em, Fredoka banner ===== */
:root { --banner: "Fredoka", "Comic Neue", "Trebuchet MS", system-ui, sans-serif; --script: "Yellowtail", "Brush Script MT", cursive; }
.ce-logo { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; margin-right: 8px; flex: none; box-shadow: 0 0 0 2px #E0AE34; }
.ce-hero { width: 140px; height: 140px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 3px #E0AE34, 0 10px 30px rgb(0 0 0 / .15); margin-bottom: 14px; }
.brand-pill.b-goat { background: #121015; border-color: #34303A; }
.brand-pill.b-goat[aria-selected="true"] { border-color: #E0AE34; background: #121015; }
.goat-lockup img { height: 1.6em; width: auto; }
.goat-lockup.sm { font-size: 20px; gap: 4px; }
.goat-lockup.inline { gap: .15em; }
.goat-lockup.stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.goat-lockup.stack .gl-wing { height: auto; width: 96px; }
.goat-lockup.stack .gl-text { height: auto; width: 84px; }
.foot-goat { display: inline-block; background: #121015; border-radius: 8px; padding: 4px 8px; }
.h-goat { background: #121015 !important; }
.goat-hero-wing { width: min(520px, 86%); height: auto; filter: drop-shadow(0 8px 30px rgb(224 174 52 / .25)); }
.goat-hero-text { width: min(440px, 74%); height: auto; margin-top: -4px; }

.ticker-track span, body[data-brand="goat"] .ticker-track span { font: 600 15px/1.1 var(--banner); letter-spacing: .02em; text-transform: none; }
body[data-brand="goat"] .ticker-track span::after { color: #E0AE34; }

.lg { width: 100%; height: 100%; object-fit: contain; display: block; }
.lg-wave { position: relative; display: block; width: 100%; height: 100%; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; isolation: isolate; }
.lg-wave .ov { position: absolute; inset: 0; mix-blend-mode: color; }
.logo-marquee .logo-tile { width: 200px; height: 200px; border: 0; padding: 8px; }
.logo-box .art { padding: 18px; }
.logo-pick { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.logo-pick button { background: #2A2730; padding: 6px; }
.logo-pick button img { width: 100%; height: 100%; object-fit: contain; }

/* Customizer print overlay (percent of the square stage) */
.preview { position: relative; }
#pvGarment { position: absolute; inset: 0; display: grid; place-items: center; }
.print { position: absolute; left: 35.1%; top: 28.5%; width: 29.8%; display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.print.back { left: 32%; top: 25.9%; width: 35.9%; }
.print .pl { width: 100%; aspect-ratio: 1; }
.print.has-text .pl { width: 80%; }
.print .pt { font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; max-width: 130%; font-size: clamp(14px, 3.2vw, 30px); -webkit-text-stroke: 1px rgb(0 0 0 / .35); }
@media (min-width: 900px) { .print .pt { font-size: clamp(14px, 1.9vw, 30px); } }
.print .pt.f-blackletter { font-family: var(--blackletter); }
.print .pt.f-block { font-family: var(--block); }
.print .pt.f-script { font-family: var(--script); font-weight: 400; }
.print .pt.wave { background-clip: text; -webkit-background-clip: text; color: transparent !important; }
.logo-box .art { position: relative; overflow: hidden; }
.logo-box .art > .lg, .logo-box .art > .lg-wave { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
.logo-pick button { position: relative; overflow: hidden; }
.logo-pick button > .lg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.checks .goat-lockup { font-size: 14px; background: #121015; border-radius: 6px; padding: 2px 6px; }

/* ===== v4: spotlight, videos, TikTok, requests, product slides, custom pages ===== */
.spot { background: linear-gradient(135deg, color-mix(in srgb, var(--crafts) 12%, var(--paper)), var(--paper)); border-block: 1px solid var(--line); margin-block: 8px 12px; }
.spot-inner { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: center; padding-block: 28px; }
@media (min-width: 900px) { .spot-inner { grid-template-columns: 0.9fr 1.3fr; } }
.spot-copy { min-width: 0; display: grid; gap: 10px; justify-items: start; }
.spot-copy h2 { font: 800 clamp(28px, 5vw, 44px)/1 var(--display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.spot-copy p { margin: 0; color: var(--muted); max-width: 52ch; }
.spot-price { font-size: 15px; color: var(--muted); } .spot-price b { font: 500 24px/1 var(--mono); color: var(--ink); }
.spot-marquee { background: transparent; border: 0; border-radius: var(--radius); min-width: 0; }
.spot-marquee .marquee-track { animation-duration: 30s; }
.spot-marquee button { height: 280px; background: var(--surface); }
.marquee button video, .gallery-grid video, .video-row video { width: auto; height: 100%; display: block; object-fit: cover; }
.gallery-grid button video { width: 100%; }
.marquee button, .gallery-grid button, .video-row button { position: relative; }
.play { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; display: grid; place-items: center; font-size: 13px; pointer-events: none; }
.video-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; }
.video-row button { flex: none; height: 360px; aspect-ratio: 9 / 16; max-width: 100%; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
.video-row button video { width: 100%; }
.tiktoks { padding-bottom: 24px; }
.tt-row { display: flex; gap: 16px; overflow-x: auto; }
.tt-row blockquote { margin: 0; flex: none; }
.tt-card, .tt-follow .social { display: inline-flex; }
.tt-card { align-items: center; gap: 12px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px 10px 10px; font-weight: 800; margin: 0 10px 10px 0; }
.tt-card .ico { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: #fff; }
.tt-card .ico svg { width: 24px; height: 24px; }
.tt-card small { display: block; font: 500 12px/1.3 var(--mono); color: var(--muted); }
dialog.lightbox video { max-height: 78vh; max-width: 100%; margin: 0 auto; display: block; border-radius: 8px; }
#lbMedia img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 8px; display: block; }

.requests { padding-bottom: 8px; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; padding-bottom: 24px; }
.req { background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.req h3 { margin: 0; font: 800 18px/1.2 var(--display); }
.req p { margin: 0; color: var(--muted); font-size: 15px; }
.req .btn { justify-self: start; padding: 10px 16px; }

.pd .slides { position: relative; overflow: hidden; }
.pd .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s ease; background: var(--tint); }
.pd .slides img.on { opacity: 1; }
.pd .slides img:first-child { position: relative; }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .6); box-shadow: 0 0 0 1px rgb(0 0 0 / .25); cursor: pointer; padding: 0; }
.dots button[aria-pressed="true"] { background: var(--accent); }
.card .img img { object-fit: contain; }

.page-body { padding-block: 32px 40px; max-width: 760px; }
.page-body h1 { font: 800 clamp(32px, 6vw, 52px)/1 var(--display); letter-spacing: -.03em; margin: 0 0 16px; text-wrap: balance; }
.page-body h2, .page-body h3 { font-family: var(--display); margin: 24px 0 8px; }
.page-body p, .page-body li { font-size: 17px; line-height: 1.6; }
.page-img { width: 140px; height: 140px; object-fit: cover; border-radius: 999px; margin-bottom: 16px; }
.page-body img:not(.page-img) { border-radius: 12px; margin-block: 12px; }
nav.tabs a.to-other::after { content: " \2197"; }
body[data-brand="goat"] nav.tabs a.to-other { border-color: #C2185B; color: #F06A9E; }
body[data-brand="crafty"] nav.tabs a.to-other { border-color: #121015; }
#request, #goat-sizing, .requests { scroll-margin-top: 170px; }
.ce-wide { height: 44px; width: auto; display: block; }
@media (min-width: 640px) { .ce-wide { height: 52px; } }
.brand-pill.b-crafty { padding: 4px 8px; }
.ce-hero { width: 160px; height: 160px; border-radius: 999px; object-fit: contain; box-shadow: 0 10px 30px rgb(0 0 0 / .12); }
@media (max-width: 520px) {
  .brands { flex-wrap: nowrap; gap: 4px; }
  .ce-wide { height: 30px; }
  .brand-pill { padding: 4px 6px; min-height: 40px; }
  .goat-lockup.sm { font-size: 15px; }
  .cart-btn { padding: 6px 10px; }
}
/* Hero tiles: CE gem + script titles */
.hero-tiles .h-crafts, .hero-tiles .h-custom { position: relative; justify-content: flex-start; gap: 8px; }
.tile-gem { width: 48px; height: 48px; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .3)); }
.tile-title { font-family: "Pacifico", "Brush Script MT", cursive; font-weight: 400; text-transform: none; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1; letter-spacing: 0; color: #fff; text-shadow: 0 2px 0 rgb(0 0 0 / .18), 0 0 18px rgb(255 255 255 / .25); }
.hero-tiles .h-crafts small, .hero-tiles .h-custom small { margin-top: auto; }
@media (min-width: 860px) { .tile-gem { width: 60px; height: 60px; } }
.tile-gem { width: 56px; height: 56px; }
@media (min-width: 860px) { .tile-gem { width: 72px; height: 72px; } }

/* ===== Admin-controlled fonts (Site Settings → Colors and fonts) ===== */
body { font-size: calc(16px * var(--text-scale, 1)); }
.tile-title { font-family: var(--tile-font, "Pacifico", "Brush Script MT", cursive); }
.btn, .cart-btn { font-family: var(--btn-font, var(--body)); }
nav.tabs a { font-family: var(--nav-font, var(--display)); }
.price, .big-price, .spot-price b, .line .amt, .totals .row { font-family: var(--price-font, var(--mono)); }
body[data-brand="goat"] { --display: var(--goat-display, "Bricolage Grotesque", "Arial Black", system-ui, sans-serif); --body: var(--goat-body, "Nunito Sans", system-ui, sans-serif); font-family: var(--body); }
body[data-brand="goat"] .ticker-track span { font-family: var(--goat-banner, var(--blackletter)); }
body[data-brand="goat"] .btn { font-family: var(--goat-btn-font, var(--btn-font, var(--body))); }

/* ===== v6: Can Holder Builder, Reviews, Walls ===== */
.ch-preview { background: radial-gradient(circle at 50% 35%, #fff, color-mix(in srgb, var(--crafts) 10%, var(--paper))); aspect-ratio: 5 / 6; }
.ch-preview svg { width: 92%; height: 92%; }
.ch-builder .controls fieldset { gap: 10px; }
.ch-builder .sw { width: 30px; height: 30px; }
.ch-builder .up input[type=file] { font-size: 14px; }
.rights { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); }
.rights input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.community { padding-bottom: 24px; }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 16px; }
@media (min-width: 760px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.wall-item { position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--tint); cursor: zoom-in; }
.wall-item img { width: 100%; height: 100%; object-fit: cover; }
.wall-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgb(0 0 0 / .65)); color: #fff; font-size: 13px; text-align: left; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; padding-bottom: 24px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.review p { margin: 0; overflow-wrap: anywhere; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stars { color: #E0AE34; letter-spacing: 2px; font-size: 18px; } .stars .off { color: var(--line); }
.avg { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.review-photo { border: 0; padding: 0; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--tint); }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.empty-note { color: var(--muted); border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px; margin: 0 0 16px; grid-column: 1 / -1; }
dialog.form-dlg { width: min(560px, calc(100% - 24px)); }
dialog.form-dlg form { padding: 22px; }
dialog.form-dlg h3 { margin: 0; font: 800 24px/1.1 var(--display); }
.stars-in { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-in legend { float: left; width: 100%; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.stars-in input { position: absolute; opacity: 0; pointer-events: none; }
.stars-in label { font-size: 34px; line-height: 1; color: var(--line); cursor: pointer; }
.stars-in input:checked ~ label, .stars-in label:hover, .stars-in label:hover ~ label { color: #E0AE34; }
.stars-in input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
body[data-brand="goat"] .stars-in label, body[data-brand="goat"] .stars .off { color: #4a4450; }
.stars-in { display: block; }
.stars-in legend { float: none; }
.stars-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-row input:checked ~ label, .stars-row label:hover, .stars-row label:hover ~ label { color: #E0AE34; }
.brand-pill.b-crafty { background: #fff; border-color: #F0DCE6; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 24px; }
@media (min-width: 760px) { .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.vid-card { margin: 0; display: grid; gap: 6px; min-width: 0; }
.vid-card button { position: relative; border: 0; padding: 0; width: 100%; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
.vid-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-card figcaption { font-size: 14px; color: var(--muted); }
