/* ==========================================================================
   Milestone Care — Shop module styles (load after style.css)
   The store uses a lighter, smaller-scale take on the site's brand: soft
   pastel tints, hairline borders, compact buttons and medium-weight type.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600&display=swap');

:root{
  --ink-2: #4A5878;
  --muted: #8491AE;
  --line: #EDF0F7;
  --line-2: #DFE5F1;
  --paper: #FAFBFE;

  --tint-sky: #EDF4FF;   --tint-mint: #ECF8EE;  --tint-peach: #FFF1EA;
  --tint-butter: #FFF7DF; --tint-lav: #F2EEFF;  --tint-rose: #FFEFF3;

  --r-lg: 20px; --r-md: 14px;
  --sh-1: 0 1px 2px rgba(22,53,125,.04), 0 4px 14px rgba(22,53,125,.05);
  --sh-2: 0 2px 6px rgba(22,53,125,.05), 0 18px 40px rgba(22,53,125,.10);
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-sheet: cubic-bezier(.32,.72,0,1);
  --spring: cubic-bezier(.34,1.45,.64,1);
  --ff-bn: 'Hind Siliguri', 'Nunito', sans-serif;
}

.tint-sky{ --tint:#EDF4FF; --tint-ic:#2E6BE6; }
.tint-mint{ --tint:#ECF8EE; --tint-ic:#2C8A38; }
.tint-peach{ --tint:#FFF1EA; --tint-ic:#D9653A; }
.tint-butter{ --tint:#FFF7DF; --tint-ic:#AD7A06; }
.tint-lav{ --tint:#F2EEFF; --tint-ic:#6E4FD6; }
.tint-rose{ --tint:#FFEFF3; --tint-ic:#D4456A; }

html.no-scroll{ overflow:hidden; }
.bn{ font-family: var(--ff-bn); }
.shop-main{ background:#fff; }
.s-pad{ padding:64px 0; }
@media (max-width:768px){ .s-pad{ padding:44px 0; } }
[hidden]{ display:none !important; }

/* ==========================================================================
   Header additions: Shop link, track / wishlist / cart icons
   ========================================================================== */
.nav-actions{ display:flex; align-items:center; gap:2px; flex-shrink:0; }
.nav-icon{
  position:relative; width:40px; height:40px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  color: var(--navy); font-size:1.02rem; transition: background .25s, color .25s;
}
.nav-icon:hover{ background: var(--bg-soft-green); color: var(--green-dark); }
.nav-badge{
  position:absolute; top:1px; right:-1px; min-width:17px; height:17px; padding:0 5px;
  border-radius:999px; background: var(--green); color:#fff; text-align:center;
  font: 800 .6rem/17px var(--ff-body); box-shadow: 0 0 0 2px #fff;
}
.nav-cart.bump, .nav-wish.bump{ animation: cartBump .55s var(--spring); }
.nav-cart.bump .nav-badge{ animation: popIn .45s var(--spring); }
.nav-mobile-only{ display:none; }

@media (max-width:1200px){
  .navbar-inner{ gap:12px; }
  .nav-links{ gap:2px; }
  .nav-links a{ padding:9px 12px; font-size:.94rem; }
  .navbar-inner .nav-cta{ padding:12px 20px; font-size:.86rem; }
}
@media (max-width:1100px) and (min-width:981px){
  .navbar-inner .nav-cta{ display:none; }
}
@media (max-width:980px){
  .nav-actions{ margin-left:auto; }
  .nav-toggle{ order:5; margin-left:8px; }
  .nav-mobile-only{ display:block; }
}
@media (max-width:560px){
  .nav-actions .nav-track, .nav-actions .nav-wish{ display:none; }
}
@media (max-width:480px){
  .navbar-inner{ padding:12px 16px; }
  .logo{ gap:9px; }
  .logo img{ width:46px; height:46px; }
  .logo-text b{ font-size:1.18rem; }
  .logo-text small{ font-size:.54rem; }
}

/* ==========================================================================
   Primitives: buttons, chips, badges, prices
   ========================================================================== */
.sbtn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--ff-head); font-weight:500; font-size:.9rem; line-height:1.2; letter-spacing:.01em;
  padding:11px 20px; border-radius:999px; border:1.5px solid transparent; white-space:nowrap; cursor:pointer;
  transition: transform .35s var(--spring), box-shadow .3s, background .25s, color .25s, border-color .25s;
}
.sbtn:active{ transform: scale(.97); }
.sbtn-green{ background: var(--green); color:#fff; box-shadow: 0 8px 18px -8px rgba(62,174,73,.6); }
.sbtn-green:hover{ background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(62,174,73,.7); }
.sbtn-navy{ background: var(--navy); color:#fff; box-shadow: 0 8px 18px -8px rgba(22,53,125,.55); }
.sbtn-navy:hover{ background: var(--navy-dark); transform: translateY(-2px); }
.sbtn-ghost{ background:#fff; color: var(--navy); border-color: var(--line-2); }
.sbtn-ghost:hover{ border-color: var(--navy); transform: translateY(-2px); }
.sbtn-soft{ background: var(--tint-mint); color: var(--green-dark); }
.sbtn-soft:hover{ background:#DDF2E1; transform: translateY(-2px); }
.sbtn-wa{ background:#25D366; color:#fff; }
.sbtn-wa:hover{ background:#1EBE5B; transform: translateY(-2px); }
.sbtn-sm{ padding:8px 14px; font-size:.8rem; }
.sbtn-lg{ padding:14px 26px; font-size:.98rem; }
.sbtn-block{ width:100%; }
.sbtn-grow{ flex:1; }
.sbtn[disabled]{ opacity:.55; pointer-events:none; }
.sbtn.is-loading{ pointer-events:none; opacity:.85; }
.sbtn.is-loading::after{ content:''; width:15px; height:15px; border-radius:50%; border:2px solid currentColor; border-right-color:transparent; animation: spin .7s linear infinite; }

.ibtn{
  width:36px; height:36px; border-radius:50%; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.94); color: var(--navy); border:1px solid var(--line); font-size:.86rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .35s var(--spring), background .2s, color .2s, border-color .2s, opacity .3s;
}
.ibtn:hover{ transform: scale(1.08); color: var(--green-dark); }
.ibtn.is-on{ color:#E0546E; }
.ibtn.is-on i{ animation: heartPop .5s var(--spring); }
.ibtn-lg{ width:46px; height:46px; font-size:1rem; }

.chip{
  display:inline-flex; align-items:center; gap:5px; white-space:nowrap;
  font-size:.66rem; font-weight:700; letter-spacing:.01em; padding:3px 9px; border-radius:999px;
  background: var(--tint); color: var(--tint-ic);
}
.chip i{ font-size:.9em; }

.badge{
  font-family: var(--ff-body); font-weight:700; font-size:.66rem; letter-spacing:.02em;
  padding:4px 9px; border-radius:999px; background: rgba(255,255,255,.96); color: var(--navy);
  box-shadow: 0 2px 8px rgba(22,53,125,.08);
}
.badge-off{ background:#E0546E; color:#fff; }

.price{ display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; }
.price b{ font-family: var(--ff-body); font-weight:800; font-size:1.02rem; color: var(--navy); }
.price s{ font-size:.78rem; color: var(--muted); }
.price-lg b{ font-size:1.6rem; letter-spacing:-.01em; }
.price-lg s{ font-size:.95rem; }
.save-pill{ font-size:.72rem; font-weight:700; color:#C93F63; background: var(--tint-rose); padding:3px 10px; border-radius:999px; }

.link-arrow{ display:inline-flex; align-items:center; gap:6px; font-family: var(--ff-head); font-weight:500; font-size:.86rem; color: var(--green-dark); }
.link-arrow i{ font-size:.75em; transition: transform .25s var(--ease-out); }
.link-arrow:hover i{ transform: translateX(4px); }

/* ==========================================================================
   Light page hero + section heads
   ========================================================================== */
.shop-hero{
  position:relative; overflow:hidden; text-align:center; padding:54px 0 48px;
  background:
    radial-gradient(560px 240px at 10% 0%, #E6EFFF 0%, transparent 70%),
    radial-gradient(520px 260px at 92% 100%, #E3F5E6 0%, transparent 70%),
    linear-gradient(180deg, #F7F9FF 0%, #FBFCFF 100%);
}
.shop-hero h1{ font-weight:500; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing:-.01em; margin-bottom:8px; }
.shop-hero p{ color: var(--ink-2); font-size:.96rem; max-width:540px; margin:0 auto; }
.shop-hero .container{ position:relative; z-index:1; }
.shop-hero.has-perks{ padding-bottom:74px; }
.crumbs{ display:flex; gap:8px; align-items:center; justify-content:center; flex-wrap:wrap; font-size:.78rem; color: var(--muted); margin-bottom:14px; }
.crumbs a{ transition: color .2s; }
.crumbs a:hover{ color: var(--green-dark); }
.crumbs i{ font-size:.5rem; opacity:.6; }
.crumbs span:last-child{ color: var(--ink-2); }

.deco{ position:absolute; pointer-events:none; animation: drift 10s ease-in-out infinite; }
.deco-1{ width:16px; height:16px; border-radius:50%; background:#FFD66B; top:26%; left:9%; }
.deco-2{ width:0; height:0; border-left:10px solid transparent; border-right:10px solid transparent; border-bottom:17px solid #A9C8FF; top:64%; left:17%; animation-delay:-2.5s; }
.deco-3{ width:15px; height:15px; border-radius:4px; background:#A8E0B0; top:28%; right:12%; animation-delay:-5s; }
.deco-4{ width:22px; height:22px; border-radius:50%; border:3px solid #F7B3C4; top:62%; right:19%; animation-delay:-7s; }

.s-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:26px; }
.s-head.center{ flex-direction:column; align-items:center; text-align:center; }
.s-eyebrow{ display:inline-flex; align-items:center; gap:7px; font-family: var(--ff-head); font-weight:500; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color: var(--green-dark); margin-bottom:6px; }
.s-eyebrow i{ color: var(--gold); }
.s-title{ font-weight:500; font-size: clamp(1.3rem, 2.3vw, 1.7rem); letter-spacing:-.01em; }
.s-sub{ color: var(--ink-2); font-size:.92rem; max-width:540px; margin-top:6px; }

/* Perks strip under the shop hero */
.perk-strip{ display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; margin-top:-26px; position:relative; z-index:2; }
.perk-strip .perk{ box-shadow: var(--sh-1); }
@media (max-width:900px){ .perk-strip{ grid-template-columns: repeat(2, 1fr); } }
.perk{ display:flex; gap:11px; align-items:center; padding:13px 14px; border-radius:16px; border:1px solid var(--line); background:#fff; }
.perk > i{ width:34px; height:34px; border-radius:11px; background: var(--tint); color: var(--tint-ic); display:inline-flex; align-items:center; justify-content:center; font-size:.82rem; flex-shrink:0; }
.perk b{ display:block; font-family: var(--ff-head); font-weight:500; font-size:.84rem; color: var(--navy); line-height:1.3; }
.perk span{ font-size:.72rem; color: var(--muted); line-height:1.35; display:block; }

/* ==========================================================================
   Product card + grid
   ========================================================================== */
.pgrid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap:22px; }
.pgrid.cols-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width:1024px){ .pgrid.cols-4{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width:700px){ .pgrid, .pgrid.cols-4{ grid-template-columns: repeat(2, 1fr); gap:12px; } }

.pcard{
  position:relative; display:flex; flex-direction:column; background:#fff;
  border:1px solid var(--line); border-radius: var(--r-lg); overflow:hidden;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), border-color .3s;
}
.pcard:hover{ transform: translateY(-5px); box-shadow: var(--sh-2); border-color: transparent; }
.pcard-media{ position:relative; aspect-ratio:1; background: var(--tint); overflow:hidden; }
.pcard-img, .pcard-img img{ display:block; width:100%; height:100%; }
.pcard-img img{ object-fit:cover; transition: transform 1s var(--ease-out); }
.pcard:hover .pcard-img img{ transform: scale(1.06); }
.pcard-badges{ position:absolute; top:10px; left:10px; display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.pcard-tools{ position:absolute; top:10px; right:10px; display:flex; flex-direction:column; gap:6px; }
.pcard-tools .ibtn{ opacity:0; transform: translateX(10px); }
.pcard-tools .ibtn.is-on, .pcard:hover .pcard-tools .ibtn, .pcard-tools .ibtn:focus-visible{ opacity:1; transform:none; }
.pcard:hover .pcard-tools .ibtn:nth-child(2){ transition-delay:.06s; }
@media (hover:none){
  .pcard-tools .ibtn{ opacity:1; transform:none; }
  .pcard-tools [data-quick]{ display:none; }
}
.pcard-body{ display:flex; flex-direction:column; gap:7px; flex:1; padding:13px 15px 15px; }
.pcard-meta{ display:flex; align-items:center; gap:7px; min-width:0; font-size:.7rem; font-weight:600; letter-spacing:.02em; color: var(--muted); }
.pcard-meta span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pcard-meta i{ width:3px; height:3px; border-radius:50%; background: currentColor; opacity:.6; flex-shrink:0; }
.pcard-title{ font-weight:500; font-size:.95rem; line-height:1.35; min-height:2.7em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pcard-title a{ transition: color .2s; }
.pcard-title a:hover{ color: var(--green-dark); }
.pcard-skills{ display:flex; gap:5px; flex-wrap:wrap; }
.pcard-price{ margin-top:auto; padding-top:2px; }

/* Card actions: Buy Now (straight to checkout) + add to cart */
.pcard-actions{ display:flex; align-items:center; gap:8px; margin-top:2px; }
.pcard-buy{
  flex:1; min-width:0; height:36px; padding:0 12px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap;
  background: var(--green); color:#fff; font-family: var(--ff-head); font-weight:500; font-size:.84rem; letter-spacing:.01em;
  box-shadow: 0 6px 14px -8px rgba(62,174,73,.75);
  transition: background .25s, transform .35s var(--spring), box-shadow .3s;
}
.pcard-buy i{ font-size:.78em; transition: transform .4s var(--spring); }
.pcard-buy:hover{ background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 10px 18px -8px rgba(62,174,73,.8); }
.pcard-buy:hover i{ transform: scale(1.25) rotate(-12deg); }
.pcard-buy:active{ transform: scale(.97); }
.pcard-buy.is-loading{ pointer-events:none; opacity:.85; }
.pcard-buy.is-loading i{ display:none; }
.pcard-buy.is-loading::before{ content:''; width:13px; height:13px; border-radius:50%; border:2px solid currentColor; border-right-color:transparent; animation: spin .7s linear infinite; }
.pcard-add{
  width:36px; height:36px; border-radius:50%; flex-shrink:0; font-size:.82rem;
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--tint-mint); color: var(--green-dark);
  transition: background .25s, color .25s, transform .4s var(--spring);
}
.pcard-add:hover{ background: var(--navy); color:#fff; transform: scale(1.08); }
.pcard-add.is-added{ background: var(--green); color:#fff; transform:none; }
.pcard-add.is-added i::before{ content:"\f00c"; }
@media (max-width:700px){
  .pcard{ border-radius:16px; }
  .pcard-body{ padding:10px 10px 11px; gap:5px; }
  .pcard-title{ font-size:.85rem; }
  .pcard-skills{ display:none; }
  .pcard-meta{ font-size:.63rem; }
  .pcard .price b{ font-size:.92rem; }
  .pcard .price s{ font-size:.7rem; }
  .pcard-actions{ gap:6px; }
  .pcard-buy{ height:34px; padding:0 8px; gap:5px; font-size:.78rem; }
  .pcard-add{ width:34px; height:34px; font-size:.76rem; }
}

/* Reveal for rendered content: animation (not transition) so it never delays hover effects. */
[data-reveal]{ opacity:0; }
[data-reveal].is-in{ opacity:1; animation: rise .75s var(--ease-out) var(--d, 0ms) backwards; }

/* ==========================================================================
   Toasts
   ========================================================================== */
.toast-stack{
  position:fixed; left:50%; bottom:22px; transform: translateX(-50%); z-index:2300;
  display:flex; flex-direction:column; align-items:center; gap:8px; pointer-events:none;
  width:max-content; max-width: calc(100vw - 32px);
}
.toast{
  pointer-events:auto; display:flex; align-items:center; gap:10px; max-width:100%;
  background: var(--navy-dark); color:#fff; font-size:.84rem; line-height:1.35;
  padding:9px 10px 9px 16px; border-radius:999px; box-shadow: 0 14px 34px -10px rgba(12,31,82,.5);
  opacity:0; transform: translateY(14px) scale(.96);
  transition: opacity .35s var(--ease-out), transform .5s var(--spring);
}
.toast.show{ opacity:1; transform:none; }
.toast > i{ color:#7FE08A; }
.toast-heart > i{ color:#FF8FA6; }
.toast-info > i{ color:#9BC3FF; }
.toast-warn > i{ color:#FFC94D; }
.toast span a{ text-decoration:underline; }
.toast span{ padding-right:6px; }
.toast-action{ flex-shrink:0; background: rgba(255,255,255,.14); padding:6px 13px; border-radius:999px; font-weight:700; font-size:.76rem; transition: background .2s; }
.toast-action:hover{ background: var(--green); }
body.has-sticky .toast-stack{ bottom:90px; }

/* ==========================================================================
   Overlays, cart drawer, cart lines, quantity
   ========================================================================== */
.sheet-overlay{
  position:fixed; inset:0; z-index:2100; opacity:0; pointer-events:none;
  background: rgba(12,31,82,.3); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  transition: opacity .4s var(--ease-out);
}
body.cart-open .cd-overlay, body.filters-open .f-overlay, .qv-wrap.open .sheet-overlay, .side-panel-wrap.open .sheet-overlay{ opacity:1; pointer-events:auto; }

.cart-drawer{
  position:fixed; top:0; right:0; z-index:2150; width: min(410px, 100%); height:100%; height:100dvh;
  display:flex; flex-direction:column; background:#fff; outline:none;
  box-shadow: -24px 0 60px -24px rgba(12,31,82,.35);
  transform: translateX(104%); transition: transform .55s var(--ease-sheet); visibility:hidden;
}
body.cart-open .cart-drawer{ transform:none; visibility:visible; }
.cart-drawer:not([aria-hidden="false"]){ transition: transform .45s var(--ease-sheet), visibility 0s .45s; }
.cd-head{ display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--line); }
.cd-head h3{ font-weight:500; font-size:1.1rem; }
.cd-count{ color: var(--muted); font-size:.9rem; font-weight:400; }
.cd-free{ padding:0 20px; }
.cd-free .freebar{ margin-top:14px; }
.cd-body{ flex:1; overflow-y:auto; overscroll-behavior:contain; padding:4px 20px; }
.cd-foot{ padding:16px 20px 20px; border-top:1px solid var(--line); background: var(--paper); }
.cd-sub{ display:flex; justify-content:space-between; align-items:baseline; font-size:.9rem; color: var(--ink-2); margin-bottom:3px; }
.cd-sub b{ font-size:1.18rem; color: var(--navy); font-weight:800; }
.cd-note{ font-size:.73rem; color: var(--muted); margin-bottom:14px; }
.cd-note i{ margin-right:4px; }
.cd-actions{ display:grid; grid-template-columns: 1fr 1.45fr; gap:10px; }
.cart-drawer.entering .cline{ animation: slideIn .5s var(--ease-out) backwards; }
.cart-drawer.entering .cline:nth-child(2){ animation-delay:.05s; }
.cart-drawer.entering .cline:nth-child(3){ animation-delay:.1s; }
.cart-drawer.entering .cline:nth-child(4){ animation-delay:.15s; }
.cart-drawer.entering .cline:nth-child(n+5){ animation-delay:.2s; }

.cline{
  display:grid; grid-template-columns: 72px 1fr auto; gap:14px; align-items:start;
  padding:14px 0; border-bottom:1px dashed var(--line-2); overflow:hidden;
  transition: opacity .28s, transform .28s var(--ease-out), height .28s var(--ease-out), padding .28s;
}
.cline:last-child{ border-bottom:none; }
.cline.is-leaving{ opacity:0; transform: translateX(30px); height:0 !important; padding:0; }
.cline-img{ display:block; width:72px; height:72px; border-radius:14px; overflow:hidden; background: var(--tint); }
.cline-img img{ width:100%; height:100%; object-fit:cover; transition: transform .5s var(--ease-out); }
.cline-img:hover img{ transform: scale(1.08); }
.cline-info{ min-width:0; }
.cline-name{ display:block; font-family: var(--ff-head); font-weight:500; font-size:.9rem; line-height:1.35; color: var(--navy); }
.cline-name:hover{ color: var(--green-dark); }
.cline-opt{ display:block; font-size:.73rem; color: var(--muted); margin-top:2px; }
.cline-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:9px; }
.cline-total{ font-weight:800; font-size:.92rem; color: var(--navy); }
.cline-remove{ width:30px; height:30px; border-radius:50%; color: var(--muted); font-size:.8rem; transition: background .2s, color .2s; }
.cline-remove:hover{ background: var(--tint-rose); color:#D4456A; }

.qty{ display:inline-flex; align-items:center; height:46px; padding:0 4px; border:1.5px solid var(--line-2); border-radius:999px; background:#fff; flex-shrink:0; }
.qty-btn{ width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color: var(--navy); font-size:.7rem; transition: background .2s, transform .2s; }
.qty-btn:hover{ background: var(--bg-soft); }
.qty-btn:active{ transform: scale(.9); }
.qty-btn:disabled{ opacity:.3; cursor:not-allowed; }
.qty-input{ width:36px; border:none; background:none; text-align:center; font: 700 .95rem var(--ff-body); color: var(--navy); -moz-appearance:textfield; appearance:textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.qty-input:focus{ outline:none; }
.qty-sm{ height:32px; padding:0 2px; }
.qty-sm .qty-btn{ width:26px; height:26px; font-size:.58rem; }
.qty-val{ min-width:24px; text-align:center; font-weight:800; font-size:.84rem; color: var(--navy); }

.freebar{ padding:10px 12px; border-radius:12px; background: var(--tint-mint); }
.freebar p{ font-size:.78rem; color: var(--ink-2); margin-bottom:7px; }
.freebar b{ color: var(--green-dark); }
.freebar.done p{ color: var(--green-dark); font-weight:600; }
.freebar-track{ height:5px; border-radius:9px; background: rgba(62,174,73,.16); overflow:hidden; }
.freebar-track span{ display:block; height:100%; border-radius:inherit; background: linear-gradient(90deg, #86D491, var(--green)); transition: width .7s var(--ease-out); }

/* Quick view */
.qv-wrap .sheet-overlay{ z-index:2200; }
.qv{
  position:fixed; left:50%; top:50%; z-index:2210; width: min(860px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow:auto;
  display:grid; grid-template-columns: 1fr 1fr; background:#fff; border-radius:24px; outline:none;
  box-shadow: 0 30px 80px -20px rgba(12,31,82,.45);
  opacity:0; transform: translate(-50%, -46%) scale(.97);
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.qv-wrap.open .qv{ opacity:1; transform: translate(-50%, -50%); }
.qv-media{ position:relative; min-height:440px; background: var(--tint); }
.qv-media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.qv-info{ display:flex; flex-direction:column; gap:11px; padding:28px 26px 26px; }
.qv-info h3{ font-weight:500; font-size:1.35rem; line-height:1.25; }
.qv-short{ font-size:.9rem; color: var(--ink-2); }
.qv-close{ position:absolute; top:12px; right:12px; z-index:2; }
@media (max-width:720px){
  .qv{ top:auto; bottom:0; left:0; width:100%; max-height:90dvh; grid-template-columns:1fr; border-radius:24px 24px 0 0; transform: translateY(100%); }
  .qv-wrap.open .qv{ transform:none; }
  .qv-media{ min-height:0; aspect-ratio: 16/11; }
  .qv-info{ padding:20px 18px 26px; }
}

.buy-row{ display:flex; align-items:center; gap:10px; }
.buy-row .sbtn{ height:46px; }

.opt-label{ display:block; font-size:.74rem; font-weight:700; letter-spacing:.02em; color: var(--ink-2); margin-bottom:7px; }
.opt-pills{ display:flex; gap:8px; flex-wrap:wrap; }
.opt-pill{ position:relative; }
.opt-pill input{ position:absolute; opacity:0; pointer-events:none; }
.opt-pill span{ display:inline-block; padding:7px 15px; border-radius:999px; border:1.5px solid var(--line-2); font-size:.8rem; font-weight:600; color: var(--ink-2); cursor:pointer; transition: all .25s var(--ease-out); }
.opt-pill span:hover{ border-color: var(--navy); }
.opt-pill input:checked + span{ background: var(--navy); border-color: var(--navy); color:#fff; }
.opt-pill input:focus-visible + span{ box-shadow: 0 0 0 3px rgba(46,107,230,.25); }

/* Empty states */
.empty{ text-align:center; padding:52px 20px; }
.empty-ic{ width:76px; height:76px; margin:0 auto 16px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.6rem; background: var(--tint); color: var(--tint-ic); animation: float 4.5s ease-in-out infinite; }
.empty h4{ font-weight:500; font-size:1.12rem; margin-bottom:6px; }
.empty p{ color: var(--muted); font-size:.88rem; margin-bottom:18px; }
.empty-sm{ padding:44px 8px; }

/* ==========================================================================
   Shop listing
   ========================================================================== */
.cat-pills{ display:flex; gap:10px; overflow-x:auto; padding:4px 2px 14px; margin-bottom:10px; scrollbar-width:none; scroll-snap-type:x proximity; }
.cat-pills::-webkit-scrollbar{ display:none; }
.cat-pill{
  display:inline-flex; align-items:center; gap:9px; padding:6px 15px 6px 6px; border-radius:999px; white-space:nowrap; scroll-snap-align:start;
  background:#fff; border:1px solid var(--line); font-family: var(--ff-head); font-weight:500; font-size:.84rem; color: var(--navy);
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--spring), box-shadow .25s;
}
.cat-pill .cp-ic{ width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:.72rem; background: var(--tint); color: var(--tint-ic); transition: background .25s, color .25s; }
.cat-pill small{ font-family: var(--ff-body); font-size:.7rem; font-weight:700; color: var(--muted); }
.cat-pill:hover{ transform: translateY(-2px); box-shadow: var(--sh-1); }
.cat-pill.active{ background: var(--navy); border-color: var(--navy); color:#fff; }
.cat-pill.active small{ color: rgba(255,255,255,.7); }
.cat-pill.active .cp-ic{ background: rgba(255,255,255,.15); color:#fff; }

.shop-layout{ display:grid; grid-template-columns: 250px 1fr; gap:30px; align-items:start; }
.filters{ position:sticky; top:100px; background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding:4px 18px 16px; }
.f-head, .f-apply{ display:none; }
.fgroup{ padding:16px 0; border-bottom:1px solid var(--line); }
.fgroup:last-of-type{ border-bottom:none; }
.fgroup h4{ font-family: var(--ff-body); font-weight:800; font-size:.68rem; letter-spacing:.13em; text-transform:uppercase; color: var(--muted); margin-bottom:9px; }
.fcheck{ position:relative; display:flex; align-items:center; gap:10px; padding:5px 0; font-size:.86rem; color: var(--ink-2); cursor:pointer; transition: color .2s; }
.fcheck:hover{ color: var(--navy); }
.fcheck input{ position:absolute; opacity:0; pointer-events:none; }
.fcheck .box{ width:18px; height:18px; border-radius:6px; border:1.5px solid var(--line-2); background:#fff; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; transition: background .2s, border-color .2s; }
.fcheck .box::after{ content:''; width:8px; height:4px; margin-top:-2px; border-left:2px solid #fff; border-bottom:2px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .3s var(--spring); }
.fcheck input:checked + .box{ background: var(--green); border-color: var(--green); }
.fcheck input:checked + .box::after{ transform: rotate(-45deg) scale(1); }
.fcheck input[type="radio"] + .box{ border-radius:50%; }
.fcheck input[type="radio"] + .box::after{ width:8px; height:8px; margin:0; border:none; border-radius:50%; background:#fff; transform: scale(0); }
.fcheck input[type="radio"]:checked + .box::after{ transform: scale(1); }
.fcheck input:focus-visible + .box{ box-shadow: 0 0 0 3px rgba(62,174,73,.25); }
.fcheck .f-ic{ width:22px; height:22px; border-radius:7px; display:inline-flex; align-items:center; justify-content:center; font-size:.6rem; background: var(--tint); color: var(--tint-ic); flex-shrink:0; }
.fcheck small{ margin-left:auto; color: var(--muted); font-size:.72rem; font-weight:700; }

.f-search{ position:relative; }
.f-search input{ width:100%; height:40px; padding:0 14px 0 36px; border-radius:999px; border:1.5px solid var(--line-2); background: var(--paper); font: 500 .85rem var(--ff-body); color: var(--navy); transition: border-color .2s, box-shadow .2s, background .2s; }
.f-search > i{ position:absolute; left:14px; top:50%; transform: translateY(-50%); font-size:.78rem; color: var(--muted); }
.f-search input:focus{ outline:none; border-color: var(--green); background:#fff; box-shadow: 0 0 0 4px rgba(62,174,73,.12); }

.range{ position:relative; height:26px; margin:6px 0 8px; }
.range-track, .range-fill{ position:absolute; top:50%; height:4px; border-radius:9px; transform: translateY(-50%); }
.range-track{ left:0; right:0; background: var(--line-2); }
.range-fill{ background: var(--green); }
.range input{ position:absolute; inset:0; width:100%; margin:0; background:none; pointer-events:none; -webkit-appearance:none; appearance:none; }
.range input::-webkit-slider-thumb{ -webkit-appearance:none; pointer-events:auto; width:18px; height:18px; border-radius:50%; background:#fff; border:2px solid var(--green); box-shadow: 0 2px 6px rgba(22,53,125,.18); cursor:grab; transition: transform .2s; }
.range input::-webkit-slider-thumb:active{ transform: scale(1.18); cursor:grabbing; }
.range input::-moz-range-thumb{ pointer-events:auto; width:15px; height:15px; border-radius:50%; background:#fff; border:2px solid var(--green); cursor:grab; }
.range input:focus-visible::-webkit-slider-thumb{ box-shadow: 0 0 0 4px rgba(62,174,73,.25); }
.range-vals{ display:flex; justify-content:space-between; font-size:.8rem; font-weight:700; color: var(--navy); }

.shop-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.result-count{ font-size:.86rem; color: var(--ink-2); }
.result-count b{ color: var(--navy); }
.tb-right{ display:flex; align-items:center; gap:10px; }
.select{ position:relative; display:inline-block; }
.select select{ height:40px; padding:0 36px 0 16px; border-radius:999px; border:1.5px solid var(--line-2); background:#fff; font: 600 .82rem var(--ff-body); color: var(--navy); cursor:pointer; -webkit-appearance:none; appearance:none; }
.select::after{ content:'\f078'; font: 900 .58rem 'Font Awesome 6 Free'; position:absolute; right:15px; top:50%; transform: translateY(-50%); color: var(--muted); pointer-events:none; }
.select select:focus{ outline:none; border-color: var(--green); }
.filter-btn{ display:none; }
.active-filters{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:16px; }
.active-filters:empty{ display:none; }
.af-chip{ display:inline-flex; align-items:center; gap:6px; padding:5px 6px 5px 12px; border-radius:999px; background: var(--tint-sky); color: var(--navy); font-size:.76rem; font-weight:600; animation: popIn .35s var(--spring); }
.af-chip button{ width:18px; height:18px; border-radius:50%; background: rgba(255,255,255,.8); color: var(--navy); font-size:.58rem; }
.af-chip button:hover{ background:#fff; color:#D4456A; }
.af-clear{ font-size:.76rem; font-weight:700; color: var(--muted); text-decoration:underline; }
.grid-fade{ transition: opacity .18s; }
.grid-fade.is-updating{ opacity:.25; }

.help-banner{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:40px; padding:22px 24px; border-radius:22px; background: linear-gradient(120deg, var(--tint-lav), var(--tint-sky)); }
.help-banner > i{ width:48px; height:48px; border-radius:16px; background:#fff; color:#6E4FD6; display:flex; align-items:center; justify-content:center; font-size:1.2rem; box-shadow: var(--sh-1); flex-shrink:0; }
.help-banner div{ flex:1; min-width:220px; }
.help-banner b{ display:block; font-family: var(--ff-head); font-weight:500; color: var(--navy); font-size:1rem; }
.help-banner span{ font-size:.85rem; color: var(--ink-2); }

@media (max-width:980px){
  .shop-layout{ grid-template-columns:1fr; }
  .filter-btn{ display:inline-flex; }
  .filters{
    position:fixed; top:auto; left:0; right:0; bottom:0; z-index:2150; max-height:86dvh; overflow-y:auto; overscroll-behavior:contain;
    border-radius:24px 24px 0 0; padding:0 20px; box-shadow: 0 -20px 60px -20px rgba(12,31,82,.35);
    transform: translateY(104%); transition: transform .55s var(--ease-sheet); visibility:hidden;
  }
  body.filters-open .filters{ transform:none; visibility:visible; }
  .f-head{ position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; padding:20px 0 12px; background:#fff; border-bottom:1px solid var(--line); }
  .f-head::before{ content:''; position:absolute; top:8px; left:50%; width:40px; height:4px; border-radius:9px; background: var(--line-2); transform: translateX(-50%); }
  .f-head h3{ font-weight:500; font-size:1.05rem; }
  .f-apply{ display:flex; gap:10px; position:sticky; bottom:0; padding:12px 0 calc(14px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid var(--line); }
}

/* ==========================================================================
   Product page
   ========================================================================== */
.pd{ padding:24px 0 64px; }
.pd .crumbs{ justify-content:flex-start; margin-bottom:20px; }
.pd-grid{ display:grid; grid-template-columns: 1.05fr 1fr; gap:48px; align-items:start; }
.pd-gallery{ position:sticky; top:96px; }
.pd-stage{ position:relative; aspect-ratio:1; border-radius:24px; overflow:hidden; background: var(--tint); cursor: zoom-in; }
.pd-stage img{ width:100%; height:100%; object-fit:contain; transform-origin: var(--zx, 50%) var(--zy, 50%); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.pd-stage.zoom img{ transform: scale(1.9); }
.pd-stage img.swap{ opacity:0; transform: scale(1.03); }
.pd-stage .pcard-badges{ top:16px; left:16px; }
.pd-hint{ position:absolute; right:14px; bottom:14px; padding:5px 11px; border-radius:99px; background: rgba(255,255,255,.92); font-size:.7rem; font-weight:600; color: var(--ink-2); pointer-events:none; transition: opacity .3s; }
.pd-stage.zoom .pd-hint{ opacity:0; }
@media (hover:none){ .pd-hint{ display:none; } .pd-stage{ cursor:default; } }
.pd-thumbs{ display:flex; gap:10px; margin-top:12px; overflow-x:auto; padding:2px 2px 6px; scrollbar-width:thin; }
.pd-thumb{ width:76px; height:76px; flex-shrink:0; border-radius:14px; overflow:hidden; background: var(--tint); border:2px solid transparent; opacity:.65; transition: opacity .25s, border-color .25s, transform .3s var(--spring); }
.pd-thumb img{ width:100%; height:100%; object-fit:cover; }
.pd-thumb:hover{ opacity:1; transform: translateY(-2px); }
.pd-thumb.active{ opacity:1; border-color: var(--green); }

.pd-info{ display:flex; flex-direction:column; gap:16px; }
.pd-tags{ display:flex; gap:6px; flex-wrap:wrap; }
.pd-tags .chip{ font-size:.72rem; padding:4px 11px; }
.pd-title{ font-weight:500; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height:1.22; letter-spacing:-.01em; }
.pd-bn{ margin-top:-10px; color: var(--muted); font-size:.95rem; }
.pd-price-row{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.stock{ display:inline-flex; align-items:center; gap:8px; font-size:.78rem; font-weight:700; color: var(--green-dark); }
.stock::before{ content:''; width:7px; height:7px; border-radius:50%; background: currentColor; animation: ping 2.2s infinite; }
.stock.low{ color:#D4456A; }
.stock.low::before{ animation-name: pingRose; }
.pd-short{ color: var(--ink-2); font-size:.95rem; }
.pd-skills{ display:flex; gap:7px; flex-wrap:wrap; }
.pd-skills .chip{ font-size:.74rem; padding:5px 11px; }
.pd-buy{ display:flex; flex-direction:column; gap:12px; padding:18px; border-radius: var(--r-lg); background: var(--paper); border:1px solid var(--line); }
.wa-link{ display:inline-flex; align-items:center; justify-content:center; gap:7px; font-size:.8rem; font-weight:600; color: var(--ink-2); transition: color .2s; }
.wa-link i{ color:#25D366; font-size:1rem; }
.wa-link:hover{ color: var(--navy); }
.pd-perks{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.safety{ display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius:14px; background: var(--tint-butter); color:#855E00; font-size:.8rem; line-height:1.5; }
.safety i{ margin-top:3px; }
@media (max-width:900px){ .pd-grid{ grid-template-columns:1fr; gap:26px; } .pd-gallery{ position:static; } }
@media (max-width:480px){ .pd-perks{ grid-template-columns:1fr; } .pd-buy{ padding:14px; } }

.tabs{ margin-top:60px; }
.tab-list{ position:relative; display:flex; gap:4px; border-bottom:1px solid var(--line); overflow-x:auto; scrollbar-width:none; }
.tab-list::-webkit-scrollbar{ display:none; }
.tab-btn{ padding:12px 16px; font-family: var(--ff-head); font-weight:500; font-size:.9rem; color: var(--muted); white-space:nowrap; transition: color .2s; }
.tab-btn:hover, .tab-btn[aria-selected="true"]{ color: var(--navy); }
.tab-ink{ position:absolute; bottom:-1px; left:0; height:2px; border-radius:2px; background: var(--green); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.tab-panel{ max-width:860px; padding-top:26px; animation: rise .5s var(--ease-out); }
.tab-panel p{ color: var(--ink-2); font-size:.94rem; margin-bottom:12px; }
.tab-panel h4{ font-weight:500; font-size:1rem; margin:18px 0 10px; }
.benefits{ display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; }
.benefit{ display:flex; gap:12px; padding:14px; border-radius:16px; border:1px solid var(--line); }
.benefit > i{ width:36px; height:36px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; font-size:.85rem; background: var(--tint); color: var(--tint-ic); flex-shrink:0; }
.benefit h5{ font-family: var(--ff-head); font-weight:500; font-size:.92rem; color: var(--navy); margin-bottom:2px; }
.benefit p{ font-size:.8rem; margin:0; line-height:1.5; }
.therapy-links{ display:flex; gap:8px; flex-wrap:wrap; }
.therapy-link{ display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px; border:1px solid var(--line-2); font-size:.8rem; font-weight:600; color: var(--navy); transition: all .25s; }
.therapy-link i{ font-size:.7em; transition: transform .25s; }
.therapy-link:hover{ border-color: var(--green); color: var(--green-dark); }
.therapy-link:hover i{ transform: translateX(3px); }
.play-list{ counter-reset: play; display:flex; flex-direction:column; gap:12px; }
.play-list li{ counter-increment: play; display:flex; gap:12px; align-items:flex-start; font-size:.92rem; color: var(--ink-2); }
.play-list li::before{ content: counter(play); width:26px; height:26px; border-radius:50%; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:.76rem; background: var(--tint-butter); color:#AD7A06; }
.spec-table{ width:100%; border-collapse:collapse; font-size:.88rem; }
.spec-table th, .spec-table td{ text-align:left; padding:11px 0; border-bottom:1px solid var(--line); }
.spec-table th{ width:40%; font-weight:600; color: var(--muted); }
.spec-table td{ font-weight:600; color: var(--navy); }
.tick-list{ display:flex; flex-direction:column; gap:8px; }
.tick-list li{ display:flex; gap:10px; font-size:.9rem; color: var(--ink-2); }
.tick-list li i{ color: var(--green); font-size:.72rem; margin-top:6px; }
@media (max-width:600px){ .benefits{ grid-template-columns:1fr; } }

.sticky-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:950; display:none; align-items:center; gap:10px;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top:1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(12,31,82,.3);
  transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.sticky-bar.show{ transform:none; }
.sticky-bar .sb-info{ flex:1; min-width:0; }
.sticky-bar .sb-info small{ display:block; font-size:.7rem; color: var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sticky-bar .sb-info b{ display:block; font-size:1.08rem; font-weight:800; color: var(--navy); }
body.has-sticky .float-btns{ bottom:92px; }
@media (max-width:900px){
  .sticky-bar{ display:flex; }
  body.has-sticky, body.is-checkout{ padding-bottom:76px; }
  body.is-checkout .float-btns{ display:none; }
}

/* ==========================================================================
   Cart page
   ========================================================================== */
.cart-layout{ display:grid; grid-template-columns: 1fr 370px; gap:30px; align-items:start; }
.panel{ background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding:20px 22px; }
.panel-title{ display:flex; align-items:center; justify-content:space-between; gap:10px; font-weight:500; font-size:1.05rem; margin-bottom:6px; }
.panel-title small{ font-family: var(--ff-body); font-size:.8rem; color: var(--muted); font-weight:600; }
.cart-page .cline{ grid-template-columns: 96px 1fr auto; }
.cart-page .cline-img{ width:96px; height:96px; }
.summary{ position:sticky; top:100px; }
.sum-row{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:7px 0; font-size:.88rem; color: var(--ink-2); }
.sum-row b{ color: var(--navy); font-weight:700; }
.sum-row.discount b, .sum-row .free{ color: var(--green-dark); }
.sum-total{ margin-top:8px; padding-top:14px; border-top:1px dashed var(--line-2); font-size:.95rem; font-weight:700; color: var(--navy); }
.sum-total b{ font-size:1.4rem; font-weight:800; letter-spacing:-.01em; }
.coupon{ display:flex; gap:8px; margin:10px 0 4px; }
.coupon input{ flex:1; min-width:0; height:42px; padding:0 12px; border-radius:12px; border:1.5px dashed var(--line-2); background: var(--paper); font: 700 .84rem var(--ff-body); color: var(--navy); letter-spacing:.06em; text-transform:uppercase; transition: border-color .2s, background .2s; }
.coupon input::placeholder{ text-transform:none; letter-spacing:0; font-weight:500; color:#A9B3C9; }
.coupon input:focus{ outline:none; border-style:solid; border-color: var(--green); background:#fff; }
.coupon-msg{ font-size:.75rem; min-height:1.1em; }
.coupon-msg.ok{ color: var(--green-dark); }
.coupon-msg.err{ color:#D4456A; }
.trust-row{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px 14px; margin-top:14px; font-size:.72rem; color: var(--muted); }
.trust-row span{ display:inline-flex; align-items:center; gap:5px; }
.trust-row i{ color: var(--green); }
@media (max-width:900px){ .cart-layout{ grid-template-columns:1fr; } .summary{ position:static; } }
@media (max-width:520px){ .cart-page .cline{ grid-template-columns: 72px 1fr auto; } .cart-page .cline-img{ width:72px; height:72px; } .panel{ padding:16px; } }

/* ==========================================================================
   One-page checkout
   ========================================================================== */
.co{ padding:28px 0 72px; background: linear-gradient(180deg, #F6F8FF 0, #fff 360px); }
.co-top{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:24px; }
.co-top .crumbs{ justify-content:flex-start; margin-bottom:8px; }
.co-top h1{ font-weight:500; font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height:1.2; }
.co-top h1 .bn{ font-size:.92rem; font-weight:400; color: var(--muted); }
.co-lead{ margin-top:4px; font-size:.86rem; color: var(--ink-2); }
.co-progress{ display:flex; align-items:center; list-style:none; font-size:.74rem; font-weight:700; color: var(--muted); }
.co-progress li{ display:flex; align-items:center; gap:7px; }
.co-progress li + li::before{ content:''; width:28px; height:2px; margin:0 10px; border-radius:2px; background: var(--line-2); }
.co-progress li.done + li::before{ background: var(--green); }
.co-progress i{ width:22px; height:22px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:.62rem; font-style:normal; background: var(--line); color: var(--muted); }
.co-progress li.done{ color: var(--green-dark); }
.co-progress li.done i, .co-progress li.on i{ background: var(--green); color:#fff; }
.co-progress li.on{ color: var(--navy); }
.co-progress li.on i{ box-shadow: 0 0 0 4px rgba(62,174,73,.18); }

/* Desktop: form on the left, sticky order summary on the right */
.co-layout{ display:grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap:28px; align-items:start; }
.co-main{ display:flex; flex-direction:column; gap:18px; min-width:0; }
.co-card{ background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding:22px 24px 24px; box-shadow: var(--sh-1); }
.co-card-head{ display:flex; align-items:center; gap:12px; margin-bottom:18px; padding-bottom:14px; border-bottom:1px dashed var(--line-2); }
.co-card-head h2{ font-weight:500; font-size:1.04rem; line-height:1.25; }
.co-card-head p{ font-size:.8rem; line-height:1.3; color: var(--muted); }
.co-num{ position:relative; width:30px; height:30px; border-radius:50%; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:.8rem; background: var(--tint-mint); color: var(--green-dark); transition: background .35s, color .35s; }
.co-card.done .co-num{ background: var(--green); color: transparent; }
.co-card.done .co-num::after{ content:'\f00c'; font: 900 .72rem 'Font Awesome 6 Free'; position:absolute; color:#fff; animation: popIn .4s var(--spring); }
.co-subhead{ display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; margin:22px 0 10px; font-size:.8rem; font-weight:700; color: var(--navy); }
.co-subhead .bn{ font-weight:400; color: var(--muted); }

/* "+ Add …" toggles for optional fields */
.co-more{ display:inline-flex; align-items:center; gap:8px; padding:2px 0; font-size:.8rem; font-weight:700; color: var(--green-dark); text-align:left; transition: color .2s; }
.co-more > i{ width:20px; height:20px; border-radius:50%; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; font-size:.58rem; background: var(--tint-mint); transition: transform .4s var(--spring), background .2s; }
.co-more span{ font-weight:600; color: var(--muted); }
.co-more:hover{ color: var(--navy); }
.co-more[aria-expanded="true"] > i{ transform: rotate(45deg); background: var(--tint-rose); color:#D4456A; }
.co-reveal{ animation: rise .4s var(--ease-out); }
.co-extra{ margin-top:4px; }
.co-note-wrap{ margin-top:18px; padding-top:16px; border-top:1px dashed var(--line-2); }
.co-note-wrap .f{ margin-top:10px; }

.f-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:14px 14px; }
.f-full{ grid-column: 1 / -1; }
.f label{ display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; margin-bottom:6px; font-size:.8rem; font-weight:700; color: var(--navy); }
.f label .bn{ font-weight:400; font-size:.78rem; color: var(--muted); }
.f label .req{ color:#E0546E; }
.f label .opt-tag{ font-weight:600; font-size:.7rem; color: var(--muted); }
.f-ctl{ position:relative; }
.f input, .f select, .f textarea{
  width:100%; height:46px; padding:0 38px 0 14px; border-radius:12px; border:1.5px solid var(--line-2); background:#fff;
  font: 500 .92rem/1.3 'Nunito', 'Hind Siliguri', sans-serif; color: var(--navy);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.f textarea{ height:auto; min-height:80px; padding:12px 14px; resize:vertical; }
.f select{ cursor:pointer; -webkit-appearance:none; appearance:none; }
.f-select::after{ content:'\f078'; font: 900 .6rem 'Font Awesome 6 Free'; position:absolute; right:15px; top:50%; transform: translateY(-50%); color: var(--muted); pointer-events:none; }
.f input::placeholder, .f textarea::placeholder{ color:#A9B3C9; font-weight:400; }
.f input:focus, .f select:focus, .f textarea:focus{ outline:none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(62,174,73,.12); }
.f-ok{ position:absolute; right:13px; top:50%; font-size:.85rem; color: var(--green); transform: translateY(-50%) scale(0); transition: transform .35s var(--spring); pointer-events:none; }
.f.valid .f-ok{ transform: translateY(-50%) scale(1); }
.f-select .f-ok{ right:32px; }
.f.invalid input, .f.invalid select, .f.invalid textarea{ border-color:#E0546E; background:#FFF8FA; }
.f-err{ display:none; align-items:center; gap:5px; margin-top:5px; font-size:.74rem; color:#D4456A; }
.f.invalid .f-err{ display:flex; animation: rise .3s var(--ease-out); }
.f-hint{ margin-top:5px; font-size:.72rem; color: var(--muted); }
.f-prefix input{ padding-left:60px; }
.f-prefix .pfx{ position:absolute; left:1.5px; top:1.5px; bottom:1.5px; width:48px; display:flex; align-items:center; justify-content:center; border-right:1.5px solid var(--line-2); border-radius:11px 0 0 11px; background: var(--paper); font-size:.82rem; font-weight:700; color: var(--ink-2); }
.shake{ animation: shake .42s; }
@media (max-width:600px){ .f-grid{ grid-template-columns:1fr; } .co-card{ padding:18px 16px; } }

.rcards{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.rcards.stack{ grid-template-columns:1fr; gap:10px; }
@media (max-width:600px){ .rcards{ grid-template-columns:1fr; } }
.rcard{
  position:relative; display:flex; align-items:flex-start; gap:12px; padding:14px; border-radius:14px; cursor:pointer;
  border:1.5px solid var(--line-2); background:#fff;
  transition: border-color .25s, background .25s, box-shadow .25s, transform .3s var(--spring);
}
.rcard:hover{ border-color:#C6D0E6; }
.rcard:active{ transform: scale(.99); }
.rcard input{ position:absolute; opacity:0; pointer-events:none; }
.rdot{ width:18px; height:18px; margin-top:2px; border-radius:50%; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; border:1.5px solid var(--line-2); background:#fff; transition: border-color .2s; }
.rdot::after{ content:''; width:8px; height:8px; border-radius:50%; background: var(--green); transform: scale(0); transition: transform .35s var(--spring); }
.rcard:has(input:checked){ border-color: var(--green); background:#F6FCF7; box-shadow: 0 0 0 3px rgba(62,174,73,.1); }
.rcard:has(input:checked) .rdot{ border-color: var(--green); }
.rcard:has(input:checked) .rdot::after{ transform: scale(1); }
.rcard:has(input:disabled){ opacity:.45; cursor:not-allowed; }
.rcard:has(input:focus-visible){ box-shadow: 0 0 0 3px rgba(46,107,230,.25); }
.f.invalid .rcard{ border-color:#F2B5C3; }
.rc-body{ flex:1; min-width:0; }
.rc-title{ display:flex; justify-content:space-between; gap:8px; font-family: var(--ff-head); font-weight:500; font-size:.9rem; line-height:1.3; color: var(--navy); }
.rc-title b{ font-family: var(--ff-body); font-weight:800; }
.rc-sub{ display:block; margin-top:3px; font-size:.74rem; line-height:1.4; color: var(--muted); }
.pay-logo{ width:34px; height:34px; border-radius:10px; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:.78rem; color:#fff; }
.pay-cod{ background: var(--tint-mint); color: var(--green-dark); }
.pay-bkash{ background:#E2136E; }
.pay-nagad{ background:#EC6B25; }
.rcard.pay{ align-items:center; padding:12px 14px; }
.rcard.pay .rdot{ margin-top:0; }

.pay-panel{ display:none; margin-top:14px; padding:16px; border-radius:14px; border:1px dashed var(--line-2); background: var(--paper); }
.pay-panel.show{ display:block; animation: rise .45s var(--ease-out); }
.pay-steps{ counter-reset: ps; display:flex; flex-direction:column; gap:9px; margin-bottom:14px; font-size:.84rem; color: var(--ink-2); }
.pay-steps li{ counter-increment: ps; display:grid; grid-template-columns: 20px 1fr; gap:10px; align-items:start; line-height:1.9; }
.pay-steps li::before{ content: counter(ps); width:20px; height:20px; margin-top:4px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:.66rem; font-weight:800; line-height:1; background: var(--tint-sky); color: var(--blue); }
.copy-num{ display:inline-flex; align-items:center; gap:6px; padding:2px 4px 2px 11px; margin:0 2px; border-radius:99px; background:#fff; border:1px solid var(--line-2); font-weight:800; line-height:1.5; color: var(--navy); letter-spacing:.03em; white-space:nowrap; vertical-align:middle; }
.copy-num button{ padding:3px 9px; border-radius:99px; font-size:.68rem; font-weight:700; background: var(--tint-sky); color: var(--blue); transition: background .2s; }
.copy-num button:hover{ background:#DCE9FF; }

/* Order summary (right column on desktop) */
.co-side{ position:sticky; top:96px; min-width:0; }
.co-sum{ background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow:hidden; }
.co-sum-top{ padding:20px 22px 6px; }
.co-sum-toggle{ display:none; }
.co-sum-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:4px; }
.co-sum-head h2{ font-weight:500; font-size:1.05rem; }
.co-sum-head h2 small{ margin-left:4px; font-family: var(--ff-body); font-size:.78rem; font-weight:600; color: var(--muted); }
.co-sum-head .link-arrow{ font-size:.8rem; }
.co-items{ max-height:318px; overflow-y:auto; margin:0 -6px; padding:0 6px; }
.co-items .cline{ grid-template-columns: 60px 1fr auto; padding:12px 0; }
.co-items .cline-img{ width:60px; height:60px; border-radius:12px; }
.co-sum .freebar{ margin:8px 0 4px; }
.coupon-wrap{ padding:12px 0 8px; }
.coupon-wrap .coupon{ margin:10px 0 2px; }
.co-totals{ padding:14px 22px 22px; background: var(--paper); border-top:1px solid var(--line); }
.co-totals-title{ display:none; }
.place-btn{ height:54px; margin-top:14px; font-size:1rem; }
.place-btn .pb-total{ padding-left:10px; margin-left:4px; border-left:1px solid rgba(255,255,255,.35); font-family: var(--ff-body); font-weight:800; }
.co-fine{ display:flex; align-items:center; justify-content:center; gap:6px; margin-top:10px; font-size:.74rem; color: var(--muted); text-align:center; }
.co-fine i{ color: var(--green); }
.co-fine a{ text-decoration:underline; }
.co-sticky{ display:none; }

.co-picks{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top:4px; text-align:left; }
.pick{ display:flex; align-items:center; gap:10px; padding:8px 10px 8px 8px; border-radius:14px; border:1px solid var(--line); background:#fff; transition: border-color .2s, transform .3s var(--spring), box-shadow .25s; }
.pick:hover{ border-color: var(--green); transform: translateY(-2px); box-shadow: var(--sh-1); }
.pick img{ width:46px; height:46px; border-radius:10px; object-fit:cover; flex-shrink:0; }
.pick span{ flex:1; min-width:0; font-size:.78rem; line-height:1.3; color: var(--navy); font-weight:600; }
.pick span small{ display:block; color: var(--muted); font-weight:700; }
.pick i{ color: var(--green); font-size:.8rem; }
@media (max-width:1100px) and (min-width:901px){
  .co-layout{ grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap:22px; }
  .co-card{ padding:20px; }
}

/* Mobile: collapsible summary on top → form → review & place order at the bottom */
@media (max-width:900px){
  .co{ padding:18px 0 40px; }
  .co-top{ flex-direction:column; align-items:flex-start; gap:12px; margin-bottom:16px; }
  /* align-items:stretch undoes the desktop grid's align-items:start, so every section spans the full width */
  .co-layout{ display:flex; flex-direction:column; align-items:stretch; gap:14px; }
  .co-main{ gap:14px; width:100%; }
  .co-sum-top, .co-totals{ width:100%; }
  .co-side, .co-sum{ display:contents; }
  .co-card, .co-sum-top, .co-totals{ border-radius:18px; }
  .co-card{ padding:18px 16px 20px; }
  .co-card-head{ margin-bottom:16px; padding-bottom:12px; }

  .co-sum-top{ order:-1; padding:0; overflow:hidden; background:#fff; border:1px solid var(--line); box-shadow: var(--sh-1); }
  .co-sum-toggle{ display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; padding:14px 16px; background: var(--tint-sky); color: var(--navy); text-align:left; }
  .cst-label{ display:flex; align-items:center; gap:8px; min-width:0; font-family: var(--ff-head); font-weight:500; font-size:.9rem; }
  .cst-label > i:first-child{ color: var(--blue); }
  .cst-label small{ font-family: var(--ff-body); font-size:.76rem; font-weight:600; color: var(--muted); white-space:nowrap; }
  .cst-chev{ font-size:.62rem; color: var(--blue); transition: transform .45s var(--ease-out); }
  .co-sum-top.open .cst-chev{ transform: rotate(180deg); }
  .co-sum-toggle > b{ font-size:1.05rem; font-weight:800; white-space:nowrap; }
  .co-sum-head{ display:none; }
  .co-sum-body{ display:grid; grid-template-rows:0fr; transition: grid-template-rows .45s var(--ease-out); }
  .co-sum-top.open .co-sum-body{ grid-template-rows:1fr; }
  .co-sum-inner{ min-height:0; overflow:hidden; }
  .co-sum-pad{ padding:4px 16px 12px; }
  .co-items{ max-height:none; overflow:visible; }

  .co-totals{ order:1; padding:18px 16px 20px; background:#fff; border:1px solid var(--line); box-shadow: var(--sh-1); }
  .co-totals-title{ display:flex; align-items:center; gap:12px; margin-bottom:10px; padding-bottom:12px; border-bottom:1px dashed var(--line-2); font-weight:500; font-size:1.04rem; }
  .co-sticky{ display:flex; }
}
@media (max-width:520px){ .co-picks{ grid-template-columns:1fr; } .co-progress li + li::before{ width:18px; margin:0 7px; } }

/* Phones: 16px text in form fields stops iOS Safari from zooming the page when a field is tapped */
@media (max-width:900px){
  .f input, .f select, .f textarea, .coupon input, .f-search input, .qty-input, .select select{ font-size:16px; }
  .f input, .f select{ height:48px; }
  .co-top .crumbs, .co-lead{ max-width:100%; }
  .co-progress{ flex-wrap:wrap; row-gap:6px; }
}
@media (max-width:480px){
  /* Same 16px side gutter as the phone header, so the checkout lines up edge to edge with it */
  .co > .container{ padding-left:16px; padding-right:16px; }
}
@media (max-width:360px){
  .co-card, .co-totals{ padding-left:14px; padding-right:14px; }
  .co-sum-toggle{ padding:13px 14px; }
  .cst-label small{ display:none; }
  .rcard{ padding:12px; gap:10px; }
  .place-btn .pb-total{ display:none; }
}

/* ==========================================================================
   Order placed
   ========================================================================== */
.success{ padding:56px 0 80px; background: radial-gradient(700px 300px at 50% 0%, #E9F7EC 0%, transparent 70%), #fff; }
.success-card{ position:relative; max-width:700px; margin:0 auto; padding:40px 36px; border-radius:28px; background:#fff; border:1px solid var(--line); box-shadow: var(--sh-2); text-align:center; }
.check-anim{ width:86px; height:86px; margin:0 auto 18px; display:block; }
.check-anim .ring{ fill:none; stroke: var(--green); stroke-width:3; stroke-dasharray:252; stroke-dashoffset:252; animation: draw .8s var(--ease-out) forwards; }
.check-anim .fill{ fill: var(--tint-mint); transform-origin:center; transform: scale(0); animation: popIn .55s var(--spring) .45s forwards; }
.check-anim .tick{ fill:none; stroke: var(--green); stroke-width:4.5; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:50; stroke-dashoffset:50; animation: draw .45s var(--ease-out) .75s forwards; }
.success h1{ font-weight:500; font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom:6px; }
.success-lead{ color: var(--ink-2); font-size:.95rem; max-width:480px; margin:0 auto; }
.order-id{ display:inline-flex; align-items:center; gap:10px; margin:18px 0 4px; padding:7px 7px 7px 16px; border-radius:999px; background: var(--tint-sky); font-weight:800; color: var(--navy); letter-spacing:.07em; }
.order-id small{ font-weight:700; color: var(--muted); letter-spacing:.02em; }
.order-id button{ padding:6px 12px; border-radius:99px; background:#fff; font-size:.72rem; font-weight:700; color: var(--blue); letter-spacing:0; transition: transform .3s var(--spring); }
.order-id button:hover{ transform: scale(1.05); }
.next-steps{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin:26px 0 8px; text-align:left; }
.ns{ padding:15px; border-radius:16px; background: var(--paper); border:1px solid var(--line); }
.ns > i{ width:32px; height:32px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; font-size:.8rem; background: var(--tint); color: var(--tint-ic); }
.ns b{ display:block; margin:9px 0 2px; font-family: var(--ff-head); font-weight:500; font-size:.87rem; color: var(--navy); }
.ns span{ font-size:.75rem; color: var(--muted); line-height:1.45; display:block; }
.receipt{ margin-top:22px; padding-top:20px; border-top:1px dashed var(--line-2); text-align:left; }
.receipt-grid{ display:grid; grid-template-columns: 1.2fr 1fr; gap:22px; }
.receipt h4{ font-family: var(--ff-body); font-weight:800; font-size:.68rem; letter-spacing:.13em; text-transform:uppercase; color: var(--muted); margin-bottom:10px; }
.receipt p{ font-size:.85rem; color: var(--ink-2); line-height:1.6; }
.success-actions{ display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:26px; }
.confetti{ position:fixed; inset:0; z-index:2400; pointer-events:none; }
@media (max-width:640px){ .success-card{ padding:30px 18px; } .next-steps, .receipt-grid{ grid-template-columns:1fr; } }

.mini-line{ display:flex; align-items:center; gap:10px; padding:6px 0; font-size:.84rem; }
.mini-line img{ width:42px; height:42px; border-radius:10px; object-fit:cover; flex-shrink:0; }
.mini-line span{ flex:1; min-width:0; color: var(--ink-2); line-height:1.35; }
.mini-line span small{ display:block; color: var(--muted); font-size:.72rem; }
.mini-line b{ color: var(--navy); white-space:nowrap; }

/* ==========================================================================
   Order tracking
   ========================================================================== */
.track-wrap{ max-width:920px; margin:0 auto; }
.track-form{ display:grid; grid-template-columns: 1fr 1fr auto; gap:12px; align-items:end; }
.track-form .sbtn{ height:46px; }
@media (max-width:720px){ .track-form{ grid-template-columns:1fr; } }
.recent-orders{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:16px; font-size:.78rem; color: var(--muted); }
.ro-chip{ padding:5px 12px; border-radius:99px; border:1px solid var(--line-2); font-size:.76rem; font-weight:700; color: var(--navy); letter-spacing:.04em; transition: border-color .2s, color .2s, transform .3s var(--spring); }
.ro-chip:hover{ border-color: var(--green); color: var(--green-dark); transform: translateY(-2px); }
.trk-card{ margin-top:22px; animation: rise .6s var(--ease-out); }
.trk-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; padding-bottom:18px; border-bottom:1px solid var(--line); }
.trk-id{ font-size:1.15rem; font-weight:800; letter-spacing:.05em; color: var(--navy); }
.trk-date{ font-size:.8rem; color: var(--muted); }
.status-pill{ display:inline-flex; align-items:center; gap:7px; padding:5px 12px; border-radius:99px; font-size:.75rem; font-weight:700; background: var(--tint); color: var(--tint-ic); white-space:nowrap; }
.status-pill::before{ content:''; width:6px; height:6px; border-radius:50%; background: currentColor; }
.st-placed{ --tint:#EDF4FF; --tint-ic:#2E6BE6; }
.st-confirmed{ --tint:#F2EEFF; --tint-ic:#6E4FD6; }
.st-packed{ --tint:#FFF7DF; --tint-ic:#AD7A06; }
.st-shipped{ --tint:#FFF1EA; --tint-ic:#D9653A; }
.st-delivered{ --tint:#ECF8EE; --tint-ic:#2C8A38; }
.st-cancelled{ --tint:#FFEFF3; --tint-ic:#D4456A; }

.tsteps{ position:relative; display:grid; grid-template-columns: repeat(5, 1fr); margin:30px 0 8px; }
.tsteps-line{ position:absolute; top:21px; left:10%; right:10%; height:3px; border-radius:9px; background: var(--line); }
.tsteps-line span{ display:block; width:0; height:100%; border-radius:inherit; background: linear-gradient(90deg, #86D491, var(--green)); transition: width 1.3s var(--ease-out) .25s; }
.tstep{ position:relative; text-align:center; padding:0 4px; }
.tstep-dot{
  position:relative; z-index:1; width:44px; height:44px; margin:0 auto 10px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:.9rem;
  background:#fff; border:2px solid var(--line-2); color: var(--muted);
  transition: background .45s var(--ease-out) var(--sd, 0ms), border-color .45s var(--ease-out) var(--sd, 0ms), color .45s var(--ease-out) var(--sd, 0ms), transform .5s var(--spring) var(--sd, 0ms);
}
.tstep.done .tstep-dot{ background: var(--green); border-color: var(--green); color:#fff; transform: scale(1.04); }
.tstep.current .tstep-dot{ animation: ringPulse 2.2s 1.4s infinite; }
.tstep b{ display:block; font-family: var(--ff-head); font-weight:500; font-size:.84rem; color: var(--muted); }
.tstep.done b{ color: var(--navy); }
.tstep small{ display:block; margin-top:2px; font-size:.7rem; color: var(--muted); }
@media (max-width:720px){
  .tsteps{ grid-template-columns:1fr; gap:16px; margin:24px 0 8px; }
  .tsteps-line{ top:22px; bottom:22px; left:20.5px; right:auto; width:3px; height:auto; }
  .tsteps-line span{ width:100% !important; height: var(--h, 0); transition: height 1.3s var(--ease-out) .25s; }
  .tstep{ display:grid; grid-template-columns: 44px 1fr; align-items:center; gap:14px; text-align:left; padding:0; }
  .tstep-dot{ margin:0; }
}
.order-row{ display:grid; grid-template-columns: 1fr auto auto 14px; align-items:center; gap:14px; width:100%; padding:14px 4px; border-bottom:1px solid var(--line); text-align:left; transition: background .2s, padding .25s var(--ease-out); }
.order-row:last-child{ border-bottom:none; }
.order-row:hover{ background: var(--paper); padding-left:10px; }
.order-row b{ color: var(--navy); }
.order-row small{ display:block; font-size:.74rem; color: var(--muted); }
.order-row > i{ color: var(--muted); font-size:.7rem; }
@media (max-width:520px){ .order-row{ grid-template-columns: 1fr auto; } .order-row > b, .order-row > i{ display:none; } }
.trk-note{ display:flex; gap:12px; align-items:center; padding:12px 14px; margin-top:14px; border-radius:14px; background: var(--tint-sky); font-size:.84rem; color: var(--ink-2); }
.trk-note i{ color: var(--blue); }
.trk-note.cancel{ background: var(--tint-rose); }
.trk-note.cancel i{ color:#D4456A; }
.trk-grid{ display:grid; grid-template-columns: 1.3fr 1fr; gap:16px; margin-top:20px; }
.trk-box{ padding:16px; border-radius:16px; border:1px solid var(--line); }
.trk-box h4{ font-family: var(--ff-body); font-weight:800; font-size:.68rem; letter-spacing:.13em; text-transform:uppercase; color: var(--muted); margin-bottom:8px; }
.trk-box p{ font-size:.85rem; color: var(--ink-2); line-height:1.6; }
.trk-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
@media (max-width:720px){ .trk-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   Home page shop teaser
   ========================================================================== */
.home-shop{ background: linear-gradient(180deg, #fff 0%, #F7F9FF 100%); }
.skill-strip{ display:grid; grid-template-columns: repeat(6, 1fr); gap:12px; margin-bottom:30px; }
.skill-tile{ display:flex; flex-direction:column; align-items:center; gap:9px; padding:16px 8px; border-radius:18px; background:#fff; border:1px solid var(--line); text-align:center; transition: transform .4s var(--spring), box-shadow .35s, border-color .3s; }
.skill-tile:hover{ transform: translateY(-4px); box-shadow: var(--sh-2); border-color:transparent; }
.skill-tile > i{ width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1rem; background: var(--tint); color: var(--tint-ic); transition: transform .45s var(--spring); }
.skill-tile:hover > i{ transform: rotate(-8deg) scale(1.1); }
.skill-tile span{ font-family: var(--ff-head); font-weight:500; font-size:.8rem; line-height:1.25; color: var(--navy); }
@media (max-width:900px){ .skill-strip{ grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Store admin
   ========================================================================== */
.adm{ padding:28px 0 64px; background: var(--paper); min-height:70vh; }
.adm-top{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.adm-top h1{ font-weight:500; font-size:1.5rem; }
.demo-banner{ display:flex; gap:10px; align-items:flex-start; padding:12px 16px; margin-bottom:16px; border-radius:14px; background: var(--tint-butter); color:#7A5700; font-size:.82rem; line-height:1.5; }
.demo-banner i{ margin-top:3px; }
.demo-banner a{ text-decoration:underline; }
.adm-stats{ display:grid; grid-template-columns: repeat(5, 1fr); gap:12px; margin-bottom:18px; }
.stat{ padding:14px 16px; border-radius:16px; background:#fff; border:1px solid var(--line); }
.stat small{ font-size:.66rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color: var(--muted); }
.stat b{ display:block; margin-top:4px; font-size:1.35rem; font-weight:800; color: var(--navy); }
.adm-bar{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.seg{ display:flex; gap:3px; padding:4px; border-radius:999px; background:#fff; border:1px solid var(--line); overflow-x:auto; max-width:100%; scrollbar-width:none; }
.seg button{ padding:6px 12px; border-radius:999px; font-size:.76rem; font-weight:700; color: var(--ink-2); white-space:nowrap; transition: background .2s, color .2s; }
.seg button.active{ background: var(--navy); color:#fff; }
.adm-table-wrap{ overflow:auto; border-radius:16px; background:#fff; border:1px solid var(--line); }
.adm-table{ width:100%; min-width:880px; border-collapse:collapse; font-size:.82rem; }
.adm-table th{ padding:12px 14px; text-align:left; font-size:.66rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color: var(--muted); background: var(--paper); border-bottom:1px solid var(--line); }
.adm-table td{ padding:12px 14px; border-bottom:1px solid var(--line); color: var(--ink-2); vertical-align:middle; }
.adm-table tbody tr{ cursor:pointer; transition: background .15s; }
.adm-table tbody tr:hover td{ background:#F8FAFF; }
.adm-table td b{ color: var(--navy); }
.adm-table td small{ display:block; color: var(--muted); font-size:.72rem; }
@media (max-width:900px){ .adm-stats{ grid-template-columns: repeat(2, 1fr); } }

.side-panel{
  position:fixed; top:0; right:0; z-index:2150; width: min(460px, 100%); height:100%; height:100dvh; overflow-y:auto;
  background:#fff; box-shadow: -24px 0 60px -24px rgba(12,31,82,.35); transform: translateX(104%); transition: transform .55s var(--ease-sheet);
}
.side-panel-wrap.open .side-panel{ transform:none; }
.sp-head{ position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 20px; background:#fff; border-bottom:1px solid var(--line); }
.sp-head h3{ font-weight:500; font-size:1.1rem; }
.sp-body{ padding:18px 20px 28px; display:flex; flex-direction:column; gap:16px; }
.sp-body .trk-box p{ margin:0; }

.invoice-print{ display:none; }
@media print{
  body > *:not(.invoice-print){ display:none !important; }
  .invoice-print{ display:block !important; padding:24px; font-family: var(--ff-body); color:#000; }
  .invoice-print h2{ font-family: var(--ff-head); color:#000; margin-bottom:4px; }
  .invoice-print table{ width:100%; border-collapse:collapse; margin:16px 0; font-size:13px; }
  .invoice-print th, .invoice-print td{ border-bottom:1px solid #ccc; padding:8px 6px; text-align:left; }
  .invoice-print .inv-grid{ display:flex; justify-content:space-between; gap:20px; font-size:13px; }
}

/* ==========================================================================
   Misc: fly-to-cart ghost, keyframes, reduced motion
   ========================================================================== */
.fly-ghost{ position:fixed; z-index:2500; object-fit:cover; border-radius:18px; pointer-events:none; box-shadow: 0 16px 34px -10px rgba(12,31,82,.4); }

@keyframes rise{ from{ opacity:0; transform: translateY(18px); } to{ opacity:1; transform:none; } }
@keyframes slideIn{ from{ opacity:0; transform: translateX(26px); } to{ opacity:1; transform:none; } }
@keyframes drift{ 0%,100%{ transform: translate(0,0) rotate(0); } 33%{ transform: translate(7px,-10px) rotate(14deg); } 66%{ transform: translate(-6px,6px) rotate(-9deg); } }
@keyframes cartBump{ 0%{ transform: scale(1); } 30%{ transform: scale(1.22); } 60%{ transform: scale(.92); } 100%{ transform: scale(1); } }
@keyframes heartPop{ 0%{ transform: scale(1); } 40%{ transform: scale(1.35); } 100%{ transform: scale(1); } }
@keyframes spin{ to{ transform: rotate(360deg); } }
@keyframes draw{ to{ stroke-dashoffset:0; } }
@keyframes ping{ 0%{ box-shadow: 0 0 0 0 rgba(62,174,73,.45); } 70%{ box-shadow: 0 0 0 7px rgba(62,174,73,0); } 100%{ box-shadow: 0 0 0 0 rgba(62,174,73,0); } }
@keyframes pingRose{ 0%{ box-shadow: 0 0 0 0 rgba(212,69,106,.45); } 70%{ box-shadow: 0 0 0 7px rgba(212,69,106,0); } 100%{ box-shadow: 0 0 0 0 rgba(212,69,106,0); } }
@keyframes ringPulse{ 0%{ box-shadow: 0 0 0 0 rgba(62,174,73,.4); } 70%{ box-shadow: 0 0 0 10px rgba(62,174,73,0); } 100%{ box-shadow: 0 0 0 0 rgba(62,174,73,0); } }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; transition-delay:0s !important; scroll-behavior:auto !important; }
  [data-reveal]{ opacity:1; }
}
