/* Sticker Me storefront styles — kawaii pastel system shared by the store,
   cart drawer, lightbox, checkout, and confirmation pages. */
:root {
  --bg1:#fff1f6; --bg2:#eef4ff; --ink:#5a4a5e; --soft:#9c8aa5;
  --card:#ffffff; --chip:#ffffffcc; --accent:#ff8fb5; --accent-ink:#ff5d8f;
  --green:#5fae4e; --shadow:0 6px 18px rgba(150,120,160,.16);
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }
body {
  margin:0; color:var(--ink); min-height:100vh;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background:linear-gradient(160deg,var(--bg1),var(--bg2)); -webkit-font-smoothing:antialiased;
}
a { color:var(--accent-ink); }
.wrap { max-width:960px; margin:0 auto; padding:8px 12px 80px; }

/* header */
header.store { text-align:center; padding:30px 16px 6px; position:relative; }
header.store h1 { margin:0; font-size:clamp(28px,7vw,48px); letter-spacing:-.5px; }
header.store .tag { margin:8px 0 0; color:var(--soft); font-size:15px; }
.deal {
  display:inline-block; margin-top:12px; background:#fff; color:var(--accent-ink);
  font-weight:800; font-size:14px; padding:9px 18px; border-radius:999px; box-shadow:var(--shadow);
}
.deal b { color:var(--ink); }

/* sticky nav chips + cart button */
nav.chips {
  position:sticky; top:0; z-index:20; display:flex; gap:8px; align-items:center; overflow-x:auto;
  padding:12px 16px; margin-top:14px; scrollbar-width:none;
  background:linear-gradient(160deg,var(--bg1),var(--bg2)); -webkit-overflow-scrolling:touch;
}
nav.chips::-webkit-scrollbar { display:none; }
nav.chips a {
  flex:0 0 auto; text-decoration:none; color:var(--ink); font-size:14px; font-weight:600;
  background:var(--chip); border:1px solid #fff; padding:9px 15px; border-radius:999px;
  box-shadow:var(--shadow); white-space:nowrap;
}
.cart-btn {
  position:fixed; right:16px; bottom:16px; z-index:30; border:none; cursor:pointer;
  background:var(--accent); color:#fff; font-weight:800; font-size:16px;
  padding:14px 20px; border-radius:999px; box-shadow:0 10px 24px rgba(255,110,160,.4);
  display:flex; align-items:center; gap:8px;
}
.cart-btn .badge {
  background:#fff; color:var(--accent-ink); border-radius:999px; min-width:22px; height:22px;
  display:inline-flex; align-items:center; justify-content:center; font-size:13px; padding:0 6px;
}

/* theme grids */
.theme { scroll-margin-top:64px; margin-top:26px; }
.theme h2 { display:flex; align-items:center; gap:10px; font-size:20px; margin:0 6px 14px; font-weight:800; }
.theme h2 .emoji { font-size:24px; }
.theme h2 .count { margin-left:auto; font-size:12px; font-weight:700; color:var(--soft);
  background:#fff; border-radius:999px; padding:3px 10px; box-shadow:var(--shadow); }
.grid { display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(104px,1fr)); }
@media (min-width:520px){ .grid { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); } }
.tile { background:var(--card); border-radius:20px; padding:10px 8px 10px; box-shadow:var(--shadow);
  display:flex; flex-direction:column; align-items:center; gap:4px; }
.tile img { width:100%; height:auto; aspect-ratio:1; cursor:zoom-in; }
.tile .name { font-size:12px; font-weight:700; color:var(--ink); }
.tile .price { font-size:12px; color:var(--soft); margin-bottom:4px; }
.add {
  border:none; cursor:pointer; background:#fff0f6; color:var(--accent-ink); font-weight:800;
  font-size:13px; padding:8px 14px; border-radius:999px; width:100%; transition:transform .1s, background .1s;
}
.add:hover { background:#ffe0ee; }
.add:active { transform:scale(.94); }
.add.in-cart { background:var(--accent); color:#fff; }

footer.store { text-align:center; color:var(--soft); font-size:13px; padding:20px 16px 60px; }

/* lightbox */
.lb { position:fixed; inset:0; z-index:100; display:none; background:rgba(60,45,65,.82);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); touch-action:pan-y; }
.lb.open { display:flex; flex-direction:column; }
.lb-top { display:flex; justify-content:flex-end; padding:calc(14px + env(safe-area-inset-top,0)) 18px 6px; }
.lb-close, .lb-nav { border:none; background:rgba(255,255,255,.16); color:#fff; cursor:pointer; }
.lb-close { width:44px; height:44px; border-radius:50%; font-size:22px; }
.lb-stage { flex:1; display:flex; align-items:center; justify-content:center; position:relative; padding:8px 12px; min-height:0; }
.lb-stage img { max-width:min(78vw,420px); max-height:100%; filter:drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.lb-nav { position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; border-radius:50%; font-size:24px; }
.lb-nav.prev { left:10px; } .lb-nav.next { right:10px; }
.lb-bottom { text-align:center; color:#fff; padding:10px 18px calc(26px + env(safe-area-inset-bottom,0)); }
.lb-bottom .title { font-size:19px; font-weight:800; }
.lb-bottom .sub { opacity:.7; font-size:13px; margin:2px 0 12px; }
.lb-bottom .add { display:inline-block; width:auto; padding:12px 28px; font-size:15px; }
@media (hover:none){ .lb-nav { display:none; } }

/* cart drawer */
.scrim { position:fixed; inset:0; z-index:90; background:rgba(60,45,65,.5); display:none; }
.scrim.open { display:block; }
.drawer { position:fixed; top:0; right:0; bottom:0; width:min(400px,92vw); z-index:95; background:#fff;
  box-shadow:-12px 0 32px rgba(90,74,94,.25); transform:translateX(100%); transition:transform .25s ease;
  display:flex; flex-direction:column; }
.drawer.open { transform:translateX(0); }
.drawer h3 { margin:0; font-size:20px; }
.drawer .dhead { display:flex; align-items:center; justify-content:space-between; padding:20px; border-bottom:1px solid #f2e9f0; }
.drawer .dclose { border:none; background:#f6eef4; width:38px; height:38px; border-radius:50%; font-size:20px; cursor:pointer; color:var(--ink); }
.drawer .lines { flex:1; overflow-y:auto; padding:8px 20px; }
.cart-line { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #f6eef4; }
.cart-line img { width:54px; height:54px; }
.cart-line .info { flex:1; min-width:0; }
.cart-line .info .n { font-weight:700; font-size:14px; }
.cart-line .info .p { color:var(--soft); font-size:13px; }
.qty { display:flex; align-items:center; gap:8px; }
.qty button { border:none; width:30px; height:30px; border-radius:50%; background:#fff0f6; color:var(--accent-ink); font-size:18px; font-weight:800; cursor:pointer; }
.qty span { min-width:20px; text-align:center; font-weight:700; }
.empty { text-align:center; color:var(--soft); padding:50px 20px; }
.summary { padding:16px 20px; border-top:1px solid #f2e9f0; background:#fffafc; }
.summary .row { display:flex; justify-content:space-between; padding:3px 0; font-size:14px; }
.summary .row.save { color:var(--green); font-weight:700; }
.summary .row.total { font-size:18px; font-weight:800; padding-top:8px; }
.summary .row.total b { color:var(--accent-ink); }
.btn { display:block; width:100%; text-align:center; border:none; cursor:pointer; text-decoration:none;
  background:var(--accent); color:#fff; font-weight:800; font-size:16px; padding:14px; border-radius:14px; margin-top:12px; }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn.ghost { background:#f6eef4; color:var(--ink); }

/* checkout + confirmation cards */
.card { background:#fff; border-radius:22px; box-shadow:var(--shadow); padding:22px; margin:16px auto; max-width:560px; }
.card h2 { margin:0 0 4px; }
.field { margin:14px 0; }
.field label { display:block; font-weight:700; font-size:14px; margin-bottom:6px; }
.field input, .field textarea { width:100%; border:2px solid #f2e6ee; border-radius:12px; padding:12px 14px;
  font-size:15px; font-family:inherit; color:var(--ink); background:#fffafc; }
.field input:focus, .field textarea:focus { outline:none; border-color:var(--accent); }
.field .err { color:var(--accent-ink); font-size:13px; margin-top:5px; }
.note { color:var(--soft); font-size:14px; }
.cod { background:#fff6fa; border-radius:14px; padding:14px 16px; margin:14px 0; text-align:center; }
.cod .amt { font-size:26px; font-weight:800; color:var(--accent-ink); }
.badge-status { display:inline-block; color:#fff; font-weight:800; padding:6px 16px; border-radius:999px; font-size:14px; }
.line-item { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid #f6eef4; }
.alert { background:#fff0f2; color:#c53d63; border-radius:12px; padding:12px 16px; margin:12px 0; font-size:14px; }
