/*
 * Snug Ghosts — вітрина в дусі маркетплейсу: білий фон, товар на сірих плитках,
 * чорні кнопки, серіфні заголовки. Гарбузовий акцент лише там, де він щось означає
 * (набір, економія). Нічна синя смуга — для Ghost Maker.
 */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --tile: #f0efec;
  --surface: #ffffff;
  --border: #e3e2df;
  --text: #222222;
  --muted: #5f5f5f;
  --accent: #e8711c;
  --accent-ink: #b5530b;
  --accent-2: #2463c9;
  --night: #1d2a5c;
  --night-ink: #c9d2f2;
  --checker-a: #ffffff;
  --checker-b: #ecebe8;
  --radius: 12px;
  --container: 1240px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --brand: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
small, .hint { color: var(--muted); font-size: .875rem; }
.hint { margin: .25rem 0 0; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 34rem; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 44px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .6rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--text);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--bg-alt); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--text); border-color: var(--text); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-quiet { border-color: var(--border); font-weight: 500; }
.btn-lg { min-height: 52px; padding-inline: 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--brand); font-weight: 700; font-size: 1.35rem; text-decoration: none; white-space: nowrap; }
.brand-mark { position: relative; width: 22px; height: 26px; border: 2.5px solid var(--text); border-radius: 11px 11px 5px 5px; background: #fff; }
.brand-mark::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: -5px;
  height: 11px;
  border: 2.5px solid var(--text);
  border-radius: 10px 10px 3px 3px;
  background: var(--accent);
}

.search { position: relative; max-width: 720px; width: 100%; justify-self: center; }
.search input {
  width: 100%;
  height: 46px;
  padding: 0 52px 0 20px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.search input::placeholder { color: #7d7d7d; }
.search button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.icon-link:hover { background: var(--bg-alt); }
.icon-link svg { width: 22px; height: 22px; }
.count-pill {
  position: absolute;
  top: 1px;
  left: 21px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.cat-nav { border-top: 1px solid var(--border); }
.cat-nav ul { display: flex; gap: 4px; margin: 0; padding: 6px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: block; padding: 6px 12px; border-radius: 999px; font-size: .92rem; white-space: nowrap; text-decoration: none; color: var(--muted); }
.cat-nav a:hover { background: var(--bg-alt); color: var(--text); }
.cat-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- Головна ---------- */
.hero { padding-block: 36px 12px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 40px; padding: 40px; border-radius: 24px; background: var(--bg-alt); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1.15; }
.collage a { display: block; border-radius: 16px; background: var(--surface); overflow: hidden; }
.collage a:first-child { grid-row: span 2; }
.collage svg { display: block; width: 100%; height: 100%; }

.things { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.things a { display: grid; justify-items: center; gap: 10px; text-decoration: none; text-align: center; font-weight: 600; font-size: .95rem; }
.thing-circle { display: grid; place-items: center; width: 100%; max-width: 128px; aspect-ratio: 1; border-radius: 50%; background: var(--tile); overflow: hidden; transition: box-shadow .15s ease; }
.thing-circle svg { width: 62%; height: 62%; }
.things a:hover .thing-circle { box-shadow: 0 0 0 2px var(--text); }

.maker-band { margin-block: 20px; border-radius: 24px; background: var(--night); color: #fff; overflow: hidden; }
.maker-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 32px; padding: 44px; }
.maker-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.maker-band p { color: var(--night-ink); max-width: 30rem; }
.maker-band .btn { background: #fff; border-color: #fff; color: var(--night); }
.maker-band .btn:hover { background: var(--night-ink); }
.maker-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.maker-steps li { display: grid; gap: 10px; }
.maker-steps .tile { aspect-ratio: 1; border-radius: 14px; background: #fff; overflow: hidden; }
.maker-steps .tile svg { display: block; width: 100%; height: 100%; }
.maker-steps span { font-size: .9rem; color: var(--night-ink); }

.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 28px 0; list-style: none; border-block: 1px solid var(--border); }
.perks li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.perks svg { grid-row: span 2; width: 32px; height: 32px; }
.perks strong { font-weight: 600; }
.perks span { color: var(--muted); font-size: .92rem; }

/* ---------- Картки товарів ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; list-style: none; margin: 0; padding: 0; }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.card { position: relative; display: block; min-width: 0; }
.card > a { display: block; color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 1; border-radius: var(--radius); background: var(--tile); overflow: hidden; }
.card-media svg, .card-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.card:hover .card-media { box-shadow: 0 0 0 1.5px var(--text); }
.card-body { padding-top: 10px; }
.card-title { margin: 0; overflow: hidden; font-size: .95rem; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.card-meta { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.card-price { margin: 4px 0 0; font-weight: 700; }
.card-price s { margin-left: 6px; color: var(--muted); font-weight: 400; }
.card-price .save { margin-left: 6px; color: var(--accent-ink); font-weight: 600; font-size: .85rem; }
.badge { position: absolute; top: 10px; left: 10px; padding: .2rem .65rem; border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

.fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
  cursor: pointer;
}
.fav svg { width: 20px; height: 20px; }
.fav[aria-pressed="true"] { color: #d6336c; }
.fav[aria-pressed="true"] svg path { fill: currentColor; }

/* набір: три мініатюри в одній плитці */
.stack { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; width: 100%; height: 100%; }
.stack > div { background: var(--tile); overflow: hidden; }
.stack > div:first-child { grid-row: span 2; }
.stack svg { display: block; width: 100%; height: 100%; }

/* ---------- Магазин ---------- */
.shop-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; padding-block: 28px 64px; }
.shop-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.shop-top h1 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.sort { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
select { padding: .5rem 2rem .5rem .8rem; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; }
.filters-panel summary { display: none; }
.filter-group { padding-block: 16px; border-bottom: 1px solid var(--border); }
.filter-group:first-of-type { padding-top: 0; }
.filter-group h2 { margin: 0 0 10px; font-family: var(--font); font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.filter-group label { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: .95rem; cursor: pointer; }
.filter-group input { width: 18px; height: 18px; accent-color: var(--text); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .35rem .85rem; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; }
.chip:hover, .chip[aria-current="page"] { border-color: var(--text); }
.chip[aria-current="page"] { font-weight: 600; }
.empty { padding: 48px 24px; border-radius: var(--radius); background: var(--bg-alt); text-align: center; }
.empty p { color: var(--muted); }
.more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; }

/* ---------- Сторінка товару ---------- */
.crumbs { padding-top: 20px; font-size: .9rem; color: var(--muted); }
.crumbs a { text-underline-offset: 3px; }
.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 20px 48px; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.gallery-thumbs { display: grid; align-content: start; gap: 8px; }
.gallery-thumbs button { padding: 0; aspect-ratio: 1; border: 2px solid transparent; border-radius: 10px; background: var(--tile); overflow: hidden; cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--text); }
.gallery-thumbs svg { display: block; width: 100%; height: 100%; }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--tile); overflow: hidden; }
.gallery-main > svg { display: block; width: 100%; height: 100%; }
.buy-box { position: sticky; top: 140px; display: grid; gap: 14px; }
.buy-box h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.buy-box .theme-link { color: var(--muted); font-size: .95rem; text-underline-offset: 3px; }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-size: 1.8rem; font-weight: 700; }
.buy-price s { color: var(--muted); font-size: 1.1rem; font-weight: 400; }
.buy-price .save { padding: .15rem .55rem; border-radius: 999px; background: #fdebdc; color: var(--accent-ink); font-size: .85rem; font-weight: 700; }
.format-line { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.format-line svg { width: 20px; height: 20px; flex: none; }
.upsell { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius); text-decoration: none; }
.upsell:hover { border-color: var(--text); }
.upsell .tile { aspect-ratio: 1; border-radius: 8px; background: var(--tile); overflow: hidden; }
.upsell .tile svg { display: block; width: 100%; height: 100%; }
.upsell strong { display: block; }
.upsell span { color: var(--muted); font-size: .9rem; }
.details { border-top: 1px solid var(--border); }
.details details { border-bottom: 1px solid var(--border); }
.details summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; }
.details details[open] summary::after { content: "–"; }
.details ul { margin: 0 0 14px; padding-left: 1.1rem; color: var(--muted); }
.details li { margin-bottom: 4px; }

.watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='130'%3E%3Ctext x='18' y='70' font-family='Arial,sans-serif' font-size='15' font-weight='700' fill='%23222' fill-opacity='.12' transform='rotate(-24 110 65)'%3ESnug Ghosts preview%3C/text%3E%3C/svg%3E");
}

/* фони для перегляду прозорості */
.bg-checker {
  background-color: var(--checker-a);
  background-image:
    linear-gradient(45deg, var(--checker-b) 25%, transparent 25%),
    linear-gradient(-45deg, var(--checker-b) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--checker-b) 75%),
    linear-gradient(-45deg, transparent 75%, var(--checker-b) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}
.bg-light { background: #ffffff; }
.bg-dark { background: #2a2a2e; }

/* ---------- Текстові сторінки ---------- */
.prose { max-width: 44rem; padding-block: 48px 80px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose p, .prose li { line-height: 1.65; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4em; }
.note { padding: 14px 16px; border-radius: var(--radius); background: #fff4e8; color: #6b3d12; font-size: .92rem; }

.form { display: grid; gap: 12px; max-width: 26rem; margin-top: 20px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea { min-height: 46px; padding: .6rem .9rem; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.form-status { min-height: 1.5em; margin: 0; color: var(--accent-ink); font-weight: 600; }

/* ---------- Вікно оплати (макет) ---------- */
dialog.checkout { width: min(92vw, 420px); padding: 24px; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
dialog.checkout::backdrop { background: rgba(0, 0, 0, .45); }
dialog.checkout h2 { font-size: 1.5rem; }
.order-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-block: 1px solid var(--border); margin-bottom: 14px; font-weight: 600; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ---------- Кошик ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin-top: 20px; }
.cart-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.cart-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-row .tile { aspect-ratio: 1; border-radius: 10px; background: var(--tile); overflow: hidden; }
.cart-row .tile svg, .cart-row .tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cart-name { margin: 0; font-weight: 600; }
.cart-name a { text-decoration: none; }
.cart-name a:hover { text-decoration: underline; }
.cart-row .card-price { margin: 0; }
.text-btn { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-btn:hover { color: var(--text); }
.cart-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: #fdebdc; }
.cart-hint p { margin: 0; }
.cart-summary { position: sticky; top: 140px; display: grid; gap: 12px; padding: 24px; border-radius: 16px; background: var(--bg-alt); }
.cart-summary h2 { margin: 0; font-size: 1.4rem; }
.sum-line { display: flex; justify-content: space-between; gap: 16px; }
.sum-total { padding-top: 12px; border-top: 1px solid var(--border); font-size: 1.15rem; font-weight: 700; }

/* ---------- Замовлення й FAQ ---------- */
.file-list { margin: 20px 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.file-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.file-list .tile { aspect-ratio: 1; border-radius: 8px; background: var(--tile); overflow: hidden; }
.file-list .tile svg { display: block; width: 100%; height: 100%; }
.file-list p { margin: 0; }
.state-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 28px; }
.faq .details div { padding-bottom: 6px; color: var(--muted); }
.faq .details div p { margin: 0 0 10px; }

/* ---------- Футер ---------- */
.site-footer { margin-top: 48px; padding-block: 44px 28px; background: var(--night); color: #fff; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand-mark { border-color: #fff; }
.site-footer .brand-mark::before { border-color: #fff; }
.footer-inner p { color: var(--night-ink); margin: .6rem 0 0; max-width: 20rem; }
.footer-col h3 { margin-bottom: .8rem; font-size: .95rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-col a { color: var(--night-ink); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; color: var(--night-ink); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .things { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-inner, .maker-band-inner, .product { grid-template-columns: 1fr; }
  .hero-inner { padding: 28px; }
  .maker-band-inner { padding: 32px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 1fr; gap: 0; }
  .filters-panel { margin-bottom: 20px; border: 1.5px solid var(--border); border-radius: var(--radius); }
  .filters-panel summary { display: flex; justify-content: space-between; padding: 12px 16px; font-weight: 600; cursor: pointer; list-style: none; }
  .filters-panel summary::-webkit-details-marker { display: none; }
  .filters-panel .filter-body { padding: 0 16px 12px; }
  .buy-box, .cart-summary { position: static; }
  .cart-layout { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header-main { grid-template-columns: auto auto; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .header-actions { justify-self: end; }
  .icon-link .label { display: none; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 32px; }
  .hero { padding-top: 16px; }
  .hero-inner { padding: 20px; gap: 24px; border-radius: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .maker-band { border-radius: 18px; }
  .maker-band-inner { padding: 24px 20px; }
  .grid, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .things { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
  .things a { font-size: .82rem; }
  .perks { grid-template-columns: 1fr; gap: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
  .file-list li { grid-template-columns: 56px minmax(0, 1fr); }
  .file-list .btn { grid-column: 1 / -1; }
  .gallery-thumbs { grid-row: 2; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fav { width: 34px; height: 34px; top: 8px; right: 8px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .thing-circle { transition: none; }
}
