/* ==========================================================
   Chacho Playtime — storefront styles
   ========================================================== */
:root {
    --primary: #17a2a4;
    --primary-dark: #0f8183;
    --primary-soft: #e3f5f5;
    --coral: #ff7a59;
    --coral-soft: #ffece6;
    --pink: #f0609e;
    --pink-soft: #fde8f1;
    --yellow: #ffc94a;
    --yellow-soft: #fff5d9;
    --purple: #8b7cf6;
    --purple-soft: #eeebff;
    --ink: #1d2939;
    --text: #475467;
    --muted: #8a94a6;
    --line: #ece7df;
    --bg: #ffffff;
    --bg-soft: #fff9f2;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -8px rgba(16, 24, 40, .10);
    --shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, .22);
    --font-head: 'Fredoka', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 16px/1.6 var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(23, 162, 164, .45); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 680px; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .75em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font-weight: 800; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(23, 162, 164, .7); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .7); }
.btn-wa:hover { background: #1ebe5b; }
.btn-white { background: #fff; color: var(--ink); }
.btn-outline-white { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .15); }
.btn-link { color: var(--primary-dark); font-weight: 700; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.icon-btn {
    position: relative; display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-soft); border: 0; cursor: pointer; color: var(--ink);
    transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary-dark); }
.icon-btn-sm { width: 38px; height: 38px; background: transparent; color: var(--muted); }
.icon-btn-sm:hover { background: var(--coral-soft); color: var(--coral); }

.pill {
    display: inline-flex; align-items: center; gap: .4em;
    padding: .35em .9em; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary-dark);
    font-weight: 800; font-size: .85rem; margin-bottom: 1rem;
}
.pill-coral { background: var(--coral-soft); color: #d9532f; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--primary-dark); font-weight: 800; }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .45em; }
.topbar .ico { width: 16px; height: 16px; }
.topbar a:hover { color: var(--yellow); }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .3); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); font-weight: 500; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 4px 12px -4px rgba(0, 0, 0, .25); }
.brand b { color: var(--coral); font-weight: 700; }
.brand-light { color: #fff; }

.menu { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.menu > a { padding: .5em 1em; border-radius: 999px; font-weight: 700; color: var(--text); transition: background .2s, color .2s; }
.menu > a:hover { color: var(--ink); background: var(--bg-soft); }
.menu > a.active { color: var(--primary-dark); background: var(--primary-soft); }
.menu-search {
    display: flex; align-items: center; gap: .5rem; margin-left: .75rem;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0 1rem; height: 44px; width: 220px;
    transition: border-color .2s, width .3s;
}
.menu-search:focus-within { border-color: var(--primary); width: 260px; }
.menu-search .ico { color: var(--muted); width: 18px; }
.menu-search input { border: 0; background: none; outline: none; width: 100%; }
.nav-actions { display: flex; gap: .5rem; }
.cart-count {
    position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 800;
    display: grid; place-items: center; border: 2px solid #fff;
}
.cart-count.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.45); } }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .6;
    background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px); background-size: 26px 26px;
    mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; padding: 4.5rem 0 5rem; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin-bottom: .45em; }
.hl { color: var(--primary); position: relative; white-space: nowrap; }
.hl::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .28em; z-index: -1;
    background: var(--yellow); border-radius: 999px; opacity: .7;
}
.hero-copy > p { font-size: 1.15rem; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.hero-cta.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; font-weight: 700; color: var(--ink); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .4em; }
.hero-points .ico { color: var(--primary); width: 18px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.blob {
    position: absolute; inset: 6%;
    background: conic-gradient(from 200deg, var(--primary-soft), var(--yellow-soft), var(--coral-soft), var(--pink-soft), var(--primary-soft));
    border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%;
    animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
    50% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; transform: rotate(8deg); }
}
.hero-logo {
    position: absolute; inset: 22%; width: 56%; height: 56%; border-radius: 50%;
    box-shadow: 0 0 0 10px #fff, var(--shadow-lg); object-fit: cover;
}
.float {
    position: absolute; display: grid; place-items: center; width: 64px; height: 64px;
    font-size: 1.7rem; background: #fff; border-radius: 20px; box-shadow: var(--shadow);
    animation: bob 5s ease-in-out infinite;
}
.f1 i { color: var(--primary); }
.f2 i { color: var(--coral); }
.f3 i { color: var(--purple); }
.f4 i { color: var(--pink); }
.f5 i { color: var(--yellow); }
.f1 { top: 4%; left: 12%; }
.f2 { top: 12%; right: 4%; animation-delay: -1s; }
.f3 { bottom: 10%; left: 2%; animation-delay: -2s; }
.f4 { bottom: 2%; right: 16%; animation-delay: -3s; }
.f5 { top: 46%; right: -2%; width: 48px; height: 48px; font-size: 1.25rem; border-radius: 50%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-6deg); } }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 2rem 0 4.5rem; }
.section-top-0 { padding-top: 0; }
.section-top-sm { padding-top: 1.5rem; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .2em; }
.section-head p { margin: 0; color: var(--muted); }

.page-head { padding: 2.5rem 0 2rem; }
.page-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .2em; }
.page-head p { color: var(--muted); margin: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a:hover { color: var(--primary-dark); }
.crumbs span { color: var(--ink); font-weight: 600; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.cat-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
    padding: 1.4rem; border-radius: var(--radius); transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-icon { font-size: 1.6rem; margin-bottom: .5rem; display: grid; place-items: center; width: 60px; height: 60px; background: #fff; border-radius: 18px; }
.cat-card strong { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); line-height: 1.2; }
.cat-card small { color: var(--text); font-weight: 600; }
.cat-0 { background: var(--primary-soft); } .cat-0 .cat-icon { color: var(--primary); }
.cat-1 { background: var(--coral-soft); }   .cat-1 .cat-icon { color: var(--coral); }
.cat-2 { background: var(--yellow-soft); }  .cat-2 .cat-icon { color: #e0a100; }
.cat-3 { background: var(--pink-soft); }    .cat-3 .cat-icon { color: var(--pink); }
.cat-4 { background: var(--purple-soft); }  .cat-4 .cat-icon { color: var(--purple); }
.cat-card:hover .cat-icon i { transform: scale(1.15) rotate(-8deg); }
.cat-icon i { transition: transform .3s; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.card {
    display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
    border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.06); }
.badge {
    position: absolute; top: 12px; left: 12px; padding: .3em .8em; border-radius: 999px;
    background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 800;
}
.badge-sale { background: var(--coral); color: #fff; }
.badge-dark { background: var(--ink); color: #fff; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.card-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .3rem; }
.card-meta .age { color: var(--primary-dark); background: var(--primary-soft); padding: 0 .55em; border-radius: 999px; }
.card-title { font-size: 1.08rem; font-weight: 600; margin-bottom: .8rem; }
.card-title a:hover { color: var(--primary-dark); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink); display: flex; align-items: baseline; gap: .45rem; }
.price s { font-size: .9rem; color: var(--muted); font-weight: 500; }
.price-lg { font-size: 2rem; margin-bottom: .8rem; }
.btn-add {
    width: 44px; height: 44px; border-radius: 14px; border: 0; cursor: pointer;
    background: var(--primary); color: #fff; display: grid; place-items: center;
    transition: background .2s, transform .15s;
}
.btn-add:hover { background: var(--coral); transform: rotate(90deg); }
.btn-add:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-add.loading { opacity: .6; pointer-events: none; }

/* placeholder art when a product has no photo */
.ph { width: 100%; height: 100%; display: grid; place-items: center; }
.ph i { font-size: clamp(3rem, 7vw, 4.6rem); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .10)); transition: transform .4s; }
.card:hover .ph i { transform: scale(1.12) rotate(-6deg); }
.ph-0 { background: linear-gradient(135deg, #d9f3f3, #bfe9ea); color: var(--primary); }
.ph-1 { background: linear-gradient(135deg, #ffe9e1, #ffd3c4); color: var(--coral); }
.ph-2 { background: linear-gradient(135deg, #fff4d4, #ffe7a6); color: #e0a100; }
.ph-3 { background: linear-gradient(135deg, #fde6f0, #fbcde1); color: var(--pink); }
.ph-4 { background: linear-gradient(135deg, #efecff, #dcd6ff); color: var(--purple); }

/* ---------- About / features ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.about-copy p { font-size: 1.08rem; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.feature h3 { margin: .9rem 0 .25rem; font-size: 1.1rem; }
.feature p { margin: 0; font-size: .95rem; }
.f-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; }
.f-ico .ico { width: 24px; height: 24px; }
.f-teal { background: var(--primary-soft); color: var(--primary-dark); }
.f-coral { background: var(--coral-soft); color: var(--coral); }
.f-yellow { background: var(--yellow-soft); color: #c48a00; }
.f-pink { background: var(--pink-soft); color: var(--pink); }

.promo {
    position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
    padding: 2.8rem 3rem; border-radius: 28px; color: #fff;
    background: linear-gradient(120deg, var(--primary) 0%, #19b5a8 45%, var(--coral) 130%);
}
.promo-art { position: absolute; right: 2%; bottom: -36px; font-size: 9rem; opacity: .14; transform: rotate(-15deg); pointer-events: none; }
.promo h2 { color: #fff; margin-bottom: .3em; }
.promo p { margin: 0; opacity: .92; font-size: 1.05rem; }
.promo-actions { display: flex; gap: .8rem; flex-wrap: wrap; position: relative; z-index: 1; }

.empty { color: var(--muted); }
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state > span {
    display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 1rem; border-radius: 50%;
    font-size: 2.2rem; color: var(--primary); background: var(--primary-soft);
}
.title-ico { color: var(--primary); font-size: .8em; }
.pill i { font-size: .95em; }
.free-bar i { color: var(--primary); }
.empty-state p { color: var(--muted); }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; align-items: start; }

/* filter sidebar (becomes a slide-in drawer on small screens) */
.filters-panel {
    position: sticky; top: 96px; display: flex; flex-direction: column; max-height: calc(100vh - 116px);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.fp-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.3rem .3rem; }
.fp-head h3 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.fp-head h3 i { color: var(--primary); font-size: .9em; }
.fp-head .icon-btn { display: none; }
.fp-body { padding: 0 1.3rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.f-group { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.f-group:last-child { border-bottom: 0; }
.f-group h4 { font-size: .95rem; margin: 0 0 .7rem; }

.f-cat {
    position: relative; display: flex; align-items: center; gap: .65rem; padding: .5rem .7rem; margin: 0 -.7rem;
    border-radius: 10px; cursor: pointer; font-weight: 700; font-size: .94rem; transition: background .15s, color .15s;
}
.f-cat input { position: absolute; opacity: 0; pointer-events: none; }
.f-cat i { width: 18px; text-align: center; color: var(--primary); }
.f-cat small { margin-left: auto; min-width: 26px; text-align: center; color: var(--muted); font-weight: 800; font-size: .78rem; background: var(--bg-soft); padding: .05em .5em; border-radius: 999px; }
.f-cat:hover { background: var(--bg-soft); }
.f-cat:has(input:checked) { background: var(--primary-soft); color: var(--primary-dark); }
.f-cat:has(input:checked) small { background: #fff; color: var(--primary-dark); }
.f-cat:has(input:focus-visible) { outline: 3px solid rgba(23, 162, 164, .45); }

.price-inputs { display: flex; align-items: center; gap: .5rem; }
.price-inputs > span { color: var(--muted); font-weight: 700; }
.price-inputs label {
    flex: 1; min-width: 0; display: flex; align-items: center; height: 44px; padding: 0 .7rem;
    border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s;
}
.price-inputs label:focus-within { border-color: var(--primary); }
.price-inputs label span { color: var(--muted); font-weight: 800; }
.price-inputs input { width: 100%; min-width: 0; border: 0; outline: none; background: none; font-weight: 700; padding-left: .3rem; -moz-appearance: textfield; }
.price-inputs input::-webkit-outer-spin-button, .price-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.f-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.f-pill { position: relative; cursor: pointer; }
.f-pill input { position: absolute; opacity: 0; pointer-events: none; }
.f-pill span {
    display: inline-block; padding: .35em .95em; border-radius: 999px; border: 1.5px solid var(--line);
    font-weight: 800; font-size: .88rem; transition: all .15s;
}
.f-pill:hover span { border-color: var(--primary); }
.f-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.f-pill input:focus-visible + span { outline: 3px solid rgba(23, 162, 164, .45); }

.f-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-weight: 700; font-size: .94rem; cursor: pointer; }
.f-toggle input {
    appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0; margin: 0;
    width: 42px; height: 24px; border-radius: 999px; background: var(--line); cursor: pointer; transition: background .2s;
}
.f-toggle input::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s;
}
.f-toggle input:checked { background: var(--primary); }
.f-toggle input:checked::after { transform: translateX(18px); }

.fp-foot { display: flex; gap: .6rem; padding: 1rem 1.3rem 1.2rem; border-top: 1px solid var(--line); }
.fp-foot .btn { flex: 1; padding: .7em 1em; }
.fp-backdrop { display: none; }

/* toolbar above the products */
.shop-toolbar { display: flex; gap: .6rem; margin-bottom: 1rem; }
.search-field {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; padding: 0 1rem; height: 48px;
    border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .2s;
}
.search-field:focus-within { border-color: var(--primary); }
.search-field .ico { color: var(--muted); width: 18px; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: none; background: none; }
.sort-field {
    position: relative; display: flex; align-items: center; height: 48px; border: 1px solid var(--line);
    border-radius: 999px; background: #fff; transition: border-color .2s;
}
.sort-field:focus-within { border-color: var(--primary); }
.sort-field i { position: absolute; left: 1rem; color: var(--primary); pointer-events: none; }
.sort-field select {
    height: 100%; width: 100%; padding: 0 2.4rem 0 2.6rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
    font-weight: 700; outline: none; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475467' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
}
.filters-btn { display: none; height: 48px; }
.filters-btn i { color: var(--primary); }
.filters-btn b {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff;
    font-size: .72rem; display: grid; place-items: center;
}

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1.3rem; }
.af-pill {
    display: inline-flex; align-items: center; gap: .45rem; padding: .3em .45em .3em .9em; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; font-size: .86rem; transition: background .15s;
}
.af-pill i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: .65rem; transition: all .15s; }
.af-pill:hover i { background: var(--coral); color: #fff; }
.af-clear { margin-left: .3rem; color: var(--coral); font-weight: 800; font-size: .86rem; }
.af-clear:hover { text-decoration: underline; }
.shop-main .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pager a {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid var(--line); font-weight: 800;
}
.pager a:hover { border-color: var(--primary); }
.pager a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-gallery {
    position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: var(--bg-soft);
    position: sticky; top: 100px;
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .ph i { font-size: 8rem; }
.product-gallery .badge { top: 18px; left: 18px; font-size: .9rem; }
.product-info h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: .3em; }
.lead { font-size: 1.1rem; }
.specs { list-style: none; padding: 0; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.specs li { display: flex; justify-content: space-between; padding: .8rem 1.1rem; }
.specs li + li { border-top: 1px solid var(--line); }
.specs span { color: var(--muted); font-weight: 600; }
.specs strong { color: var(--ink); }
.text-ok { color: #12a150 !important; }
.text-warn { color: #d97706 !important; }
.text-danger { color: #e5484d !important; }
.buy-box { display: flex; gap: .8rem; margin-bottom: .8rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 44px; height: 52px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); border-radius: 999px; }
.qty button:hover { color: var(--primary); }
.qty button .ico { width: 16px; }
.qty input { width: 40px; text-align: center; border: 0; outline: none; font-weight: 800; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 36px; height: 40px; }
.qty-sm input { width: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.4rem; font-weight: 700; font-size: .92rem; color: var(--ink); }
.trust span { display: inline-flex; align-items: center; gap: .45em; }
.trust .ico { color: var(--primary); }
.product-desc { max-width: 820px; margin-top: 4rem; }
.prose { font-size: 1.05rem; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.cart-list { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto 90px 38px; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-thumb { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph i { font-size: 2rem; }
.cart-name a { display: block; font-weight: 800; color: var(--ink); line-height: 1.3; }
.cart-name a:hover { color: var(--primary-dark); }
.cart-name small { color: var(--muted); font-weight: 600; }
.cart-line { text-align: right; font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); font-weight: 600; }

.summary, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.summary { position: sticky; top: 100px; background: var(--bg-soft); }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-weight: 600; }
.sum-total { border-top: 2px dashed var(--line); margin: .7rem 0 1.2rem; padding-top: 1rem; font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); }
.sum-item { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; margin-bottom: .9rem; font-weight: 700; }
.sum-thumb { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: visible; }
.sum-thumb img, .sum-thumb .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.sum-thumb .ph i { font-size: 1.4rem; }
.sum-thumb b {
    position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: .75rem; display: grid; place-items: center;
}
.sum-name { color: var(--ink); line-height: 1.3; font-size: .95rem; }
.sum-item + .sum-row { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; }
.free-bar { background: #fff; border-radius: var(--radius-sm); padding: .8rem 1rem; margin: .6rem 0; font-size: .9rem; }
.free-bar p { margin: 0 0 .5rem; }
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--yellow)); }

.form h3 { margin: .4rem 0 1rem; }
.form h3 + .alert { margin-top: 0; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 1rem; }
.form label small { color: var(--muted); font-weight: 600; }
.form input, .form textarea, .form select {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; font-weight: 600; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-note { text-align: center; color: var(--muted); font-size: .9rem; margin: .8rem 0 0; }
.pay-option {
    display: flex; align-items: center; gap: 1rem; padding: 1rem; margin-bottom: 1.4rem;
    border: 2px solid var(--primary); border-radius: var(--radius-sm); background: var(--primary-soft);
}
.pay-option div { flex: 1; }
.pay-option strong { display: block; color: var(--ink); }
.pay-option small { color: var(--text); }
.pay-option > .ico { color: var(--primary); }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-weight: 700; font-size: .93rem; }
.alert-error { background: #fff0f0; color: #c4320a; border: 1px solid #ffd4cc; }
.hp { position: absolute !important; left: -9999px; }

.success { text-align: center; padding: 3rem 2rem; }
.success h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.success-icon {
    width: 84px; height: 84px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--primary); color: #fff; box-shadow: 0 0 0 10px var(--primary-soft);
}
.success-icon .ico { width: 40px; height: 40px; stroke-width: 3; }
.success-lines { text-align: left; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1rem 1.3rem 0; margin: 1.5rem 0; }
.success-lines .sum-total { margin-bottom: 0; padding-bottom: 1rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 360px 1fr; gap: 2rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
    display: flex; align-items: center; gap: 1rem; padding: 1.2rem; border-radius: var(--radius);
    border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card strong { display: block; color: var(--ink); }
.contact-card small { color: var(--muted); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4cad4; padding: 4rem 0 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-about { margin: 1rem 0 1.2rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a:hover { color: var(--yellow); }
.contact-list li { display: flex; align-items: center; gap: .6rem; }
.contact-list .ico { width: 18px; color: var(--primary); }
.socials { display: flex; gap: .6rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .2s; }
.socials a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding: 1.4rem 0; font-size: .88rem;
}

.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; background: #25d366; color: #fff;
    box-shadow: 0 10px 25px -6px rgba(37, 211, 102, .7); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 30px; height: 30px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: .5rem; width: min(420px, 92vw); pointer-events: none; }
.toast {
    pointer-events: auto; padding: .9rem 1.2rem; border-radius: 14px; background: var(--ink); color: #fff;
    font-weight: 700; box-shadow: var(--shadow-lg); animation: toastIn .3s ease-out;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.toast a { color: var(--yellow); white-space: nowrap; }
.toast-success { background: #0f8183; }
.toast-error { background: #d6453d; }
.toast.out { opacity: 0; transform: translateY(-10px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .menu-search { width: 180px; }
}
@media (max-width: 860px) {
    .menu-toggle { display: inline-grid; }
    .menu {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem;
        background: #fff; padding: 1rem 20px 1.4rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
    }
    .menu.open { transform: none; opacity: 1; visibility: visible; }
    .menu > a { padding: .8em 1em; }
    .menu-search, .menu-search:focus-within { margin: .5rem 0 0; width: 100%; }
    .nav-actions { margin-left: auto; }
    .hero-grid { grid-template-columns: 1fr; padding: 2.5rem 0 3.5rem; gap: 2rem; text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .hero-cta, .hero-points { justify-content: center; }
    .hero-art { max-width: 340px; order: -1; }
    .about-grid, .product-layout, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
    .product-gallery { position: relative; top: 0; }
    .promo { padding: 2.2rem 1.8rem; }
    .shop-layout { grid-template-columns: 1fr; }
    .filters-panel {
        position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); max-height: none;
        border: 0; border-radius: 22px 0 0 22px; box-shadow: var(--shadow-lg);
        transform: translateX(105%); visibility: hidden; transition: transform .3s ease, visibility .3s;
    }
    .filters-open .filters-panel { transform: none; visibility: visible; }
    .fp-head { padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
    .fp-head .icon-btn { display: inline-grid; }
    .fp-body { flex: 1; }
    .fp-backdrop {
        display: block; position: fixed; inset: 0; z-index: 85; background: rgba(29, 41, 57, .45);
        opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    }
    .filters-open .fp-backdrop { opacity: 1; visibility: visible; }
    body.filters-open { overflow: hidden; }
    .shop-toolbar { flex-wrap: wrap; }
    .search-field { flex: 1 1 100%; }
    .filters-btn { display: inline-flex; flex: 1; }
    .sort-field { flex: 1; min-width: 0; }
}
@media (max-width: 600px) {
    .section { padding: 3rem 0; }
    .section-top-0 { padding-top: 0; }
    .page-head { padding: 1.6rem 0 1.4rem; }
    .topbar .container { justify-content: center; }
    .topbar span { display: none; }
    .nav { height: 66px; }
    .brand { font-size: 1.15rem; }
    .brand img { width: 40px; height: 40px; }
    .product-grid, .shop-main .product-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .sort-field select { padding: 0 2rem 0 2.3rem; font-size: .92rem; }
    .sort-field i { left: .85rem; }
    .card-body { padding: .8rem; }
    .card-title { font-size: .98rem; }
    .card-meta .age { display: none; }
    .price { font-size: 1.1rem; }
    .price-lg { font-size: 1.7rem; }
    .btn-add { width: 38px; height: 38px; border-radius: 12px; }
    .features, .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 64px 1fr auto; grid-template-areas: "t n x" "t q l"; row-gap: .5rem; }
    .cart-thumb { grid-area: t; width: 64px; height: 64px; }
    .cart-name { grid-area: n; }
    .cart-row .qty { grid-area: q; justify-self: start; }
    .cart-line { grid-area: l; }
    .cart-row > .icon-btn { grid-area: x; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .buy-box { flex-direction: column; }
    .buy-box .qty { justify-content: space-between; }
    .float { width: 50px; height: 50px; font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
