/* HanSer Toys & Gifts — storefront styles */
:root {
  --ink: #2B2F4E;
  --ink-2: #555A78;
  --ink-3: #8A8FA8;
  --line: #E6E8F0;
  --paper: #FFFFFF;
  --wash: #F4F9FF;
  --pink: #F57C1F;      /* HanSer orange */
  --pink-d: #B9520B;    /* orange for text on white (AA contrast) */
  --pink-w: #FFEEDD;
  --sun: #FFC93C;
  --sun-w: #FFF5D6;
  --sky: #2273B9;       /* HanSer blue */
  --sky-w: #E4F0FB;
  --mint: #22C39A;
  --mint-d: #12996F;
  --mint-w: #DDF7EE;
  --grape: #7A5CFA;
  --grape-w: #EEE9FF;
  --danger: #D63A3A;
  --radius: 14px;
  --radius-lg: 22px;
  --block: 3px 4px 0 var(--ink);
  --font-display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- buttons: the "building block" ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .01em;
  background: var(--paper); color: var(--ink); box-shadow: var(--block);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--wash); }
.btn:active { transform: translate(3px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--pink); color: var(--ink); }
.btn-primary:hover { background: #E86C0C; }
.btn-blue { background: var(--sky); color: #fff; }
.btn-blue:hover { background: #1B5F9A; }
.btn-sun { background: var(--sun); }
.btn-sun:hover { background: #FFBC14; }
.btn-mint { background: var(--mint); color: #fff; }
.btn-mint:hover { background: var(--mint-d); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .92rem; border-radius: 10px; box-shadow: 2px 3px 0 var(--ink); }
.btn-sm:active { transform: translate(2px, 3px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--sky); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; position: relative; }
.icon-btn:hover { background: var(--wash); }
.icon-btn svg { width: 24px; height: 24px; }
.count-badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.count-badge:empty, .count-badge[data-n="0"] { display: none; }

/* ---------- header ---------- */
.announce { background: var(--ink); color: #fff; font-size: .875rem; text-align: center; padding: 8px 16px; }
.announce strong { color: var(--sun); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 60px; width: auto; }
.search { flex: 1; max-width: 520px; position: relative; }
.search input { width: 100%; height: 46px; border-radius: 12px; border: 2px solid var(--line); background: var(--wash); padding: 0 48px 0 16px; }
.search input:focus { border-color: var(--sky); background: #fff; outline: none; }
.search button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; background: transparent; border-radius: 9px; display: grid; place-items: center; }
.search button svg { width: 20px; height: 20px; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-actions .help { font-size: .875rem; color: var(--ink-2); margin-right: 8px; line-height: 1.2; text-align: right; }
.header-actions .help b { display: block; color: var(--ink); }
.cat-nav { border-top: 1px solid var(--line); }
.cat-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: block; padding: 11px 14px; font-weight: 600; font-size: .95rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { border-bottom-color: var(--pink); }
.cat-nav a.sale { color: var(--pink-d); }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .header-row { height: 64px; gap: 8px; flex-wrap: wrap; }
  .menu-btn { display: inline-grid; margin-left: -8px; }
  .logo img { height: 46px; }
  .header-actions .help { display: none; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin-bottom: 10px; }
  .header-row { height: auto; padding-top: 8px; }
  .cat-nav { display: none; }
}

/* mobile menu */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(43,47,78,.45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 61; display: flex; flex-direction: column; transition: transform .25s ease; }
.drawer.left { left: 0; transform: translateX(-100%); }
.drawer.right { right: 0; transform: translateX(100%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.3rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); }
.mobile-links a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-links img { width: 40px; height: 40px; border-radius: 10px; }
.drawer-head .logo img { height: 44px; }

/* ---------- home: hero ---------- */
.hero { background: linear-gradient(180deg, var(--sky-w) 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero-grid > * { min-width: 0; }
.hero h1 { max-width: 14ch; margin-bottom: 16px; }
.hero-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .92rem; color: var(--ink-2); }
.hero-proof span { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 20px; height: 20px; flex-shrink: 0; }
.stars { color: #F5A400; letter-spacing: 1px; }

/* the toy shelf */
.shelf { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.shelf a { display: block; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 4px 6px 0 var(--ink); background: #fff; transition: transform .15s; }
.shelf a:hover { transform: translateY(-4px) rotate(-1deg); }
.shelf a:nth-child(1) { transform: rotate(-3deg); }
.shelf a:nth-child(3) { transform: rotate(3deg); }
.shelf a:nth-child(2) { margin-bottom: 40px; }
.shelf a:nth-child(4) { grid-column: 1 / 3; }
.shelf a:nth-child(5) { margin-top: -30px; transform: rotate(-2deg); }
.shelf a:nth-child(4) img { aspect-ratio: 2 / 1; object-fit: cover; }
.shelf .tag { display: block; padding: 8px 12px; font-weight: 700; font-size: .86rem; border-top: 2px solid var(--ink); background: #fff; }
.shelf .tag b { color: var(--pink-d); font-weight: 700; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 44px; gap: 32px; }
  .shelf { gap: 10px; }
  .shelf .tag { font-size: .78rem; padding: 6px 8px; }
}

/* ---------- sections ---------- */
.section { padding-top: 64px; padding-bottom: 64px; }
.section.tint { background: var(--wash); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-2); }
@media (max-width: 700px) { .section { padding-top: 44px; padding-bottom: 44px; } .section-head { flex-direction: column; align-items: flex-start; } }

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust ul { list-style: none; margin: 0 auto; padding: 18px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust li { display: flex; gap: 12px; align-items: center; font-size: .92rem; color: var(--ink-2); line-height: 1.3; }
.trust li b { display: block; color: var(--ink); font-size: .98rem; }
.trust .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.trust .ic svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .trust ul { grid-template-columns: 1fr 1fr; } }

/* category blocks */
.cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--block); background: #fff; transition: transform .1s, box-shadow .1s; }
.cat-tile:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.cat-tile:active { transform: translate(3px, 4px); box-shadow: 0 0 0 var(--ink); }
.cat-tile img { aspect-ratio: 1; object-fit: cover; }
.cat-tile span { padding: 10px 12px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; border-top: 2px solid var(--ink); }
.cat-tile.pink span { background: var(--pink-w); } .cat-tile.sky span { background: var(--sky-w); } .cat-tile.sun span { background: var(--sun-w); }
.cat-tile.mint span { background: var(--mint-w); } .cat-tile.grape span { background: var(--grape-w); }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .cat-grid { display: flex; overflow-x: auto; gap: 12px; padding: 2px 6px 10px 2px; scroll-snap-type: x mandatory; scrollbar-width: none; } .cat-grid::-webkit-scrollbar { display: none; } .cat-tile { flex: 0 0 36%; scroll-snap-align: start; } .cat-tile span { font-size: .85rem; padding: 8px; } }

/* age chips */
.age-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.age-chip { text-align: center; padding: 22px 10px; border-radius: var(--radius-lg); border: 2px dashed transparent; transition: border-color .15s, background .15s; }
.age-chip:hover { border-color: currentColor; }
.age-chip b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.1; }
.age-chip span { font-size: .9rem; font-weight: 600; }
.age-chip:nth-child(1) { background: var(--pink-w); color: var(--pink-d); }
.age-chip:nth-child(2) { background: var(--sun-w); color: #B57B00; }
.age-chip:nth-child(3) { background: var(--mint-w); color: var(--mint-d); }
.age-chip:nth-child(4) { background: var(--sky-w); color: #1A7FC2; }
.age-chip:nth-child(5) { background: var(--grape-w); color: var(--grape); }
@media (max-width: 700px) { .age-row { grid-template-columns: repeat(3, 1fr); gap: 10px; } }

/* product grid + card */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1050px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-img { position: relative; display: block; aspect-ratio: 1; background: var(--wash); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 8px; font-size: .76rem; font-weight: 700; background: var(--sun); color: var(--ink); }
.badge.new { background: var(--mint); color: #fff; }
.badge.out { background: var(--ink); color: #fff; }
.badge.low { background: #fff; color: var(--pink-d); border: 1.5px solid var(--pink); }
.wish { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 0; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(43,47,78,.15); }
.wish svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; }
.wish[aria-pressed="true"] svg { fill: var(--pink); stroke: var(--pink); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; gap: 4px; }
.card-meta { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.card-title { font-weight: 600; font-size: .98rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-title:hover { color: var(--pink-d); }
.rating { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-2); }
.rating .pill { display: inline-flex; align-items: center; gap: 3px; background: var(--mint-d); color: #fff; font-weight: 700; padding: 1px 7px; border-radius: 6px; font-size: .78rem; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.price { font-weight: 800; font-size: 1.12rem; }
.mrp { color: var(--ink-3); text-decoration: line-through; font-size: .88rem; }
.off { color: var(--mint-d); font-weight: 700; font-size: .85rem; }
.card .btn { margin-top: 10px; }
@media (max-width: 720px) { .card-body { padding: 10px; } .card-title { font-size: .9rem; } .card .btn { min-height: 40px; font-size: .9rem; padding: 0 10px; } }

/* gift banner */
.gift-band { border: 2px solid var(--ink); border-radius: 28px; box-shadow: 5px 7px 0 var(--ink); overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--sun); }
.gift-band .copy { padding: 44px; }
.gift-band h2 { max-width: 16ch; }
.gift-band p { max-width: 44ch; }
.occasions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.occasions a { padding: 8px 16px; border-radius: 999px; background: #fff; font-weight: 600; font-size: .92rem; border: 2px solid var(--ink); }
.occasions a:hover { background: var(--pink-w); }
.gift-band .art { background: var(--pink-w); display: grid; place-items: center; border-left: 2px solid var(--ink); }
.gift-band .art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .gift-band { grid-template-columns: 1fr; } .gift-band .art { border-left: 0; border-top: 2px solid var(--ink); max-height: 300px; } .gift-band .copy { padding: 28px 22px; } }

/* why us */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.why .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.why .ic svg { width: 28px; height: 28px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; }
.review p { flex: 1; font-size: 1rem; }
.review .who { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--ink-2); }
.review .who b { color: var(--ink); display: block; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; }
.review .prod { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.review .prod img { width: 40px; height: 40px; border-radius: 8px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* newsletter */
.news { background: var(--mint-w); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.news h2 { margin-bottom: 6px; }
.news form { display: flex; gap: 10px; }
.news input { flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 2px solid var(--ink); padding: 0 16px; background: #fff; }
@media (max-width: 800px) { .news { grid-template-columns: 1fr; padding: 28px 22px; } .news form { flex-direction: column; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D3D6E6; margin-top: 64px; font-size: .94rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 36px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer .logo img { height: 52px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pay-row span { background: #fff; color: var(--ink); border-radius: 6px; padding: 4px 9px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .84rem; color: #A9ADC6; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- page header / breadcrumbs ---------- */
.page-head { background: var(--wash); padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 6px 0 4px; }
.crumbs { font-size: .85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--pink-d); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--ink-3); }

/* ---------- shop ---------- */
.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding-top: 28px; }
.filters { align-self: start; position: sticky; top: 140px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .94rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }
.check .n { margin-left: auto; color: var(--ink-3); font-size: .82rem; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { width: 100%; height: 40px; border: 2px solid var(--line); border-radius: 10px; padding: 0 10px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select { height: 42px; border-radius: 10px; border: 2px solid var(--line); padding: 0 12px; background: #fff; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--pink-w); font-size: .85rem; font-weight: 600; border: 0; }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 60px 20px; }
.empty img { width: 160px; margin: 0 auto 16px; border-radius: 24px; }
@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(360px, 90vw); background: #fff; z-index: 61; padding: 20px; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; top: 0; }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex; }
}

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding-top: 28px; }
.gallery { position: sticky; top: 140px; align-self: start; }
.gallery .main { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--wash); aspect-ratio: 1; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 76px; height: 76px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: none; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.pdp h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.pdp .rating { font-size: .92rem; margin-bottom: 14px; }
.pdp .price-row { margin-bottom: 4px; }
.pdp .price { font-size: 1.9rem; }
.pdp .mrp { font-size: 1.05rem; }
.pdp .off { font-size: 1rem; }
.tax-note { font-size: .84rem; color: var(--ink-3); margin-bottom: 18px; }
.stock-note { font-weight: 700; font-size: .92rem; margin-bottom: 16px; }
.stock-note.in { color: var(--mint-d); } .stock-note.low { color: var(--pink-d); } .stock-note.out { color: var(--ink-2); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.buy-row .btn { flex: 1; min-width: 150px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 12px; height: 48px; overflow: hidden; background: #fff; }
.qty button { width: 42px; height: 100%; border: 0; background: transparent; font-size: 1.3rem; font-weight: 700; }
.qty button:hover { background: var(--wash); }
.qty input { width: 40px; text-align: center; border: 0; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 36px; border-width: 1.5px; border-radius: 9px; } .qty.sm button { width: 32px; font-size: 1.1rem; } .qty.sm input { width: 30px; }
.pin-check { background: var(--wash); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.pin-check form { display: flex; gap: 8px; margin-top: 8px; }
.pin-check input { flex: 1; min-width: 0; height: 42px; border: 2px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.pin-result { margin: 10px 0 0; font-size: .9rem; }
.highlights { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.highlights li { display: flex; gap: 10px; align-items: flex-start; }
.highlights li::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.perks div { text-align: center; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; line-height: 1.3; }
.perks svg { display: block; width: 26px; height: 26px; margin: 0 auto 6px; }
.tabs { border-bottom: 2px solid var(--line); display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; font-weight: 700; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--pink); }
.tab-panel { padding: 20px 0; }
.specs { width: 100%; border-collapse: collapse; font-size: .94rem; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--ink-2); font-weight: 600; }
.review-summary { display: flex; gap: 24px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.review-summary .big { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-item .top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-item .by { font-size: .84rem; color: var(--ink-3); }
.verified { color: var(--mint-d); font-weight: 700; font-size: .8rem; }
.sticky-buy { display: none; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 16px; }
  .gallery { position: static; }
  .sticky-buy { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; padding: 10px 16px; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(43,47,78,.08); }
  .sticky-buy .btn { flex: 1; }
  body.has-sticky { padding-bottom: 76px; }
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); outline: none; }
.field .err { color: var(--danger); font-size: .84rem; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.alert { padding: 12px 16px; border-radius: 12px; font-size: .94rem; margin-bottom: 16px; }
.alert.error { background: #FDECEC; color: #A82424; }
.alert.info { background: var(--sky-w); color: #135E91; }
.alert.ok { background: var(--mint-w); color: #0B6E50; }
.alert.warn { background: var(--sun-w); color: #7A5600; }

/* ---------- cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; padding-top: 28px; align-items: start; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } }
.ship-meter { background: var(--sun-w); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; font-size: .94rem; }
.ship-meter .bar { height: 8px; border-radius: 4px; background: #fff; margin-top: 8px; overflow: hidden; }
.ship-meter .bar i { display: block; height: 100%; background: var(--mint); border-radius: 4px; transition: width .3s; }
.line-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item img { width: 96px; height: 96px; border-radius: 12px; border: 1px solid var(--line); }
.line-item .name { font-weight: 600; line-height: 1.35; margin-bottom: 4px; display: block; }
.line-item .controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.line-item .remove { background: none; border: 0; color: var(--ink-2); font-size: .86rem; text-decoration: underline; padding: 0; }
.line-item .lt { font-weight: 800; text-align: right; }
@media (max-width: 560px) { .line-item { grid-template-columns: 72px 1fr; } .line-item img { width: 72px; height: 72px; } .line-item .lt { grid-column: 2; text-align: left; } }
.summary { background: var(--wash); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 140px; }
.summary h2 { font-size: 1.3rem; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .95rem; }
.sum-row.total { border-top: 2px dashed #CDD3E3; margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 1.15rem; }
.sum-row .green { color: var(--mint-d); font-weight: 700; }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 2px dashed #B9C0D6; padding: 0 12px; text-transform: uppercase; background: #fff; }
.coupon-hint { font-size: .82rem; color: var(--ink-2); }
.coupon-hint button { background: none; border: 1px dashed var(--pink); color: var(--pink-d); font-weight: 700; border-radius: 6px; padding: 1px 6px; font-size: .78rem; }
.secure-note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .82rem; color: var(--ink-2); margin-top: 12px; }
.secure-note svg { width: 16px; height: 16px; }
.mini-lines .line-item { grid-template-columns: 56px 1fr auto; gap: 12px; padding: 10px 0; }
.mini-lines .line-item img { width: 56px; height: 56px; }
.mini-lines .qbadge { font-size: .82rem; color: var(--ink-2); }

.checkout-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.checkout-step h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.checkout-step h2 .num { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .95rem; font-family: var(--font-body); font-weight: 700; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 2px solid var(--line); border-radius: 14px; margin-bottom: 12px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--ink); background: var(--wash); }
.pay-option input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink); }
.pay-option b { display: block; }
.pay-option .sub { font-size: .86rem; color: var(--ink-2); }
.pay-option.disabled { opacity: .55; pointer-events: none; }
.gift-box { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--pink-w); }
.gift-box input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--pink); margin-top: 2px; }

/* ---------- success / tracking ---------- */
.success-hero { text-align: center; padding: 44px 0 24px; }
.success-hero .tick { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; border: 3px solid var(--ink); box-shadow: var(--block); }
.success-hero .tick svg { width: 44px; height: 44px; }
.order-card { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.order-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: .92rem; }
.order-meta b { display: block; font-size: 1rem; }
@media (max-width: 600px) { .order-meta { grid-template-columns: 1fr 1fr; } }
.timeline { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline li { text-align: center; font-size: .82rem; font-weight: 600; color: var(--ink-3); position: relative; padding-top: 38px; }
.timeline li::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.timeline li::after { content: ''; position: absolute; top: 12px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--mint); border-color: var(--mint); }
.timeline li.done::after { background: var(--mint); }
.timeline li.current::before { box-shadow: 0 0 0 5px var(--mint-w); }
.timeline time { display: block; font-weight: 400; color: var(--ink-3); font-size: .75rem; }
.track-box { max-width: 520px; margin: 0 auto; }

/* ---------- content pages ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding-top: 28px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--wash); }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card b { display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--pink); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- toast, modal ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 90; display: flex; align-items: center; gap: 14px; font-weight: 600; transition: transform .25s; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--sun); text-decoration: underline; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(43,47,78,.5); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 22px; padding: 28px; width: min(440px, 100%); border: 2px solid var(--ink); box-shadow: 5px 7px 0 var(--ink); }
.modal h2 { font-size: 1.35rem; }

/* ---------- chat widget ---------- */
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 10px; }
.chat-fab { width: 60px; height: 60px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink); box-shadow: var(--block); display: grid; place-items: center; }
.chat-fab:active { transform: translate(3px, 4px); box-shadow: none; }
.chat-fab svg { width: 28px; height: 28px; fill: #fff; }
.chat-hello { background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 8px 12px; font-size: .88rem; font-weight: 600; box-shadow: 0 4px 14px rgba(43,47,78,.12); }
.chat-panel { position: fixed; right: 20px; bottom: 92px; z-index: 51; width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 22px; border: 2px solid var(--ink); box-shadow: 5px 7px 0 var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { background: var(--sky); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-head img { width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 4px; }
.chat-head b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.chat-head small { opacity: .9; }
.chat-head .online::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7CFFB2; margin-right: 6px; }
.chat-head .icon-btn { margin-left: auto; color: #fff; }
.chat-head .icon-btn:hover { background: rgba(255,255,255,.15); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--wash); }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.msg.bot { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; border: 1px solid var(--line); }
.msg.me { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--sky); text-decoration: underline; font-weight: 600; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { background: #fff; border: 1.5px solid var(--pink); color: var(--pink-d); border-radius: 999px; padding: 5px 11px; font-size: .84rem; font-weight: 600; }
.quick button:hover { background: var(--pink-w); }
.chat-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-foot input { flex: 1; min-width: 0; height: 42px; border-radius: 10px; border: 2px solid var(--line); padding: 0 12px; }
.chat-foot button { width: 42px; height: 42px; border-radius: 10px; border: 0; background: var(--pink); display: grid; place-items: center; }
.chat-foot button svg { width: 20px; height: 20px; fill: #fff; }
.wa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: #fff; font-weight: 700; padding: 10px; border-radius: 12px; margin: 0 10px 10px; }
.wa-btn svg { width: 20px; height: 20px; fill: #fff; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); margin: 0 2px; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (max-width: 600px) { .chat-hello { display: none; } .chat-launcher { right: 14px; bottom: 14px; } body.has-sticky .chat-launcher { bottom: 86px; } .chat-panel { right: 12px; bottom: 84px; } }

/* skeleton */
.skel { background: linear-gradient(90deg, #EEF1F7 25%, #F7F8FB 50%, #EEF1F7 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card { aspect-ratio: .72; }

[data-mobile-only] { display: none !important; }
@media (max-width: 900px) { [data-mobile-only] { display: flex !important; } }

html, body { overflow-x: clip; }
[hidden] { display: none !important; }
