/* NaffStore. Cream paper, black ink, the pink and teal from the art, Bungee for shouting. */
@font-face { font-family: "Bungee"; src: url("/fonts/bungee.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #fffdf7; --paper: #f6f1e4; --ink: #1b1b1b; --muted: #6b675e; --line: #e6e0cf;
  --pink: #ff2e88; --teal: #17b3b3; --radius: 10px;
  --display: "Bungee", "Arial Black", Impact, sans-serif;
}
* { box-sizing: border-box; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; }
h1, h2, .logo, .hero-title, .eyebrow, .tile-name { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
h3 { font-size: 1rem; font-weight: 650; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* header */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap;
  padding: .75rem max(1rem, env(safe-area-inset-left)); padding-top: max(.75rem, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 2px solid var(--ink); }
.logo { font-size: 1.35rem; text-decoration: none; text-shadow: 2px 2px 0 var(--pink); }
.cats { display: flex; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.cats::-webkit-scrollbar { display: none; }
.cats a { text-decoration: none; white-space: nowrap; padding: .35rem 0; font-weight: 600; color: var(--muted); }
.cats a:hover, .cats a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--pink); }
.find { margin-left: auto; flex: 0 1 15rem; min-width: 0; }
.find input { width: 100%; font: inherit; font-size: 1rem; min-height: 40px; padding: .4rem .8rem .4rem 2.1rem; border: 2px solid var(--ink);
  border-radius: 99px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231b1b1b' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat .75rem 50%; }
.find + .cart-link { margin-left: 0; }
.cart-link { margin-left: auto; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem 0; }
.count { background: var(--pink); color: #fff; border-radius: 99px; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem;
  display: inline-grid; place-items: center; font-size: .8rem; }
.offer { margin: 0; padding: .5rem 1rem; text-align: center; background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: 600; }

main { max-width: 1180px; margin: auto; padding: 1.25rem max(1rem, env(safe-area-inset-left)) 3rem; min-height: 70vh; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .7rem 1.3rem;
  background: var(--ink); color: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius);
  font: 700 1rem/1.2 system-ui, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--pink); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--pink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--pink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: 4px 4px 0 var(--teal); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
button.link { background: none; border: 0; padding: .5rem; font: inherit; text-decoration: underline; cursor: pointer; color: inherit; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; margin: .5rem 0 3rem;
  background: var(--paper); border: 2px solid var(--ink); border-radius: calc(var(--radius) * 1.6); padding: clamp(1.25rem, 4vw, 3rem);
  box-shadow: 8px 8px 0 var(--ink); }
.hero-placeholder { min-height: 340px; }
.eyebrow { display: inline-block; font-size: .8rem; margin: 0 0 .75rem; padding: .2rem .55rem; background: var(--teal); color: #fff;
  border-radius: 6px; transform: rotate(-2deg); }
.hero-title { font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.02; margin: 0 0 1rem; text-shadow: 3px 3px 0 var(--pink); }
.hero-blurb { font-size: 1.1rem; max-width: 34rem; margin: 0 0 1.5rem; }
.ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin: 0; }
.hero-also { margin: 1.1rem 0 0; color: var(--muted); font-size: .95rem; }
.hero-img img { border-radius: var(--radius); background: #fff; border: 2px solid var(--ink); }

/* rows, tiles, cards */
section { margin: 0 0 3rem; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.more { font-weight: 700; white-space: nowrap; }
.more::after { content: " \2192"; }
.rail, .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.5rem 1.25rem; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tile { position: relative; display: block; text-decoration: none; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff; }
.tile img { aspect-ratio: 1; object-fit: cover; transition: transform .25s; }
.tile:hover img { transform: scale(1.04); }
.tile-name { position: absolute; left: .75rem; bottom: 2.1rem; font-size: 1.15rem; background: var(--bg); padding: .1rem .45rem; border-radius: 6px; }
.tile-price { position: absolute; left: .75rem; bottom: .7rem; font-size: .85rem; font-weight: 600; background: var(--bg); padding: 0 .45rem; border-radius: 6px; }
.card { text-decoration: none; display: block; }
.card img { aspect-ratio: 1; object-fit: cover; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover img { transform: translateY(-3px); box-shadow: 0 8px 0 -2px var(--pink); }
.card h3 { margin: .65rem 0 .1rem; }
.price { margin: 0; color: var(--ink); font-weight: 600; }
.also-on { margin: .1rem 0 0; color: var(--muted); font-size: .88rem; }

.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.25rem; border-block: 2px solid var(--ink); }
.trust li { font-weight: 600; padding-left: 1.6rem; position: relative; }
.trust li::before, .buy .perks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .8rem; border-radius: 3px; background: var(--teal); transform: rotate(45deg); }
.about-teaser { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 1.5rem; }
.about-teaser p { margin: 0; max-width: 46rem; }

/* shop */
.tools { display: flex; gap: .75rem; margin: 0 0 1rem; flex-wrap: wrap; }
.tools input, .tools select { font: inherit; min-height: 44px; padding: .5rem .8rem; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); }
.tools input { flex: 1 1 240px; }
.shop-head { margin-bottom: 1rem; }
.shop-head p { margin: 0; color: var(--muted); }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 0 0 1.5rem; padding-bottom: .25rem; }
.chips a { white-space: nowrap; text-decoration: none; border: 2px solid var(--ink); border-radius: 99px; padding: .35rem .9rem; font-weight: 600; }
.chips a[aria-current] { background: var(--ink); color: var(--bg); }
.empty, .notice { padding: 2rem 0; }
.notice .btn { margin-top: 1rem; }

/* product */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.25rem, 4vw, 3rem); align-items: start; }
.gallery { position: sticky; top: 5rem; }
.main-img img { aspect-ratio: 1; object-fit: cover; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; }
.thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--pink); }
.share { margin: 1rem 0 0; font-size: .92rem; }
.share .link { padding: 0; }
.pick legend .link { font-size: .9rem; font-weight: 600; padding: 0 0 0 .5rem; }
.guide { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.25rem; max-width: min(560px, calc(100% - 2rem)); box-shadow: 8px 8px 0 var(--ink); background: var(--bg); color: var(--ink); }
.guide::backdrop { background: rgb(0 0 0 / .45); }
.guide .close { float: right; }
.guide .table { overflow-x: auto; }
.guide table { border-collapse: collapse; width: 100%; margin: .75rem 0; }
.guide th, .guide td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.guide small { display: block; color: var(--muted); font-size: .8rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .5rem; margin-top: .6rem; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.buy h1 { margin-bottom: .35rem; }
.big-price { font-size: 1.6rem; font-weight: 800; margin: 0 0 .75rem; }
.blurb { margin: 0 0 1.25rem; }
.fabric { margin: 0 0 1rem; font-size: .95rem; }
.pick { border: 0; padding: 0; margin: 0 0 1.1rem; }
.pick legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.pick legend b { font-weight: 400; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: .55rem; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 3px #fff; }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--pink); }
.size { min-width: 52px; min-height: 44px; padding: 0 .8rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; font: 600 .95rem system-ui, sans-serif; cursor: pointer; }
.size[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.size:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.buy .btn.wide { margin: .4rem 0 1.25rem; font-size: 1.05rem; }
.buy .perks li { position: relative; padding-left: 1.5rem; font-size: .95rem; }
.details { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.details h2 { font-size: 1rem; }
.also { margin-top: 3.5rem; }
.sticky-buy { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem; padding-bottom: max(.7rem, env(safe-area-inset-bottom)); background: var(--bg); border-top: 2px solid var(--ink); }
.sticky-buy > span { display: grid; min-width: 0; }
.sticky-buy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.added { position: fixed; z-index: 40; right: 1rem; top: 5rem; width: min(380px, calc(100% - 2rem)); display: grid; grid-template-columns: 64px 1fr; gap: .5rem .9rem; align-items: center;
  background: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius); padding: .9rem; box-shadow: 6px 6px 0 var(--ink); transition: opacity .5s; }
.added img { border-radius: 6px; }
.added div { display: grid; }
.added span { color: var(--muted); font-size: .9rem; }
.added .btn { grid-column: 1 / -1; }
.added button.link { grid-column: 1 / -1; }
.added.fade { opacity: 0; }

/* cart */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.lines img { border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; }
.line-info { display: grid; gap: .15rem; }
.line-info a { text-decoration: none; }
.line-info span { color: var(--muted); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; gap: .25rem; margin-top: .35rem; }
.qty button { width: 36px; height: 36px; border: 2px solid var(--line); border-radius: 8px; background: #fff; font: 700 1.1rem system-ui; cursor: pointer; }
.qty span { min-width: 1.8rem; text-align: center; font-weight: 700; }
.summary { position: sticky; top: 5rem; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.25rem; }
.sub { display: flex; justify-content: space-between; font-size: 1.15rem; margin: 0 0 .75rem; }
.progress { height: 10px; background: #fff; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--teal); }
.summary .btn { margin-top: .75rem; }
.error { color: #a1001f; font-weight: 600; }
.small, .updated { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }

/* cart add-ons */
.addons { margin: 1.5rem 0 0; }
.addons h2 { font-size: 1.1rem; margin: 0; }
.addon-list { display: grid; gap: .75rem; margin-top: .75rem; }
.addon { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; }
.addon img { border-radius: 8px; border: 1px solid var(--line); }
.addon span { display: grid; }
.addon .btn { min-height: 40px; padding: .4rem .9rem; }

/* legal, about */
.legal, .prose { max-width: 46rem; }
.legal h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 3px solid var(--line); }
.prose p { font-size: 1.08rem; }
.prose h2 { margin-top: 2.25rem; }

/* footer, cookies */
footer { border-top: 2px solid var(--ink); padding: 1.75rem 1rem calc(1.75rem + env(safe-area-inset-bottom)); text-align: center; font-size: .92rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-bottom: .5rem; }
footer p { margin: .35rem 0; }
footer button.link { padding: 0; color: inherit; }
.consent { position: fixed; z-index: 50; left: 1rem; bottom: 1rem; width: min(440px, calc(100% - 2rem)); background: var(--bg);
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem; box-shadow: 6px 6px 0 var(--ink); margin-bottom: env(safe-area-inset-bottom); }
.consent p { margin: 0 0 .8rem; font-size: .92rem; }
.consent div { display: flex; gap: .75rem; flex-wrap: wrap; }
.consent .btn { min-height: 42px; padding: .5rem 1rem; }

/* phones and small tablets */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .hero-img img { max-height: 42vh; width: auto; margin: auto; aspect-ratio: 1; object-fit: contain; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .product, .cart { grid-template-columns: 1fr; }
  .gallery, .summary { position: static; }
}
@media (max-width: 600px) {
  .bar { gap: .25rem 1rem; }
  .find { flex: 1 1 6rem; }
  .cats { order: 3; flex-basis: 100%; gap: .85rem; font-size: .95rem; justify-content: space-between; }
  .hero { box-shadow: 5px 5px 0 var(--ink); margin-bottom: 2rem; }
  .hero-blurb { font-size: 1rem; }
  .ctas .btn { flex: 1 1 100%; }
  /* rows scroll sideways on phones, grids go two up */
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; gap: .9rem; margin: 0 -1rem; padding: 0 1rem .5rem; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail .card { flex: 0 0 62%; scroll-snap-align: start; }
  .grid, .grid.small { grid-template-columns: repeat(2, 1fr); gap: 1.1rem .8rem; }
  .card h3 { font-size: .95rem; }
  .tile-name { font-size: 1rem; }
  .trust { grid-template-columns: 1fr; }
  .about-teaser { grid-template-columns: 1fr; }
  .lines li { grid-template-columns: 64px 1fr auto; gap: .75rem; }
  .added { top: auto; bottom: 1rem; }
  .consent { left: .5rem; bottom: .5rem; width: calc(100% - 1rem); padding: .8rem; }
  .consent p { font-size: .85rem; }
}
@media (min-width: 901px) { .sticky-buy { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
