/* Manky Glow — public pages. Written phone-first; wider screens only add columns. */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.9212f6f9860f.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.a09f2fccfee3.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.72993dddf88a.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.25b0e113ca7c.woff2") format("woff2"); }

:root {
  --ink: #1f2a44;
  --muted: #586178;
  --accent: #d91747;
  --ground: #f3f5f9;
  --card: #ffffff;
  --line: #e3e7ef;
  --line-strong: #c4ccdb;
  --wa: #0a7d5e;
  --danger: #b4123a;
  --pad: clamp(16px, 3vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.5 Poppins, "Segoe UI", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 3px solid #3b82d9; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.top { background: var(--card); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.logo img { height: 52px; width: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 22px;
  border: 1.5px solid #d5dbe7; background: var(--card); color: var(--ink); cursor: pointer;
}
.rainbow { display: flex; height: 5px; }
.rainbow i { flex: 1; }
.rainbow i:nth-child(1) { background: #e8483f; }
.rainbow i:nth-child(2) { background: #f59e2d; }
.rainbow i:nth-child(3) { background: #f7d046; }
.rainbow i:nth-child(4) { background: #4caf6a; }
.rainbow i:nth-child(5) { background: #3b82d9; }

/* Buttons */
.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: 28px;
  background: var(--wa); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none;
}
.btn-wa.small { min-height: 46px; font-size: 15px; padding: 0 20px; }
.btn-wa:hover { background: #086a50; }

/* Catalog */
.intro { padding-top: clamp(24px, 4vw, 40px); display: grid; gap: 6px; }
.intro h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.5px; }
.intro p { color: var(--muted); font-size: 15px; }

.chips { display: flex; gap: 8px; padding: 16px var(--pad) 20px; margin: 0 calc(var(--pad) * -1); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 22px;
  background: var(--card); border: 1.5px solid #d5dbe7; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.grid { display: grid; gap: clamp(12px, 2vw, 20px); grid-template-columns: repeat(auto-fill, minmax(max(150px, 22%), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: 16px; overflow: hidden; text-decoration: none; }
.card-photo { position: relative; aspect-ratio: 4 / 5; background: var(--card); }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card.sold .card-photo img { opacity: 0.55; }
.no-photo { position: absolute; inset: 0; display: grid; place-items: center; color: #aeb7c9; background: #f8f9fc; }
.badge { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.card-text { display: grid; gap: 4px; padding: 10px 12px 14px; border-top: 1px solid #eef1f6; }
.card-name { font-size: clamp(14px, 1.3vw, 16px); line-height: 1.3; font-weight: 500; min-height: 2.6em; }
.card-price { display: flex; align-items: baseline; gap: 5px; font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; color: var(--accent); }
.card-price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.card:hover .card-name { text-decoration: underline; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

.ask { margin-top: 32px; }
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 32px; padding-block: 24px 32px; border-top: 1px solid #dde2ec; font-size: 14px; color: var(--muted); }
.site-foot strong { color: var(--ink); font-weight: 600; }

/* Product */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: none; }
.product { display: grid; gap: 0; }
.gallery-box { background: var(--card); border-radius: 16px; overflow: hidden; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img, .gallery .no-photo { flex: none; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; scroll-snap-align: center; position: static; }
.thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.thumb { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--card); overflow: hidden; cursor: pointer; }
.thumb[aria-pressed="true"] { border: 2px solid var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }

.info { display: grid; gap: 20px; padding-top: 20px; align-content: start; }
.info-head { display: grid; gap: 6px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.info h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -0.4px; }
.price { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--accent); }
.sold-note { display: inline-block; padding: 4px 12px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; justify-self: start; }

.opt { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.opt legend { padding: 0; font-size: 14px; font-weight: 600; }
.opt legend span { font-weight: 400; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 20px; border-radius: 23px;
  border: 1.5px solid var(--line-strong); background: var(--card); font-size: 15px; font-weight: 500; cursor: pointer;
}
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pill input:focus-visible + span { outline: 3px solid #3b82d9; outline-offset: 2px; }

.cta { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 8px; margin: 0 calc(var(--pad) * -1); padding: 12px var(--pad); background: var(--ground); }
.cta small { text-align: center; font-size: 13px; color: var(--muted); }
.share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 23px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; justify-self: start; }
.details { display: grid; gap: 8px; }
.details h2, .related h2 { font-size: 17px; font-weight: 600; }
.details p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.related { display: grid; gap: 12px; margin-top: 32px; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(max(105px, 15%), 1fr)); gap: 10px; }
.related .card-name { font-size: 13px; }
.related .card-price { font-size: 15px; }

.notfound { padding: 64px 0; display: grid; gap: 16px; justify-items: start; }
.notfound h1 { font-size: 28px; }

@media (min-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .gallery-box { position: sticky; top: 16px; }
  .info { padding-top: 0; }
  .cta { position: static; margin: 0; padding: 0; background: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .gallery { scroll-behavior: smooth; }
}
