/* Preshy Emporium – light "boutique app" theme */
:root {
  --bg: #fbf3f6;          /* blush page */
  --surface: #ffffff;     /* cards */
  --soft: #f6e8ee;        /* soft fills */
  --line: #efdfe6;
  --text: #2b1724;        /* plum ink */
  --muted: #8c7382;
  --rose: #9c2a56;        /* primary (deep wine rose) */
  --rose-2: #c4457a;
  --rose-soft: #f9e1ea;
  --plum: #2a1026;        /* dark banner */
  --gold: #b07a2a;
  --ok: #1e9e57;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(92, 30, 62, .08);
  --tabbar-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
/* "clip" stops sideways scrolling without breaking the sticky top bar (hidden would) */
html { overflow-x: hidden; overflow-x: clip; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; width: 100%; position: relative; z-index: 1; }
/* soft candle-light glows behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px 420px at 0% 0%, rgba(232, 150, 182, .32), transparent 70%),
    radial-gradient(520px 520px at 100% 35%, rgba(196, 69, 122, .14), transparent 70%),
    radial-gradient(600px 500px at 30% 100%, rgba(247, 205, 180, .30), transparent 70%);
}
h1 em, h2 em { color: var(--rose); font-style: italic; }
img { max-width: 100%; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; margin: 0 0 .45em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center-text { text-align: center; }
.left-text { text-align: left; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.row.between { justify-content: space-between; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; font-weight: 600; color: var(--rose-2); margin: 0 0 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important;
  transition: transform .12s, background .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--rose); color: #fff; box-shadow: 0 8px 20px rgba(168, 50, 94, .25); }
.btn.primary:hover { background: #962b53; }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--rose); }
.btn.small { padding: 8px 14px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.link { background: none; border: 0; color: var(--rose); font: inherit; font-weight: 500; cursor: pointer; padding: 8px 0; }
.link.danger { color: #c0392b; font-size: .85rem; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: rgba(251, 243, 246, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: "Playfair Display", serif; font-size: 1.3rem; color: var(--text); font-weight: 700; white-space: nowrap; }
.brand span { color: var(--rose); font-style: italic; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); font-size: .95rem; font-weight: 500; }
.cart-btn { position: relative; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--rose); color: #fff; font-size: .68rem; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}

/* ---------- bottom tab bar (phones) ---------- */
.tabbar { display: none; }

/* ---------- opening page ---------- */
.opening { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 22px 18px 30px; max-width: 520px; margin: 0 auto; }
.opening-card {
  position: relative; overflow: hidden; border-radius: 26px; min-height: 300px; padding: 26px 24px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: radial-gradient(circle at 75% 20%, rgba(255, 122, 168, .55), transparent 55%), linear-gradient(160deg, #4a1440, var(--plum) 70%);
  box-shadow: 0 18px 40px rgba(42, 16, 38, .35);
}
.opening-card::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.logo { font-size: clamp(2.8rem, 12vw, 4rem); margin: 0; line-height: .95; position: relative; z-index: 1; }
.logo span { color: #ff9cc0; font-style: italic; }
.opening-card .tagline { position: relative; z-index: 1; margin: 12px 0 0; color: #f4d9e5; font-size: 1rem; }
.age-box { margin-top: 22px; }
.age-box h2 { font-size: 1.5rem; margin-bottom: 6px; }
.age-box p { margin: 0 0 18px; color: var(--muted); }
.age-box .btn { width: 100%; }
.age-box .leave { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: .9rem; }

/* ---------- layout ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 20px 18px 48px; width: 100%; }
.container.narrow { max-width: 640px; }

/* ---------- home / shop ---------- */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.hello { margin: 0 0 2px; color: var(--muted); font-weight: 500; font-size: .92rem; }
.home-head h1 { margin: 0; }
.search {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 16px; height: 48px; box-shadow: var(--shadow);
}
.search svg { flex: none; color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); min-width: 0; height: 100%; }
.hot { position: relative; margin: 18px 0 4px; border-radius: 24px; overflow: hidden; box-shadow: 0 16px 34px rgba(60, 14, 44, .28); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hot-track { display: flex; will-change: transform; }
.hot-dots { position: absolute; left: 18px; bottom: 14px; display: flex; gap: 6px; z-index: 3; }
.dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s, background .3s; }
.dot.on { width: 20px; background: #fff; }
.banner {
  position: relative; display: flex; align-items: stretch; flex: 0 0 100%; margin: 0; overflow: hidden;
  background: radial-gradient(circle at 15% 0%, rgba(255, 140, 180, .35), transparent 55%), linear-gradient(135deg, #5a1745, var(--plum)); color: #fff; min-height: 190px; text-decoration: none !important;
}
.banner .b-text { padding: 20px 18px 34px; flex: 1.15; display: flex; flex-direction: column; justify-content: center; gap: 8px; z-index: 1; }
.banner .pill { align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .04em; background: rgba(255, 255, 255, .16); padding: 4px 10px; border-radius: 999px; }
.banner h2 { margin: 0; font-size: 1.5rem; color: #fff; font-style: italic; }
.banner .b-line { margin: 0; font-size: .82rem; color: #f2cfe0; line-height: 1.4; }
.banner .b-btn { align-self: flex-start; background: #fff; color: var(--plum); font-weight: 600; font-size: .85rem; padding: 8px 14px; border-radius: 999px; }
.banner .b-img { flex: 1; position: relative; }
.banner .b-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.banner .b-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--plum), transparent 45%); z-index: 1; }
.promise { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px -18px 0; padding: 0 18px; }
.promise::-webkit-scrollbar { display: none; }
.promise span { flex: none; font-size: .78rem; font-weight: 500; color: #6b4a5c; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; }
.rise { animation: rise .55s cubic-bezier(.2, .8, .3, 1) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } .hot-track { transition: none !important; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 14px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .88rem; font-weight: 500; }
.chip.on { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip:hover { text-decoration: none; border-color: var(--rose); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { position: relative; min-width: 0; }
.card-link { display: block; color: var(--text); }
.card-link:hover { text-decoration: none; }
.card .art-photo, .card .art { border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s; }
.card-link:hover .art-photo { transform: translateY(-3px); }
.card-body { padding: 10px 2px 0; }
.card-body h3 { font-family: "Inter", sans-serif; font-size: .95rem; font-weight: 600; margin: 0 0 2px; line-height: 1.3; }
.card-sub { margin: 0 0 2px; font-size: .78rem; color: var(--muted); }
.price { color: var(--text); font-weight: 700; margin: 0; }
.price.big { font-size: 1.35rem; white-space: nowrap; }

/* heart / save */
.heart {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12); color: var(--text); transition: transform .15s;
}
.heart:active { transform: scale(.88); }
.heart svg { width: 19px; height: 19px; }
.heart.on { color: var(--rose); }
.heart.on svg path { fill: var(--rose); }

/* product art */
.art-photo { background: #fff; aspect-ratio: 1 / 1; overflow: hidden; }
.art-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.art {
  aspect-ratio: 1 / 1; position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .3), transparent 45%), linear-gradient(145deg, var(--c), #2a1026);
}
.art-mark { font-family: "Playfair Display", serif; font-size: 3rem; font-weight: 700; color: rgba(255, 255, 255, .92); }
.art-cat { position: absolute; bottom: 10px; left: 12px; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.art-big { border-radius: 24px; box-shadow: var(--shadow); }
.art-big .art-mark { font-size: 6rem; }

/* ---------- product page ---------- */
.pdp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; }
.back:hover { text-decoration: none; color: var(--rose); }
.icon-back { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.pdp-top .heart { position: static; box-shadow: none; border: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: start; margin-bottom: 36px; }
.gallery { position: sticky; top: 86px; min-width: 0; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb-btn { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; box-shadow: var(--shadow); }
.thumb-btn.on { border-color: var(--rose); }
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.title-row h1 { margin: 0; font-size: clamp(1.5rem, 4.2vw, 2.1rem); }
.title-row .price { margin-top: 6px; }
.lead { color: #5a4352; margin: 12px 0 4px; }
.assure { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.assure span { font-size: .78rem; background: var(--surface); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; color: #5a4352; }
.section-title { font-size: 1.15rem; margin-top: 26px; }
.features { padding-left: 0; list-style: none; margin: 10px 0 0; display: grid; gap: 6px; }
.features li { padding: 10px 12px 10px 38px; position: relative; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); font-size: .92rem; }
.features li::before { content: "✓"; position: absolute; left: 13px; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--rose-soft); color: var(--rose); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 10px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; font-size: .93rem; }
.steps li + li { border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--rose); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .82rem;
}
.note { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #fff7e9; border: 1px solid #f1d9ad; font-size: .9rem; }
.note strong { color: var(--gold); }

/* options */
.opts { margin: 20px 0 4px; }
.opt-label { margin: 0 0 10px; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.opt-label strong { color: var(--text); text-transform: none; letter-spacing: 0; font-size: .92rem; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 9px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--rose-2); }
.opt.on { border-color: var(--rose); background: var(--rose-soft); color: var(--rose); font-weight: 600; }
.opt-chip { align-self: flex-start; font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--rose-soft); color: var(--rose); }

/* quantity */
.qty { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.qty button { width: 40px; height: 46px; background: transparent; color: var(--text); border: 0; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 34px; height: 46px; text-align: center; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 32px; height: 34px; }
.qty.sm input { width: 30px; height: 34px; }

/* buy bar */
.buy { display: flex; gap: 12px; align-items: center; margin: 22px 0 6px; }
.buy .btn { flex: 1; }

/* ---------- bag / cart ---------- */
.page-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cart-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.cart-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.thumb { border-radius: 14px; overflow: hidden; display: block; }
.thumb .art-mark { font-size: 1.5rem; }
.thumb .art-cat { display: none; }
.cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-info a { color: var(--text); font-size: .93rem; line-height: 1.3; }
.cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.summary, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 14px; box-shadow: var(--shadow); }
.panel h3 { font-size: 1.05rem; }
.panel .btn { margin: 6px 6px 0 0; }
.summary .total { font-size: 1.15rem; font-weight: 700; margin: 8px 0; }
.summary .btn { margin-top: 10px; }
.summary .line { font-size: .9rem; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: nowrap; align-items: flex-start; }
.summary .line span:last-child { white-space: nowrap; font-weight: 600; }
.summary .line span:first-child { padding-right: 12px; }
.sec-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.info-row { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.info-row .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--rose-soft); display: grid; place-items: center; flex: none; font-size: 1.1rem; }
.info-row p { margin: 0; font-size: .9rem; }
.info-row p.muted { font-size: .8rem; }
.pay-btn { margin: 20px 0 8px; padding: 16px; font-size: 1.02rem; }
.empty { text-align: center; padding: 50px 10px; }
.empty .ic { width: 76px; height: 76px; border-radius: 50%; background: var(--rose-soft); display: grid; place-items: center; margin: 0 auto 16px; font-size: 2rem; }

/* ---------- forms & auth ---------- */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 400; font-size: 1rem;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--rose-2); border-color: transparent; }
.auth { max-width: 440px; }
.auth-hero { border-radius: 22px; padding: 22px; margin-bottom: 18px; color: #fff; background: radial-gradient(circle at 80% 10%, rgba(255, 122, 168, .5), transparent 55%), linear-gradient(150deg, #4a1440, var(--plum)); }
.auth-hero h1 { margin: 0 0 4px; }
.auth-hero p { margin: 0; color: #f0d4e1; font-size: .92rem; }
.auth-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.btn.social { width: 100%; border-radius: 14px; padding: 14px; font-weight: 600; }
.btn.social.google { background: #fff; color: #222; border-color: var(--line); }
.btn.social.apple { background: #000; color: #fff; }
.btn.social.email { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.social:hover { filter: brightness(.97); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 20px 0; font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { font-size: 1.9rem !important; letter-spacing: .55em; text-align: center; padding: 14px !important; font-weight: 600 !important; }
.demo-note { margin-top: 18px; font-size: .85rem; color: #7a5513; background: #fff7e9; border: 1px dashed #e3c486; padding: 12px 14px; border-radius: 12px; }
.demo-code { display: block; margin-top: 6px; font-size: 1.8rem; letter-spacing: .3em; color: var(--text); }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; }

/* ---------- order flow ---------- */
.success-badge { width: 74px; height: 74px; margin: 10px auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2.1rem; color: #fff; background: linear-gradient(135deg, #2ecc71, var(--ok)); box-shadow: 0 10px 26px rgba(30, 158, 87, .3); }
.verified { display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: #e6f7ec; color: var(--ok); font-size: .82rem; font-weight: 600; }
.warn { color: #9a5b00; }
.btn.wa { background: #25d366; color: #fff; margin-top: 18px; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn.wa:hover { background: #1ebe5b; }
.pending-banner { display: block; text-align: center; padding: 11px 16px; background: var(--ok); color: #fff !important; font-weight: 600; text-decoration: none !important; font-size: .9rem; }
.test-banner { background: #fff1d6; color: #7a5513; text-align: center; font-size: .78rem; font-weight: 600; padding: 6px 12px; border-bottom: 1px solid #f1d9ad; }

/* ---------- footer, toast, WhatsApp ---------- */
.footer { text-align: center; padding: 26px 18px 30px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); background: var(--surface); }
.footer p { margin: 5px 0; }
.socials a { display: inline-flex; align-items: center; gap: 6px; }
.toast {
  position: fixed; left: 50%; top: 14px; transform: translate(-50%, -150%);
  background: var(--plum); color: #fff; padding: 11px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(42, 16, 38, .35);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .3s; opacity: 0; visibility: hidden; z-index: 60;
  max-width: calc(100% - 32px); text-align: center; font-size: .9rem; font-weight: 500;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast a { color: #ff9cc0; font-weight: 600; }
.wa-float {
  position: fixed; right: 16px; bottom: 18px; z-index: 40; width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); transition: transform .2s;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .nav-text { display: none; }
  .brand { font-size: 1.15rem; }
  .topbar { padding: 12px 16px; }
  .container { padding: 16px 16px 40px; }
  .chips { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .promise { margin: 14px -16px 0; padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .gallery { position: static; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }

  body.with-tabs { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  body.with-tabs .footer { padding-bottom: 24px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 6px 8px env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(92, 30, 62, .06);
  }
  .tabbar.hidden { display: none !important; }
  .tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: .7rem; font-weight: 600; text-decoration: none; }
  .tabbar a.on { color: var(--rose); }
  .tabbar a.on svg path, .tabbar a.on svg circle { stroke-width: 2.2; }
  .tabbar .badge { top: 2px; right: calc(50% - 22px); border-color: #fff; }
  body.with-tabs .wa-float { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); }

  /* sticky "Add to bag" bar on product pages */
  body.with-buybar { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  body.with-buybar .wa-float { display: none; }
  .buy.sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(92, 30, 62, .08);
  }
}
@media (min-width: 761px) {
  .home-head h1 { font-size: 2.4rem; }
  .banner { min-height: 260px; }
  .banner .b-text { padding: 32px 34px 44px; }
  .hot-dots { left: 34px; bottom: 20px; }
  .banner h2 { font-size: 2rem; }
}
