/* Gadget Popcorn link page. Brand: ink #1A1433, gold #FCB742, orange #FF8A1F, red #F93E4D, blue #308FC3, cream #FFF6DC */
:root {
  --ink: #1A1433; --ink-2: #4A4560; --gold: #FCB742; --orange: #FF8A1F; --red: #F93E4D; --blue: #308FC3;
  --cream: #FFF6DC; --paper: #FBF8F1; --pink: #E2366F; --line: 2.5px;
  --shadow: 0 4px 0 var(--ink); --soft: 0 10px 30px rgba(26, 20, 51, .14);
  --head: 'Fredoka', 'Poppins', system-ui, sans-serif; --body: 'Poppins', system-ui, sans-serif; --hand: 'Caveat', 'Comic Sans MS', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 500 15px/1.5 var(--body); color: var(--ink); background-color: var(--cream);
  background-image: radial-gradient(rgba(252, 183, 66, .28) 2.2px, transparent 2.6px), radial-gradient(rgba(255, 138, 31, .16) 1.6px, transparent 2px);
  background-size: 34px 34px, 34px 34px; background-position: 0 0, 17px 17px;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 50; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.top { position: relative; text-align: center; padding: 34px 0 26px; overflow: hidden; }
.top .sun {
  position: absolute; left: 50%; top: -620px; width: 1100px; height: 800px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 100%, #FFD66E 0, var(--gold) 38%, var(--orange) 100%); border-bottom: var(--line) solid var(--ink);
}
.top .wrap { position: relative; }
.avatar {
  width: 132px; height: 132px; margin: 0 auto; border-radius: 50%; background: var(--cream); border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink); display: grid; place-items: center; animation: bob 3.2s ease-in-out infinite;
}
.avatar img { width: 112px; height: auto; transform: translateY(4px); }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-2deg); } }
h1 { font: 700 clamp(34px, 8vw, 46px)/1.05 var(--head); margin: 18px 0 4px; letter-spacing: -.5px; }
.tag { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--cream);
  box-shadow: 0 3px 0 rgba(26, 20, 51, .35); transition: transform .15s, background .15s, color .15s; text-decoration: none;
}
.socials a:hover { transform: translateY(-3px) rotate(-6deg); background: var(--gold); color: var(--ink); }
.socials svg { width: 22px; height: 22px; }

/* ---------- stickers + buttons ---------- */
.sticker {
  display: inline-block; margin: 0; font: 700 20px/1 var(--head); letter-spacing: .3px; text-transform: uppercase; background: #fff;
  border: var(--line) solid var(--ink); border-radius: 12px; padding: 9px 14px 8px; box-shadow: var(--shadow); transform: rotate(-2deg);
}
.sticker-red { background: var(--red); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 14px;
  border: var(--line) solid var(--ink); background: var(--gold); color: var(--ink); font: 700 16px/1.1 var(--head); letter-spacing: .2px;
  text-decoration: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .1s, box-shadow .1s, background .15s;
}
.btn:hover { background: #FFC85E; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-ghost { background: #fff; }
.btn-ghost:hover { background: var(--paper); }
.btn[aria-disabled="true"] { background: #E9E4D6; color: var(--ink-2); cursor: default; }
.btn .arr { font-size: 15px; }
.icon-btn {
  width: 48px; min-width: 48px; height: 48px; padding: 0; border-radius: 14px; border: var(--line) solid var(--ink); background: #fff;
  box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; font-size: 20px; transition: transform .1s, box-shadow .1s;
}
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- polaroid ---------- */
.card .icon-btn svg { width: 20px; height: 20px; }
.pol {
  position: relative; background: var(--paper); border-radius: 6px; padding: 12px 12px 14px; box-shadow: var(--soft), 0 1px 0 rgba(0, 0, 0, .06);
  transform: rotate(var(--r, 0deg)); transition: transform .2s ease, box-shadow .2s ease;
}
.ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #E9E4D6; border-radius: 2px; }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; }
.new {
  position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--red); color: #fff; font: 700 13px/1 var(--head); letter-spacing: .6px;
  padding: 6px 9px 5px; border-radius: 999px; border: 2px solid #fff; transform: rotate(5deg);
}
.cap { font: 700 26px/1.1 var(--hand); margin: 12px 2px 2px; }
.cap b { color: var(--pink); font-weight: 700; }

/* ---------- latest ---------- */
.latest { margin: 12px auto 56px; max-width: 980px; }
.latest .sticker { margin: 0 0 24px 4px; }
.hero { display: grid; gap: 28px; align-items: center; }
.hero .pol { --r: -1.2deg; max-width: min(430px, 80vw); width: 100%; justify-self: center; }
.hero .cap { font-size: 34px; }
.hero-info h3 { font: 700 clamp(28px, 6vw, 38px)/1.1 var(--head); margin: 0 0 12px; }
.hero-info h3 b { color: var(--pink); }
.hero-info p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.pts { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pts li { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 13px 6px 10px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.pts li::before { content: '✓'; color: #1E9E5A; font-weight: 800; margin-right: 6px; }
.row { display: flex; gap: 10px; align-items: center; }
.row .btn-buy { flex: 1; }
.when { font-size: 13px; color: var(--ink-2); margin: 20px 0 0; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 430px 1fr; gap: 44px; }
  .hero .pol { justify-self: start; }
}

/* ---------- finds ---------- */
.finds { padding-bottom: 50px; }
.finds-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 20px; }
.count { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.tools {
  position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto; gap: 12px 10px; padding: 12px 12px 14px; margin: 0 -12px;
  background: rgba(255, 246, 220, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 0 0 18px 18px;
}
.tools.stuck { box-shadow: 0 8px 18px -12px rgba(26, 20, 51, .45); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 50px; padding: 0 44px 0 44px; border-radius: 14px; border: var(--line) solid var(--ink); background: #fff;
  box-shadow: var(--shadow); font-size: 16px; font-weight: 500; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #8C879B; }
.search input::-webkit-search-cancel-button { display: none; }
.clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--cream); cursor: pointer; font-weight: 700; }
.sort select {
  height: 50px; padding: 0 36px 0 14px; border-radius: 14px; border: var(--line) solid var(--ink); background: #fff; box-shadow: var(--shadow);
  font-weight: 600; font-size: 14.5px; cursor: pointer; -webkit-appearance: none; appearance: none; max-width: 46vw;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A1433' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 12px;
}
.chips { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background .15s, color .15s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--gold); }
.hint { margin: 12px 4px 30px; font-size: 13.5px; color: var(--ink-2); }
.hint b { color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card .pol { padding: 8px 8px 14px; cursor: pointer; }
.card:nth-child(3n+1) .pol { --r: -1.4deg; }
.card:nth-child(3n+2) .pol { --r: 1.1deg; }
.card:nth-child(3n) .pol { --r: -.5deg; }
.card .pol:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 16px 34px rgba(26, 20, 51, .2); }
.card .new { font-size: 11px; top: 8px; right: 8px; padding: 5px 7px 4px; }
.card .cap { font-size: 23px; margin: 10px 2px 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.1em; }
.card .meta { font-size: 12px; color: var(--ink-2); margin: 4px 2px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .row { gap: 8px; }
.card .btn { min-height: 42px; font-size: 14.5px; padding: 8px 10px; border-radius: 12px; }
.card .icon-btn { width: 42px; min-width: 42px; height: 42px; border-radius: 12px; font-size: 17px; }
.heart svg { fill: none; stroke: var(--ink); transition: fill .15s, stroke .15s; }
.heart[aria-pressed="true"] { background: #FFE3E6; }
.heart[aria-pressed="true"] svg { fill: var(--red); stroke: var(--red); }
.heart.pop svg { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
.card.flash .pol { animation: flash 1.6s ease 2; }
@keyframes flash { 30% { box-shadow: 0 0 0 6px var(--gold), var(--soft); } }

.empty { text-align: center; padding: 30px 0 10px; }
.empty img { margin: 0 auto 10px; transform: rotate(-8deg); }
.empty p { font: 600 17px var(--head); margin: 0 0 20px; }

/* ---------- carousel ---------- */
.car { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; background: #E9E4D6; }
.slides::-webkit-scrollbar { display: none; }
.slides > * { flex: 0 0 100%; scroll-snap-align: center; width: 100%; height: 100%; object-fit: cover; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; pointer-events: none; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(26, 20, 51, .25); transition: width .2s, background .2s; }
.dots i.on { width: 18px; background: #fff; }
.nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: rgba(255, 255, 255, .92); cursor: pointer; font-weight: 800; display: none; }
.nav.prev { left: 8px; } .nav.next { right: 8px; }
@media (hover: hover) { .car:hover .nav { display: grid; place-items: center; } }

/* ---------- product sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; justify-items: center; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(26, 20, 51, .55); animation: fade .2s ease; }
.sheet-card {
  position: relative; width: min(560px, 100%); max-height: 94vh; overflow-y: auto; background: var(--cream); border: var(--line) solid var(--ink);
  border-bottom: 0; border-radius: 26px 26px 0 0; padding: 14px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2, .9, .3, 1.15);
}
.sheet-card:focus { outline: none; }
.grab { width: 46px; height: 5px; border-radius: 9px; background: rgba(26, 20, 51, .25); margin: 0 auto 12px; }
.sheet .close { position: absolute; top: 12px; right: 12px; z-index: 3; }
.sheet .pol { --r: -.8deg; margin: 16px 8px 24px; }
.sheet .cap { font-size: 32px; }
.sheet .when { margin: 0 0 8px; }
.buybar { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); margin: 8px -18px calc(-22px - env(safe-area-inset-bottom)); padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  background: var(--cream); border-top: 2px solid rgba(26, 20, 51, .1); z-index: 3; }
.sheet .full { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 0 0 14px; }
.sheet .desc { margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; }
.note { background: #fff; border-left: 4px solid var(--orange); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; margin: 0 0 22px; }
.sheet .row { margin-top: 0; }
@media (min-width: 640px) {
  .sheet { align-items: center; }
  .sheet-card { border-bottom: var(--line) solid var(--ink); border-radius: 26px; max-height: 92vh; }
  .grab { display: none; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
body.locked { overflow: hidden; }

/* ---------- footer + toast ---------- */
.foot { background: var(--ink); color: var(--cream); text-align: center; padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); border-top: var(--line) solid var(--ink); }
.foot p { margin: 0 0 14px; }
.foot a { color: var(--gold); font-weight: 600; }
.foot .ask { font: 600 17px/1.4 var(--head); }
.foot .disc { font-size: 13px; opacity: .85; }
.foot .small { font-size: 12.5px; opacity: .7; margin: 0; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream); padding: 11px 18px; border-radius: 14px; font-weight: 600; transition: transform .25s, opacity .25s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 380px) { .grid { gap: 22px 12px; } .card .cap { font-size: 21px; } .sort select { max-width: 40vw; font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 759px) { .hero-info h3 { display: none; } .hero .cap { text-align: center; } }
.locked .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
.hero-info p.when, .sheet p.when { margin: 20px 0 0; }
.sheet p.when { margin: 4px 0 6px; }
[hidden] { display: none !important; }
.empty.soon { background: var(--paper); border-radius: 18px; box-shadow: var(--soft); padding: 34px 20px 30px; margin: 6px auto 10px; max-width: 520px; }
.empty.soon img { width: 132px; height: auto; margin-bottom: 14px; animation: bob 3.2s ease-in-out infinite; }
.empty.soon p { font: 700 24px/1.25 var(--head); margin: 0 0 22px; }
.empty.soon p span { display: block; font: 500 15px/1.5 var(--body); color: var(--ink-2); margin-top: 8px; }
.empty.soon .socials { margin-top: 0; }
.empty.soon { padding-inline: 14px; } .empty.soon .socials { gap: 8px; flex-wrap: nowrap; } .empty.soon .socials a { width: 41px; height: 41px; } .empty.soon .socials svg { width: 20px; height: 20px; }
