/* Shop: phone first, one clear path from toy to WhatsApp. */
.announce {
  background: var(--ink); color: #fff; text-align: center;
  padding: 8px 16px; font-size: 14px; font-weight: 700;
}

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: rgba(255, 248, 238, 0.96);
  border-bottom: 2.5px solid var(--ink);
}
.brand img { width: 92px; height: auto; }
.search { flex: 1; max-width: 560px; margin-left: auto; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; pointer-events: none; }
.search input { padding-left: 42px; min-height: 46px; font-weight: 600; }
.wa-btn { width: 46px; height: 46px; flex: none; border-radius: 14px; border: 2.5px solid var(--ink); background: var(--green);
  display: grid; place-items: center; color: var(--ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 120px; }

.hero {
  position: relative; overflow: hidden; margin: 14px 0 4px;
  background: var(--blue); border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: var(--pop);
  padding: 14px 16px; min-height: 104px;
}
.hero h1 { font-size: clamp(22px, 5.5vw, 34px); font-weight: 700; position: relative; z-index: 1; max-width: 72%; }
.hero p { margin: 4px 0 0; font-size: 14px; font-weight: 700; position: relative; z-index: 1; max-width: 66%; }
.hero .mascot { position: absolute; right: 6px; bottom: -22px; width: 98px; }

.filters { display: grid; gap: 10px; margin: 14px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.likes { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.likes::-webkit-scrollbar { display: none; }
.like { flex: none; width: 70px; border: 0; background: none; padding: 0; cursor: pointer; font: 800 12px var(--body); color: var(--ink); text-align: center; }
.like span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 4px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; font-size: 26px; }
.like:nth-child(5n+1) span { background: #e8f5c8; } .like:nth-child(5n+2) span { background: #dce6f6; }
.like:nth-child(5n+3) span { background: #f9ddea; } .like:nth-child(5n+4) span { background: #fef0c7; } .like:nth-child(5n) span { background: #fde1d3; }
.like[aria-pressed="true"] span { background: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }

.bar-row { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; max-width: 100%; }
.tab { border: 0; background: transparent; padding: 8px 12px; border-radius: 11px; cursor: pointer; font: 600 14px var(--display); color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab span { opacity: 0.7; font-weight: 500; }
.more-filters { margin-left: auto; }
.more-filters > summary { list-style: none; cursor: pointer; min-height: 46px; display: flex; align-items: center; padding: 0 14px; border: 2.5px solid var(--ink); border-radius: 16px; background: #fff; font: 600 14px var(--display); }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters[open] { flex-basis: 100%; }
.more-filters[open] > summary { display: inline-flex; background: var(--ink); color: #fff; }
.more-body { display: grid; gap: 10px; margin-top: 10px; }
.more-body select { max-width: 260px; }

.status { color: var(--muted); margin: 16px 0; font-weight: 600; }
.sold-intro { background: #fff; border: 2px dashed var(--ink); border-radius: 18px; padding: 12px 16px; color: var(--ink-2); }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Clean card: plain photo, USED/NEW corner, blue or pink outline. */
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 2.5px solid var(--ink); box-shadow: var(--pop-sm);
  content-visibility: auto; contain-intrinsic-size: 260px;
}
.card.for-boys { border-color: var(--blue-strong); box-shadow: 0 3px 0 var(--blue-strong); }
.card.for-girls { border-color: var(--pink-strong); box-shadow: 0 3px 0 var(--pink-strong); }
.card .pic {
  position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden;
  background: #f4eef1; cursor: pointer; border: 0; padding: 0;
}
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.cond {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  padding: 2px 8px; border-radius: 9px; border: 2px solid var(--ink); font: 700 11px var(--display); letter-spacing: 0.04em;
  text-transform: uppercase; background: #fff; color: var(--ink);
}
.cond.new { background: var(--orange); color: #fff; }
.card .body { padding: 8px 8px 8px 10px; display: grid; gap: 1px; flex: 1; align-content: start; }
.card .name { font: 700 15px/1.2 var(--body); }
.card .meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.price { font: 700 19px var(--display); }
.price s { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 6px; }
.card .price s { display: block; margin: 0; font-size: 12px; }
.card .add {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px 0 9px; border-radius: 13px; cursor: pointer; flex: none;
  border: 2.5px solid var(--ink); background: var(--orange); color: #fff; box-shadow: 0 2px 0 var(--ink); font: 700 15px var(--display);
}
.card .add:active { transform: translateY(2px); box-shadow: none; }
.card .add.in-cart { background: var(--green); color: var(--ink); }

.ribbon {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  padding: 2px 8px; border-radius: 9px; font: 700 11px var(--display);
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink);
}
.ribbon.hold { background: #fff; }
.ribbon.sold { background: var(--ink); color: #fff; }
.card.is-sold .pic img, .card.is-hold .pic img { filter: grayscale(0.35); opacity: 0.8; }
.more {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 2px 8px; border-radius: 9px;
  background: rgba(26, 20, 36, 0.78); color: #fff; font: 600 11px var(--display);
}

/* Floating "N toys picked" bar: one tap to checkout. */
.cart-bar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 28px)); min-height: 60px; padding: 0 20px; border-radius: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: #fff; border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--orange);
  font: 800 16px var(--body);
}
.cart-total { font: 700 20px var(--display); }
.cart-bar.bump { animation: bump 0.35s; }
@keyframes bump { 50% { transform: translateX(-50%) scale(1.05); } }

.sheet {
  border: 2.5px solid var(--ink); padding: 0; border-radius: 26px; width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px); background: var(--bg); color: var(--ink); box-shadow: var(--shadow);
}
.sheet::backdrop { background: rgba(26, 20, 36, 0.5); }
.sheet .close {
  position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; z-index: 3;
  width: 44px; height: 44px; border-radius: 14px; border: 2.5px solid var(--ink); background: #fff;
  font-size: 26px; line-height: 38px; cursor: pointer;
}
.sheet .inner { padding: 4px 18px 22px; clear: both; }
.drawer { margin-right: 0; margin-left: auto; height: 100dvh; max-height: 100dvh; border-radius: 26px 0 0 26px; width: min(480px, 100%); }
@media (max-width: 520px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 26px 26px 0 0; border-width: 2.5px 0 0; max-height: 94dvh; }
  .drawer { height: 94dvh; border-radius: 26px 26px 0 0; }
}

.gallery { margin-top: 8px; }
.gallery .slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 20px; border: 2.5px solid var(--ink);
  scrollbar-width: none; background: #f4eef1;
}
.gallery .slides::-webkit-scrollbar { display: none; }
.gallery .slides > * { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: contain; scroll-snap-align: start; background: #f4eef1; }
.gallery .thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.gallery .thumbs button {
  flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid var(--ink); border-radius: 12px;
  overflow: hidden; background: var(--ink); color: #fff; cursor: pointer;
}
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.toy-detail h2 { font-size: 26px; font-weight: 700; margin: 14px 0 2px; }
.toy-detail .price { font-size: 28px; color: var(--orange); }
.toy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; position: sticky; bottom: 0; padding: 10px 0 4px; background: var(--bg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { padding: 3px 10px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; font-size: 13px; font-weight: 700; }
.tag.boys { background: #dce6f6; } .tag.girls { background: var(--pink); } .tag.neutral { background: #e8f5c8; }

/* Checkout: everything on one screen. */
.cart-list { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 6px; }
.cart-item.for-boys { border-color: var(--blue-strong); } .cart-item.for-girls { border-color: var(--pink-strong); }
.cart-item img { width: 56px; height: 56px; border-radius: 11px; object-fit: cover; }
.cart-item .name { font-weight: 800; font-size: 14px; }
.cart-item .remove { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f4eef1; color: var(--ink); cursor: pointer; font-size: 22px; line-height: 1; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 360px) { .two-col { grid-template-columns: 1fr; } }
.field > span { font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field > span small { text-transform: none; letter-spacing: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg .opt { border: 2px solid var(--ink); border-radius: 14px; background: #fff; padding: 8px 4px; min-height: 52px; cursor: pointer; font: 800 13px var(--body); color: var(--ink); line-height: 1.15; }
.seg .opt small { display: block; font-weight: 700; font-size: 11px; color: var(--muted); margin-top: 2px; }
.seg .opt[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg .opt[aria-pressed="true"] small { color: #e3dacb; }
.pays { display: flex; flex-wrap: wrap; gap: 6px; }
.pays .chip[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.note-box { margin: 0 0 12px; }
.note-box > summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--ink-2); padding: 4px 0 10px; }
.fee-note { font-size: 14px; color: var(--ink-2); background: #fff; border: 2px dashed var(--line); border-radius: 14px; padding: 10px 12px; margin: -4px 0 14px; }
.totals { background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; padding: 10px 14px; display: grid; gap: 2px; margin-bottom: 12px; font-weight: 600; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font: 700 22px var(--display); }
.btn.big { min-height: 60px; font-size: 18px; border-radius: 20px; box-shadow: var(--pop); }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.done { text-align: center; padding: 10px 0; }
.done .code { font: 700 30px var(--display); margin: 6px 0; }
.done .pay-how { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 10px 12px; font-size: 14px; }
.done .mascot { width: 80px; margin: 6px auto 0; }

.foot { text-align: center; padding: 30px 16px 110px; color: var(--muted); border-top: 2px dashed var(--line); }
.foot img { margin: 0 auto 8px; }
.foot p { margin: 4px 0; }
.wa-big { display: flex; align-items: center; gap: 14px; width: min(440px, 100%); margin: 6px auto 16px; padding: 12px 18px 12px 12px; text-align: left; text-decoration: none;
  background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: var(--pop); }
.wa-big:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.wa-big b { display: block; font: 700 19px var(--display); }
.wa-big small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.wa-bubble { flex: none; width: 62px; height: 62px; border-radius: 50% 50% 50% 12px; background: var(--wa); border: 2.5px solid var(--ink); color: #fff;
  display: grid; place-items: center; transform: rotate(-8deg); animation: wiggle 3.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 84%, 100% { transform: rotate(-8deg); } 88% { transform: rotate(8deg) scale(1.06); } 92% { transform: rotate(-12deg); } 96% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .wa-bubble { animation: none; } }

@media (max-width: 640px) {
  .top { flex-wrap: wrap; padding: 8px 14px 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .wa-btn { margin-left: auto; width: 42px; height: 42px; }
  .brand img { width: 84px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .more-body .chips { margin: 0; padding: 0; }
  .likes { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .tabs { flex: 1; }
  .tab { flex: 1; padding: 8px 6px; font-size: 13px; }
}

/* Loads more toys as you scroll. */
.more-sentinel { height: 1px; }
