/* =====================================================================
   ToToKids — storefront theme (modern, mobile-first). Loads AFTER app.css.
   Uses app.css tokens (--brand, --accent, --ink, --line, shadows) + buttons,
   forms, modal, toast. Storefront classes are tk-* to avoid clashes.
   ===================================================================== */
:root{ --tk-max:1220px; --tk-radius:16px; --tk-card:14px; }
body{ background:#fff; color:#2b2b38; font-size:14px; }
.tk-wrap{ max-width:var(--tk-max); margin:0 auto; padding:0 16px; }
img{ max-width:100%; display:block; }
.tk-sronly{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- announcement bar ---------- */
.tk-ann{ background:linear-gradient(90deg,var(--brand),var(--accent)); color:#fff; font-size:12.5px; font-weight:600;
  text-align:center; padding:7px 14px; letter-spacing:.2px; }
.tk-ann span{ opacity:.95 }

/* ---------- header ---------- */
.tk-head{ position:sticky; top:0; z-index:200; background:#fff; border-bottom:1px solid var(--line);
  transition:box-shadow .2s ease; }
.tk-head.tk-stuck{ box-shadow:0 6px 22px rgba(24,20,50,.08); }
.tk-head-in{ max-width:var(--tk-max); margin:0 auto; display:flex; align-items:center; gap:14px; padding:11px 16px; }
.tk-logo{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; color:var(--ink); white-space:nowrap; }
.tk-logo .mk{ width:40px; height:40px; border-radius:12px; background:linear-gradient(135deg,var(--brand),var(--accent));
  display:grid; place-items:center; box-shadow:0 6px 14px rgba(240,100,42,.28); }
.tk-logo .mk svg{ width:24px; height:24px; }
.tk-logo b{ color:var(--brand); }
.tk-logo small{ display:block; font-size:10px; font-weight:600; color:var(--muted); letter-spacing:.3px; margin-top:-2px }
.tk-search{ position:relative; flex:1; max-width:520px; margin:0 auto; }
.tk-search input{ width:100%; height:44px; border:1.5px solid var(--line); border-radius:26px; padding:0 44px 0 44px;
  font-size:14px; background:#f7f7fb; transition:.15s; }
.tk-search input:focus{ outline:none; border-color:var(--brand); background:#fff; box-shadow:0 0 0 4px rgba(240,100,42,.12); }
.tk-search .si{ position:absolute; left:16px; top:50%; transform:translateY(-50%); color:var(--muted); width:18px; height:18px; }
.tk-search .sx{ position:absolute; right:12px; top:50%; transform:translateY(-50%); border:0; background:#e9e9f2; color:#555;
  width:24px;height:24px;border-radius:50%; cursor:pointer; display:none; align-items:center; justify-content:center }
.tk-search input:not(:placeholder-shown)+.sx, .tk-search .sx.show{ display:flex }
.tk-actions{ display:flex; align-items:center; gap:8px; margin-left:auto; }
.tk-link{ display:inline-flex; align-items:center; gap:6px; color:#444; font-size:13px; font-weight:600; padding:9px 12px; border-radius:10px }
.tk-link:hover{ background:var(--brand-tint); color:var(--brand-d) }
.tk-cart{ position:relative; display:inline-flex; align-items:center; gap:7px; background:var(--brand); color:#fff; border:0;
  border-radius:26px; padding:10px 16px; font-weight:700; font-size:13.5px; cursor:pointer; box-shadow:0 6px 14px rgba(240,100,42,.28) }
.tk-cart:hover{ background:var(--brand-d) }
.tk-cart .cnt{ background:#fff; color:var(--brand-d); border-radius:20px; font-size:11px; font-weight:800; min-width:20px; height:20px;
  display:inline-grid; place-items:center; padding:0 5px }
.tk-burger{ display:none; border:1px solid var(--line); background:#fff; width:42px;height:42px;border-radius:11px; cursor:pointer; color:#333; place-items:center }

/* ---------- hero carousel ---------- */
.tk-hero{ position:relative; border-radius:var(--tk-radius); overflow:hidden; margin:18px 0 8px; background:#f3f3fb;
  box-shadow:0 10px 30px rgba(24,20,50,.08) }
.tk-slides{ display:flex; transition:transform .5s cubic-bezier(.4,0,.2,1); }
.tk-slide{ position:relative; flex:0 0 100%; }
.tk-slide img{ width:100%; aspect-ratio:1280/460; object-fit:cover; }
.tk-slide-cap{ position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; gap:10px;
  padding:0 6% ; max-width:56%; }
.tk-slide-cap h2{ font-size:clamp(22px,3.4vw,42px); line-height:1.06; color:var(--ink); font-weight:800; letter-spacing:-.5px }
.tk-slide-cap p{ font-size:clamp(13px,1.6vw,18px); color:#4a4a5c; font-weight:600; margin:0 }
.tk-slide-cap .btn{ align-self:flex-start; margin-top:6px; font-size:14px; padding:.6rem 1.15rem }
.tk-har{ position:absolute; top:50%; transform:translateY(-50%); width:42px;height:42px; border-radius:50%; border:0;
  background:rgba(255,255,255,.86); color:var(--ink); cursor:pointer; display:grid; place-items:center; box-shadow:0 4px 12px rgba(0,0,0,.12); z-index:3 }
.tk-har:hover{ background:#fff } .tk-har.prev{ left:12px } .tk-har.next{ right:12px }
.tk-dots{ position:absolute; bottom:12px; left:0; right:0; display:flex; gap:7px; justify-content:center; z-index:3 }
.tk-dots i{ width:9px;height:9px;border-radius:50%; background:rgba(26,19,48,.28); cursor:pointer; transition:.2s }
.tk-dots i.on{ background:var(--brand); width:24px; border-radius:20px }

/* ---------- layout shell ---------- */
.tk-shell{ display:grid; grid-template-columns:1fr; gap:22px; padding:14px 0 40px; }
@media(min-width:992px){ .tk-shell{ grid-template-columns:256px 1fr; gap:26px; } }

/* sidebar */
.tk-side{ display:flex; flex-direction:column; gap:14px; }
@media(min-width:992px){ .tk-side{ position:sticky; top:74px; align-self:start; max-height:calc(100vh - 90px); overflow:auto; padding-right:4px } }
.tk-scard{ border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff }
.tk-scard h3{ font-size:12px; text-transform:uppercase; letter-spacing:.8px; color:var(--muted); font-weight:700;
  padding:12px 14px 8px; display:flex; align-items:center; gap:7px }
.tk-scard h3 svg{ color:var(--brand); width:15px;height:15px }
.tk-cats{ padding:0 8px 10px; display:flex; flex-direction:column; gap:2px }
.tk-cat{ display:flex; align-items:center; gap:9px; width:100%; text-align:left; border:0; background:transparent; cursor:pointer;
  padding:9px 11px; border-radius:10px; font-size:13.5px; font-weight:600; color:#3f3f4e; transition:.14s }
.tk-cat:hover{ background:var(--brand-tint); color:var(--brand-d) }
.tk-cat.on{ background:var(--brand-soft); color:var(--brand-d) }
.tk-cat .dot{ width:9px;height:9px;border-radius:50%; background:var(--accent); flex:0 0 auto }
.tk-cat.on .dot{ background:var(--brand) }
.tk-cat .n{ flex:1 }
.tk-cat .c{ font-size:11px; font-weight:700; color:var(--muted); background:#f1f1f7; border-radius:20px; padding:1px 8px }
.tk-cat.on .c{ background:#fff; color:var(--brand-d) }
.tk-filter{ padding:6px 14px 14px; display:flex; flex-direction:column; gap:12px }
.tk-price-row{ display:flex; align-items:center; gap:8px }
.tk-price-row input{ width:100%; height:38px; border:1px solid var(--line); border-radius:9px; padding:0 10px; font-size:13px; background:#f7f7fb }
.tk-price-row input:focus{ outline:none; border-color:var(--brand); background:#fff }
.tk-price-row span{ color:var(--muted) }

/* main */
.tk-toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px }
.tk-toolbar .count{ font-size:13px; color:var(--muted); font-weight:600 }
.tk-toolbar .sp{ margin-left:auto }
.tk-toolbar select{ height:40px; border:1px solid var(--line); border-radius:10px; padding:0 32px 0 12px; font-size:13px; background-color:#fff; font-weight:600; color:#3f3f4e }
.tk-filters-btn{ display:none }

.tk-group{ margin-bottom:26px }
.tk-group-h{ display:flex; align-items:center; gap:10px; margin:6px 0 14px }
.tk-group-h h2{ font-size:18px; font-weight:800; color:var(--ink); display:flex; align-items:center; gap:9px }
.tk-group-h .bar{ height:3px; flex:1; background:linear-gradient(90deg,var(--brand-soft),transparent); border-radius:3px }
.tk-group-h .c{ font-size:12px; color:var(--muted); font-weight:700 }

.tk-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(158px,1fr)); gap:14px }
@media(min-width:560px){ .tk-grid{ grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px } }

.tk-card{ border:1px solid var(--line); border-radius:var(--tk-card); overflow:hidden; background:#fff; display:flex; flex-direction:column;
  transition:transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s; position:relative }
.tk-card:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(24,20,50,.12); border-color:transparent }
.tk-thumb{ position:relative; cursor:pointer; background:#f6f6fb; overflow:hidden }
.tk-thumb img{ width:100%; aspect-ratio:1; object-fit:cover; transition:transform .3s ease }
.tk-card:hover .tk-thumb img{ transform:scale(1.05) }
.tk-badge{ position:absolute; top:10px; left:10px; background:var(--red); color:#fff; font-size:10.5px; font-weight:800;
  padding:3px 9px; border-radius:20px; box-shadow:0 3px 8px rgba(224,72,60,.35) }
.tk-badge.feat{ background:var(--accent); box-shadow:0 3px 8px rgba(18,181,166,.3) }
.tk-body{ padding:11px 12px 12px; display:flex; flex-direction:column; flex:1 }
.tk-body .ct{ font-size:10.5px; text-transform:uppercase; letter-spacing:.5px; color:var(--accent); font-weight:700 }
.tk-body .nm{ font-size:13.5px; font-weight:600; color:#2b2b38; line-height:1.3; margin:2px 0 6px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:35px; cursor:pointer }
.tk-body .nm:hover{ color:var(--brand-d) }
.tk-price{ font-weight:800; color:var(--ink); font-size:15px; margin-top:auto }
.tk-price s{ color:var(--muted2); font-weight:500; font-size:12px; margin-left:5px }
.tk-cur{ font-size:11px; color:var(--muted); font-weight:700 }
.tk-add{ margin-top:10px; width:100%; border:0; background:var(--brand-soft); color:var(--brand-d); border-radius:10px;
  padding:9px; font-weight:700; font-size:12.5px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; transition:.15s }
.tk-add:hover{ background:var(--brand); color:#fff }
.tk-add svg{ width:15px;height:15px }

.tk-empty{ text-align:center; padding:60px 18px; color:var(--muted) }
.tk-empty svg{ width:52px;height:52px; color:#d8d8e4; margin-bottom:8px }
.tk-empty h3{ color:var(--ink); margin-bottom:4px }

/* featured strip */
.tk-feat{ margin:2px 0 22px }
.tk-feat .tk-group-h h2 svg{ color:var(--accent) }
.tk-scroller{ display:flex; gap:14px; overflow-x:auto; padding:4px 2px 12px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch }
.tk-scroller::-webkit-scrollbar{ height:6px } .tk-scroller::-webkit-scrollbar-thumb{ background:var(--line); border-radius:6px }
.tk-scroller .tk-card{ flex:0 0 180px; scroll-snap-align:start }

/* ---------- cart drawer (correct z-index, above app.css backdrop 1035 & modal 2000) ---------- */
.tk-cart-back{ position:fixed; inset:0; background:rgba(20,16,40,.5); z-index:2990; opacity:0; visibility:hidden; transition:.28s }
body.tk-cart-open .tk-cart-back{ opacity:1; visibility:visible }
.tk-drawer{ position:fixed; top:0; right:0; bottom:0; width:400px; max-width:92vw; background:#fff; z-index:3000;
  transform:translateX(100%); transition:transform .32s cubic-bezier(.4,0,.2,1); display:flex; flex-direction:column; box-shadow:-16px 0 40px rgba(24,20,50,.2) }
body.tk-cart-open .tk-drawer{ transform:none }
.tk-drawer-h{ display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid var(--line) }
.tk-drawer-h b{ font-size:16px; display:flex; align-items:center; gap:8px; color:var(--ink) }
.tk-drawer-h b svg{ color:var(--brand) }
.tk-x{ border:0; background:#f3f3f8; color:#555; width:34px;height:34px;border-radius:10px; cursor:pointer; display:grid; place-items:center }
.tk-x:hover{ background:var(--red-s); color:var(--red) }
.tk-drawer-b{ flex:1; overflow:auto; padding:12px 18px }
.tk-ci{ display:flex; gap:12px; align-items:center; padding:11px 0; border-bottom:1px solid var(--line2) }
.tk-ci img{ width:58px;height:58px; border-radius:10px; object-fit:cover; background:#f6f6fb; flex:0 0 58px; border:1px solid var(--line) }
.tk-ci .info{ flex:1; min-width:0 }
.tk-ci .info .n{ font-size:13px; font-weight:600; color:#2b2b38; line-height:1.25 }
.tk-ci .info .p{ font-size:12px; color:var(--muted); margin-top:2px }
.tk-qty{ display:flex; align-items:center; gap:8px }
.tk-qty button{ width:28px;height:28px; border:1px solid var(--line); background:#fff; border-radius:8px; cursor:pointer; font-weight:800; color:var(--brand-d); font-size:15px; line-height:1 }
.tk-qty button:hover{ background:var(--brand-soft) }
.tk-qty b{ min-width:20px; text-align:center; font-size:13px }
.tk-ci .rm{ border:0; background:transparent; color:var(--muted2); cursor:pointer; padding:4px }
.tk-ci .rm:hover{ color:var(--red) }
.tk-drawer-empty{ text-align:center; color:var(--muted); padding:50px 10px }
.tk-drawer-empty svg{ width:52px;height:52px;color:#dcdce6;margin-bottom:8px }
.tk-drawer-f{ border-top:1px solid var(--line); padding:16px 18px; }
.tk-sumrow{ display:flex; justify-content:space-between; font-size:13px; color:var(--muted); margin-bottom:6px }
.tk-total{ display:flex; justify-content:space-between; align-items:baseline; font-size:19px; font-weight:800; color:var(--ink); margin-bottom:10px }
.tk-total .tk-cur{ font-size:12px }
.tk-note{ font-size:11px; color:var(--muted); background:var(--brand-tint); border-radius:8px; padding:7px 10px; margin-bottom:10px; display:flex; gap:6px }
.tk-note svg{ flex:0 0 auto; color:var(--brand); width:14px;height:14px; margin-top:1px }

/* checkout payment chips */
.tk-pm{ display:flex; gap:10px; flex-wrap:wrap }
.tk-pm label{ flex:1; min-width:130px; border:1.5px solid var(--line); border-radius:11px; padding:10px 12px; cursor:pointer;
  display:flex; align-items:center; gap:9px; font-size:13px; font-weight:600; transition:.15s }
.tk-pm label:hover{ border-color:var(--brand) }
.tk-pm input{ accent-color:var(--brand) }
.tk-pm label.on{ border-color:var(--brand); background:var(--brand-tint) }
.tk-pm .pi{ margin-left:auto; display:flex; gap:3px }
.tk-svc{ display:flex; gap:10px }
.tk-svc label{ flex:1; border:1.5px solid var(--line); border-radius:11px; padding:10px; text-align:center; cursor:pointer; font-weight:600; font-size:13px }
.tk-svc label.on{ border-color:var(--brand); background:var(--brand-tint); color:var(--brand-d) }

/* card / pay badges (generic, not official logos) */
.tk-cardmark{ display:inline-flex; align-items:center; height:22px; padding:0 7px; border-radius:5px; font-size:11px; font-weight:800;
  letter-spacing:.4px; color:#fff; }
.tk-cardmark.visa{ background:#1a1f71 } .tk-cardmark.mc{ background:#222; gap:0; padding:0 6px; position:relative }
.tk-cardmark.mc .mcirc{ width:13px;height:13px;border-radius:50%; display:inline-block }
.tk-cardmark.mc .r{ background:#eb001b } .tk-cardmark.mc .y{ background:#f79e1b; margin-left:-6px; mix-blend-mode:normal; opacity:.92 }
.tk-cardmark.mm{ background:var(--green) }

/* ---------- footer ---------- */
.tk-foot{ background:var(--ink); color:#c8c4d8; margin-top:10px }
.tk-foot a{ color:#c8c4d8; font-size:13px } .tk-foot a:hover{ color:#fff }
.tk-foot-top{ max-width:var(--tk-max); margin:0 auto; padding:40px 16px 28px; display:grid; gap:28px;
  grid-template-columns:1fr; }
@media(min-width:640px){ .tk-foot-top{ grid-template-columns:1.6fr 1fr 1fr } }
@media(min-width:920px){ .tk-foot-top{ grid-template-columns:1.8fr 1fr 1fr 1.2fr } }
.tk-foot h4{ color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.8px; margin-bottom:14px }
.tk-foot-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px }
.tk-foot .tk-logo{ color:#fff; margin-bottom:12px } .tk-foot .tk-logo b{ color:#fff }
.tk-foot .about{ font-size:13px; line-height:1.7; color:#a9a4bd; max-width:320px }
.tk-foot .contact{ margin-top:14px; display:flex; flex-direction:column; gap:8px; font-size:13px }
.tk-foot .contact div{ display:flex; align-items:center; gap:9px } .tk-foot .contact svg{ color:var(--brand); width:16px;height:16px; flex:0 0 auto }
.tk-social{ display:flex; gap:8px; margin-top:16px }
.tk-social a{ width:36px;height:36px;border-radius:10px; background:rgba(255,255,255,.08); display:grid; place-items:center; color:#fff }
.tk-social a:hover{ background:var(--brand) }
.tk-pay-title{ font-size:12px; color:#a9a4bd; margin-bottom:9px }
.tk-pay{ display:flex; gap:7px; flex-wrap:wrap; align-items:center }
.tk-pay .chip{ background:#fff; border-radius:7px; padding:6px 8px; display:inline-flex; align-items:center; height:34px }
.tk-foot-bottom{ border-top:1px solid rgba(255,255,255,.1) }
.tk-foot-bottom-in{ max-width:var(--tk-max); margin:0 auto; padding:16px; display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  font-size:12px; color:#8f8aa6 }
.tk-foot-bottom-in .sp{ margin-left:auto }
.tk-foot-bottom-in a{ font-size:12px }
.tk-secure{ display:inline-flex; align-items:center; gap:6px } .tk-secure svg{ width:14px;height:14px; color:var(--green) }

/* scroll to top */
.tk-top{ position:fixed; right:18px; bottom:18px; width:46px;height:46px; border-radius:50%; border:0; background:var(--ink); color:#fff;
  cursor:pointer; display:grid; place-items:center; opacity:0; visibility:hidden; transform:translateY(10px); transition:.25s; z-index:150; box-shadow:0 8px 20px rgba(0,0,0,.2) }
.tk-top.on{ opacity:1; visibility:visible; transform:none }

/* ---------- mobile ---------- */
.tk-side-back{ position:fixed; inset:0; background:rgba(20,16,40,.5); z-index:2590; opacity:0; visibility:hidden; transition:.25s }
@media(max-width:991.98px){
  .tk-search.head{ display:none }
  .tk-burger{ display:grid }
  .tk-filters-btn{ display:inline-flex }
  .tk-side{ position:fixed; top:0; left:0; height:100vh; height:100dvh; width:300px; max-width:86vw; background:#fff; z-index:2600; padding:16px;
    transform:translateX(-100%); transition:transform .3s cubic-bezier(.4,0,.2,1); overflow-y:auto; -webkit-overflow-scrolling:touch; box-shadow:16px 0 40px rgba(24,20,50,.2); gap:14px }
  body.tk-side-open .tk-side{ transform:none }
  body.tk-side-open .tk-side-back{ opacity:1; visibility:visible }
  .tk-msearch{ flex:0 0 auto } /* don't stretch vertically in the column drawer */
  .tk-side-close{ display:flex; align-items:center; justify-content:space-between; margin-bottom:4px }
  .tk-slide-cap{ max-width:70% }
}
@media(min-width:992px){ .tk-side-close{ display:none } .tk-msearch{ display:none } }
@media(max-width:559.98px){
  .tk-slide-cap{ max-width:82%; padding:0 20px } .tk-slide-cap p{ display:none }
  .tk-logo small{ display:none }
  .tk-cart .lbl{ display:none } .tk-cart{ padding:10px 12px }
}
