/* ==========================================================
   MMatrics Pharmaceuticals – store additions
   main.css is the original design and is left untouched. This file only
   adds what the dynamic store needs, in the same visual language:
   · variant picker (product page + quick view), MRP strike-through
   · cart drawer extras (checkout / WhatsApp buttons, discount, warnings)
   · site-wide toast (+ error state) and sign-in popup on every page
   · new pages scoped to <body data-page="store">: cart, checkout,
     sign in, account, order confirmation, order tracking
   ========================================================== */

/* ---------------- shared: toast on every page ---------------- */
.mm-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 320; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px; background: var(--navy-2); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(5,20,50,.3); transform: translate(-50%, 30px); opacity: 0; visibility: hidden;
  transition: transform .4s var(--ease), opacity .4s, visibility .4s; max-width: calc(100vw - 32px);
}
.mm-toast i { color: #3ee0b0; }
.mm-toast.err { background: #8f1d2c; }
.mm-toast.err i { color: #ffb4bd; }
.mm-toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
@media (max-width: 1099px) { .mm-toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------------- shared: sign in / create account popup (js/layout.js) ---------------- */
.mm-auth { position: fixed; inset: 0; z-index: 410; display: grid; place-items: center; padding: 16px; }
.mm-auth[hidden] { display: none; }
.mm-auth-overlay { position: absolute; inset: 0; background: rgba(5,20,50,.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.mm-auth.open .mm-auth-overlay { opacity: 1; }
/* compact, rounded, white – no scrollbar (scrolls quietly only on very short screens) */
.mm-auth-dialog {
  position: relative; width: min(390px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: 0; border-radius: 18px; background: #fff; outline: 0; box-shadow: 0 30px 70px rgba(5,20,50,.32);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .3s ease, transform .4s var(--ease);
}
.mm-auth-dialog::-webkit-scrollbar { display: none; }
.mm-auth.open .mm-auth-dialog { opacity: 1; transform: none; }
.mm-auth-close {
  position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #eef4fb; color: var(--navy-2); font-size: 14px; transition: background .25s, color .25s, transform .3s;
}
.mm-auth-close:hover { background: var(--navy-btn); color: #fff; transform: rotate(90deg); }
.mm-auth-head { padding: 20px 22px 0; text-align: left; }
.mm-auth-head h2 { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.mm-auth-head p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.mm-auth-body { padding: 14px 22px 18px; }
/* tighter fields & buttons inside the popup */
.mm-auth .st-tabs { margin-bottom: 12px; padding: 4px; border-radius: 12px; }
.mm-auth .st-tabs button { height: 36px; border-radius: 9px; font-size: 14px; }
.mm-auth .st-auth-form { gap: 10px; }
.mm-auth .st-field input { height: 46px; border-radius: 10px; }
.mm-auth .st-btn { height: 44px; margin-top: 10px; border-radius: 10px; }
.mm-auth .st-form-msg { margin-top: 6px; min-height: 0; }
.mm-auth .mm-captcha { margin: 8px 0 0; }
.mm-auth .mm-captcha-img, .mm-auth .mm-captcha-refresh, .mm-auth .mm-captcha-input { height: 44px; border-radius: 10px; }
.mm-auth .mm-captcha-img { width: 138px; }
.mm-auth-note { margin-top: 12px; font-size: 12px; }
.mm-pass input { padding-right: 48px; }
.mm-pass-tog { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; border-radius: 8px; color: #7b869b; font-size: 18px; transition: color .25s, background .25s; }
.mm-pass-tog:hover, .mm-pass-tog[aria-pressed="true"] { color: var(--blue); background: #eef4fb; }
.mm-auth-note { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--muted); text-align: center; }
.mm-auth-note a { color: var(--blue-link); font-weight: 600; }
.auth-lock { overflow: hidden; }
/* phones: a full-screen panel that slides in from the right, like the cart drawer (centred card from 768px up) */
@media (max-width: 767px) {
  .mm-auth { place-items: stretch; padding: 0; }
  .mm-auth-dialog {
    width: 100%; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none;
    opacity: 1; transform: translateX(100%); transition: transform .3s var(--ease);   /* layout.js hides it 300ms after closing */
  }
  .mm-auth-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 38px; height: 38px; font-size: 16px; }
  .mm-auth-head { padding: calc(22px + env(safe-area-inset-top)) 64px 0 18px; }
  .mm-auth-head h2 { font-size: 24px; }
  .mm-auth-head p { font-size: 14px; }
  .mm-auth-body { padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .mm-auth-dialog { transition: none; }
}

/* busy / disabled buttons */
.is-busy { pointer-events: none; opacity: .75; }
.is-busy i { animation: mmSpin 1s linear infinite; }
@keyframes mmSpin { to { transform: rotate(360deg); } }
.pd-cart:disabled, .btn-cart:disabled, .pd-now.is-disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------------- MRP (compare-at price) ---------------- */
.p-mrp, .pd-mrp { margin-left: 6px; font-size: .62em; font-weight: 600; color: #8a94a8; text-decoration: line-through; }
.pd-mrp[hidden] { display: none; }

/* ---------------- variant picker (Shopify-style options) ---------------- */
.pd-variants { display: grid; gap: 12px; margin-top: 14px; }
.pd-opt-label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; color: #4f5b73; }
.pd-opt-label b { color: var(--navy-2); font-weight: 700; }
.pd-opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-opt-btn {
  position: relative; min-height: 40px; padding: 8px 16px; border: 1.5px solid #d5dfec; border-radius: 10px; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--navy-2); line-height: 1.2; transition: border-color .25s, background .25s, color .25s, box-shadow .25s;
}
.pd-opt-btn:hover { border-color: #8fb0d9; }
.pd-opt-btn.active { border-color: #0b5bc0; background: #eef5fe; color: #0b4fb3; box-shadow: 0 0 0 3px rgba(11,91,192,.12); }
.pd-opt-btn.is-out { color: #9aa4b8; background: repeating-linear-gradient(135deg, #fff 0 6px, #f4f6fa 6px 12px); }
.pd-opt-btn.is-out::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: #b8c1d1; transform: rotate(-8deg); }
.qv-info .pd-variants { margin-top: 10px; }

/* ---------------- cart drawer extras ---------------- */
.cd-disc { display: flex; justify-content: space-between; margin-top: 4px; font-size: 14px; color: #0b8a5f; font-weight: 600; }
.cd-note b { color: var(--navy-2); }
.cd-warn { color: #c02a3b !important; font-weight: 600; }
.cd-item.is-out .cd-img img { filter: grayscale(1); opacity: .6; }
.cd-qty button:disabled { opacity: .35; cursor: not-allowed; }
.cd-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.cd-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; margin-top: 10px;
  border: 1.5px solid #25d366; border-radius: 8px; color: #128c4b; font-size: 14.5px; font-weight: 700; transition: background .3s, color .3s;
}
.cd-wa:hover { background: #25d366; color: #fff; }
.cd-wa .fa-whatsapp { font-size: 18px; }

/* ==========================================================
   STORE PAGES  <body data-page="store">
   ========================================================== */
:where(body[data-page=store]) .st-page { background: linear-gradient(180deg, #f4f8fd 0, #fff 420px); padding-bottom: clamp(40px, calc(30 * var(--u)), 70px); }

/* hero */
:where(body[data-page=store]) .st-hero { position: relative; overflow: hidden; padding: clamp(26px, calc(22 * var(--u)), 46px) 0 clamp(22px, calc(16 * var(--u)), 34px); background: linear-gradient(120deg, #e8f2fd 0%, #f2f8fe 55%, #e5f4f5 100%); }
:where(body[data-page=store]) .st-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(10,150,163,.14), transparent 70%); }
:where(body[data-page=store]) .st-hero-inner { position: relative; z-index: 1; }
:where(body[data-page=store]) .st-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
:where(body[data-page=store]) .st-crumbs a { color: #3c4a66; }
:where(body[data-page=store]) .st-crumbs a:hover { color: var(--blue); }
:where(body[data-page=store]) .st-crumbs > i { font-size: 10px; opacity: .6; }
:where(body[data-page=store]) .st-crumbs span { color: var(--navy-2); font-weight: 600; }
:where(body[data-page=store]) .st-title { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: clamp(26px, calc(20 * var(--f)), 38px); font-weight: 800; color: var(--navy); line-height: 1.2; }
:where(body[data-page=store]) .st-title > i { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 14px; background: #fff; color: var(--blue); font-size: .75em; box-shadow: var(--shadow-sm); }
:where(body[data-page=store]) .st-text { margin-top: 8px; max-width: 640px; font-size: 15px; color: #4f5b73; }

/* ---------- banner hero (My Account pages + wishlist – _StoreHero with ViewData["HeroBanner"]) ----------
   one shared photo, blurred under a navy → blue → teal gradient; low, straight-edged; works on any page key */
.st-hero.st-hero--banner { position: relative; overflow: hidden; isolation: isolate; padding: clamp(26px, 2.5vw, 40px) 0; background: #0a2a6b; color: #fff; }
.st-hero.st-hero--banner::after { display: none; }
.st-hero--banner .st-hero-img {
  position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  filter: blur(7px) saturate(1.15); transform: scale(1.12);   /* scaled so the blur never shows a soft edge */
}
.st-hero.st-hero--banner::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(5,22,64,.94) 0%, rgba(8,45,120,.87) 42%, rgba(11,91,192,.76) 74%, rgba(10,150,163,.68) 100%),
    linear-gradient(0deg, rgba(5,22,64,.35), transparent 60%);
}
.st-hero-glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.st-hero-glow--a { width: 460px; height: 460px; right: 6%; top: -240px; background: radial-gradient(circle, rgba(95,227,212,.26), transparent 65%); }
.st-hero-glow--b { width: 320px; height: 320px; left: -110px; bottom: -200px; background: radial-gradient(circle, rgba(64,140,255,.28), transparent 65%); }

/* heading: glass icon tile · eyebrow with accent dash · title · subtitle   |   breadcrumb pill on the right */
.st-banner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.st-banner-head { display: flex; align-items: center; gap: 18px; min-width: 0; }
.st-banner-ico {
  flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; color: #fff; font-size: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 14px 30px rgba(3,15,45,.32), inset 0 1px 0 rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.st-banner-ico svg { width: 28px; height: 28px; }
.st-banner-copy { min-width: 0; }
.st-banner-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #8ff0e6; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.st-banner-eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #5fe3d4, #8ff0e6); }
.st-banner-title { margin: 6px 0 0; font-size: clamp(26px, 2.5vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; color: #fff; text-shadow: 0 2px 18px rgba(3,15,45,.35); }
.st-banner-text { margin: 6px 0 0; max-width: 560px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.8); }
.st-banner-crumbs {
  flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.st-banner-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.9); transition: color .2s; }
.st-banner-crumbs a:hover { color: #fff; }
.st-banner-crumbs > i { font-size: 9px; opacity: .55; }
.st-banner-crumbs > i svg { width: 10px; height: 10px; }
.st-banner-crumbs span { color: #fff; font-weight: 700; }
@media (max-width: 767px) {
  .st-hero.st-hero--banner { padding: 18px 0 22px; }
  .st-hero.st-hero--banner::before { background: linear-gradient(135deg, rgba(5,22,64,.93), rgba(8,45,120,.86) 55%, rgba(10,120,170,.76)); }
  .st-banner { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .st-banner-head { gap: 14px; }
  .st-banner-ico { width: 50px; height: 50px; border-radius: 15px; font-size: 21px; }
  .st-banner-ico svg { width: 22px; height: 22px; }
  .st-banner-title { font-size: 24px; }
  .st-banner-text { font-size: 14px; }
  .st-banner-crumbs { padding: 6px 12px; font-size: 12px; }
}

/* layout + cards */
:where(body[data-page=store]) .st-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(16px, calc(14 * var(--u)), 28px); align-items: start; margin-top: clamp(18px, calc(16 * var(--u)), 30px); }
:where(body[data-page=store]) .st-layout--checkout { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
:where(body[data-page=store]) .st-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, calc(14 * var(--u)), 28px); box-shadow: var(--shadow-sm); }
:where(body[data-page=store]) .st-sticky { position: sticky; top: 110px; }
:where(body[data-page=store]) .st-card-title { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-size: 18px; font-weight: 800; color: var(--navy); }
:where(body[data-page=store]) .st-card-title:not(:first-child) { margin-top: 26px; padding-top: 22px; border-top: 1px dashed #dfe6f0; }
:where(body[data-page=store]) .st-card-title > i { color: var(--blue); }
:where(body[data-page=store]) .st-card-title small, :where(body[data-page=store]) .st-card-title .js-count { color: var(--muted); font-weight: 600; font-size: 14px; }
:where(body[data-page=store]) .st-step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #0457b4, #0a96a3); color: #fff; font-size: 13px; }
:where(body[data-page=store]) .st-sub { margin: 18px 0 6px; font-size: 14px; font-weight: 700; color: var(--navy-2); }
:where(body[data-page=store]) .st-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
:where(body[data-page=store]) .st-note a { color: var(--blue-link); font-weight: 600; }
:where(body[data-page=store]) .st-center { text-align: center; }
:where(body[data-page=store]) .st-warn { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: #c02a3b; }

/* empty states */
:where(body[data-page=store]) .st-empty { grid-column: 1 / -1; text-align: center; padding: clamp(36px, calc(30 * var(--u)), 60px) 20px; }
:where(body[data-page=store]) .st-empty--inline { padding: 26px 10px; }
:where(body[data-page=store]) .st-empty-ico { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #eef4fb; color: var(--blue); font-size: 34px; }
:where(body[data-page=store]) .st-empty h2 { margin-top: 14px; font-size: 22px; color: var(--navy); }
:where(body[data-page=store]) .st-empty p { margin: 6px 0 18px; color: var(--muted); }

/* buttons */
:where(body[data-page=store], .mm-auth) .st-btn { width: 100%; height: 50px; margin-top: 14px; border-radius: 10px; font-size: 15.5px; }
:where(body[data-page=store], .mm-auth) .st-btn[aria-disabled="true"] { opacity: .55; }
:where(body[data-page=store]) .st-wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; margin-top: 10px; border: 1.5px solid #25d366; border-radius: 10px; color: #128c4b; font-weight: 700; font-size: 14.5px; transition: background .3s, color .3s; }
:where(body[data-page=store]) .st-wa:hover { background: #25d366; color: #fff; }
:where(body[data-page=store]) .st-continue { margin: 16px 0 0; }
:where(body[data-page=store]) .st-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #dfe6f0; font-size: 12.5px; color: #4f5b73; }
:where(body[data-page=store]) .st-trust i { color: #0a96a3; margin-right: 3px; }

/* cart lines */
:where(body[data-page=store]) .st-line { position: relative; display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: opacity .25s, transform .25s; }
:where(body[data-page=store]) .st-line:first-child { padding-top: 0; }
:where(body[data-page=store]) .st-line.removing { opacity: 0; transform: translateX(40px); }
:where(body[data-page=store]) .st-line.is-out .st-line-img img { filter: grayscale(1); opacity: .6; }
:where(body[data-page=store]) .st-line-img { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 12px; background: #f4f8fd; overflow: hidden; }
:where(body[data-page=store]) .st-line-img img { width: 100%; height: 100%; object-fit: contain; }
:where(body[data-page=store]) .st-line-name { display: block; font-size: 15.5px; font-weight: 700; color: var(--navy-2); line-height: 1.35; }
:where(body[data-page=store]) .st-line-name:hover { color: var(--blue); }
:where(body[data-page=store]) .st-line-info small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
:where(body[data-page=store]) .st-rx { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: #fde9ee; color: #c02a3b; font-size: 11px; font-weight: 800; font-style: normal; }
:where(body[data-page=store]) .st-line-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
:where(body[data-page=store]) .st-line-total { font-size: 16px; font-weight: 800; color: var(--navy); }
:where(body[data-page=store]) .st-line-remove { align-self: start; width: 34px; height: 34px; border-radius: 50%; color: #8a94a8; transition: background .25s, color .25s; }
:where(body[data-page=store]) .st-line-remove:hover { background: #fde9ee; color: #c02a3b; }
:where(body[data-page=store]) .st-qty { display: flex; align-items: center; height: 40px; border: 1px solid #d5dfec; border-radius: 8px; overflow: hidden; background: #fff; }
:where(body[data-page=store]) .st-qty .qty-btn { width: 36px; height: 100%; color: var(--navy-2); font-size: 12px; transition: background .3s; }
:where(body[data-page=store]) .st-qty .qty-btn:hover { background: #eef4fb; }
:where(body[data-page=store]) .st-qty input { width: 44px; height: 100%; border: 0; border-inline: 1px solid #e3e9f2; text-align: center; font: inherit; font-size: 15px; font-weight: 700; color: var(--navy-2); outline: 0; -moz-appearance: textfield; }
:where(body[data-page=store]) .st-qty input::-webkit-inner-spin-button, :where(body[data-page=store]) .st-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* totals */
:where(body[data-page=store]) .st-totals { margin: 16px 0 0; }
:where(body[data-page=store]) .st-totals > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14.5px; color: #4f5b73; }
:where(body[data-page=store]) .st-totals dt small { color: var(--muted); }
:where(body[data-page=store]) .st-totals dd { margin: 0; font-weight: 700; color: var(--navy-2); }
:where(body[data-page=store]) .st-totals .st-disc dd, :where(body[data-page=store]) .st-totals .st-disc dt { color: #0b8a5f; }
:where(body[data-page=store]) .st-totals .st-grand { margin-top: 6px; padding-top: 12px; border-top: 1px dashed #d5dfec; font-size: 17px; }
:where(body[data-page=store]) .st-totals .st-grand dt { font-weight: 800; color: var(--navy); }
:where(body[data-page=store]) .st-totals .st-grand dd { font-size: 22px; font-weight: 800; color: var(--navy); }
:where(body[data-page=store]) .st-totals .st-gst { padding-top: 0; font-size: 13px; color: var(--muted); }
:where(body[data-page=store]) .st-totals .st-gst dd { font-weight: 600; color: var(--muted); }
:where(body[data-page=store]) .st-freeship { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #e5f6ee; color: #0b6b4a; font-size: 13.5px; }
:where(body[data-page=store]) .st-freeship i { margin-right: 4px; }

/* coupon */
:where(body[data-page=store]) .st-coupon { display: flex; align-items: center; height: 46px; border: 1.5px dashed #b8cbe4; border-radius: 10px; background: #f8fbfe; overflow: hidden; }
:where(body[data-page=store]) .st-coupon > i { padding: 0 6px 0 14px; color: #0a96a3; }
:where(body[data-page=store]) .st-coupon input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; text-transform: uppercase; color: var(--navy-2); outline: 0; }
:where(body[data-page=store]) .st-coupon input::placeholder { text-transform: none; font-weight: 500; }
:where(body[data-page=store]) .st-coupon button { height: 100%; padding: 0 18px; background: var(--navy-btn); color: #fff; font-weight: 700; font-size: 14px; }
:where(body[data-page=store]) .st-coupon .js-coupon-remove { background: #fde9ee; color: #c02a3b; }
:where(body[data-page=store]) .st-coupon-msg { min-height: 18px; margin-top: 6px; font-size: 13px; font-weight: 600; }
:where(body[data-page=store]) .st-coupon-msg.ok { color: #0b8a5f; }
:where(body[data-page=store]) .st-coupon-msg.err { color: #c02a3b; }

/* form fields: floating labels (same idea as the contact page) */
:where(body[data-page=store]) .st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
:where(body[data-page=store]) .st-full { grid-column: 1 / -1; }
:where(body[data-page=store], .mm-auth) .st-field { position: relative; display: block; }
:where(body[data-page=store], .mm-auth) .st-field input, :where(body[data-page=store], .mm-auth) .st-field select, :where(body[data-page=store], .mm-auth) .st-field textarea {
  width: 100%; height: 54px; padding: 20px 14px 6px; border: 1.5px solid #e1e8f2; border-radius: 10px; background: #f8fbfe;
  font: inherit; font-size: 15px; color: var(--navy-2); outline: 0; transition: border-color .25s, background .25s, box-shadow .25s; -webkit-appearance: none; appearance: none;
}
:where(body[data-page=store], .mm-auth) .st-field textarea { height: auto; min-height: 80px; padding-top: 24px; resize: vertical; }
:where(body[data-page=store], .mm-auth) .st-field > span { position: absolute; left: 15px; top: 17px; font-size: 14.5px; color: #7b869b; pointer-events: none; transition: top .2s, font-size .2s, color .2s; }
:where(body[data-page=store], .mm-auth) .st-field > span small { font-size: .85em; }
:where(body[data-page=store], .mm-auth) .st-field :is(input, textarea):is(:focus, :not(:placeholder-shown)) ~ span,
:where(body[data-page=store]) .st-select > span { top: 7px; font-size: 11.5px; font-weight: 600; }
:where(body[data-page=store], .mm-auth) .st-field :is(input, select, textarea):focus { background: #fff; border-color: #1a6fd6; box-shadow: 0 0 0 4px rgba(26,111,214,.1); }
:where(body[data-page=store], .mm-auth) .st-field :is(input, textarea):focus ~ span { color: #1a6fd6; }
:where(body[data-page=store], .mm-auth) .st-field input:disabled { opacity: .7; }
:where(body[data-page=store]) .st-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: currentColor; color: #7b869b; -webkit-mask: var(--ico-caret) center / contain no-repeat; mask: var(--ico-caret) center / contain no-repeat; pointer-events: none; }
:where(body[data-page=store], .mm-auth) .st-field.err :is(input, select, textarea), :where(body[data-page=store]) .tried .st-field :is(input, textarea):invalid { border-color: #e04f61; background: #fff7f8; }
:where(body[data-page=store], .mm-auth) .st-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4f5b73; cursor: pointer; }
:where(body[data-page=store], .mm-auth) .st-check input { width: 18px; height: 18px; accent-color: #0b5bc0; }
/* sign in: "Keep me signed in" + "Forgot password?" on one line */
:where(body[data-page=store], .mm-auth) .st-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
:where(body[data-page=store], .mm-auth) .st-forgot { font-size: 14px; font-weight: 600; color: #0b5bc0; }
:where(body[data-page=store], .mm-auth) .st-forgot:hover { text-decoration: underline; }
/* result of an emailed link (Views/Account/Notice) */
:where(body[data-page=store]) .st-notice { display: grid; justify-items: center; gap: 14px; text-align: center; }
:where(body[data-page=store]) .st-notice p { color: #4f5b73; line-height: 1.6; }
:where(body[data-page=store]) .st-notice-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff1e5; color: #c25b12; font-size: 28px; }
:where(body[data-page=store]) .st-notice.is-ok .st-notice-ico { background: #e5f6ee; color: #0b8a5f; }
/* My Account: "Please verify your email" */
.ac-verify { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px; border: 1px solid #f6d9b8; border-radius: 16px; background: #fff8ef; }
.ac-verify-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #fff0e0; color: #c2531b; font-size: 18px; }
.ac-verify-text { display: grid; gap: 2px; flex: 1 1 240px; min-width: 0; }
.ac-verify-text > b { color: var(--navy-2); }
.ac-verify-text small { font-size: 13px; color: #6b5a48; line-height: 1.5; }
.ac-verify .ac-btn-ghost { flex: none; }
@media (max-width: 575px) { .ac-verify .ac-btn-ghost { width: 100%; } }
:where(body[data-page=store], .mm-auth) .st-form-msg { min-height: 20px; margin-top: 12px; font-size: 14px; font-weight: 600; }
:where(body[data-page=store], .mm-auth) .st-form-msg.err { color: #c02a3b; }
:where(body[data-page=store], .mm-auth) .st-form-msg.ok { color: #0b8a5f; }
:where(body[data-page=store]) .st-login-hint { margin: -4px 0 18px; padding: 10px 14px; border-radius: 10px; background: #eef5fe; font-size: 14px; color: #3c4a66; }
:where(body[data-page=store]) .st-login-hint a { color: var(--blue-link); font-weight: 700; }

/* prescription upload */
:where(body[data-page=store]) .st-rx-box { margin-top: 22px; padding: 16px; border: 1.5px solid #f6c9d3; border-radius: 14px; background: #fff7f9; }
:where(body[data-page=store]) .st-rx-box h3 { font-size: 15.5px; color: #a3203a; }
:where(body[data-page=store]) .st-rx-box p { margin: 6px 0 12px; font-size: 13.5px; color: #5d4650; }
:where(body[data-page=store]) .st-file { position: relative; display: flex; align-items: center; justify-content: center; height: 50px; border: 1.5px dashed #e39aab; border-radius: 10px; background: #fff; color: #a3203a; cursor: pointer; font-size: 14px; }
:where(body[data-page=store]) .st-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
:where(body[data-page=store]) .st-rx-note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #fff7f9; color: #5d4650; font-size: 14px; }
:where(body[data-page=store]) .st-rx-note a { color: #a3203a; font-weight: 700; }

/* payment options */
:where(body[data-page=store]) .st-pay { display: grid; gap: 10px; }
:where(body[data-page=store]) .st-pay-opt { position: relative; cursor: pointer; }
:where(body[data-page=store]) .st-pay-opt input { position: absolute; opacity: 0; }
:where(body[data-page=store]) .st-pay-card { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; border: 1.5px solid #e1e8f2; border-radius: 14px; background: #fff; transition: border-color .25s, box-shadow .25s, background .25s; }
:where(body[data-page=store]) .st-pay-card b { display: block; font-size: 15.5px; color: var(--navy-2); }
:where(body[data-page=store]) .st-pay-card small { display: block; font-size: 13px; color: var(--muted); }
:where(body[data-page=store]) .st-pay-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eef4fb; color: var(--blue); font-size: 20px; flex: none; }
:where(body[data-page=store]) .st-pay-logos { display: flex; gap: 6px; margin-left: auto; }
:where(body[data-page=store]) .st-pay-opt input:checked + .st-pay-card { border-color: #0b5bc0; background: #f4f9ff; box-shadow: 0 0 0 4px rgba(11,91,192,.1); }
:where(body[data-page=store]) .st-pay-opt input:checked + .st-pay-card .st-pay-ico { background: linear-gradient(135deg, #0457b4, #0a96a3); color: #fff; }
:where(body[data-page=store]) .st-pay-opt input:focus-visible + .st-pay-card { outline: 2px solid #1a6fd6; outline-offset: 2px; }
:where(body[data-page=store]) .st-pay-opt.is-disabled { opacity: .55; cursor: not-allowed; }
:where(body[data-page=store]) .st-pay .pay { display: inline-flex; align-items: center; height: 24px; padding: 0 7px; border: 1px solid #e3e9f2; border-radius: 5px; font-size: 11px; font-weight: 800; color: var(--navy-2); background: #fff; }
:where(body[data-page=store]) .st-place b { font-weight: 800; }

/* order summary mini list */
:where(body[data-page=store]) .st-mini { display: grid; gap: 12px; max-height: 320px; overflow: auto; padding: 4px 4px 4px 0; }
:where(body[data-page=store]) .st-mini--lg { max-height: none; }
:where(body[data-page=store]) .st-mini li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
:where(body[data-page=store]) .st-mini-img { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; background: #f4f8fd; border: 1px solid var(--line); }
:where(body[data-page=store]) .st-mini-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
:where(body[data-page=store]) .st-mini-img em { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--navy-2); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
:where(body[data-page=store]) .st-mini-name b { display: block; color: var(--navy-2); line-height: 1.3; }
:where(body[data-page=store]) .st-mini-name small { color: var(--muted); font-size: 12.5px; }
:where(body[data-page=store]) .st-mini > li > b { color: var(--navy); }
:where(body[data-page=store]) .st-edit-cart { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 14px; font-size: 13px; font-weight: 700; color: var(--blue-link); }

/* auth */
:where(body[data-page=store]) .st-auth { display: grid; place-items: center; margin-top: clamp(18px, calc(16 * var(--u)), 30px); }
:where(body[data-page=store]) .st-auth-card { width: min(480px, 100%); }
:where(body[data-page=store], .mm-auth) .st-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 12px; background: #eef4fb; }
:where(body[data-page=store], .mm-auth) .st-tabs button { height: 42px; border-radius: 9px; font-weight: 700; font-size: 14.5px; color: #4f5b73; transition: background .25s, color .25s, box-shadow .25s; }
:where(body[data-page=store], .mm-auth) .st-tabs button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
:where(body[data-page=store], .mm-auth) .st-auth-form { display: grid; gap: 12px; }
:where(body[data-page=store], .mm-auth) .st-auth-form[hidden] { display: none; }
:where(body[data-page=store], .mm-auth) .st-auth-form .st-btn { margin-top: 2px; }
:where(body[data-page=store], .mm-auth) .st-auth-form .st-form-msg { margin-top: 0; min-height: 0; }

/* account */
:where(body[data-page=store]) .st-orders { display: grid; gap: 10px; }
:where(body[data-page=store]) .st-orders a { display: grid; grid-template-columns: 1fr auto auto auto auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .25s, box-shadow .25s; }
:where(body[data-page=store]) .st-orders a:hover { border-color: #b8cbe4; box-shadow: var(--shadow-sm); }
:where(body[data-page=store]) .st-orders b { color: var(--navy-2); }
:where(body[data-page=store]) .st-orders small { display: block; font-size: 12.5px; color: var(--muted); }
:where(body[data-page=store]) .st-orders i { color: #8a94a8; font-size: 12px; }
:where(body[data-page=store]) .st-address { font-size: 14px; color: #4f5b73; line-height: 1.6; }
:where(body[data-page=store]) .st-logout { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #dfe6f0; }
:where(body[data-page=store]) .st-logout button { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #c02a3b; }

/* ==========================================================
   ACCOUNT AREA  (Views/Account/_AccountLayout – left navigation + page)
   Not scoped to a data-page: the wishlist page runs as data-page=shop for its product cards.
   ========================================================== */
.ac-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: clamp(18px, calc(16 * var(--u)), 30px); }
.ac-main { display: grid; gap: 20px; min-width: 0; }
/* page swapped in by store.js: dims only if the next page takes a moment, fades the new one in */
.ac-loading .ac-main { opacity: .5; pointer-events: none; transition: opacity .2s ease .12s; }
.ac-main.ac-swapped { animation: ac-in .28s ease; }
@keyframes ac-in { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ac-main.ac-swapped { animation: none; } }

/* left navigation */
.ac-side { position: sticky; top: 110px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 14px 40px rgba(16,42,92,.08); }
.ac-profile { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 12px; padding: 28px 20px 24px; text-align: center; color: #fff; background: linear-gradient(140deg, #0a3d91 0%, #0b5bc0 45%, #0a96a3 100%); }
.ac-profile::before, .ac-profile::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); pointer-events: none; }
.ac-profile::before { width: 180px; height: 180px; top: -70px; right: -60px; }
.ac-profile::after { width: 120px; height: 120px; bottom: -60px; left: -40px; }
.ac-avatar {
  position: relative; z-index: 1; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: #fff; color: #0b4fb3; font-size: 28px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 0 0 5px rgba(255,255,255,.22), 0 10px 24px rgba(3,20,60,.25);
}
/* profile photo – in the side card (camera button) and the dashboard's Profile Details */
.ac-avatar { overflow: hidden; }
.ac-avatar img, .ac-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.js-avatar.is-busy { opacity: .45; transition: opacity .2s; }
.ac-avatar-wrap { position: relative; z-index: 1; display: inline-block; line-height: 0; }
/* above the avatar (which has its own z-index) so the whole button shows on the photo's edge */
.ac-avatar-edit {
  position: absolute; right: -6px; bottom: -4px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: #0b4fb3; font-size: 15px; line-height: 1; cursor: pointer;
  box-shadow: 0 0 0 3px #0b5bc0, 0 6px 14px rgba(3,20,60,.35); transition: transform .2s, background .2s;
}
.ac-avatar-edit:hover { background: #eef5fe; }
.ac-avatar-edit i, .ac-avatar-edit svg { width: 16px; height: 16px; }
.ac-avatar-edit:hover { transform: scale(1.08); }
.ac-photo { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.ac-photo-img {
  flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(140deg, #0a3d91, #0b5bc0 45%, #0a96a3); color: #fff; font-size: 24px; font-weight: 800;
  box-shadow: 0 0 0 4px #e7f2fd;
}
.ac-photo-text { display: grid; gap: 2px; min-width: 0; }
.ac-photo-text b { font-size: 15px; color: #0a1f5c; }
.ac-photo-text small { color: #6b7690; font-size: 13px; }
.ac-photo-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ac-photo-btn, .ac-photo-remove {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.ac-photo-btn { background: #0b4fb3; color: #fff; }
.ac-photo-btn:hover { background: #0a3d91; }
.ac-photo-remove { border: 1px solid #f2c4cc; background: #fff; color: #c02a3b; }
.ac-photo-remove:hover { background: #fdecef; }
.ac-photo-btn:focus-within, .ac-avatar-edit:focus-within { outline: 2px solid #0a96a3; outline-offset: 2px; }
.ac-who { position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; min-width: 0; max-width: 100%; }
.ac-name { font-size: 18px; font-weight: 800; line-height: 1.25; }
.ac-email { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; opacity: .85; }
/* email verified: tick after the address; not verified: small amber pill */
.ac-email-row { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.ac-verified { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #22c58b; color: #fff; font-size: 11px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.ac-unverified { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 3px 10px; border-radius: 20px; background: #ffe8c7; color: #8a4b08; font-size: 11.5px; font-weight: 700; }
.ac-unverified:hover { background: #fff; }
.ac-field-badge { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; background: #fff3e2; color: #9a5b12; font-size: 12px; font-style: normal; font-weight: 700; pointer-events: none; }
.ac-field-badge.is-ok { background: #e3f6ec; color: #0d7a43; }
.st-field:has(.ac-field-badge) input { padding-right: 124px; text-overflow: ellipsis; }
.ac-since { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 12px; border-radius: 20px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); }
.ac-since i { color: #8ff0e6; }

.ac-nav { display: grid; gap: 4px; padding: 14px 12px 6px; }
.ac-nav a, .ac-signout button {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px;
  font-size: 14.5px; font-weight: 600; color: #3c4a66; text-align: left; transition: background .25s, color .25s;
}
.ac-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: #f1f5fb; color: #5a6b8c; font-size: 17px; transition: background .3s, color .3s, transform .3s var(--ease); }
.ac-label { flex: 1; min-width: 0; }
.ac-count { min-width: 26px; height: 22px; padding: 0 8px; border-radius: 11px; background: #eef4fb; color: #3c4a66; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ac-nav a:hover { background: #f5f9fe; color: var(--navy); }
.ac-nav a:hover .ac-ico { color: var(--blue); transform: translateX(2px); }
.ac-nav a.active { background: linear-gradient(90deg, #e9f2fe, #eef9f8); color: var(--navy); }
.ac-nav a.active::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #0b5bc0, #0a96a3); }
.ac-nav a.active .ac-ico { background: linear-gradient(135deg, #0b5bc0, #0a96a3); color: #fff; box-shadow: 0 6px 14px rgba(11,91,192,.28); }
.ac-nav a.active .ac-count { background: #fff; color: var(--blue); }
.ac-signout { margin: 4px 12px 14px; padding-top: 10px; border-top: 1px dashed #dfe6f0; }
.ac-signout button { color: #c02a3b; }
.ac-signout .ac-ico { background: #fdeef1; color: #c02a3b; }
.ac-signout button:hover { background: #fff5f7; }

/* cards */
.ac-card { min-width: 0; padding: clamp(18px, calc(14 * var(--u)), 26px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(16,42,92,.05); }
.ac-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ac-card-head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--navy); }
.ac-card-head h2 > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eef4fb; color: var(--blue); font-size: 16px; }
.ac-card-head h2 small { font-size: 14px; font-weight: 600; color: var(--muted); }
.ac-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--blue-link); white-space: nowrap; }
.ac-link i { font-size: 12px; transition: transform .3s var(--ease); }
.ac-link:hover i { transform: translateX(3px); }
.ac-head-btn { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.ac-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1.5px solid #d5dfec; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; color: var(--navy-2); white-space: nowrap; transition: border-color .25s, background .25s, color .25s; }
.ac-btn-ghost:hover { border-color: var(--blue); background: #f2f7fe; color: var(--blue); }
.ac-btn-ghost i { font-size: 12px; }
.ac-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ac-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 20px; align-items: start; }
.ac-split--pw { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
.ac-side-stack { display: grid; gap: 20px; }
.ac-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.ac-note i { color: var(--blue); }

/* empty states */
.ac-empty { display: grid; justify-items: center; gap: 6px; padding: 34px 16px; text-align: center; }
.ac-empty[hidden] { display: none; }
.ac-empty--sm { padding: 18px 10px; }
.ac-empty-ico { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 8px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #f2f8ff, #e3eefc); color: var(--blue); font-size: 32px; }
.ac-empty--sm .ac-empty-ico { width: 60px; height: 60px; font-size: 24px; }
.ac-empty-ico--pink { background: radial-gradient(circle at 30% 30%, #fff3f8, #fde3ee); color: #e23d74; }
.ac-empty h3 { font-size: 19px; color: var(--navy); }
.ac-empty p { margin-bottom: 12px; font-size: 14.5px; color: var(--muted); }

/* dashboard */
.ac-welcome {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 28px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #062e6f 0%, #0b5bc0 60%, #0a96a3 100%);
  box-shadow: 0 16px 36px rgba(6,46,111,.22);
}
.ac-welcome::after { content: ""; position: absolute; right: 120px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); pointer-events: none; }
.ac-welcome > * { position: relative; z-index: 1; }
.ac-welcome-tag { display: inline-block; padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ac-welcome h2 { margin-top: 10px; font-size: clamp(21px, calc(15 * var(--f)), 27px); font-weight: 800; line-height: 1.2; }
.ac-welcome p { margin-top: 4px; font-size: 14.5px; opacity: .88; }
.ac-welcome-btn { flex: none; height: 46px; padding: 0 22px; border-radius: 12px; background: #fff; color: var(--navy-btn); font-weight: 700; box-shadow: 0 8px 20px rgba(3,20,60,.2); transition: transform .3s var(--ease), box-shadow .3s; }
.ac-welcome-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(3,20,60,.28); }

.ac-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ac-stats a {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  box-shadow: 0 8px 26px rgba(16,42,92,.05); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.ac-stats a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 30%, #fff); box-shadow: 0 14px 30px rgba(16,42,92,.1); }
.ac-stat-ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--tone); font-size: 21px; }
.ac-stats b { display: block; font-size: 21px; font-weight: 800; line-height: 1.15; color: var(--navy); }
.ac-stats small { font-size: 13px; color: var(--muted); }

.ac-rows { display: grid; gap: 10px; }
.ac-rows a, .ac-security {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.ac-rows a:hover, .ac-security:hover { border-color: #b8cbe4; background: #fbfdff; box-shadow: var(--shadow-sm); }
.ac-row-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #eef4fb; color: var(--blue); font-size: 18px; }
.ac-row-main b, .ac-security b { display: block; color: var(--navy-2); }
.ac-row-main small, .ac-security small { display: block; font-size: 12.5px; color: var(--muted); }
.ac-row-total { color: var(--navy); }
.ac-row-go { color: #9aa4b8; font-size: 12px; transition: transform .3s var(--ease); }
.ac-rows a:hover .ac-row-go, .ac-security:hover .ac-row-go { transform: translateX(3px); color: var(--blue); }
.ac-security { grid-template-columns: auto minmax(0, 1fr) auto; margin-top: 18px; background: linear-gradient(120deg, #f4f9ff, #f1fbfa); }
.ac-security .ac-row-ico { background: #fff; color: #0a96a3; }

.ac-addr-mini { padding: 16px; border-radius: 14px; background: #f7faff; border: 1px dashed #cfdcee; }
.ac-addr-mini b { color: var(--navy-2); }
.ac-addr-mini p { margin: 4px 0 8px; font-size: 14px; line-height: 1.6; color: #4f5b73; }
.ac-addr-mini span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #4f5b73; }
.ac-addr-mini span i { color: var(--blue); }

/* order history */
.ac-filter { display: flex; gap: 8px; margin-bottom: 18px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.ac-filter::-webkit-scrollbar { display: none; }
.ac-filter a { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 14px; border: 1.5px solid #e1e8f2; border-radius: 20px; font-size: 13.5px; font-weight: 700; color: #4f5b73; transition: border-color .25s, background .25s, color .25s; }
.ac-filter a span { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: #eef4fb; font-size: 11.5px; display: grid; place-items: center; }
.ac-filter a:hover { border-color: #b8cbe4; color: var(--navy); }
.ac-filter a.active { border-color: transparent; background: linear-gradient(120deg, #0b5bc0, #0a96a3); color: #fff; box-shadow: 0 6px 16px rgba(11,91,192,.25); }
.ac-filter a.active span { background: rgba(255,255,255,.22); }

.ac-orders { display: grid; gap: 14px; }
.ac-order { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.ac-order:hover { border-color: #c5d6ec; box-shadow: 0 12px 28px rgba(16,42,92,.08); transform: translateY(-2px); }
.ac-order-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: linear-gradient(90deg, #f6f9fe, #f5fbfb); border-bottom: 1px solid var(--line); }
.ac-order-id b { display: block; color: var(--navy); }
.ac-order-id small { font-size: 12.5px; color: var(--muted); }
.ac-order-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px; }
.ac-thumbs { display: flex; }
.ac-thumb { display: grid; place-items: center; flex: none; width: 54px; height: 54px; margin-left: -12px; overflow: hidden; border: 2px solid #fff; border-radius: 12px; background: #f4f8fd; box-shadow: 0 2px 8px rgba(16,42,92,.1); }
.ac-thumb:first-child { margin-left: 0; }
.ac-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ac-thumb--more { background: var(--navy-2); color: #fff; font-size: 13px; font-weight: 700; }
.ac-order-names { min-width: 0; }
.ac-order-names b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy-2); }
.ac-order-names small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.ac-order-names .st-badge { height: 20px; padding: 0 8px; font-size: 11px; }
.ac-order-total { text-align: right; }
.ac-order-total small { display: block; font-size: 12px; color: var(--muted); }
.ac-order-total b { font-size: 18px; color: var(--navy); }
.ac-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 16px; }
.ac-order-track { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: #4f5b73; }
.ac-order-track i { color: var(--blue); }

/* order details */
.ac-back { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 14px; font-weight: 700; color: var(--blue-link); }
.ac-back i { font-size: 12px; transition: transform .3s var(--ease); }
.ac-back:hover i { transform: translateX(-3px); }
.ac-od-head { display: grid; grid-template-columns: 1.3fr repeat(3, auto); gap: 16px 28px; align-items: center; background: linear-gradient(120deg, #fff 40%, #f2f8ff); }
.ac-od-head small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ac-od-head b { font-size: 16px; color: var(--navy); }
.ac-od-id b { font-size: 21px; font-weight: 800; }
.ac-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.ac-alert--err { background: #fdeef1; color: #a3202f; }
/* status history: the line runs through the middle of every dot (x = 9px), text starts well clear of it */
.ac-timeline { position: relative; display: grid; gap: 18px; margin: 22px 0 0; padding: 18px 0 0 40px; list-style: none; border-top: 1px dashed #dfe6f0; }
.ac-timeline::before { content: ""; position: absolute; left: 8px; top: 30px; bottom: 10px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #0a96a3, #dfe6f0); }
.ac-timeline li { position: relative; padding-left: 4px; font-size: 14px; color: #4f5b73; list-style: none; }
.ac-timeline li::marker { content: none; }
.ac-timeline li::before { content: ""; position: absolute; left: -38px; top: 5px; box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #0a96a3; }
.ac-timeline li:first-child::before { background: #0a96a3; box-shadow: 0 0 0 4px rgba(10,150,163,.18); }
.ac-timeline b { color: var(--navy-2); }
.ac-timeline small { display: block; font-size: 12.5px; color: var(--muted); }
.ac-timeline p { margin-top: 4px; }
.ac-items { display: grid; }
.ac-items li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ac-items li:first-child { padding-top: 0; }
.ac-items li:last-child { padding-bottom: 0; border-bottom: 0; }
.ac-item-img { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #f4f8fd; }
.ac-item-img img { width: 100%; height: 100%; object-fit: contain; }
.ac-item-info { display: grid; gap: 3px; min-width: 0; }
.ac-item-info a, .ac-item-info b { font-weight: 700; color: var(--navy-2); line-height: 1.3; }
.ac-item-info a:hover { color: var(--blue); }
.ac-item-info small { font-size: 13px; color: var(--muted); }
/* order details – prescription upload / received */
.ac-rx-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px; border: 1.5px dashed #f2b8cf; border-radius: 14px; background: #fff7fa; }
.ac-rx-box.is-done { border-style: solid; border-color: #bfe6d3; background: #f2faf6; }
.ac-rx-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fde9f3; color: #d6347f; font-size: 19px; }
.ac-rx-box.is-done .ac-rx-ico { background: #e5f6ee; color: #0b8a5f; }
.ac-rx-text { display: grid; gap: 4px; flex: 1 1 240px; min-width: 0; }
.ac-rx-text b { font-weight: 700; color: var(--navy-2); }
.ac-rx-text small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.ac-rx-text a { font-weight: 600; color: #0b8a5f; text-decoration: underline; text-underline-offset: 2px; }
.ac-rx-btn { flex: none; cursor: pointer; }
.ac-rx-btn:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.ac-rx-btn.is-busy { opacity: .7; pointer-events: none; }
@media (max-width: 575px) { .ac-rx-btn { width: 100%; } }
.ac-rx { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 8px; background: #fff0e6; color: #c2531b; font-size: 11.5px; font-style: normal; font-weight: 700; }
.ac-item-total { color: var(--navy); }
.ac-help { display: grid; justify-items: center; gap: 4px; text-align: center; background: linear-gradient(160deg, #f2f8ff, #effaf8); }
.ac-help-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 16px; background: #fff; color: #0a96a3; font-size: 24px; box-shadow: var(--shadow-sm); }
.ac-help b { color: var(--navy); }
.ac-help p { font-size: 13.5px; color: var(--muted); }
.ac-help .st-wa { margin-top: 12px; background: #fff; }
.ac-help-call { width: 100%; margin-top: 8px; }

/* wishlist (data-page=shop) */
@media (min-width: 768px) { :where(body[data-page=shop]) .ac-main .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 0; } }

/* addresses */
.ac-addrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ac-addr { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .3s, box-shadow .3s; }
.ac-addr:hover { border-color: #c5d6ec; box-shadow: 0 10px 24px rgba(16,42,92,.07); }
.ac-addr.is-default { border-color: #9cc3ef; background: linear-gradient(160deg, #f5f9ff, #fff 60%); }
.ac-addr-top { display: flex; align-items: center; gap: 10px; }
.ac-addr-top b { flex: 1; min-width: 0; color: var(--navy); }
.ac-addr-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #eef4fb; color: var(--blue); font-size: 16px; }
.ac-addr.is-default .ac-addr-ico { background: linear-gradient(135deg, #0b5bc0, #0a96a3); color: #fff; }
.ac-default { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 12px; background: #e5f6ee; color: #0b8a5f; font-size: 12px; font-weight: 700; }
.ac-addr p { font-size: 14px; line-height: 1.6; color: #4f5b73; }
.ac-addr-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #4f5b73; }
.ac-addr-phone i { color: var(--blue); }
.ac-addr-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px dashed #dfe6f0; }
.ac-addr-actions button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--blue-link); transition: background .25s, color .25s; }
.ac-addr-actions button:hover { background: #eef4fb; }
.ac-addr-actions .is-danger { margin-left: auto; color: #c02a3b; }
.ac-addr-actions .is-danger:hover, .ac-addr-actions .is-confirm { background: #fdeef1; }
.ac-addr-actions .is-confirm { color: #a3202f; animation: acNudge .4s var(--ease); }
@keyframes acNudge { 30% { transform: translateX(-3px); } 60% { transform: translateX(3px); } }
.ac-addr-form { margin-bottom: 20px; padding: 20px; border-radius: 16px; background: #f7faff; border: 1.5px solid #d6e4f5; scroll-margin-top: 120px; animation: acIn .35s var(--ease); }
.ac-addr-form[hidden] { display: none; }
.ac-addr-form h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 16px; color: var(--navy); }
.ac-addr-form h3 i { color: var(--blue); }
.ac-addr-form .st-field :is(input, select) { background: #fff; }
.ac-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.ac-form-actions .btn { height: 40px; padding: 0 20px; border-radius: 10px; }
@keyframes acIn { from { opacity: 0; transform: translateY(-8px); } }

/* change password */
.ac-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: -4px; }
.ac-strength span { height: 5px; border-radius: 3px; background: #e5ebf3; transition: background .3s; }
.ac-strength small { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ac-strength[data-level="1"] span:nth-child(-n+1) { background: #e04f61; }
.ac-strength[data-level="2"] span:nth-child(-n+2) { background: #f0a020; }
.ac-strength[data-level="3"] span:nth-child(-n+3) { background: #2b8be0; }
.ac-strength[data-level="4"] span { background: #11a06a; }
.ac-strength[data-level="1"] small { color: #c02a3b; }
.ac-strength[data-level="4"] small { color: #0b8a5f; }
.ac-tips { background: linear-gradient(160deg, #f2f8ff, #effaf8); }
.ac-tips-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: #0a96a3; font-size: 24px; box-shadow: var(--shadow-sm); }
.ac-tips h3 { margin: 14px 0 12px; font-size: 16px; color: var(--navy); }
.ac-tips ul { display: grid; gap: 10px; }
.ac-tips li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #4f5b73; transition: color .25s; }
.ac-tips li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e5ebf3; color: transparent; font-size: 11px; transition: background .25s, color .25s; }
.ac-tips li.ok { color: var(--navy-2); font-weight: 600; }
.ac-tips li.ok i { background: #11a06a; color: #fff; }
.ac-tips p { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #cfdcee; font-size: 13px; color: var(--muted); line-height: 1.55; }

@media (max-width: 1099px) {
  .ac-shell { grid-template-columns: 1fr; gap: 18px; }
  /* top: 0 – the desktop sticky offset (110px) would otherwise push the card down over the content below */
  .ac-side { position: relative; top: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .ac-profile { grid-template-columns: auto minmax(0, 1fr); justify-items: start; gap: 14px; padding: 18px; text-align: left; }
  .ac-avatar { width: 60px; height: 60px; font-size: 22px; }
  .ac-avatar-edit { width: 28px; height: 28px; font-size: 13px; }
  .ac-avatar-edit i, .ac-avatar-edit svg { width: 13px; height: 13px; }
  .ac-who { justify-items: start; }
  .ac-since { margin-top: 4px; }
  .ac-nav { display: flex; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: none; }
  .ac-nav::-webkit-scrollbar { display: none; }
  .ac-nav a { flex: none; width: auto; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; }
  .ac-nav a.active::before { display: none; }
  .ac-nav .ac-ico { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
  .ac-signout { position: absolute; top: 14px; right: 14px; margin: 0; padding: 0; border: 0; }
  .ac-signout button { padding: 0; }
  .ac-signout .ac-label { display: none; }
  .ac-signout .ac-ico { background: rgba(255,255,255,.18); color: #fff; }
  .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-split, .ac-split--pw { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  main.ac-page > .ac-shell { margin-top: 16px; gap: 16px; }   /* beats the general section spacing (main > section) */
  .ac-main { gap: 16px; }
  .ac-card { padding: 16px; border-radius: 16px; }
  .ac-welcome { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .ac-stats { gap: 10px; }
  .ac-stats a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .ac-stats b { font-size: 18px; }
  .ac-grid-2, .ac-addrs { grid-template-columns: 1fr; }
  .ac-rows a { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ac-rows a .st-badge { grid-column: 2; grid-row: 2; justify-self: start; }
  .ac-rows a .ac-row-total { grid-column: 3; grid-row: 1 / span 2; }
  .ac-rows .ac-row-go { display: none; }
  .ac-order-body { grid-template-columns: minmax(0, 1fr) auto; }
  .ac-thumbs { grid-column: 1 / -1; }
  .ac-order-foot { flex-wrap: wrap; }
  .ac-order-foot .ac-btn-ghost { width: 100%; }
  .ac-od-head { grid-template-columns: 1fr 1fr; }
  .ac-od-id { grid-column: 1 / -1; }
  .ac-items li { grid-template-columns: 56px minmax(0, 1fr); }
  .ac-item-img { width: 56px; height: 56px; }
  .ac-item-total { grid-column: 2; }
  .ac-card-head { flex-wrap: wrap; }
  .ac-form-actions .btn, .ac-form-actions .ac-btn-ghost { flex: 1; }
}

/* status badges */
:where(body[data-page=store]) .st-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 700; text-transform: capitalize; background: #eef4fb; color: #3c4a66; }
:where(body[data-page=store]) .st-badge--confirmed, :where(body[data-page=store]) .st-badge--processing { background: #e7f2fd; color: #0b5bc0; }
:where(body[data-page=store]) .st-badge--shipped { background: #fff0e6; color: #c2531b; }
:where(body[data-page=store]) .st-badge--delivered, :where(body[data-page=store]) .st-badge--pay-paid { background: #e5f6ee; color: #0b8a5f; }
:where(body[data-page=store]) .st-badge--cancelled, :where(body[data-page=store]) .st-badge--pay-failed { background: #fde9ee; color: #c02a3b; }
:where(body[data-page=store]) .st-badge--pay-pending { background: #fff6e0; color: #a86b00; }
:where(body[data-page=store]) .st-paystate { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: #4f5b73; }

/* order confirmation + tracking */
:where(body[data-page=store]) .st-success { display: flex; gap: 16px; align-items: flex-start; padding: 16px; margin-bottom: 18px; border-radius: 14px; background: linear-gradient(120deg, #e5f6ee, #eef9f4); }
:where(body[data-page=store]) .st-success-ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: #11a06a; color: #fff; font-size: 22px; animation: stPop .6s var(--ease) both; }
:where(body[data-page=store]) .st-success h2 { font-size: 18px; color: #0b5a3e; }
:where(body[data-page=store]) .st-success p { margin-top: 4px; font-size: 14px; color: #2d5a48; }
@keyframes stPop { from { transform: scale(.4); opacity: 0; } }
:where(body[data-page=store]) .st-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 6px 0 4px; counter-reset: s; }
:where(body[data-page=store]) .st-steps li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; color: #8a94a8; }
:where(body[data-page=store]) .st-steps li::before { content: ""; position: absolute; top: 21px; left: -50%; right: 50%; height: 3px; background: #e1e8f2; z-index: 0; }
:where(body[data-page=store]) .st-steps li:first-child::before { display: none; }
:where(body[data-page=store]) .st-steps li span { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #eef2f7; color: #9aa4b8; font-size: 18px; transition: background .3s, color .3s; }
:where(body[data-page=store]) .st-steps li.done { color: var(--navy-2); font-weight: 600; }
:where(body[data-page=store]) .st-steps li.done span { background: linear-gradient(135deg, #0457b4, #0a96a3); color: #fff; }
:where(body[data-page=store]) .st-steps li.done::before { background: #0a96a3; }
:where(body[data-page=store]) .st-tracking { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #fff0e6; color: #8a3d12; font-size: 14px; }
:where(body[data-page=store]) .st-track { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(16px, calc(14 * var(--u)), 28px); align-items: start; margin-top: clamp(18px, calc(16 * var(--u)), 30px); }
:where(body[data-page=store]) .st-track-form { display: grid; gap: 12px; }
:where(body[data-page=store]) .st-track-form .st-btn { margin-top: 2px; }
:where(body[data-page=store]) .st-track-head { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed #dfe6f0; }
:where(body[data-page=store]) .st-track-head small { display: block; font-size: 12px; color: var(--muted); }
:where(body[data-page=store]) .st-track-head b { color: var(--navy); }
:where(body[data-page=store]) .st-track-result .st-mini { margin-top: 18px; }
:where(body[data-page=store]) .st-history { margin-top: 18px; padding-left: 16px; border-left: 2px solid #e1e8f2; display: grid; gap: 12px; }
:where(body[data-page=store]) .st-history li { position: relative; font-size: 13.5px; color: #4f5b73; }
:where(body[data-page=store]) .st-history li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #0a96a3; }
:where(body[data-page=store]) .st-history b { text-transform: capitalize; color: var(--navy-2); }
:where(body[data-page=store]) .st-history small { color: var(--muted); }
:where(body[data-page=store]) .st-history p { margin-top: 2px; }

/* wishlist page uses the shop cards (data-page=shop) */
.st-wish { margin-top: clamp(18px, calc(16 * var(--u)), 30px); }
:where(body[data-page=shop]) .st-page { padding-bottom: clamp(40px, calc(30 * var(--u)), 70px); }
:where(body[data-page=shop]) .st-hero { padding: clamp(26px, calc(22 * var(--u)), 46px) 0 clamp(22px, calc(16 * var(--u)), 34px); background: linear-gradient(120deg, #e8f2fd 0%, #f2f8fe 55%, #e5f4f5 100%); }
:where(body[data-page=shop]) .st-crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
:where(body[data-page=shop]) .st-crumbs > i { font-size: 10px; opacity: .6; }
:where(body[data-page=shop]) .st-title { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: clamp(26px, calc(20 * var(--f)), 38px); font-weight: 800; color: var(--navy); }
:where(body[data-page=shop]) .st-title > i { color: var(--pink); }
:where(body[data-page=shop]) .st-text { margin-top: 8px; color: #4f5b73; }
:where(body[data-page=shop]) .st-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); }
:where(body[data-page=shop]) .st-empty { text-align: center; padding: 48px 20px; }
:where(body[data-page=shop]) .st-empty-ico { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fde9f3; color: var(--pink); font-size: 34px; }
:where(body[data-page=shop]) .st-empty h2 { margin-top: 14px; font-size: 22px; color: var(--navy); }
:where(body[data-page=shop]) .st-empty p { margin: 6px 0 18px; color: var(--muted); }

/* ---------------- responsive ---------------- */
@media (max-width: 1099px) {
  :where(body[data-page=store]) .st-layout, :where(body[data-page=store]) .st-layout--checkout, :where(body[data-page=store]) .st-track { grid-template-columns: 1fr; }
  :where(body[data-page=store]) .st-sticky { position: static; }
  :where(body[data-page=store]) .st-layout--checkout .st-summary { order: -1; }
}
@media (max-width: 767px) {
  :where(body[data-page=store]) .st-grid { grid-template-columns: 1fr; }
  :where(body[data-page=store]) .st-line { grid-template-columns: 72px 1fr auto; gap: 10px; }
  :where(body[data-page=store]) .st-line-img { width: 72px; height: 72px; }
  :where(body[data-page=store]) .st-card { border-radius: 16px; padding: 16px; }
  :where(body[data-page=store]) .st-orders a { grid-template-columns: 1fr auto; }
  :where(body[data-page=store]) .st-orders a > i { display: none; }
  :where(body[data-page=store]) .st-track-head { grid-template-columns: 1fr 1fr; }
  :where(body[data-page=store]) .st-steps li { font-size: 11.5px; }
  :where(body[data-page=store]) .st-pay-logos { margin-left: 56px; }
  .pd-opt-btn { min-height: 42px; }
}
