/* JK Customs — minimalist, warm, kid-friendly without being childish. */
:root {
  --accent: #e85d3d;
  --accent-2: #2f6f6a;
  --ink: #22232a;
  --ink-soft: #5a5c66;
  --bg: #faf8f4;
  --card: #ffffff;
  --line: #e8e4dc;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.announcement {
  background: var(--accent-2);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  padding: 8px 16px;
}
.announcement:empty { display: none; }

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.brand small {
  display: none;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.78rem;
}
@media (min-width: 720px) { .brand small { display: inline; } }

nav.main { display: flex; gap: 4px; }
nav.main a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}
nav.main a:hover { color: var(--ink); background: var(--line); text-decoration: none; }
nav.main a.active { color: #fff; background: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }

/* ---------- category chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 32px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- product grid ---------- */
.section { padding: 40px 0 64px; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: 1.7rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30, 30, 40, 0.08); }
.card .thumb {
  aspect-ratio: 4 / 3;
  background: #f1eee8;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); }
.card h3 { margin: 0; font-size: 1.08rem; letter-spacing: -0.01em; }
.card p.desc { margin: 0; color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card .price { font-weight: 800; font-size: 1.05rem; }
.card .soldout { color: var(--ink-soft); font-weight: 700; font-size: 0.85rem; }
.card .ask {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.order-note {
  margin: 36px auto 0;
  max-width: 560px;
  text-align: center;
  background: color-mix(in srgb, var(--accent-2) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent-2) 25%, var(--line));
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--ink);
  font-size: 0.95rem;
}

/* ---------- feature strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 8px 0 24px;
}
.strip .item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.strip .item .icon { font-size: 1.5rem; margin-bottom: 8px; }
.strip .item h3 { margin: 0 0 4px; font-size: 1rem; }
.strip .item p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- prose (about) ---------- */
.prose { max-width: 680px; margin: 0 auto; font-size: 1.05rem; }
.prose p { margin: 0 0 1.2em; }

/* ---------- contact form ---------- */
form.contact { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
form.contact label { font-weight: 700; font-size: 0.9rem; display: grid; gap: 6px; }
form.contact input,
form.contact textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  width: 100%;
}
form.contact input:focus,
form.contact textarea:focus { outline: none; border-color: var(--accent); }
form.contact textarea { min-height: 140px; resize: vertical; }
.form-status { text-align: center; font-weight: 700; min-height: 24px; }
.form-status.ok { color: var(--accent-2); }
.form-status.err { color: #c0392b; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 36px 20px 48px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer.site .foot-brand { font-weight: 800; color: var(--ink); margin-bottom: 6px; }

/* ---------- misc ---------- */
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 48px 0;
}

/* ---------- phones: menu gets its own row (added with the Events page) ---------- */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; row-gap: 6px; padding: 10px 14px; }
  nav.main { width: 100%; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { padding: 7px 10px; font-size: 0.92rem; white-space: nowrap; }
}

/* ---------- online shop (cart + checkout) ---------- */
.card .add-cart { font: inherit; font-size: 0.88rem; font-weight: 800; color: #fff; background: var(--accent); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.card .add-cart:hover { filter: brightness(1.05); }
.card .add-cart:focus-visible, .qty button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.jk-flash { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--ink); color: #fff; font-weight: 700; padding: 10px 20px; border-radius: 999px; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; z-index: 60; }
.jk-flash.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .jk-flash { transition: none; } }
.cart { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img, .cart-line .noimg { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; background: #f1eee8; }
.cart-line .nm { font-weight: 700; }
.cart-line .sub { color: var(--ink-soft); font-size: 0.9rem; }
.cart-line .gone { color: #c0392b; font-weight: 700; font-size: 0.85rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { font: inherit; font-weight: 800; width: 36px; height: 36px; border: 0; background: var(--card); cursor: pointer; color: var(--ink); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.linkbtn { background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: underline; padding: 4px 0; }
.panel-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.choice { display: grid; gap: 10px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.choice small { display: block; color: var(--ink-soft); }
.totals { display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.testbanner { background: #fdf0d8; color: #8a5a00; border: 1px solid #f0d9ab; border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; font-weight: 600; }

/* ---------- Etsy-style shop + product pages ---------- */
.lc { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lc-img { position: relative; display: block; aspect-ratio: 5 / 4; border-radius: 12px; overflow: hidden; background: #f1eee8; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.lc:hover .lc-img img { transform: scale(1.03); }
.lc-img:hover { box-shadow: 0 8px 22px rgba(30, 30, 40, 0.14); }
.lc-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #f4e7df, #e9f1ef); }
.lc-flag { position: absolute; left: 8px; bottom: 8px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 0.72rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.lc-pick { color: var(--accent); }
.lc-soldout .lc-img img { filter: grayscale(0.6) opacity(0.75); }
.lc-fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity 0.15s ease; }
.lc-fav svg { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.lc-fav.on { opacity: 1; }
.lc-fav.on svg { fill: #c0392b; stroke: #c0392b; }
.lc:hover .lc-fav, .lc-fav:focus-visible { opacity: 1; }
@media (hover: none) { .lc-fav { opacity: 1; } }
.lc-title { color: var(--ink); font-size: 0.95rem; line-height: 1.35; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-title:hover { text-decoration: underline; }
.lc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-price { font-weight: 800; font-size: 1.05rem; }
.lc-free { font-size: 0.74rem; font-weight: 800; color: #fff; background: var(--accent-2); border-radius: 999px; padding: 2px 8px; }
.lc-cat { color: var(--ink-soft); font-size: 0.8rem; }
.lc-soldout .lc-price { color: var(--ink-soft); text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) { .lc-img img, .lc-fav { transition: none; } .lc:hover .lc-img img { transform: none; } }

.shop-wrap { max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; }
.shop-search { display: flex; gap: 8px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 4px 4px 18px; max-width: 720px; margin: 0 auto 18px; }
.shop-search input { flex: 1; border: 0; font: inherit; font-size: 1rem; padding: 8px 0; background: transparent; min-width: 0; }
.shop-search input:focus { outline: none; }
.shop-search button { border: 0; background: var(--accent); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.shop-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: none; justify-content: center; }
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cats button { flex: none; font: inherit; font-weight: 700; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.shop-cats button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 84px; display: grid; gap: 22px; }
.filters h3 { margin: 0 0 8px; font-size: 0.95rem; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.93rem; cursor: pointer; }
.filters label .n { margin-left: auto; color: var(--ink-soft); font-size: 0.8rem; }
.filters input[type=radio], .filters input[type=checkbox] { accent-color: var(--ink); width: 18px; height: 18px; }
.filters .range { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.filters .range input { width: 100%; font: inherit; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; }
.filters .done { display: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .count { color: var(--ink-soft); font-size: 0.93rem; }
.toolbar .count b { color: var(--ink); }
.toolbar select { font: inherit; font-weight: 700; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.filter-btn { display: none; font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.active-chips:empty { display: none; }
.active-chips button { font: inherit; font-size: 0.85rem; font-weight: 700; border: 0; background: #efece6; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.active-chips .clear { background: none; text-decoration: underline; color: var(--ink-soft); }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 18px; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-btn { display: inline-block; }
  .filters { display: none; position: fixed; inset: auto 0 0 0; top: auto; z-index: 40; background: #fff; max-height: 80vh; overflow-y: auto; padding: 22px 20px 28px; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2); }
  .filters.open { display: grid; }
  .filters .done { display: block; }
}
@media (max-width: 600px) { .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } .shop-cats { justify-content: flex-start; } }

.pdp { max-width: 1180px; margin: 0 auto; padding: 18px 20px 64px; }
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); text-decoration: underline; }
.pdp-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .pdp-main { grid-template-columns: 1fr; gap: 20px; } }
.gallery .hero { position: relative; aspect-ratio: 1 / 1; background: #f1eee8; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.gallery .hero img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery .thumbs button { flex: none; width: 70px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #f1eee8; }
.gallery .thumbs button.on { border-color: var(--ink); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { position: sticky; top: 84px; display: grid; gap: 14px; }
.buybox .price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.01em; }
.buybox h1 { font-size: 1.35rem; line-height: 1.3; font-weight: 600; margin: 0; }
.buybox .stock { font-weight: 700; font-size: 0.93rem; color: var(--accent-2); }
.buybox .stock.out { color: #c0392b; }
.buybox .made { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--accent) 7%, #fff); border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; }
.buybox label.q { font-weight: 700; font-size: 0.9rem; display: grid; gap: 6px; }
.buybox select { font: inherit; padding: 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; }
.pill-btn { width: 100%; font: inherit; font-size: 1.02rem; font-weight: 800; padding: 15px; border-radius: 999px; cursor: pointer; border: 2px solid var(--ink); text-align: center; text-decoration: none; display: block; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { filter: brightness(1.2); text-decoration: none; }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: #f4f2ee; text-decoration: none; }
.pill-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.fav-line { display: flex; justify-content: center; }
.fav-line .lc-fav { position: static; opacity: 1; box-shadow: none; border: 1.5px solid var(--line); width: auto; height: auto; border-radius: 999px; padding: 8px 16px; display: inline-flex; gap: 8px; font: inherit; font-weight: 700; font-size: 0.9rem; }
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; font-weight: 800; padding: 14px 0; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.acc[open] summary::after { content: "\2212"; }
.acc .inner { padding: 0 0 16px; color: var(--ink); white-space: pre-line; font-size: 0.97rem; }
.more { margin-top: 56px; }
.more h2 { font-size: 1.3rem; margin: 0 0 16px; }
@media (max-width: 440px) { nav.main a { padding: 6px 7px; font-size: 0.85rem; } }
@media (max-width: 380px) { nav.main { gap: 0; } nav.main a { padding: 6px 5px; font-size: 0.8rem; } }
@media (max-width: 420px) { .toolbar label[for=sort] { display: none; } .toolbar select { max-width: 100%; min-width: 0; } .toolbar > span { flex: 1; justify-content: flex-end; } }
.toolbar .count { white-space: nowrap; }

/* ---------- mobile-first polish (phones are the main audience) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
.cart-ico, .sheet-head, .sheet-backdrop, .pdp-bar { display: none; }

@media (max-width: 640px) {
  /* compact header: logo + cart icon on one row, menu pills scroll underneath */
  header.site { position: relative; }
  .header-inner { position: relative; padding: 10px 14px 6px; row-gap: 4px; }
  .brand { font-size: 1.25rem; }
  nav.main a[data-nav="cart"] { display: none; }
  .cart-ico { display: grid; place-items: center; position: absolute; top: 6px; right: 10px; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
  .cart-ico:active { background: var(--line); }
  .cart-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
  nav.main { margin: 0 -14px; padding: 0 10px; width: calc(100% + 28px); }
  nav.main a { padding: 8px 12px; font-size: 0.92rem; }
  .announcement { font-size: 0.82rem; padding: 6px 12px; }

  /* shop */
  .shop-wrap { padding: 12px 12px 48px; }
  .shop-search { margin: 0 0 12px; padding: 3px 3px 3px 16px; }
  .shop-search input, .toolbar select, .filters .range input, .buybox select, input, select, textarea { font-size: 16px; } /* 16px stops phones zooming in */
  .shop-search button { width: 44px; height: 44px; }
  .shop-cats { margin: 0 -12px; padding: 2px 12px 12px; justify-content: flex-start; }
  .shop-cats button { padding: 9px 14px; font-size: 0.88rem; }
  .toolbar { margin-bottom: 10px; }
  .filter-btn { min-height: 40px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .lc-img { border-radius: 10px; }
  .lc-title { font-size: 0.9rem; margin-top: 4px; }
  .lc-price { font-size: 1rem; }
  .lc-fav { width: 34px; height: 34px; top: 6px; right: 6px; }
  .lc-flag { left: 6px; bottom: 6px; font-size: 0.68rem; padding: 2px 8px; }
  .order-note { margin-top: 28px; }
  .active-chips button { padding: 8px 12px; }

  /* home/featured grids share the 2-up layout */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .section { padding: 28px 0 44px; }
  .hero { padding: 40px 0 32px; }
  .wrap { padding: 0 14px; }
}

@media (max-width: 900px) {
  /* filters become a bottom sheet with a dimmed backdrop */
  .sheet-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(20, 20, 28, 0.45); z-index: 39; }
  .filters { gap: 18px; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; padding: 16px 0 10px; margin-bottom: -6px; border-bottom: 1px solid var(--line); z-index: 1; }
  .sheet-head b { font-size: 1.1rem; }
  .sheet-head button { width: 44px; height: 44px; border: 0; background: #f1eee8; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
  .filters label { padding: 10px 0; font-size: 1rem; }
  .filters .done { position: sticky; bottom: 0; }

  /* product page: stacked, with a sticky buy bar at the bottom */
  .pdp { padding: 10px 12px 40px; }
  .gallery .hero { border-radius: 12px; }
  .buybox { position: static; gap: 12px; }
  .buybox .price { font-size: 1.6rem; }
  .buybox h1 { font-size: 1.2rem; }
  .pill-btn { padding: 14px; }
  .more { margin-top: 36px; }
  body.has-pdp-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .pdp-bar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .pdp-bar-price { font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
  .pdp-bar .pill-btn { flex: 1; padding: 13px; }
}
@media (max-width: 600px) { .more .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- brand + persistent navigation ---------- */
header.site { position: sticky; top: 0; z-index: 30; }
.brand { align-items: center; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; margin-right: 10px; flex: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.hero-logo { display: block; width: 300px; max-width: 70vw; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 10px 18px rgba(40, 30, 20, 0.18)); animation: jk-float 6s ease-in-out infinite; }
@keyframes jk-float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
.foot-logo { display: block; width: 96px; height: auto; margin: 0 auto 10px; }
.tabbar { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

@media (max-width: 640px) {
  /* top: logo + cart stay pinned; bottom: tab bar with the main pages */
  header.site { position: sticky; top: 0; }
  .header-inner { min-height: 58px; padding: 8px 60px 8px 14px; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 38px; height: 38px; margin-right: 8px; }
  nav.main { display: none; }
  .cart-ico { top: 50%; transform: translateY(-50%); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px; color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; text-decoration: none; }
  .tabbar a:active { background: #f1eee8; }
  .tabbar a.on { color: var(--accent); }
  .tabbar a.on svg { stroke-width: 2.4; }
  body.has-tabbar { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.has-tabbar .pdp-bar { bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-tabbar.has-pdp-bar { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  body.has-tabbar .jk-flash { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .hero-logo { width: 230px; margin-bottom: 12px; }
}

/* ---------- Support card + product options (size / shirt color) ---------- */
.support-card { max-width: 1080px; margin: 28px auto 36px; display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 34px; align-items: center;
  background: linear-gradient(135deg, #fff7ef 0%, #eefaf9 100%); border: 1px solid var(--line); border-radius: 26px; padding: 26px;
  box-shadow: 0 14px 36px rgba(30, 30, 40, 0.08); }
.sup-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; display: block; box-shadow: 0 10px 24px rgba(30, 30, 40, 0.14); }
.sup-body { display: grid; gap: 10px; justify-items: start; }
.sup-kicker { background: #d6286f; color: #fff; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 8px; padding: 6px 12px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15); }
.sup-body h2 { margin: 4px 0 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.02em; }
.sup-body p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.sup-price { font-size: 1.7rem; font-weight: 900; }
.sup-opts, .pdp-opts { display: grid; gap: 12px; width: 100%; max-width: 420px; }
.opt-size { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.opt-size select { font: inherit; font-size: 1rem; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; min-height: 48px; }
.opt-colors { border: 0; margin: 0; padding: 0; }
.opt-colors legend { font-weight: 700; font-size: 0.92rem; padding: 0; margin-bottom: 8px; }
.opt-colors legend b { font-weight: 600; color: var(--ink-soft); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { position: relative; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw .dot { display: block; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, 0.18); box-shadow: inset 0 0 0 3px #fff; }
.sw input:checked + .dot { outline: 3px solid var(--ink); outline-offset: 2px; }
.sw input:focus-visible + .dot { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sup-actions { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; max-width: 420px; margin-top: 4px; }
.sup-actions .pill-btn { flex: 1; min-width: 140px; }
.sup-qty select { font: inherit; font-weight: 700; height: 100%; min-height: 52px; padding: 0 12px; border: 2px solid var(--line); border-radius: 999px; background: #fff; }
.sup-msg { min-height: 20px; font-weight: 700; font-size: 0.92rem; }
.sup-msg.err { color: #c0392b; }
.sup-msg.ok { color: var(--accent-2); }
.sup-more { font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); text-decoration: underline; }
.cart-line .opts { color: var(--ink-soft); font-size: 0.88rem; }
@media (max-width: 760px) {
  .support-card { grid-template-columns: 1fr; gap: 18px; padding: 16px; margin: 20px 12px 28px; border-radius: 20px; }
  .sup-body h2 { font-size: 1.45rem; }
  .sup-opts, .sup-actions { max-width: none; }
}

/* ---------- personalized name products (live keycap preview) ---------- */
.price-note { color: var(--ink-soft); font-size: 0.88rem; margin-top: -8px; }
.nc { display: grid; gap: 14px; }
.nc-preview { --cord: #ff4f9a; --base: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 4px; min-height: 96px; padding: 14px 12px; border-radius: 16px;
  background: linear-gradient(135deg, #6b4a32, #8a5f3e 55%, #6f4b33); box-shadow: inset 0 0 30px rgba(0,0,0,0.25); overflow: hidden; }
.nc-cord { flex: none; width: 54px; height: 70px; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3)); }
.nc-keys { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.nc-key { width: 42px; height: 42px; padding: 4px; border-radius: 10px; border: 0; cursor: default; background: var(--base);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.75) inset, 0 3px 5px rgba(0,0,0,0.3); display: grid; }
.nc-key span { display: grid; place-items: center; border-radius: 7px; background: var(--cap); color: var(--ink); font-weight: 900; font-size: 1.15rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.16), inset 0 2px 0 rgba(255,255,255,0.35); }
.nc-key.sel { outline: 3px solid #fff; outline-offset: 2px; }
.nc-preview .nc-key[data-i] { cursor: pointer; }
.nc-gap { width: 12px; }
.nc-empty { color: rgba(255,255,255,0.8); font-weight: 700; }
.nc-name { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.nc-name span { display: flex; justify-content: space-between; align-items: baseline; }
.nc-name small { font-weight: 700; color: var(--ink-soft); }
.nc-name small.over { color: #c0392b; }
.nc-name input { font: inherit; font-size: 1.25rem; font-weight: 800; letter-spacing: 0.08em; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; text-transform: uppercase; }
.nc-name input:focus { outline: none; border-color: var(--accent); }
.nc-sym { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.nc-sym button { min-width: 44px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.nc-schemes { display: flex; gap: 8px; flex-wrap: wrap; }
.nc-schemes label { cursor: pointer; }
.nc-schemes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nc-schemes span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 0.9rem; }
.nc-schemes input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.nc-schemes input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.nc-extra { margin-top: 10px; }
.nc-hint { margin: 0 0 8px; font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.nc-extra textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.nc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; padding: 12px 14px; background: #fff8e6; border: 1.5px solid #f3dfa4; border-radius: 12px; cursor: pointer; }
.nc-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
@media (max-width: 480px) { .nc-key { width: 36px; height: 36px; } .nc-key span { font-size: 1rem; } .nc-cord { width: 44px; height: 58px; } }
/* product photos of any shape show whole inside the square gallery box */
.gallery .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ---------- compact Support card (home page) ---------- */
.support-compact { max-width: 1080px; margin: 18px auto 28px; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center;
  background: linear-gradient(135deg, #fff7ef 0%, #eefaf9 100%); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: 0 8px 22px rgba(30, 30, 40, 0.07); }
.supc-media img { width: 112px; height: 112px; object-fit: cover; border-radius: 14px; display: block; }
.supc-body { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.supc-body .sup-kicker { font-size: 0.7rem; padding: 4px 9px; }
.supc-body h2 { margin: 0; font-size: 1.12rem; line-height: 1.2; letter-spacing: -0.01em; }
.supc-meta { color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; }
.supc-go { width: auto; padding: 10px 18px; font-size: 0.95rem; margin-top: 2px; }
@media (min-width: 761px) { .support-compact { grid-template-columns: 150px 1fr; padding: 16px 22px; gap: 22px; } .supc-media img { width: 150px; height: 150px; } .supc-body h2 { font-size: 1.4rem; } }
@media (max-width: 760px) { .support-compact { margin: 14px 12px 22px; } }
@media (max-width: 360px) { .support-compact { grid-template-columns: 88px 1fr; gap: 12px; } .supc-media img { width: 88px; height: 88px; } .supc-body h2 { font-size: 1rem; } }

/* ---------- home page: compact hero + featured showcase ---------- */
body[data-page="home"] .hero { padding-top: 32px; padding-bottom: 20px; }
body[data-page="home"] .hero-logo { width: 150px; margin-bottom: 10px; }
body[data-page="home"] .hero h1 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); margin-bottom: 10px; }
body[data-page="home"] .hero p { margin-bottom: 20px; }
.home-featured { padding-top: 8px; }
.home-featured .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; text-align: left; margin-bottom: 18px; flex-wrap: wrap; }
.home-featured .section-head h2 { margin: 0; }
.home-featured .section-head p { flex-basis: 100%; order: 3; margin-top: -8px; }
.see-all { font-weight: 800; color: var(--accent); white-space: nowrap; }
.home-featured > .center { display: none; }
.showcase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.showcase .lc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 14px; box-shadow: 0 6px 18px rgba(30, 30, 40, 0.06); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.showcase .lc:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30, 30, 40, 0.1); }
.showcase .lc .lc-img { aspect-ratio: 1 / 1; }
.showcase .lc .lc-fav { top: 18px; right: 18px; }
.showcase .lc .lc-flag { left: 16px; bottom: 16px; }
.showcase .lc:first-child { grid-column: span 2; grid-row: span 2; padding: 14px 14px 18px; }
.showcase .lc:first-child .lc-title { font-size: 1.25rem; font-weight: 700; }
.showcase .lc:first-child .lc-price { font-size: 1.3rem; }
.showcase .lc:nth-child(n+6) { display: none; }
.home-strip .item .icon { font-size: 1.3rem; margin-bottom: 4px; }
@media (max-width: 760px) {
  body[data-page="home"] .hero { padding-top: 18px; padding-bottom: 12px; }
  body[data-page="home"] .hero-logo { width: 112px; margin-bottom: 6px; }
  body[data-page="home"] .hero p { font-size: 1rem; margin-bottom: 16px; }
  body[data-page="home"] .hero .actions .btn { padding: 11px 20px; }
  .home-featured { padding-left: 14px; padding-right: 14px; } /* the swipe row below bleeds into this padding */
  .showcase { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -14px; padding: 4px 14px 14px; scrollbar-width: none; }
  .showcase::-webkit-scrollbar { display: none; }
  .showcase .lc, .showcase .lc:nth-child(n+6) { display: flex; flex: 0 0 68%; scroll-snap-align: start; }
  .showcase .lc:first-child { flex-basis: 78%; padding: 10px 10px 14px; }
  .showcase .lc:first-child .lc-title { font-size: 1.05rem; }
  .home-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0; padding: 4px 14px 14px; scrollbar-width: none; } /* the strip is its own full-width scroller */
  .home-strip::-webkit-scrollbar { display: none; }
  .home-strip .item { flex: 0 0 72%; scroll-snap-align: start; padding: 14px 16px; }
  .home-strip .item p { font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) { .showcase .lc { transition: none; } .showcase .lc:hover { transform: none; } }

/* ---------- desktop cart link lights up when the cart has items ---------- */
nav.main a[data-nav="cart"] { position: relative; display: inline-flex; align-items: center; gap: 6px; }
nav.main a[data-nav="cart"] svg { width: 18px; height: 18px; }
nav.main a[data-nav="cart"].has-items { color: #fff; background: var(--ink); }
nav.main a[data-nav="cart"].has-items:hover { background: var(--accent); }
nav.main a[data-nav="cart"] .cart-count { display: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 800; line-height: 20px; text-align: center; }
nav.main a[data-nav="cart"].has-items .cart-count { display: inline-block; }
nav.main a[data-nav="cart"].has-items:hover .cart-count { background: #fff; color: var(--accent); }
nav.main a[data-nav="cart"].bump { animation: jk-bump 0.5s ease; }
@keyframes jk-bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { nav.main a[data-nav="cart"].bump { animation: none; } }

/* ---------- shop: popular tags + product page tags ---------- */
.shop-tags { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; justify-content: center; padding: 0 2px 14px; margin-top: -4px; }
.shop-tags::-webkit-scrollbar { display: none; }
.shop-tags button { flex: none; font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 8%, #fff); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.shop-tags button.on { background: var(--accent-2); color: #fff; }
.pdp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pdp-tags a { font-size: 0.82rem; font-weight: 700; color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 8%, #fff); border-radius: 999px; padding: 5px 11px; }
@media (max-width: 640px) { .shop-tags { justify-content: flex-start; margin: -4px -12px 0; padding: 0 12px 12px; } }
/* small tablets: the full menu just fits - tighter links, cart count without the icon */
@media (min-width: 641px) and (max-width: 860px) {
  nav.main { gap: 2px; }
  nav.main a { padding: 7px 9px; font-size: 0.9rem; }
  nav.main a[data-nav="cart"] svg { display: none; }
  .header-inner { gap: 10px; }
}

/* ---------- product photos (swipe) + variations + cash at pickup ---------- */
.gallery { position: relative; min-width: 0; }
.gtrack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; aspect-ratio: 1 / 1; border-radius: 16px; background: #f1eee8; }
.gtrack::-webkit-scrollbar { display: none; }
.gtrack:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 3px; }
.gslide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; }
.gslide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gcount { position: absolute; top: 10px; right: 10px; background: rgba(20, 20, 30, 0.62); color: #fff; font-size: 0.78rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; pointer-events: none; }
.gdots { display: none; justify-content: center; gap: 6px; margin-top: 10px; }
.gdots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width 0.2s ease; }
.gdots button.on { width: 22px; background: var(--ink); }
.gallery .thumbs button { border: 2px solid transparent; }
.gallery .thumbs button.on { border-color: var(--ink); }
@media (max-width: 760px) { .gdots { display: flex; } .gallery .thumbs { display: none; } .gtrack { border-radius: 12px; } }
@media (prefers-reduced-motion: reduce) { .gtrack { scroll-behavior: auto; } .gdots button { transition: none; } }
.sw.out .dot { opacity: 0.35; background-image: linear-gradient(135deg, transparent 46%, #c0392b 47%, #c0392b 53%, transparent 54%) !important; }
.sw.out { cursor: not-allowed; }
.opt-size small { font-weight: 600; color: var(--ink-soft); }
.cash-form { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cash-form label { display: grid; gap: 4px; font-weight: 700; font-size: 0.9rem; }
.cash-form label small { font-weight: 500; color: var(--ink-soft); }
.cash-form input { font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.cash-form input:focus { outline: none; border-color: var(--accent); }
/* ---------- clickaroo-games: Games link + "More" tab on phones ---------- */
.tabbar .tab-more { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: none; }
.tab-sheet { display: none; }
@media (max-width: 640px) {
  .tabbar .tab-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px; color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; -webkit-tap-highlight-color: transparent; }
  .tabbar .tab-more:active { background: #f1eee8; }
  .tabbar .tab-more.on, .tabbar .tab-more[aria-expanded="true"] { color: var(--accent); }
  .tab-sheet { display: grid; position: fixed; right: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 36; min-width: 200px; padding: 8px; gap: 2px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 40px rgba(20, 20, 30, 0.18); }
  .tab-sheet[hidden] { display: none; }
  .tab-sheet a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
  .tab-sheet a:active, .tab-sheet a:hover { background: #f4f1eb; text-decoration: none; }
  .tab-sheet a.on { color: var(--accent); }
}
