/* MakerCart — brand palette + component kit */
:root {
  --teal: #00B3B3;
  --deep-teal: #007F83;
  --navy: #102A35;
  --aqua: #35D6D2;
  --ice: #F2FBFB;
  --white: #FFFFFF;

  --nav: var(--navy);
  --nav-2: #0c222b;
  --cta: var(--teal);
  --cta-hover: var(--deep-teal);
  --cta-text: var(--white);
  --price: var(--deep-teal);
  --link: var(--deep-teal);
  --link-hover: var(--teal);
  --bg: var(--ice);
  --card: var(--white);
  --text: var(--navy);
  --muted: #4a6570;
  --border: #c5e4e4;
  --soft: #e8f8f8;
  --warn-bg: #fff4e5;
  --warn: #8a5a00;
  --danger: #b12704;
  --danger-bg: #fef0e6;

  --font: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-serif: "Libre Baskerville", Georgia, serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --r1: 4px; --r2: 8px; --r3: 12px;
  --shadow-1: 0 1px 2px rgba(16, 42, 53, 0.06), 0 1px 1px rgba(16, 42, 53, 0.04);
  --shadow-2: 0 4px 16px rgba(0, 127, 131, 0.14);
  --shadow-3: 0 12px 40px rgba(16, 42, 53, 0.25);
  --tap: 44px;
  --hdr-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tiny { font-size: 0.75rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 2px; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--aqua); color: var(--navy); padding: 10px 14px; border-radius: var(--r1); font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 40px; padding: 0.5rem 1rem;
  border-radius: var(--r2); border: 1px solid transparent;
  font-weight: 600; font-size: 0.92rem; line-height: 1.1;
  text-decoration: none !important; white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--cta); color: var(--cta-text); border-color: var(--deep-teal); }
.btn-primary:hover:not(:disabled) { background: var(--cta-hover); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--deep-teal); border-color: var(--teal); }
.btn-secondary:hover:not(:disabled) { background: var(--ice); color: var(--deep-teal); border-color: var(--deep-teal); }
.btn-ghost { background: transparent; color: var(--deep-teal); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--teal); background: var(--white); color: var(--deep-teal); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover:not(:disabled) { background: var(--deep-teal); color: var(--white); }
.btn-aqua { background: var(--aqua); color: var(--navy); }
.btn-aqua:hover:not(:disabled) { background: var(--white); color: var(--navy); }
.btn-link { background: none; border: 0; color: var(--link); padding: 0.25rem 0; min-height: 0; font-weight: 600; }
.btn-link:hover { color: var(--link-hover); text-decoration: underline !important; }
.btn-danger-link { background: none; border: 0; color: var(--danger); padding: 0.25rem 0; min-height: 0; font-weight: 600; }
.btn-block { width: 100%; }
.btn-lg { min-height: 48px; font-size: 1rem; padding: 0.7rem 1.2rem; }
.btn-sm { min-height: 32px; padding: 0.3rem 0.7rem; font-size: 0.82rem; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after { border-color: var(--border); border-top-color: var(--deep-teal); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 32px; padding: 0.25rem 0.75rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--border); color: var(--navy);
  font-size: 0.85rem; font-weight: 500; white-space: nowrap; text-decoration: none !important;
}
.chip:hover { border-color: var(--teal); color: var(--deep-teal); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip .x { font-weight: 700; opacity: 0.75; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip-scroll { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip-scroll::-webkit-scrollbar { display: none; }
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.72rem; font-weight: 700; line-height: 1; letter-spacing: 0.01em;
  padding: 0.28rem 0.45rem; border-radius: var(--r1);
  background: var(--soft); color: var(--deep-teal); white-space: nowrap;
}
.badge-stock { background: #d6f5f4; color: var(--deep-teal); }
.badge-low { background: var(--warn-bg); color: var(--warn); }
.badge-out { background: var(--danger-bg); color: var(--danger); }
.badge-lead { background: var(--ice); color: var(--muted); border: 1px solid var(--border); }
.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.badge-kit { background: var(--navy); color: var(--aqua); }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* ---------- Skeletons ---------- */
.skel {
  background: linear-gradient(90deg, #e3f1f1 25%, #f2fbfb 37%, #e3f1f1 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--r1);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skel-card { padding: var(--s3); background: var(--white); border-radius: var(--r2); border: 1px solid var(--border); }
.skel-card .skel-img { aspect-ratio: 1; margin-bottom: var(--s3); }
.skel-line { height: 12px; margin: 8px 0; }
.skel-line.w60 { width: 60%; } .skel-line.w40 { width: 40%; } .skel-line.w80 { width: 80%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--nav); color: var(--white); position: sticky; top: 0; z-index: 50;
  transition: box-shadow 0.15s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.hdr-main {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem;
  min-height: var(--hdr-h); max-width: 1600px; margin: 0 auto;
  background: var(--nav);
}
.hdr-box {
  color: var(--white); background: transparent; border: 1px solid transparent; border-radius: var(--r1);
  padding: 0.35rem 0.5rem; line-height: 1.15; white-space: nowrap; text-align: left; text-decoration: none !important;
  min-height: var(--tap); display: flex; align-items: center; gap: 0.35rem;
}
.hdr-box:hover { border-color: var(--aqua); color: var(--white); }
.hdr-box .tiny { color: #a8c5cc; display: block; font-weight: 400; }
.hdr-box strong { font-size: 0.88rem; color: var(--white); }
.hdr-icon-btn { background: none; border: 1px solid transparent; color: var(--white); width: var(--tap); height: var(--tap); border-radius: var(--r1); display: none; place-items: center; }
.hdr-icon-btn:hover { border-color: var(--aqua); }
.logo { display: flex; align-items: center; gap: 0.5rem; color: var(--white) !important; text-decoration: none !important; padding: 0.2rem 0.4rem; border: 1px solid transparent; border-radius: var(--r1); flex-shrink: 0; }
.logo:hover { border-color: var(--aqua); }
.logo-img { height: 60px; width: auto; max-width: 140px; object-fit: contain; background: var(--white); border-radius: var(--r1); padding: 2px; }
.logo-mark { font-weight: 700; color: var(--aqua); font-size: 0.95rem; }
.deliver svg { color: var(--aqua); flex-shrink: 0; }

.hdr-search { flex: 1; display: flex; height: 44px; border-radius: var(--r2); min-width: 0; background: var(--white); box-shadow: 0 0 0 2px transparent; position: relative; }
.hdr-search:focus-within { box-shadow: 0 0 0 3px var(--aqua); }
.hdr-search select { border: 0; background: var(--ice); color: var(--navy); padding: 0 0.5rem; font-size: 0.8rem; max-width: 140px; border-right: 1px solid var(--border); border-radius: var(--r2) 0 0 var(--r2); cursor: pointer; }
.search-field { flex: 1; position: relative; min-width: 0; display: flex; }
.search-field input { flex: 1; border: 0; padding: 0 0.85rem; font-size: 1rem; outline: none; min-width: 0; color: var(--navy); background: transparent; }
.search-go { width: 52px; border: 0; background: var(--teal); color: var(--white); display: grid; place-items: center; border-radius: 0 var(--r2) var(--r2) 0; }
.search-go:hover { background: var(--deep-teal); }

.suggest-box {
  position: absolute; top: calc(100% + 6px); left: 0; right: -52px; z-index: 70;
  background: var(--white); color: var(--navy); border-radius: var(--r2); box-shadow: var(--shadow-3);
  border: 1px solid var(--border); max-height: min(70vh, 560px); overflow: auto; padding: 0.35rem 0;
}
.sug-group { padding: 0.25rem 0; }
.sug-group + .sug-group { border-top: 1px solid var(--border); }
.sug-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0.4rem 0.9rem 0.2rem; display: flex; justify-content: space-between; }
.sug-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.9rem; cursor: pointer; color: var(--navy); text-decoration: none !important; min-height: 40px; }
.sug-item:hover, .sug-item.is-active { background: var(--ice); color: var(--navy); }
.sug-item img { width: 40px; height: 40px; object-fit: contain; background: var(--ice); border-radius: var(--r1); flex-shrink: 0; }
.sug-item .sug-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }
.sug-item .sug-sub { font-size: 0.75rem; color: var(--muted); }
.sug-item .sug-price { font-weight: 700; color: var(--price); font-size: 0.9rem; }
.sug-item mark { background: none; color: var(--deep-teal); font-weight: 700; }
.sug-icon { width: 20px; text-align: center; color: var(--muted); flex-shrink: 0; }

.account { position: relative; }
.account-trigger { background: none; border: 0; color: inherit; display: flex; align-items: center; gap: 0.4rem; padding: 0; text-align: left; }
.account-icon { display: none; }
.user-pic { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--deep-teal); }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 260px;
  background: var(--white); color: var(--navy); border-radius: var(--r2); box-shadow: var(--shadow-3); border: 1px solid var(--border);
  padding: 0.75rem;
}
.account-menu .menu-signin { text-align: center; padding: 0.25rem 0 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; }
.account-menu a, .account-menu button.menu-row { display: block; width: 100%; text-align: left; padding: 0.55rem 0.5rem; border-radius: var(--r1); color: var(--navy); background: none; border: 0; font-size: 0.92rem; text-decoration: none !important; }
.account-menu a:hover, .account-menu button.menu-row:hover { background: var(--ice); color: var(--deep-teal); }
.account-menu .menu-sep { border-top: 1px solid var(--border); margin: 0.4rem 0; }

.cart-btn { gap: 0.2rem; }
.cart-icon-wrap { position: relative; display: inline-flex; }
.cart-count {
  position: absolute; top: -4px; right: -8px; min-width: 1.2rem; height: 1.2rem; padding: 0 0.3rem;
  border-radius: 999px; background: var(--aqua); color: var(--navy); font-weight: 700; font-size: 0.72rem;
  line-height: 1.2rem; text-align: center; box-shadow: 0 0 0 2px var(--nav);
}
.cart-count.bump { animation: bump 0.4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.cart-label { font-weight: 700; font-size: 0.92rem; align-self: flex-end; padding-bottom: 2px; }

.hdr-nav { background: var(--nav-2); display: flex; gap: 0.15rem; padding: 0.3rem 0.75rem; overflow-x: auto; align-items: center; scrollbar-width: none; }
.hdr-nav::-webkit-scrollbar { display: none; }
.hdr-nav > *, .nav-cats > * {
  background: transparent; border: 1px solid transparent; color: var(--white);
  padding: 0.35rem 0.6rem; border-radius: var(--r1); font-size: 0.88rem; white-space: nowrap; text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 34px;
}
.nav-cats { display: contents; }
.hdr-nav > *:hover, .nav-cats > *:hover { border-color: var(--aqua); color: var(--aqua); }
.hdr-nav .nav-all { font-weight: 700; }
.hdr-nav .nav-accent { color: var(--aqua); font-weight: 700; }
.hdr-nav .is-current { border-color: rgba(53, 214, 210, 0.5); color: var(--aqua); }
.deliver-strip { display: none; width: 100%; border: 0; background: #163644; color: #d6f5f4; font-size: 0.85rem; padding: 0.5rem 0.9rem; text-align: left; align-items: center; gap: 0.4rem; min-height: 38px; }
.deliver-strip svg { color: var(--aqua); }

/* ---------- Drawers / modals ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(16, 42, 53, 0.5); z-index: 80; animation: fade 0.15s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 81; width: min(420px, 92vw);
  background: var(--white); display: flex; flex-direction: column; box-shadow: var(--shadow-3);
}
.drawer-left { left: 0; animation: slideL 0.2s ease; width: min(360px, 88vw); }
.drawer-right { right: 0; animation: slideR 0.2s ease; }
@keyframes slideL { from { transform: translateX(-100%); } }
@keyframes slideR { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); background: var(--ice); }
.drawer-head h2 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.drawer-head-dark { background: var(--navy); color: var(--white); font-weight: 700; font-size: 1.05rem; }
.drawer-head-dark .icon-close { color: var(--white); }
.drawer-body { flex: 1; overflow: auto; padding: 1rem; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--border); padding: 0.9rem 1rem; background: var(--white); }
.drawer-foot:empty { display: none; }
.icon-close { background: none; border: 0; width: var(--tap); height: var(--tap); font-size: 1.1rem; color: var(--navy); border-radius: var(--r1); }
.icon-close:hover { background: rgba(0, 0, 0, 0.06); }
.menu-section { padding: 0.25rem 0 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }
.menu-section h3 { font-size: 1rem; margin: 0.25rem 0 0.4rem; color: var(--navy); }
.menu-section a, .menu-section button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0.6rem 0.4rem; min-height: var(--tap); color: var(--navy); background: none; border: 0; border-radius: var(--r1); text-align: left; text-decoration: none !important; }
.menu-section a:hover, .menu-section button:hover { background: var(--ice); color: var(--deep-teal); }
.menu-section .count { color: var(--muted); font-size: 0.8rem; }

.modal-wrap { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(16, 42, 53, 0.55); animation: fade 0.15s ease; }
.modal {
  background: var(--white); border-radius: var(--r3); width: min(560px, 100%); max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-3); border-top: 4px solid var(--teal); animation: pop 0.18s ease;
}
.modal.modal-wide { width: min(1000px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(0.98); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem 0.25rem; }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-body { padding: 0.75rem 1.25rem 1.25rem; }
.modal-actions { display: flex; gap: var(--s2); justify-content: flex-end; margin-top: var(--s4); flex-wrap: wrap; }

.sheet-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(16, 42, 53, 0.55); display: flex; align-items: flex-end; animation: fade 0.15s; }
.sheet { background: var(--white); width: 100%; max-height: 92vh; border-radius: var(--r3) var(--r3) 0 0; display: flex; flex-direction: column; animation: up 0.2s ease; }
@keyframes up { from { transform: translateY(100%); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); }
.sheet-head h2 { margin: 0; font-size: 1.1rem; }
.sheet-body { flex: 1; overflow: auto; padding: 0.5rem 1rem 1rem; }
.sheet-foot { padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: flex; gap: var(--s2); }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(560px, calc(100vw - 24px)); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 0.75rem; width: 100%;
  background: var(--navy); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--r2);
  box-shadow: var(--shadow-3); border-left: 4px solid var(--teal); font-size: 0.92rem; animation: up 0.2s ease;
}
.toast.is-error { border-left-color: var(--danger); }
.toast .toast-msg { flex: 1; }
.toast .toast-action { background: none; border: 0; color: var(--aqua); font-weight: 700; padding: 0.25rem 0.4rem; white-space: nowrap; }
.toast .toast-close { background: none; border: 0; color: #a8c5cc; font-size: 1rem; }

/* ---------- Layout ---------- */
#app { max-width: 1600px; margin: 0 auto; padding: 0 0 2rem; min-height: 60vh; outline: none; }
.page { padding: 0 1rem; }
.section { margin: 1rem; background: var(--card); border-radius: var(--r2); padding: 1.1rem 1.2rem 1.25rem; border: 1px solid var(--border); }
.section-plain { margin: 1.25rem 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.section-head .see-all { font-size: 0.9rem; font-weight: 600; }
.breadcrumb { margin: 0.9rem 1rem 0; font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--deep-teal); }
.breadcrumb .sep { opacity: 0.6; }
.page-title { margin: 0.5rem 1rem 0.25rem; font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 700; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state .empty-icon { font-size: 2.4rem; margin-bottom: 0.5rem; }
.empty-state h2, .empty-state h3 { color: var(--navy); margin: 0.25rem 0 0.5rem; }
.empty-state p { max-width: 36rem; margin: 0 auto 1rem; }
.empty-state .chip-row { justify-content: center; }
.inline-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f3c7b5; border-radius: var(--r2); padding: 0.9rem 1rem; margin: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.notice { background: var(--soft); border: 1px solid var(--aqua); color: var(--deep-teal); border-radius: var(--r2); padding: 0.7rem 0.9rem; font-size: 0.9rem; }
.notice-warn { background: var(--warn-bg); border-color: #f0d3a0; color: var(--warn); }

/* ---------- Home ---------- */
.hero-band { background: linear-gradient(180deg, var(--navy) 0%, var(--deep-teal) 45%, var(--bg) 100%); padding: 1rem 1rem 0; }
.hero-card {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(53, 214, 210, 0.35) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--deep-teal) 48%, var(--teal) 100%);
  color: var(--white); border-radius: var(--r2); padding: 2rem 1.75rem; min-height: 210px;
  display: block; box-shadow: 0 2px 12px rgba(16, 42, 53, 0.2);
  max-width: 1568px; margin: 0 auto;
}
.hero-card h1 { margin: 0 0 0.5rem; font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 400; line-height: 1.1; }
.hero-card p { margin: 0; opacity: 0.92; max-width: 38rem; font-size: 1.05rem; }
.hero-ctas { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.hero-ctas .btn-outline-light { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.7); }
.hero-ctas .btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--aqua); color: var(--white); }
.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 0.9rem 1rem 0; }
.value-item { display: flex; gap: 0.7rem; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 0.75rem 0.9rem; }
.value-item .vi-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--deep-teal); display: grid; place-items: center; flex-shrink: 0; font-size: 1.05rem; }
.value-item strong { display: block; font-size: 0.92rem; }
.value-item span { font-size: 0.8rem; color: var(--muted); }
.welcome-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin: 1rem; }
.welcome-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.welcome-card h3 { margin: 0; font-size: 1.05rem; }
.welcome-card .thumbs { display: flex; gap: 0.4rem; }
.welcome-card .thumbs img { width: 56px; height: 56px; object-fit: contain; background: var(--ice); border-radius: var(--r1); }
.welcome-card .btn { align-self: flex-start; margin-top: auto; }
.auth-banner { background: var(--white); margin: 1rem 1rem 0; padding: 0.9rem 1.1rem; border-radius: var(--r2); border: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.auth-banner p { margin: 0; }
.google-btn { display: inline-flex; align-items: center; gap: 0.55rem; background: var(--white); color: var(--navy) !important; border: 1px solid var(--border); border-radius: var(--r2); padding: 0.55rem 1rem; font-weight: 600; min-height: 44px; text-decoration: none !important; }
.google-btn:hover { background: var(--ice); box-shadow: var(--shadow-1); }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; }
.cat-tile { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 0.85rem; color: var(--navy) !important; text-decoration: none !important; transition: box-shadow 0.12s, border-color 0.12s; }
.cat-tile:hover { border-color: var(--aqua); box-shadow: var(--shadow-2); }
.cat-tile .quad { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 0.65rem; }
.cat-tile .quad img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--ice); border-radius: var(--r1); }
.cat-tile h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
.cat-tile .count { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.cat-tile .cta { margin-top: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--link); }
.type-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.7rem; }
.type-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; padding: 0.7rem 0.5rem; border-radius: var(--r2); background: var(--white); border: 1px solid var(--border); color: var(--navy) !important; text-decoration: none !important; font-size: 0.85rem; line-height: 1.2; }
.type-tile img { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; background: var(--ice); padding: 6px; }
.type-tile:hover { border-color: var(--aqua); box-shadow: var(--shadow-2); }
.type-tile .count { font-size: 0.72rem; color: var(--muted); }

.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 210px); gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 2px 2px 8px; }
.rail-track > * { scroll-snap-align: start; }
.rail-btn { position: absolute; top: 40%; width: 40px; height: 64px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.95); border-radius: var(--r1); box-shadow: var(--shadow-1); z-index: 2; font-size: 1.3rem; color: var(--navy); }
.rail-btn:hover { border-color: var(--teal); }
.rail-btn.prev { left: -8px; } .rail-btn.next { right: -8px; }
.promo-band { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1rem; }
.promo { border-radius: var(--r2); padding: 1.4rem 1.4rem; color: var(--white); display: flex; flex-direction: column; gap: 0.5rem; min-height: 170px; justify-content: flex-end; }
.promo h3 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.promo p { margin: 0; opacity: 0.92; max-width: 30rem; }
.promo .btn { align-self: flex-start; margin-top: 0.5rem; }
.promo-bp { background: radial-gradient(ellipse at 90% 10%, rgba(53, 214, 210, 0.45), transparent 55%), linear-gradient(135deg, var(--navy), var(--deep-teal)); }
.promo-boq { background: linear-gradient(135deg, var(--deep-teal), var(--teal)); }
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin: 1.5rem 0 0.5rem; }
.progress-line { width: min(280px, 80%); height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-line span { display: block; height: 100%; background: var(--teal); }

/* ---------- Product grid + card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.9rem; }
.product-card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r2); padding: 0.75rem; cursor: pointer;
  transition: box-shadow 0.12s, border-color 0.12s; min-width: 0;
}
.product-card:hover { box-shadow: var(--shadow-2); border-color: var(--aqua); }
.product-card .img-wrap { aspect-ratio: 1; background: var(--white); display: grid; place-items: center; margin-bottom: 0.6rem; border-radius: var(--r1); overflow: hidden; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.2s; }
.product-card:hover .img-wrap img { transform: scale(1.04); }
.product-card .ptype { font-size: 0.72rem; color: var(--deep-teal); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 0.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card .title { color: var(--text); font-size: 0.92rem; line-height: 1.3; margin: 0 0 0.3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; min-height: 2.6em; }
.product-card .title a { color: inherit; text-decoration: none !important; }
.product-card:hover .title { color: var(--deep-teal); }
.product-card .meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 0.35rem; }
.product-card .badge-row { margin: 0.2rem 0 0.5rem; }
.product-card .card-actions { margin-top: auto; }
.compare-check { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; background: rgba(255, 255, 255, 0.95); padding: 0.2rem 0.45rem; border-radius: var(--r1); border: 1px solid var(--border); opacity: 0; transition: opacity 0.12s; cursor: pointer; }
.product-card:hover .compare-check, .compare-check.is-on, .product-card:focus-within .compare-check { opacity: 1; }
.compare-check input { accent-color: var(--teal); margin: 0; }

.price { color: var(--price); font-weight: 700; line-height: 1; white-space: nowrap; }
.price .sym { font-size: 0.62em; vertical-align: 0.45em; margin-right: 1px; }
.price .paise { font-size: 0.62em; vertical-align: 0.45em; }
.price-lg { font-size: 1.3rem; }
.price-xl { font-size: 2rem; }
.price-sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }
.price-row { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin: 0.15rem 0 0.25rem; }

.qty-stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--teal); border-radius: var(--r2); overflow: hidden; background: var(--white); height: 40px; }
.qty-stepper button { width: 40px; border: 0; background: var(--ice); color: var(--deep-teal); font-size: 1.15rem; font-weight: 700; }
.qty-stepper button:hover { background: var(--soft); }
.qty-stepper input, .qty-stepper .qv { width: 52px; border: 0; text-align: center; font-weight: 700; color: var(--navy); background: var(--white); -moz-appearance: textfield; display: grid; place-items: center; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper.sm { height: 32px; }
.qty-stepper.sm button { width: 32px; font-size: 1rem; }
.qty-stepper.sm input, .qty-stepper.sm .qv { width: 42px; font-size: 0.9rem; }
.card-incart { display: flex; gap: 0.4rem; align-items: center; }
.card-incart .qty-stepper { flex: 1; }
.card-incart .qty-stepper .qv { flex: 1; width: auto; }

/* list view */
.product-list { display: flex; flex-direction: column; gap: 0.6rem; }
.product-row { display: grid; grid-template-columns: 140px 1fr 220px; gap: 1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 0.85rem; cursor: pointer; position: relative; }
.product-row:hover { border-color: var(--aqua); box-shadow: var(--shadow-2); }
.product-row .img-wrap { aspect-ratio: 1; display: grid; place-items: center; }
.product-row .img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.product-row .title { margin: 0 0 0.3rem; font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.product-row .spec-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem 1rem; font-size: 0.82rem; margin-top: 0.4rem; }
.product-row .spec-mini dt { color: var(--muted); }
.product-row .spec-mini dd { margin: 0; font-family: var(--font-mono); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-row .buy-col { display: flex; flex-direction: column; gap: 0.4rem; align-items: stretch; border-left: 1px solid var(--border); padding-left: 1rem; }
.product-row .compare-check { opacity: 1; position: static; align-self: flex-start; }

/* ---------- Listing (PLP) ---------- */
.plp { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; margin: 0.75rem 1rem 0; align-items: start; }
.facets { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 0.4rem 0.9rem 0.9rem; position: sticky; top: calc(var(--hdr-h) + 12px); max-height: calc(100vh - var(--hdr-h) - 24px); overflow: auto; }
.facet { border-bottom: 1px solid var(--border); padding: 0.55rem 0; }
.facet:last-child { border-bottom: 0; }
.facet summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.92rem; padding: 0.35rem 0; min-height: 36px; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: "▾"; color: var(--muted); transition: transform 0.15s; }
.facet:not([open]) summary::after { transform: rotate(-90deg); }
.facet-opts { display: flex; flex-direction: column; gap: 0.1rem; max-height: 280px; overflow: auto; padding-right: 2px; }
.facet-opt { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; padding: 0.3rem 0.2rem; border-radius: var(--r1); cursor: pointer; min-height: 34px; }
.facet-opt:hover { background: var(--ice); }
.facet-opt input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.facet-opt .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet-opt .cnt { color: var(--muted); font-size: 0.78rem; }
.facet-opt.is-zero { opacity: 0.45; }
.facet-search { width: 100%; border: 1px solid var(--border); border-radius: var(--r1); padding: 0.4rem 0.55rem; font-size: 0.85rem; margin-bottom: 0.35rem; }
.price-inputs { display: flex; gap: 0.4rem; align-items: center; margin-top: 0.35rem; }
.price-inputs input { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: var(--r1); padding: 0.4rem 0.5rem; font-size: 0.85rem; }
.facet-more { background: none; border: 0; color: var(--link); font-weight: 600; font-size: 0.85rem; padding: 0.3rem 0.2rem; text-align: left; }
.plp-main { min-width: 0; }
.plp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 0.55rem 0.8rem; margin-bottom: 0.75rem; }
.plp-count { font-size: 0.92rem; }
.plp-count strong { color: var(--navy); }
.plp-controls { display: flex; gap: 0.5rem; align-items: center; }
.select { border: 1px solid var(--border); background: var(--white); border-radius: var(--r2); padding: 0 0.65rem; height: 38px; color: var(--navy); font-size: 0.88rem; }
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; }
.view-toggle button { width: 38px; height: 36px; border: 0; background: var(--white); color: var(--muted); display: grid; place-items: center; }
.view-toggle button.is-active { background: var(--navy); color: var(--white); }
.applied { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.75rem; }
.dym { margin: 0 0 0.75rem; font-size: 0.95rem; }
.dym a { font-weight: 700; font-style: italic; }
.mobile-filter-bar { display: none; }
.supplier-section { margin-top: 1.25rem; }
.supplier-section h2 { font-size: 1.1rem; margin: 0 0 0.25rem; }
.supplier-section .muted { font-size: 0.85rem; margin: 0 0 0.75rem; }

/* compare */
.compare-tray { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 60; background: var(--navy); color: var(--white); border-radius: var(--r3); box-shadow: var(--shadow-3); padding: 0.55rem 0.6rem 0.55rem 0.9rem; display: flex; align-items: center; gap: 0.75rem; max-width: calc(100vw - 24px); }
.compare-tray .thumbs { display: flex; gap: 0.35rem; }
.compare-tray .thumbs span { position: relative; }
.compare-tray img { width: 40px; height: 40px; object-fit: contain; background: var(--white); border-radius: var(--r1); }
.compare-tray .rm { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--aqua); color: var(--navy); font-size: 0.65rem; font-weight: 700; line-height: 18px; padding: 0; }
.compare-table-wrap { overflow: auto; }
.compare-table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; min-width: 170px; }
.compare-table th { background: var(--ice); position: sticky; left: 0; min-width: 140px; font-weight: 600; color: var(--muted); }
.compare-table tr.is-diff td { background: #f0fbfa; }
.compare-table .head-cell img { width: 100%; max-height: 120px; object-fit: contain; }

/* ---------- PDP ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 320px; gap: 1.5rem; margin: 0.75rem 1rem; background: var(--card); padding: 1.25rem; border-radius: var(--r2); border: 1px solid var(--border); }
.gallery { display: grid; grid-template-columns: 64px 1fr; gap: 0.75rem; align-self: start; position: sticky; top: calc(var(--hdr-h) + 12px); }
.gallery.single { grid-template-columns: 1fr; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 0.5rem; }
.gallery-thumbs button { width: 64px; height: 64px; border: 1px solid var(--border); border-radius: var(--r1); background: var(--white); padding: 4px; }
.gallery-thumbs button.is-active { border-color: var(--teal); box-shadow: 0 0 0 2px var(--aqua); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main { position: relative; aspect-ratio: 1; background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; cursor: zoom-in; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.15s; transform-origin: center; }
.gallery-main.is-zoom img { transform: scale(2.2); }
.gallery-hint { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 0.4rem; grid-column: 1 / -1; }
.pdp-info h1 { font-size: 1.5rem; font-weight: 600; margin: 0.15rem 0 0.4rem; line-height: 1.25; }
.pdp-info .ptype-link { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.pdp-ids { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.pdp-ids .mono { color: var(--navy); }
.copy-btn { background: none; border: 1px solid var(--border); border-radius: var(--r1); font-size: 0.72rem; padding: 0.1rem 0.35rem; color: var(--deep-teal); margin-left: 0.25rem; }
.pdp-info hr { border: 0; border-top: 1px solid var(--border); margin: 0.9rem 0; }
.key-specs { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.key-specs li { display: grid; grid-template-columns: 160px 1fr; gap: 0.5rem; font-size: 0.9rem; }
.key-specs li span:first-child { color: var(--muted); }
.pdp-docs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.buybox { border: 1px solid var(--border); border-radius: var(--r2); padding: 1rem; background: var(--white); align-self: start; position: sticky; top: calc(var(--hdr-h) + 12px); box-shadow: var(--shadow-1); }
.buybox .price-xl { display: block; margin-bottom: 0.2rem; }
.buybox .unit-note { font-size: 0.8rem; color: var(--muted); }
.buybox .stock-line { font-weight: 700; margin: 0.75rem 0 0.2rem; }
.buybox .stock-line.ok { color: var(--deep-teal); } .buybox .stock-line.low { color: var(--warn); } .buybox .stock-line.out { color: var(--danger); }
.buybox .deliver-line { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.75rem; }
.buybox .deliver-line strong { color: var(--navy); }
.buybox .qty-block { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0.75rem 0; }
.buybox .line-total { font-size: 0.9rem; }
.buybox .line-total strong { color: var(--price); }
.buybox .btn { margin-top: 0.4rem; }
.buybox .sold-by { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.6rem; }
.breaks-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 0.6rem 0 0.2rem; }
.breaks-table th, .breaks-table td { padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--border); text-align: left; }
.breaks-table th { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.breaks-table tr.is-active td { background: var(--soft); font-weight: 700; color: var(--deep-teal); }
.breaks-table .save { color: var(--deep-teal); font-size: 0.75rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th, .spec-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; background: var(--ice); }
.spec-table tr:nth-child(even) td { background: #fbfefe; }
.pdp-sticky { display: none; }

/* ---------- Cart page ---------- */
.cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; margin: 0.75rem 1rem; align-items: start; }
.cart-group { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); margin-bottom: 0.9rem; overflow: hidden; }
.cart-group-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.75rem 1rem; background: var(--ice); border-bottom: 1px solid var(--border); }
.cart-group-head h3 { margin: 0; font-size: 1rem; flex: 1; min-width: 180px; display: flex; align-items: center; gap: 0.5rem; }
.cart-group-head .sub { font-weight: 700; color: var(--price); }
.cart-page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 1rem 0.5rem; }
.cart-page-head .page-title { margin: 0; }
.mini-group { margin-bottom: 0.5rem; }
.mini-group-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0; }
.mini-group-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.cart-group.is-collapsed .cart-lines { display: none; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 0.9rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img, .cart-line .ph { width: 96px; height: 96px; object-fit: contain; background: var(--white); border-radius: var(--r1); border: 1px solid var(--border); }
.cart-line h4 { margin: 0 0 0.2rem; font-size: 0.98rem; font-weight: 600; line-height: 1.3; }
.cart-line h4 a { color: var(--navy); }
.cart-line .line-meta { font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); }
.cart-line .line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.5rem; }
.cart-line .line-price { text-align: right; }
.cart-line .line-price .each { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }
.summary-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 1rem; position: sticky; top: calc(var(--hdr-h) + 12px); box-shadow: var(--shadow-1); }
.summary-card h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
.sum-row { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.92rem; }
.sum-row.total { border-top: 1px solid var(--border); margin-top: 0.4rem; padding-top: 0.7rem; font-weight: 700; font-size: 1.1rem; }
.sum-row.total .price { font-size: 1.25rem; }
.saved-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; padding: 0.9rem 1rem; }
.saved-item { border: 1px solid var(--border); border-radius: var(--r2); padding: 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; }
.saved-item img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* mini cart */
.mini-added { display: flex; gap: 0.75rem; align-items: center; background: var(--soft); border: 1px solid var(--aqua); border-radius: var(--r2); padding: 0.6rem; margin-bottom: 0.9rem; }
.mini-added img { width: 56px; height: 56px; object-fit: contain; background: var(--white); border-radius: var(--r1); }
.mini-added .ok { color: var(--deep-teal); font-weight: 700; font-size: 0.9rem; }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.mini-line img { width: 56px; height: 56px; object-fit: contain; background: var(--white); border: 1px solid var(--border); border-radius: var(--r1); }
.mini-line .t { font-size: 0.85rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-line .each { font-size: 0.75rem; color: var(--muted); }

/* ---------- Checkout ---------- */
.stepper { display: flex; gap: 0; margin: 0.9rem 1rem 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; }
.stepper .step { flex: 1; display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; font-weight: 600; color: var(--muted); font-size: 0.92rem; border-right: 1px solid var(--border); }
.stepper .step:last-child { border-right: 0; }
.stepper .step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); border: 1px solid var(--border); font-size: 0.82rem; }
.stepper .step.is-active { color: var(--navy); background: var(--ice); }
.stepper .step.is-active .n { background: var(--teal); color: var(--white); border-color: var(--teal); }
.stepper .step.is-done .n { background: var(--deep-teal); color: var(--white); border-color: var(--deep-teal); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; margin: 0.9rem 1rem; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 1rem 1.1rem; margin-bottom: 0.9rem; }
.panel h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.addr-card { border: 1.5px solid var(--border); border-radius: var(--r2); padding: 0.8rem 0.9rem; cursor: pointer; display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; background: var(--white); position: relative; }
.addr-card input { accent-color: var(--teal); margin-top: 3px; }
.addr-card.is-selected { border-color: var(--teal); box-shadow: 0 0 0 2px var(--aqua); background: #fbffff; }
.addr-card .addr-actions { display: flex; gap: 0.75rem; margin-top: 0.4rem; }
.addr-add { border: 1.5px dashed var(--border); border-radius: var(--r2); display: grid; place-items: center; min-height: 120px; color: var(--deep-teal); font-weight: 700; background: var(--white); }
.addr-add:hover { border-color: var(--teal); background: var(--ice); }
.pill { display: inline-block; font-size: 0.68rem; background: var(--aqua); color: var(--navy); padding: 0.1rem 0.4rem; border-radius: 3px; font-weight: 700; vertical-align: middle; margin-left: 0.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select { font-weight: 400; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: var(--r1); background: var(--white); color: var(--navy); min-height: 42px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--aqua); border-color: var(--teal); }
.field .err { color: var(--danger); font-weight: 400; font-size: 0.78rem; }
.field input.is-invalid { border-color: var(--danger); }
.check-row { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; }
.check-row input { accent-color: var(--teal); width: 18px; height: 18px; }
.review-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); align-items: center; font-size: 0.9rem; }
.review-line img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--r1); background: var(--white); }
.pay-panel { border: 1.5px solid var(--aqua); background: var(--soft); border-radius: var(--r2); padding: 1rem; }
.pay-panel h3 { margin: 0 0 0.35rem; }
.success-card { max-width: 680px; margin: 1.5rem auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--r3); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow-1); }
.success-card .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 0.75rem; }
.success-card .ref { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; color: var(--deep-teal); background: var(--ice); display: inline-block; padding: 0.35rem 0.75rem; border-radius: var(--r1); margin: 0.4rem 0 0.9rem; }

/* ---------- Account / orders ---------- */
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; margin: 0.9rem 1rem; }
.account-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 1rem 1.1rem; display: flex; gap: 0.9rem; align-items: flex-start; color: var(--navy) !important; text-decoration: none !important; }
.account-card:hover { border-color: var(--aqua); box-shadow: var(--shadow-2); }
.account-card .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--deep-teal); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.account-card h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.account-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.profile-head { display: flex; align-items: center; gap: 0.9rem; margin: 0.9rem 1rem 0; }
.profile-head img { width: 56px; height: 56px; border-radius: 50%; }
.order-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); margin-bottom: 0.9rem; overflow: hidden; }
.order-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; background: var(--ice); padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); }
.order-head strong { display: block; color: var(--navy); font-size: 0.9rem; }
.order-head .ref { margin-left: auto; text-align: right; }
.order-body { padding: 0.75rem 1rem; }
.status-chip { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: var(--soft); color: var(--deep-teal); text-transform: capitalize; }
.tabs { display: flex; gap: 0.25rem; margin: 0.9rem 1rem 0; border-bottom: 2px solid var(--border); }
.tabs button { background: none; border: 0; padding: 0.65rem 1rem; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button.is-active { color: var(--navy); border-bottom-color: var(--teal); }

/* ---------- BOQ ---------- */
.boq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; margin: 0.9rem 1rem; align-items: start; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.steps3 .s { background: var(--ice); border: 1px solid var(--border); border-radius: var(--r2); padding: 0.75rem; font-size: 0.88rem; }
.steps3 .s b { display: block; color: var(--deep-teal); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.dropzone { border: 2px dashed var(--border); border-radius: var(--r3); padding: 1.5rem 1rem; text-align: center; background: var(--ice); cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--teal); background: var(--soft); }
.dropzone .dz-icon { font-size: 2rem; color: var(--deep-teal); }
.dropzone .dz-file { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 0.45rem 0.7rem; margin-top: 0.5rem; font-weight: 600; }
.side-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 1rem; margin-bottom: 0.9rem; font-size: 0.9rem; }
.side-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.side-card ul { margin: 0; padding-left: 1.1rem; }
.side-card li { margin: 0.25rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b8d0d6; margin-top: 2rem; }
.back-top { display: block; text-align: center; padding: 0.9rem; font-size: 0.88rem; background: #163644; color: var(--white) !important; text-decoration: none !important; }
.back-top:hover { background: var(--deep-teal); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem; font-size: 0.88rem; }
.footer-cols h4 { color: var(--aqua); margin: 0 0 0.6rem; font-size: 0.98rem; }
.footer-cols a { display: block; color: #b8d0d6; margin: 0.4rem 0; }
.footer-cols a:hover { color: var(--aqua); }
.footer-logo { text-align: center; padding: 1.25rem; border-top: 1px solid #1a3d4a; }
.footer-logo img { height: 120px; width: auto; object-fit: contain; background: var(--white); border-radius: 8px; padding: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pdp .buybox { grid-column: 2; }
  .pdp-info { grid-column: 2; grid-row: 1; }
  .pdp .buybox { grid-row: 2; position: static; }
  .gallery { grid-row: 1 / span 2; }
}
@media (max-width: 1000px) {
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .welcome-row { grid-template-columns: 1fr; }
  .plp { grid-template-columns: 1fr; }
  .facets { display: none; }
  .mobile-filter-bar { display: flex; position: sticky; top: calc(var(--hdr-h) + 8px); z-index: 30; gap: 0.5rem; margin: 0 0 0.75rem; }
  .mobile-filter-bar .btn { flex: 1; background: var(--white); }
  .cart-page, .checkout, .boq-wrap { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .product-row { grid-template-columns: 110px 1fr; }
  .product-row .buy-col { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 0.6rem; flex-direction: row; flex-wrap: wrap; align-items: center; }
}
@media (max-width: 900px) {
  :root { --hdr-h: 108px; }
  .hdr-main { flex-wrap: wrap; row-gap: 0.4rem; padding: 0.4rem 0.5rem 0.5rem; }
  .hdr-icon-btn { display: grid; }
  .logo-mark { display: none; }
  .logo-img { height: 48px; max-width: 112px; }
  .deliver, .orders-link, .cart-label, .account-text { display: none; }
  .account-icon { display: block; color: var(--white); }
  .account { margin-left: auto; }
  .hdr-search { order: 10; flex: 1 1 100%; }
  .hdr-search select { display: none; }
  .hdr-nav { display: none; }
  .deliver-strip { display: flex; }
  .suggest-box { right: -52px; }
  .pdp { grid-template-columns: 1fr; padding: 0.9rem; gap: 1rem; }
  .gallery, .pdp-info, .pdp .buybox { grid-column: 1; grid-row: auto; position: static; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .pdp-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--white); border-top: 1px solid var(--border); padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom)); gap: 0.75rem; align-items: center; box-shadow: 0 -4px 16px rgba(16, 42, 53, 0.12); }
  .pdp-sticky .btn { flex: 1; }
  body.has-sticky .site-footer { padding-bottom: 72px; }
  body.has-sticky .toast-stack { bottom: 84px; }
  .key-specs li { grid-template-columns: 130px 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stepper .step .lbl { display: none; }
  .stepper .step { justify-content: center; }
  .steps3 { grid-template-columns: 1fr; }
  .promo-band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .section { margin: 0.75rem 0.5rem; padding: 0.9rem 0.8rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .product-card { padding: 0.55rem; }
  .product-card .title { font-size: 0.86rem; }
  .compare-check { display: none; }
  .value-strip { grid-template-columns: 1fr 1fr; margin: 0.75rem 0.5rem 0; gap: 0.5rem; }
  .value-item { padding: 0.55rem; }
  .value-item span { display: none; }
  .hero-band { padding: 0.5rem 0.5rem 0; }
  .hero-card { padding: 1.4rem 1.1rem; min-height: 0; }
  .hero-ctas .btn { flex: 1; }
  .cat-tiles { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .cat-tile { padding: 0.55rem; }
  .rail-track { grid-auto-columns: 46%; }
  .rail-btn { display: none; }
  .plp { margin: 0.5rem; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-line img, .cart-line .ph { width: 72px; height: 72px; }
  .cart-line .line-price { grid-column: 2; text-align: left; }
  .cart-page, .checkout, .boq-wrap { margin: 0.5rem; }
  .breadcrumb, .page-title { margin-left: 0.6rem; margin-right: 0.6rem; }
  .welcome-row, .promo-band, .account-grid { margin: 0.75rem 0.5rem; }
  .toast-stack { bottom: 12px; }
}
