:root {
  --bg: #fffaf0;
  --ink: #0a0a0a;
  --muted: #6a6a6a;
  --card: #faf5e8;
  --line: #e5e5e5;
  --pink: #ff4d8b;
  --teal: #1a3a3a;
  --lav: #b8a4ed;
  --peach: #ffb084;
  --mint: #a4d4c5;
  --wa: #25d366;
  --max: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; }
[x-cloak] { display: none !important; }

.wrap { width: min(var(--max), calc(100% - 24px)); margin-inline: auto; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  display: flex; align-items: center; gap: 10px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.brand strong { display: block; font-size: 15px; letter-spacing: -0.02em; }
.brand small { display: block; font-size: 11px; color: var(--muted); }

nav.desktop { display: none; align-items: center; gap: 4px; }
.nav-link, .drop > summary, .drop > button.nav-link {
  list-style: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: 0;
  color: inherit;
}
.drop > summary::-webkit-details-marker { display: none; }
.nav-link:hover, .drop[open] > summary, .drop > summary:hover, .drop > button.nav-link.on, .drop > button.nav-link:hover { background: #f5f0e0; }
.drop { position: relative; }
.drop-panel {
  position: absolute; left: 0; top: calc(100% - 4px);
  min-width: 220px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 32px rgba(10,10,10,.08);
  z-index: 30;
}
.drop-panel a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
}
.drop-panel a:hover { background: #f5f0e0; }
.drop:last-child .drop-panel { left: auto; right: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #888; }
.dot.success { background: #22c55e; }
.dot.warning { background: #f59e0b; }
.dot.lav { background: #b8a4ed; }
.dot.mint { background: #a4d4c5; }
.dot.peach { background: #ffb084; }
.dot.error { background: #ef4444; }

.actions { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 600; border: 0;
}
.btn-outline { background: transparent; border: 1px solid var(--line); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5d; }
.btn-white { background: #fff; color: var(--teal); }
.btn-pink { background: var(--pink); color: #fff; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center;
}
.ghost-desktop { display: none; }

.drawer {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10,10,10,.35);
}
.drawer-panel {
  margin-left: auto; width: min(320px, 100%); height: 100%;
  background: var(--bg); padding: 20px; overflow: auto;
}
.drawer a, .drawer button.linkish {
  display: block; width: 100%; text-align: left;
  padding: 12px; border-radius: 12px; font-weight: 600;
  background: none; border: 0;
}

.hero { padding: 32px 0 8px; }
.hero-card {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 28px 24px 32px; color: #fff; min-height: 320px;
}
.orb {
  pointer-events: none; position: absolute; border-radius: 50%; filter: blur(28px);
}
.orb-a { width: 280px; height: 280px; right: -80px; top: -90px; background: rgba(255,255,255,.12); }
.orb-b { width: 320px; height: 320px; right: 40px; bottom: -120px; background: rgba(0,0,0,.22); }
.hero-card h1, .hero-card .kicker, .hero-card .body, .hero-cta, .hero-nav { position: relative; }
.hero-nav { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.hero-arrow {
  width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.18); color: #fff; font-size: 28px; line-height: 1;
}
.hero-arrow:hover { background: rgba(255,255,255,.32); }
.hero-card.teal { background: linear-gradient(135deg, #1a3a3a, #244848 45%, #ff4d8b); }
.hero-card.pink { background: linear-gradient(135deg, #ff4d8b, #ff7aa8 45%, #1a3a3a); }
.hero-card.peach { background: linear-gradient(135deg, #ffb084, #ffd0b0 45%, #1a3a3a); }
.hero-card.lav { background: linear-gradient(135deg, #b8a4ed, #d5c9f5 45%, #1a3a3a); }
.hero-card h1 { max-width: 40rem; font-size: clamp(28px, 5vw, 48px); line-height: 1.08; margin: 12px 0 0; }
.hero-card p.body { max-width: 36rem; color: rgba(255,255,255,.85); margin-top: 16px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dots { display: flex; gap: 8px; margin-top: 0; }
.dots button {
  height: 6px; border: 0; border-radius: 999px; background: rgba(255,255,255,.4);
  width: 12px; padding: 0;
}
.dots button.on { width: 32px; background: #fff; }

.trust {
  display: grid; gap: 12px; padding: 20px 0 8px;
  grid-template-columns: 1fr 1fr;
}
.trust-item {
  background: #fffdf7; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px;
}
.trust-item strong { display: block; font-size: 13px; }
.trust-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

.marquee-block { min-height: 220px; }
.marquee {
  overflow: hidden;
  min-height: 200px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  padding: 18px 0 8px;
}
.marquee-head { width: min(var(--max), calc(100% - 40px)); margin: 18px auto 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.marquee-head p { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.see-all { font-size: 13px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.track {
  display: flex; width: max-content; gap: 14px; padding: 0 20px 22px;
  animation: rtl 40s linear infinite;
  pointer-events: auto;
}
.track.ltr { animation-name: ltr; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes rtl { to { transform: translateX(-50%); } }
@keyframes ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.cats { padding: 40px 0 24px; }
.cats h2 { margin: 4px 0 0; font-size: 30px; }
.cat-grid { display: grid; gap: 16px; margin-top: 24px; }
.cat-tile {
  min-height: 150px; border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cat-tile.iphone { background: var(--teal); color: #fff; }
.cat-tile.pixel { background: var(--lav); color: var(--ink); }
.cat-tile.android { background: var(--peach); color: var(--ink); }
.cat-tile.accessories { background: var(--pink); color: #fff; }
.cat-tile.perfumes { background: #c9a227; color: #1a1408; }
.cat-tile.clothes { background: #2c4a3a; color: #fff; }
.cat-tile .sub { opacity: .8; font-size: 12.5px; margin-top: 4px; }

.card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; width: 180px; flex: 0 0 auto;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer; pointer-events: auto;
}
.card .view { font-size: 12px; font-weight: 700; color: var(--teal); }
.card.full { width: auto; height: 100%; }
.card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 12px 24px rgba(10,10,10,.08); }
.card h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.card .meta { margin: 0; font-size: 12px; color: var(--muted); min-height: 1.2em; }
.card .price { margin-top: auto; font-weight: 700; }
.card.sold { opacity: .78; }
.stock-line { margin: 0; font-size: 12px; font-weight: 700; color: #166534; }
.stock-line.low { color: #8a5a00; }
.stock-line.out { color: #9d2417; }
.btn-wa.sold { background: #4a4a4a; }

.art {
  position: relative; aspect-ratio: 4 / 5; min-height: 0; height: auto;
  border-radius: 16px; display: grid; place-items: center; overflow: hidden;
  background: #ece7d8;
}
.art.compact { aspect-ratio: 1 / 1; min-height: 0; height: auto; }
.art.heroish {
  aspect-ratio: auto;
  width: 100%;
  height: min(46vh, 340px);
  max-height: 340px;
}
.art img.photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain; object-position: center; display: block;
}
.art svg.phone { height: 78%; max-height: 220px; width: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.28)); }
.art .label {
  position: absolute; left: 10px; right: 10px; bottom: 8px;
  text-align: center; font-size: 11px; font-weight: 700;
}
.art.acc { background: linear-gradient(145deg,#ff4d8b,#ff8fb3 55%,#1a3a3a); }
.art.acc svg.acc-icon { width: 56px; height: 56px; }
.art.acc svg.acc-icon.large { width: 96px; height: 96px; }

.badge {
  align-self: start;
  border-radius: 999px; padding: 3px 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: #ebe6d6;
}
.badge.success { background: #d9f7e2; color: #166534; }
.badge.warning { background: #fff0c7; color: #8a5a00; }
.badge.error { background: #ffe0dc; color: #9d2417; }
.badge.lav { background: #efe9fb; color: #5b3fa0; }
.badge.mint { background: #e0f3ec; color: #12664e; }
.badge.peach { background: #ffe9dc; color: #9a4a15; }

.shop { padding: 40px 0; }
.shop h1 { margin: 4px 0 0; font-size: 30px; }
.pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 24px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.pill {
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: 999px; border: 1px solid var(--line);
  padding: 8px 16px; font-size: 13px; font-weight: 600; background: #fffdf7;
}
.pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid {
  display: grid; gap: 16px; margin-top: 32px;
  grid-template-columns: 1fr;
}
.catalog-banner {
  margin: 8px auto 12px;
  border: 1px dashed #c4a574;
  background: #fff6e0;
  border-radius: 20px;
  padding: 20px 22px;
}
.catalog-banner strong { display: block; font-size: 16px; }
.catalog-banner p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.catalog-banner .catalog-steps { font-size: 13px; }

.pdp { padding: 16px 0 88px; display: grid; gap: 20px; }
.pdp-media, .pdp-info { min-width: 0; }
.back { font-size: 13px; font-weight: 700; color: var(--muted); }
.gallery-stage { margin-top: 12px; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(255,250,240,.94);
  color: var(--teal);
  box-shadow: 0 10px 24px rgba(10,10,10,.18);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }
.gallery-arrow:hover {
  background: #fff;
  color: var(--pink);
  transform: translateY(-50%) scale(1.06);
}
.gallery-arrow:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.gallery-dots {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.gallery-dots button {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(26,58,58,.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4);
}
.gallery-dots button.on {
  width: 22px;
  background: var(--pink);
}
.gallery-count {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(26,58,58,.72);
  border-radius: 999px;
  padding: 4px 10px;
}
.pdp h1 { margin: 8px 0 0; font-size: clamp(22px, 4vw, 30px); line-height: 1.15; }
.pdp .price { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin: 8px 0 0; }
.specs { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.spec { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.spec:last-child { border-bottom: 0; }
.spec span { color: var(--muted); }
.note { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 14px; }
.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.thumbs button {
  flex: 0 0 68px;
  width: 68px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: none;
}
.thumbs button.on { border-color: var(--ink); }
.thumbs .art.compact { height: 68px; aspect-ratio: 1 / 1; }
.choices { margin-top: 14px; }
.choices p { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 10px 14px; font-weight: 600; font-size: 13px;
}
.choice.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.15); }

.footer { margin-top: 64px; background: var(--teal); color: #fff; }
.footer-grid { display: grid; gap: 32px; padding: 44px 0; }
.footer h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 0 0 12px; }
.footer a, .footer p { color: rgba(255,255,255,.9); font-size: 13.5px; }
.footer .col { display: flex; flex-direction: column; gap: 8px; }
.legal {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px 16px;
  border-top: 1px solid rgba(255,255,255,.15); padding: 20px 0; font-size: 12px; color: rgba(255,255,255,.6);
  text-align: center;
}
.legal .credit { max-width: 36rem; line-height: 1.45; }
.legal .credit a {
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.buy-btn { width: 100%; height: 48px; margin-top: 16px; font-size: 16px; }
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

.missing { text-align: center; padding: 80px 20px; }
.missing h1 { margin: 8px 0 0; }

@media (max-width: 639px) {
  .header-inner { height: 58px; gap: 8px; }
  .brand small { display: none; }
  .brand img { width: 36px; height: 36px; }
  .header .btn-wa { font-size: 12px; padding: 6px 10px; height: auto; min-height: 40px; max-width: 42vw; text-align: center; line-height: 1.2; }
  .hero { padding: 16px 0 8px; }
  .hero-card { min-height: 0; padding: 22px 18px 20px; border-radius: 20px; }
  .hero-card h1 { font-size: 26px; }
  .hero-cta .btn { width: 100%; }
  .hero-nav { margin-top: 20px; }
  .trust { padding-top: 12px; }
  .marquee-head { width: min(var(--max), calc(100% - 24px)); }
  .pills { margin-top: 16px; }
  .shop { padding: 24px 0 40px; }
  .shop h1 { font-size: 24px; }
  .grid {
    margin-top: 16px;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shop .card.full {
    padding: 10px;
    gap: 6px;
    border-radius: 14px;
  }
  .shop .card:hover { transform: none; box-shadow: none; }
  .shop .card h3 { font-size: 13px; }
  .shop .card .meta { font-size: 11px; min-height: 0; }
  .shop .card .view { display: none; }
  .shop .card .art {
    aspect-ratio: 4 / 3;
    height: 132px;
    max-height: 132px;
    border-radius: 12px;
  }
  .shop .card .art svg.phone { height: 86%; max-height: 108px; }
  .cats { padding: 28px 0 16px; }
  .cats h2 { font-size: 24px; }
  .gallery-arrow { width: 40px; height: 40px; }
  .gallery-arrow.prev { left: 8px; }
  .gallery-arrow.next { right: 8px; }
  .art.heroish { height: min(42vh, 300px); max-height: 300px; }
  .float-wa { right: 12px; bottom: 12px; width: 48px; height: 48px; }
  .footer { margin-top: 40px; }
  .footer-grid { padding: 28px 0; gap: 24px; }
}
@media (min-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 40px)); }
  .header-inner { height: 72px; gap: 16px; }
  .hero-card { padding: 40px; min-height: 320px; }
  .ghost-desktop { display: inline-flex; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .pdp { padding: 24px 0 48px; gap: 24px; }
  .art.heroish { height: min(48vh, 380px); max-height: 380px; }
  .shop .card .art {
    aspect-ratio: 4 / 3;
    height: 168px;
    max-height: 168px;
  }
}
@media (min-width: 1024px) {
  nav.desktop { display: flex; flex-wrap: wrap; }
  .nav-link, .drop > button.nav-link { padding: 8px 10px; font-size: 13px; }
  .icon-btn.menu { display: none; }
  .ghost-desktop { display: none; }
  .pdp {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 28px;
    padding: 20px 0 48px;
  }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
  .legal {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: unset;
  }
  .legal > :first-child { justify-self: start; text-align: left; }
  .legal > .credit { justify-self: center; text-align: center; }
  .legal > :last-child { justify-self: end; text-align: right; }
  .art.heroish {
    aspect-ratio: auto;
    height: min(52vh, 400px);
    max-height: 400px;
  }
  .shop .card .art {
    aspect-ratio: 4 / 5;
    height: auto;
    max-height: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
