/* ===== Header: logo, actions, floating dock navigation ===== */
#site-header { position: sticky; top: 0; z-index: 40; min-height: 76px; background: rgba(247, 247, 242, .96); transition: box-shadow .25s var(--ease); }
#site-header.scrolled { box-shadow: 0 1px 0 rgba(26, 45, 66, .08); }
.topbar { max-width: var(--max); margin-inline: auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.logo img { border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.logo__text { font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 48px; height: 48px; display: grid; place-items: center; background: var(--paper); border: var(--line); border-radius: 50%; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--pill); background: var(--pink); color: #fff; font-size: .72rem; font-weight: 700; }
.cart-btn__count.bump { animation: bump .4s var(--ease-bounce); }
@keyframes bump { 50% { transform: scale(1.3); } }
.nav__burger { display: none; }

/* Pill navigation centered in the header on desktop; a slide-in sheet on phones. */
.dock { display: flex; gap: 2px; padding: 5px; background: var(--paper); border: var(--line); border-radius: var(--pill); box-shadow: var(--shadow-sm); }
.dock a { padding: 9px 16px; border-radius: var(--pill); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.dock a:hover { background: var(--cream); }
.dock a[aria-current="page"] { background: var(--ink); color: #fff; }

.search { padding: 0 var(--gutter) 14px; }
.search__box { max-width: 720px; margin-inline: auto; display: flex; gap: 10px; align-items: center; }
.search__box input { flex: 1; min-width: 0; min-height: 48px; padding: 12px 20px; border: var(--line-strong); border-radius: var(--pill); background: var(--paper); }

/* Keep the store name for screen readers when there is no room to show it. */
@media (max-width: 1100px) { .logo__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 860px) {
  .nav__burger { display: grid; }
  .dock { position: fixed; z-index: 45; inset: 0 0 0 auto; transform: translateX(105%); width: min(86vw, 340px); flex-direction: column; gap: 4px; padding: 96px 18px 24px; border-radius: var(--r-xl) 0 0 var(--r-xl); background: var(--paper); transition: transform .35s var(--ease); overflow-y: auto; }
  .dock.open { transform: none; }
  .dock a { font-size: 1.15rem; padding: 14px 18px; }
  body.menu-open::before { content: ""; position: fixed; inset: 0; background: rgba(26, 45, 66, .35); z-index: 39; } /* under the header so the menu stays tappable */
  #site-header { min-height: 68px; }
  .topbar { padding-block: 10px; }
  .icon-btn { width: 44px; height: 44px; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: var(--line-strong); border-radius: var(--pill); background: var(--paper); color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.15; text-decoration: none; text-align: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--pink, .btn--wa { background: var(--pink); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.btn--pink:hover, .btn--wa:hover { box-shadow: 0 16px 32px -10px rgba(233, 61, 130, .65); }
.btn--ink { background: var(--ink); border-color: transparent; color: #fff; }
.btn--lime { background: var(--lime); border-color: transparent; color: var(--ink); }
.btn--yellow { background: var(--yellow); border-color: transparent; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.btn--lg { min-height: 54px; padding: 14px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--disabled, .btn:disabled { background: #E9E9E4; color: #7A8494; border-color: transparent; box-shadow: none; cursor: not-allowed; transform: none !important; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 4px 2px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ===== Labels, chips, badges ===== */
.sticker { display: inline-block; padding: 6px 14px; border-radius: var(--pill); background: var(--paper); border: var(--line); font-weight: 600; font-size: .8rem; box-shadow: var(--shadow-sm); }
.sticker--lime { background: var(--lime); border-color: transparent; }
.sticker--pink { background: var(--pink-soft); color: var(--pink-text); border-color: transparent; }
.sticker--sky { background: var(--sky-soft); border-color: transparent; }
.chip { min-height: 44px; padding: 8px 18px; border: var(--line-strong); border-radius: var(--pill); background: var(--paper); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background .2s, color .2s; }
.chip:hover { background: var(--cream); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge { display: inline-block; padding: 4px 10px; border-radius: var(--pill); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.badge--hot { background: var(--pink); color: #fff; }
.badge--new { background: var(--lime); }
.badge--low { background: var(--yellow); }
.badge--out { background: var(--ink); color: #fff; }
.badge--sample { background: var(--grape-soft); }

/* ===== Product visual: photo in an organic blob, or drawn slime ===== */
.slime-art { position: relative; aspect-ratio: 1; width: 100%; display: grid; place-items: center; background: var(--bg, var(--pink-soft)); overflow: hidden; }
.slime-art--img { background: transparent; }
.slime-art--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 58% 42% 52% 48% / 48% 56% 44% 52%; box-shadow: var(--shadow); transition: transform .5s var(--ease), border-radius .8s var(--ease); }
.slime-svg { width: 84%; height: auto; overflow: visible; transform-origin: 50% 78%; transition: transform .4s var(--ease-bounce); }
.slime-art__topper { position: absolute; top: 9%; right: 9%; font-size: clamp(1.2rem, 3vw, 1.7rem); }
.slime-art--img .slime-art__topper { display: none; }
.slime-art.squish .slime-svg, .slime-art.squish img, .tex-stage.squish .slime-svg { animation: squish .7s var(--ease-bounce); }
@keyframes squish { 0% { transform: scale(1); } 25% { transform: scale(1.12, .86); } 50% { transform: scale(.94, 1.08); } 75% { transform: scale(1.03, .97); } 100% { transform: scale(1); } }
@keyframes jiggle { 20% { transform: scale(1.06, .92); } 40% { transform: scale(.95, 1.06); } 60% { transform: scale(1.03, .97); } 80% { transform: scale(.99, 1.01); } }
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 52% 48% / 48% 56% 44% 52%; }
  50% { border-radius: 46% 54% 44% 56% / 56% 44% 58% 42%; }
}

/* ===== Product cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.pcard { display: flex; flex-direction: column; gap: 16px; }
.pcard__media { position: relative; display: block; border-radius: var(--r-lg); }
.pcard__media > a { display: block; }
.pcard:hover .slime-art--img img { transform: scale(1.03); border-radius: 46% 54% 44% 56% / 56% 44% 58% 42%; }
.pcard:hover .slime-svg { transform: scale(1.05, .95); }
.pcard__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 80%; }
.pcard__quick { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px); opacity: 0; min-height: 40px; padding: 8px 16px; border: 0; border-radius: var(--pill); background: rgba(255, 255, 255, .92); font-weight: 600; font-size: .85rem; box-shadow: var(--shadow-sm); transition: opacity .2s, transform .25s var(--ease); white-space: nowrap; }
.pcard:hover .pcard__quick, .pcard__quick:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .pcard__quick { opacity: 1; transform: none; left: auto; right: 10px; bottom: 10px; } }
.pcard__body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard__cat { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; color: var(--pink-text); }
.pcard__title { font-size: 1.35rem; font-weight: 650; }
.pcard__title a { display: inline-block; padding: 4px 0; text-decoration: none; }
.pcard__title a:hover { color: var(--pink-text); }
.pcard__scent { font-size: .85rem; color: var(--ink-soft); }
.pcard__desc { color: var(--ink-soft); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.price { font-weight: 700; font-size: 1rem; }
.price small { font-size: .78rem; font-weight: 500; color: var(--ink-soft); }

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .opts legend { font-weight: 600; font-size: .9rem; }
.req { color: var(--pink-text); }
.opt-tag { font-weight: 400; color: var(--ink-soft); font-size: .82rem; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: var(--line-strong); border-radius: var(--r-sm); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink-bright); box-shadow: 0 0 0 4px rgba(233, 61, 130, .14); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF6F6; }
.err { color: var(--danger); font-weight: 600; font-size: .86rem; }
.err:empty { display: none; }
.hint { color: var(--ink-soft); font-size: .84rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--pink); flex-shrink: 0; }

.qty { display: inline-flex; align-items: center; border: var(--line-strong); border-radius: var(--pill); background: var(--paper); overflow: hidden; height: 54px; }
.qty button { min-width: 46px; height: 100%; border: 0; background: none; font-size: 1.3rem; font-weight: 600; }
.qty button:hover { background: var(--cream); }
.qty button:disabled { opacity: .35; cursor: not-allowed; background: none; }
.qty input, .qty output { width: 42px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty--sm { height: 44px; }
.qty--sm button { min-width: 40px; }

/* ===== FAQ accordion ===== */
.faq { background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.faq + .faq { margin-top: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; background: var(--cream); border-radius: 50%; font-size: 1.1rem; transition: transform .3s var(--ease), background .2s; }
.faq[open] summary span { transform: rotate(45deg); background: var(--lime); }
.faq p { padding: 0 22px 20px; color: var(--ink-soft); }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 220%); max-width: calc(100vw - 32px); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: var(--pill); box-shadow: var(--shadow-lg); font-weight: 500; transition: transform .4s var(--ease-bounce); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--lime); font-weight: 700; margin-left: 8px; }

/* ===== WhatsApp widget ===== */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7); transition: transform .25s var(--ease); }
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab:hover { transform: translateY(-2px) scale(1.04); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s ease-out 3; }
.wa-fab.is-open::before { display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-panel { position: fixed; right: 22px; bottom: 96px; z-index: 61; width: min(360px, calc(100vw - 32px)); background: var(--paper); border: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .3s var(--ease); transform-origin: bottom right; }
@keyframes pop { from { transform: scale(.85) translateY(16px); opacity: 0; } }
.wa-panel__head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--ink); color: #fff; }
.wa-panel__head strong { display: block; font-weight: 700; line-height: 1.2; }
.wa-panel__head small { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: rgba(255, 255, 255, .8); }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.wa-panel__avatar { width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.3rem; background: #fff; border-radius: 50%; flex-shrink: 0; }
.wa-panel__close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; }
.wa-panel__bubble { margin: 16px 16px 6px; padding: 12px 14px; background: var(--cream); border-radius: 4px 16px 16px 16px; font-size: .9rem; }
.wa-panel__list { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 14px; max-height: 46vh; overflow-y: auto; }
.wa-msg { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border: var(--line-strong); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .2s, border-color .2s; }
.wa-msg:hover { background: var(--pink-soft); border-color: transparent; }
.wa-msg--ctx { background: var(--lime-soft); border-color: transparent; }
.wa-panel__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-top: var(--line); font-size: .85rem; }
.wa-copy { border: var(--line-strong); border-radius: var(--pill); background: var(--paper); padding: 6px 14px; font-weight: 600; min-height: 36px; }

/* ===== Footer ===== */
#site-footer { margin-top: 40px; padding-bottom: 32px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px 24px; border-top: var(--line); }
.footer__brand .logo span { display: flex; flex-direction: column; line-height: 1.3; }
.footer__brand b { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.footer__brand small { color: var(--ink-soft); font-size: .84rem; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: .9rem; }
.footer__links a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; }
.footer__links a:hover { color: var(--ink); }
.footer__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--pink-soft); color: var(--pink-text) !important; }
.footer__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer__wa { display: inline-flex; align-items: center; gap: 6px; }
.footer__wa svg { width: 18px; height: 18px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--ink-faint); font-size: .82rem; }
.footer__base a { color: inherit; }

/* ===== Empty states, misc ===== */
.empty { text-align: center; max-width: 520px; margin: 40px auto; padding: 48px 28px; background: var(--paper); border: var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 14px; grid-column: 1 / -1; }
.empty__emoji { font-size: 3rem; }
.empty h1, .empty h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.empty p { color: var(--ink-soft); }
.pill { display: inline-block; padding: 5px 12px; border-radius: var(--pill); font-weight: 600; font-size: .8rem; }
.pill--wait { background: var(--yellow); }
.pill--unpaid { background: var(--pink-soft); color: var(--pink-text); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--ink-soft); margin-bottom: 24px; }
.crumbs a { color: var(--ink); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.stock i { width: 10px; height: 10px; border-radius: 50%; }
.stock--ok i { background: #7BD13A; } .stock--low i { background: #F2B705; } .stock--out i { background: var(--danger); }

/* ===== Quick view dialog ===== */
.qv { margin: auto; width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); background: var(--cream); color: var(--ink); overflow: auto; }
.qv::backdrop { background: rgba(26, 45, 66, .45); backdrop-filter: blur(4px); }
.qv[open] { animation: pop .3s var(--ease); }
.qv__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.qv__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.qv__media { position: relative; padding: 28px; }
.qv__info { padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.qv__info h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); padding-right: 40px; }
.qv__more { font-weight: 600; }
@media (max-width: 700px) { .qv__grid { grid-template-columns: 1fr; } .qv__media { padding: 20px 20px 0; max-width: 320px; margin-inline: auto; } .qv__info { padding: 20px; } }

/* ===== Phone layout ===== */
@media (max-width: 760px) {
  #site-footer { padding-bottom: 88px; }
  .wa-fab { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-fab svg { width: 28px; height: 28px; }
  .wa-panel { right: 16px; bottom: 82px; }
  .toast { bottom: 84px; }
  body.page-buy .wa-fab { display: none; }
}

/* Colour dots on product cards */
.pcard__swatches { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: .78rem; color: var(--ink-soft); }
.pcard__swatches i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(26, 45, 66, .12); }
.pcard__swatches span { margin-left: 4px; }
