/* ═══════════════════════════════════════════════════════════════
   QIMAAZ PREMIUM DESIGN SYSTEM v2.1
   Obsidian Midnight, Royal Indigo & Sovereign Pakistani Gold
   Clean, CSP-compliant external stylesheet (no inline styles)
═══════════════════════════════════════════════════════════════ */
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --ink:           #0b1026;
  --indigo:        #2d2a7c;
  --indigo-soft:   #eef0ff;
  --primary:       #c97b14;
  --primary-dark:  #a45f08;
  --primary-soft:  #fef6e7;
  --charcoal:      #0b1026;
  --muted:         #5b647a;
  --line:          #e2e6f0;
  --soft-bg:       #f4f6fb;
  --trust:         #059669;
  --trust-soft:    #d1fae5;
  --marigold:      #f4b53f;
  --accent:        #4f46e5;

  --qm-obsidian:   #080c1f;
  --qm-royal:      #1e1b5e;
  --qm-gold:       #eab308;
  --qm-gold-rich:  linear-gradient(135deg, #f6c453 0%, #d98a1e 55%, #b96b0c 100%);
  --qm-royal-grad: linear-gradient(135deg, #1b184e 0%, #3730a3 100%);
  --qm-hero-grad:  radial-gradient(ellipse 80% 60% at 75% 15%, rgba(79, 70, 229, .28) 0%, transparent 60%),
                   radial-gradient(ellipse 65% 55% at 15% 85%, rgba(234, 179, 8, .16) 0%, transparent 55%),
                   linear-gradient(135deg, #070a19 0%, #13183d 52%, #0c1631 100%);

  --shadow-xs:     0 1px 3px rgba(11, 16, 38, .06);
  --shadow-sm:     0 4px 14px rgba(11, 16, 38, .08);
  --shadow-md:     0 10px 30px rgba(11, 16, 38, .10);
  --shadow-lg:     0 20px 50px rgba(11, 16, 38, .15);
  --shadow-gold:   0 10px 28px rgba(217, 138, 30, .30);
  --card-shadow:   0 16px 40px rgba(11, 16, 38, .12);
  --card-shadow-soft: 0 2px 10px rgba(11, 16, 38, .04);

  --radius:        1rem;
  --radius-sm:     .65rem;
  --radius-lg:     1.35rem;
  --radius-xl:     1.85rem;
  --radius-full:   9999px;

  --font-body:     'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display:  'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  --ease:          cubic-bezier(.4, 0, .2, 1);
  --ease-spring:   cubic-bezier(.34, 1.56, .64, 1);
}

/* ── BASE ────────────────────────────────────────────────────── */
html { overflow-x: clip; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 70, 229, .04) 0%, transparent 40%),
    radial-gradient(circle at 100% 25%, rgba(217, 138, 30, .04) 0%, transparent 40%),
    var(--soft-bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, .big-price, .pcard .price, .kpi b {
  font-family: var(--font-display);
  letter-spacing: -.025em;
}
h1 { line-height: 1.1; }
h2 { line-height: 1.18; }
a { color: var(--indigo); transition: color .18s var(--ease); }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
.small { font-size: .85rem; }

/* ── HEADER — frosted glass sticky bar ───────────────────────── */
header.site-header,
header.site-header.qh {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 230, 240, .9);
  box-shadow: 0 2px 12px rgba(11, 16, 38, .05);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
header.site-header.scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow-md);
}
.qh .inner {
  padding: .7rem 0;
  gap: 1rem;
  flex-wrap: nowrap;
  align-items: center;
}
.qh .brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand-logo-box {
  width: 9.8rem;
  height: 3.1rem;
  border-radius: .5rem;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(27, 24, 78, .08);
}
.qh .brand-logo,
.brand-logo-box .brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.28);
  display: block;
}
.brand-wordmark {
  display: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .04em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #fde68a 62%, #f4b53f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qh-search { display: flex; align-items: stretch; flex: 1 1 auto; max-width: 34rem; min-width: 10rem; }
.qh-search-field {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: .75rem 0 0 .75rem;
  background: #f8fafd;
  padding-right: .4rem;
  transition: border-color .2s var(--ease), background .2s, box-shadow .2s;
}
.qh-search-field:focus-within {
  border-color: var(--indigo);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45, 42, 124, .10);
}
.qh-search input,
.qh-search .qh-search-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  padding: .66rem .6rem .66rem .95rem;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink);
}
.qh-search input:focus-visible { outline: none; background: transparent !important; box-shadow: none !important; }
.qh-search button[type="submit"] {
  background: var(--qm-royal-grad);
  color: #fff;
  border-radius: 0 .75rem .75rem 0;
  padding: 0 1.2rem;
  font-weight: 700;
  flex: none;
  transition: transform .15s var(--ease-spring), filter .15s;
}
.qh-search button[type="submit"]:hover { filter: brightness(1.12); transform: translateY(-1px); }

.qh-nav { gap: .15rem; flex-wrap: nowrap; margin-left: auto; align-items: center; }
.qh-nav a {
  padding: .48rem .7rem;
  border-radius: .6rem;
  font-weight: 600;
  font-size: .88rem;
  color: var(--ink);
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s;
}
.qh-nav a:hover { background: var(--indigo-soft); color: var(--indigo); }
.qh-nav a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.qh-badge {
  background: var(--qm-gold-rich);
  color: #0b1026;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(217, 138, 30, .35);
}
.qh-country select {
  max-width: 155px;
  padding: .45rem .65rem;
  border-radius: .6rem;
  border: 1.5px solid var(--line);
  background: #f8fafd;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* Category bar */
.qh-cats {
  background: linear-gradient(90deg, #090d20 0%, #171d4b 50%, #090d20 100%);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.qh-cats .container {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem .15rem;
  padding-top: .15rem;
  padding-bottom: .15rem;
}
.qh-cats a {
  color: rgba(255, 255, 255, .82);
  font-size: .8rem;
  font-weight: 500;
  padding: .42rem .68rem;
  white-space: nowrap;
  position: relative;
  border-radius: .45rem;
  transition: color .15s, background .15s;
}
.qh-cats a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: .68rem;
  right: .68rem;
  height: 2px;
  background: var(--marigold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .22s var(--ease-spring);
}
.qh-cats a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.qh-cats a:hover::after { transform: scaleX(1); }
.qh-cats a:first-child { color: var(--marigold); font-weight: 700; }

/* Mobile hamburger toggle */
.qh-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  height: 2.5rem;
  padding: 0 .85rem;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: .65rem;
  cursor: pointer;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  margin-left: auto;
  transition: background .15s, border-color .15s;
}
.qh-menu-toggle:hover { background: var(--indigo-soft); border-color: var(--indigo); color: var(--indigo); }

@media (max-width: 90rem) {
  .qh .inner { gap: .6rem; }
  .qh-nav a i { display: none; }
  .qh-nav a { padding: .45rem .55rem; font-size: .84rem; }
  .qh-search { max-width: 24rem; }
}

@media (max-width: 64rem) {
  header.site-header,
  header.site-header.qh {
    position: static;
  }
  .qh .inner { flex-wrap: wrap; gap: .6rem; padding-inline: 1rem; }
  .brand-logo-box { width: 8.4rem; height: 2.65rem; }
  .qh-menu-toggle { display: inline-flex; order: 2; }
  .qh-search { order: 3; flex: 1 1 100%; max-width: none; }
  .qh-search .qh-search-field input { font-size: .92rem; }
  .qh-nav {
    order: 4;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: .65rem 0 .4rem;
    border-top: 1px solid var(--line);
    background: #fff;
    gap: .25rem;
    margin-left: 0;
  }
  .qh-nav.open {
    display: flex;
    animation: fadeUp .2s var(--ease);
  }
  .qh-nav a { padding: .68rem .85rem; border-radius: .6rem; font-size: .95rem; justify-content: flex-start; }
  .qh-nav a i { display: inline-block; width: 1.2rem; text-align: center; }
  .qh-country { padding: .35rem .85rem; }
  .qh-country select { max-width: 100%; width: 100%; }
  .qh-nav .qm-theme-btn {
    width: calc(100% - 1.7rem);
    height: auto;
    margin: .35rem .85rem .15rem;
    padding: .65rem .85rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .65rem;
    font-size: .92rem;
    font-weight: 700;
  }
  .qh-nav .qm-theme-label { display: inline; }
}

/* ── BUTTONS & CONTROLS ──────────────────────────────────────── */
.btn {
  background: var(--qm-royal-grad);
  border-radius: .75rem;
  font-weight: 700;
  letter-spacing: .005em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(27, 24, 78, .22);
  transition: transform .18s var(--ease-spring), box-shadow .18s var(--ease), filter .18s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 55%);
  pointer-events: none;
}
.btn:hover {
  background: var(--qm-royal-grad);
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27, 24, 78, .28);
}
.btn:active { transform: translateY(0); }
.btn.gold {
  background: var(--qm-gold-rich);
  color: #090d1f;
  border-color: rgba(255, 255, 255, .35);
  box-shadow: var(--shadow-gold);
}
.btn.gold:hover {
  background: var(--qm-gold-rich);
  filter: brightness(1.06);
  box-shadow: 0 14px 32px rgba(217, 138, 30, .42);
}
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.btn.secondary::before { display: none; }
.btn.secondary:hover {
  background: var(--indigo-soft);
  border-color: var(--indigo);
  color: var(--indigo);
  filter: none;
  box-shadow: var(--shadow-sm);
}
.btn.ink { background: var(--ink); box-shadow: var(--shadow-sm); }
.btn.ink:hover { background: var(--indigo); }
.btn.large { padding: .88rem 1.65rem; font-size: 1.02rem; border-radius: .85rem; }

.form input, .form select, .form textarea,
.filters input, .filters select, .select {
  border: 1.5px solid var(--line);
  border-radius: .75rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3.5px rgba(45, 42, 124, .12);
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(226, 230, 240, .95);
  background: #fff;
  box-shadow: var(--card-shadow-soft);
}
.badge {
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: .45rem;
  padding: .2rem .58rem;
}
.badge.ok { background: #d1fae5; color: #065f46; }
.badge.bad { background: #fee2e2; color: #991b1b; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.info { background: #e0e7ff; color: #3730a3; }

.tabs button[aria-selected="true"] { color: var(--indigo); border-color: var(--indigo); }
.msg { border-radius: .75rem; animation: fadeUp .25s var(--ease); }
.page-title h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }

/* ── HERO SECTION — Sovereign Midnight + Gold ────────────────── */
.home-hero {
  background: var(--qm-hero-grad);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 4 L60 32 L32 60 L4 32 Z' fill='none' stroke='%23f4b53f' stroke-opacity='.07' stroke-width='1.2'/%3E%3Ccircle cx='32' cy='32' r='2' fill='%23ffffff' fill-opacity='.07'/%3E%3C/svg%3E");
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 181, 63, .45), transparent);
}
.home-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 2.75rem;
  align-items: center;
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(244, 181, 63, .32);
  backdrop-filter: blur(12px);
  color: #fde68a;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .38rem .95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.hero-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .7);
  animation: qmPulse 2s infinite;
}
@keyframes qmPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .7); }
  70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.home-hero h1 {
  font-size: clamp(2.3rem, 1.45rem + 3.1vw, 3.85rem);
  margin: 0 0 1.15rem;
  font-weight: 800;
  line-height: 1.07;
  max-width: 14.5ch;
  color: #fff;
}
.home-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #fde68a 0%, #f4b53f 55%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-hero p.lead {
  font-size: 1.12rem;
  color: rgba(226, 232, 248, .84);
  max-width: 35rem;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.hero-search {
  display: flex;
  max-width: 38rem;
  background: rgba(255, 255, 255, .11);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, .24);
  border-radius: .95rem;
  padding: .38rem;
  gap: .4rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.hero-search:focus-within {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(244, 181, 63, .8);
  box-shadow: 0 0 0 4px rgba(244, 181, 63, .18), var(--shadow-gold);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: .82rem 1.05rem;
  font-size: 1rem;
  border-radius: .65rem;
  color: #fff;
  background: transparent;
}
.hero-search input::placeholder { color: rgba(255, 255, 255, .62); }
.hero-search input:focus-visible { outline: none; }
.hero-search .btn {
  background: var(--qm-gold-rich);
  color: #090d1f;
  border-radius: .65rem;
  padding: .78rem 1.5rem;
  font-weight: 800;
  box-shadow: var(--shadow-gold);
  flex: none;
}

.hero-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.15rem; }
.hero-chips a {
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  padding: .32rem .9rem;
  font-size: .84rem;
  font-weight: 500;
  transition: background .18s, border-color .18s, transform .18s var(--ease-spring);
}
.hero-chips a:hover {
  background: rgba(244, 181, 63, .22);
  border-color: rgba(244, 181, 63, .65);
  color: #fff;
  transform: translateY(-2px);
}

.qm-hero-stage {
  position: relative;
  display: grid;
  gap: 1rem;
  justify-items: center;
  align-content: center;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease);
  will-change: transform;
}
.qm-hero-stage.tilting { transition: none; }
.home-hero img.art {
  width: 100%;
  height: auto;
  display: block;
  max-width: 26.5rem;
  filter: drop-shadow(0 24px 55px rgba(0, 0, 0, .48));
  animation: qmFloat 6s ease-in-out infinite;
}
@keyframes qmFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.qm-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  width: 100%;
  max-width: 32rem;
}
.hero-stat-pill {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px);
  border-radius: .9rem;
  padding: .75rem .85rem;
  text-align: left;
  transition: transform .2s var(--ease-spring), border-color .2s;
}
.hero-stat-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 181, 63, .5);
}
.hero-stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: #fde68a;
  line-height: 1.2;
}
.hero-stat-pill span {
  display: block;
  font-size: .74rem;
  color: rgba(226, 232, 248, .75);
  margin-top: .15rem;
}

/* ── TRUST BENTO STRIP ───────────────────────────────────────── */
.trust {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.trust ul {
  list-style: none;
  margin: 0 auto;
  padding: 1.15rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1280px;
}
.trust li {
  display: flex;
  gap: .75rem;
  align-items: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  padding: .4rem .6rem;
  border-radius: .75rem;
  transition: background .18s;
}
.trust li:hover { background: var(--soft-bg); }
.trust li i {
  color: var(--trust);
  background: var(--trust-soft);
  border-radius: .65rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1rem;
  transition: transform .22s var(--ease-spring);
}
.trust li:hover i { transform: scale(1.12) rotate(-5deg); }

/* ── SECTION HEADERS & BANDS ─────────────────────────────────── */
.band { padding: 3.25rem 0 0; }
.band-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.band-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.95rem);
  position: relative;
  padding-bottom: .45rem;
}
.band-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.8rem;
  height: 3.5px;
  background: var(--qm-gold-rich);
  border-radius: 3px;
}
.band-head a {
  font-weight: 700;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .85rem;
  border-radius: var(--radius-full);
  background: var(--indigo-soft);
  font-size: .88rem;
  transition: background .18s, transform .18s;
}
.band-head a:hover { background: var(--indigo); color: #fff; transform: translateX(2px); }

/* ── CATEGORY GRID ───────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; }
.cat-tile {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  display: block;
  transform: perspective(750px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)) scale(var(--sc, 1));
  transition: transform .26s var(--ease-spring), box-shadow .22s, border-color .22s;
  will-change: transform;
}
.cat-tile.tilting { transition: box-shadow .22s, border-color .22s; }
.cat-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 160px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), rgba(244, 181, 63, .10) 50%, transparent 75%);
  transition: opacity .2s var(--ease);
}
.cat-tile:hover {
  --ty: -5px;
  --sc: 1.02;
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 138, 30, .5);
}
.cat-tile:hover::after { opacity: 1; }
.cat-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s var(--ease); }
.cat-tile:hover img { transform: scale(1.07) translate3d(var(--px, 0px), var(--py, 0px), 0); }
.cat-tile span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .7rem .85rem;
  font-weight: 600;
  font-size: .92rem;
}
.cat-tile small {
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: .1rem .45rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .74rem;
}
.cat-tile.all {
  display: grid;
  place-items: center;
  background: var(--qm-hero-grad);
  color: #fff;
  border-color: transparent;
  min-height: 100%;
  text-align: center;
}
.cat-tile.all span { flex-direction: column; align-items: center; gap: .4rem; padding: 1rem; color: #fff; }
.cat-tile.all i { font-size: 1.7rem; color: var(--marigold); }

/* ── PRODUCT CARDS — Shopify-grade 3D tilt + specular glare ──── */
.grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.pcard {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)) scale(var(--sc, 1));
  transition: transform .28s var(--ease-spring), box-shadow .24s var(--ease), border-color .24s;
  will-change: transform;
}
.pcard.tilting {
  transition: box-shadow .24s var(--ease), border-color .24s;
}
.pcard::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  z-index: 4;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .38), rgba(244, 181, 63, .12) 45%, transparent 72%);
  transition: opacity .22s var(--ease);
}
.pcard:hover {
  --ty: -6px;
  --sc: 1.015;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(244, 181, 63, .28);
  border-color: rgba(217, 138, 30, .55);
}
.pcard:hover::after { opacity: 1; }
.pcard .tile {
  display: block;
  height: auto;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f8fafc, #e9edf7);
  font-size: 1rem;
  overflow: hidden;
  position: relative;
}
.pcard .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .42s var(--ease), opacity .3s var(--ease);
}
.pcard .tile img.alt-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
}
.pcard:hover .tile img {
  transform: scale(1.08) translate3d(var(--px, 0px), var(--py, 0px), 0);
}
.pcard:hover .tile img.alt-img { opacity: 1; }
.pcard-peek {
  position: absolute;
  left: .65rem;
  bottom: .65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: var(--radius-full);
  background: rgba(11, 16, 38, .86);
  backdrop-filter: blur(8px);
  color: #fde68a;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease-spring);
  pointer-events: none;
}
.pcard:hover .pcard-peek { opacity: 1; transform: translateY(0); }
.pcard .heart {
  z-index: 3;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  color: #94a3b8;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: .65rem;
  box-shadow: var(--shadow-sm);
  transition: color .15s, transform .18s var(--ease-spring);
}
.pcard .heart:hover, .pcard .heart[aria-pressed="true"] { color: #e11d48; transform: scale(1.12); }
.pcard .body { padding: .95rem 1.05rem 1.05rem; gap: .38rem; }
.pcard h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .97rem;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.55em;
  color: var(--ink);
}
.pcard h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pcard .seller { display: flex; align-items: center; gap: .38rem; font-size: .8rem; color: var(--muted); }
.pcard .seller i { color: var(--trust); }
.pcard .rating { font-size: .82rem; color: var(--muted); }
.stars { color: #f59e0b; letter-spacing: .06em; }
.pcard .price {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: .15rem;
}
.pcard .meta {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  padding-top: .4rem;
  border-top: 1px dashed var(--line);
}
.pcard .card-actions { padding: 0 1.05rem 1.05rem; position: relative; z-index: 3; }

.badge-sponsored {
  display: inline-block;
  justify-self: start;
  align-self: flex-start;
  width: fit-content;
  font-size: .7rem;
  padding: .16rem .6rem;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  border: 1px solid rgba(201, 123, 20, .28);
}

/* Skeleton loading cards */
.skel-card {
  height: 19rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #eceff7 25%, #f7f9fc 50%, #eceff7 75%);
  background-size: 200% 100%;
  animation: qmSkel 1.4s infinite linear;
  border: 1px solid var(--line);
}
@keyframes qmSkel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── HOW IT WORKS & CAPABILITIES BENTO ───────────────────────── */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.steps-grid .card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease-spring), box-shadow .22s;
}
.steps-grid .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.steps-grid h3 { margin: 0 0 1.1rem; font-size: 1.28rem; color: var(--ink); }
.steps-grid ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.05rem; counter-reset: s; }
.steps-grid li { counter-increment: s; display: grid; grid-template-columns: 2.35rem 1fr; gap: .85rem; align-items: start; }
.steps-grid li::before {
  content: counter(s);
  background: var(--qm-gold-rich);
  color: #0b1026;
  border-radius: .65rem;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  box-shadow: 0 4px 12px rgba(217, 138, 30, .28);
}
.steps-grid li b { display: block; margin-bottom: .15rem; }
.steps-grid li span { color: var(--muted); font-size: .92rem; line-height: 1.5; }

.bento-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.bento-pillar {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  gap: .65rem;
  align-content: start;
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease-spring), box-shadow .22s, border-color .22s;
}
.bento-pillar:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 42, 124, .35);
}
.bento-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .8rem;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.bento-pillar.gold .bento-icon { background: var(--primary-soft); color: var(--primary-dark); }
.bento-pillar.emerald .bento-icon { background: var(--trust-soft); color: var(--trust); }
.bento-pillar h3 { margin: 0; font-size: 1.1rem; }
.bento-pillar p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ── SELL CTA BAND ───────────────────────────────────────────── */
.sell-band {
  margin-top: 4rem;
  background: var(--qm-hero-grad);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sell-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52'%3E%3Cpath d='M26 3 L49 26 L26 49 L3 26 Z' fill='none' stroke='%23f4b53f' stroke-opacity='.12' stroke-width='1.5'/%3E%3C/svg%3E");
}
.sell-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.sell-band h2 { margin: 0 0 .45rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.05rem); color: #fff; }
.sell-band p { margin: 0; color: rgba(226, 232, 248, .82); max-width: 35rem; }
.sell-band .btn {
  background: var(--qm-gold-rich);
  color: #090d1f;
  font-weight: 800;
  box-shadow: var(--shadow-gold);
}

/* ── SHOP, PRODUCT DETAIL, PORTALS & TABLES ──────────────────── */
.shop { grid-template-columns: 16rem minmax(0, 1fr); gap: 2rem; }
.filters {
  position: static;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  gap: 1.25rem;
}
.filters h3 {
  font-family: var(--font-body);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
}
.cat-list button[aria-pressed="true"] { background: var(--indigo-soft); color: var(--indigo); font-weight: 700; }
.filters-toggle { display: none; }
@media (max-width: 56rem) {
  .shop { grid-template-columns: 1fr; gap: 1rem; }
  .filters-toggle { display: inline-flex; }
  .filters { display: none; }
  .filters.open { display: grid; }
}

.detail { gap: 2.25rem; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }
.gallery { display: grid; gap: .75rem; position: static; align-self: start; width: 100%; max-width: 420px; }
.gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.gallery-track::-webkit-scrollbar { height: 5px; }
.gallery-track::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .55); border-radius: 99px; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  background: #fff;
  padding: .65rem;
}
.gallery-stage .main-image {
  border: 0;
  border-radius: .6rem;
  box-shadow: none;
  transform-origin: var(--zx, 50%) var(--zy, 50%);
  transition: transform .25s var(--ease);
  cursor: zoom-in;
}
.gallery-stage.zooming .main-image {
  transform: scale(1.6);
  transition: transform .08s linear;
}
.gallery .main-image {
  width: 100%;
  height: 21rem;
  max-height: 21.5rem;
  object-fit: contain;
  display: block;
  background: transparent;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(11, 16, 38, .74);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.gallery-nav:hover { background: var(--indigo); transform: translateY(-50%) scale(1.06); }
.gallery-nav.prev { left: .65rem; }
.gallery-nav.next { right: .65rem; }
.gallery-count {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  z-index: 3;
  padding: .24rem .6rem;
  border-radius: var(--radius-full);
  background: rgba(11, 16, 38, .78);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  pointer-events: none;
}
.thumbs { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .2rem; scroll-snap-type: x proximity; }
.thumb { flex: 0 0 auto; border: 2px solid var(--line); border-radius: .65rem; padding: 0; background: #fff; cursor: pointer; width: 4.35rem; height: 4.35rem; overflow: hidden; scroll-snap-align: start; transition: border-color .15s, transform .15s; }
.thumb[aria-pressed="true"] { border-color: var(--indigo); transform: translateY(-1px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.big-price { font-size: 2.35rem; font-weight: 800; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.facts .fact { background: #fff; border: 1px solid var(--line); border-radius: .75rem; }
.fact b { font-family: var(--font-display); }
.crumbs a { color: var(--indigo); }
.price-block { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.rating-line { margin: 0; color: var(--muted); font-size: .92rem; }
.buybox { padding: 1.25rem; border: 1.5px solid #d5daf0; background: #fff; box-shadow: var(--shadow-sm); }
.buy-row .btn { flex: 1 1 11rem; }
.quote-details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.quote-details > summary { cursor: pointer; padding: .95rem 1.15rem; font-weight: 700; color: var(--indigo); list-style: none; }
.quote-details > summary::before { content: '+'; display: inline-block; width: 1.2rem; font-weight: 800; }
.quote-details[open] > summary::before { content: '–'; }
.quote-details > .card { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.quote-details > .card > h2 { display: none; }
.toolbar-sort { display: flex; align-items: center; gap: .6rem; }
.page-title label.row { flex-wrap: nowrap; }
.page-title .select { width: auto; min-width: 12rem; }

/* Directories, business strip, portals */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; font-weight: 800; letter-spacing: .02em; flex: none; }
.biz-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; margin: 0 0 1.25rem; padding: 16px 20px;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--primary);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.biz-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.1rem; }
.org-card {
  display: flex; flex-direction: column; gap: 12px; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 18px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease-spring), border-color .2s;
}
.org-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(217, 138, 30, .4); }
.org-head { display: flex; gap: 12px; align-items: center; }
.org-head h3 { margin: 0; font-size: 1.05rem; }
.org-head p { margin: 2px 0 0; font-size: .85rem; }
.org-card .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.org-card .thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--soft-bg); }
.empty-thumbs { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 1; border: 1px dashed var(--line); border-radius: 8px; font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .75rem; padding: 3px 10px; border-radius: 99px; background: var(--soft-bg); color: var(--ink); font-weight: 600; }
.org-actions { margin-top: auto; }
.product-preview { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.product-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

/* Stats, tables, charts, banners */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 1.15rem; }
button.stat, .kpi {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: transform .18s var(--ease-spring), box-shadow .18s, border-color .18s;
}
button.stat { font: inherit; text-align: left; cursor: pointer; align-items: flex-start; }
button.stat b { font-size: 1.85rem; color: var(--ink); }
button.stat:hover, button.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }

table.data { border-collapse: separate; border-spacing: 0; }
table.data th {
  background: #f8fafd;
  color: var(--muted);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .75rem .9rem;
  border-bottom: 1.5px solid var(--line);
}
table.data td { padding: .85rem .9rem; border-bottom: 1px solid #eef1f7; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(238, 240, 255, .42); }

.ship-steps { list-style: none; margin: .25rem 0 .5rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.ship-steps li { position: relative; text-align: center; font-size: .78rem; color: var(--muted); padding-top: 1.4rem; }
.ship-steps li::before { content: ''; position: absolute; top: .45rem; left: -50%; width: 100%; height: 3px; background: var(--line); }
.ship-steps li:first-child::before { display: none; }
.ship-steps .dot { position: absolute; top: 0; left: calc(50% - .5rem); width: 1rem; height: 1rem; border-radius: 50%; background: var(--line); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.ship-steps li.done { color: var(--ink); font-weight: 600; }
.ship-steps li.done::before, .ship-steps li.done .dot { background: var(--trust); }
.alert-card { border-color: var(--bad, #b91c1c); }
.late-cell { color: var(--bad, #b91c1c); font-weight: 700; }

.chart { width: 100%; height: auto; max-height: 260px; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-text { fill: var(--muted); font-size: 11px; }
.chart-bar { fill: var(--trust); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; }
.bars .bar { flex: 1 1 0; min-width: 3px; background: var(--qm-gold-rich); border-radius: 4px 4px 0 0; opacity: .88; transition: opacity .15s, transform .15s; }
.bars .bar:hover { opacity: 1; transform: scaleY(1.04); transform-origin: bottom; }

.banner-strip { position: relative; margin: 1.75rem auto 2.25rem; max-width: 1280px; padding: 0 1rem; }
.banner { display: none; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; border-radius: var(--radius-lg); color: #fff; background: var(--qm-hero-grad); box-shadow: var(--shadow-md); }
.banner.on { display: flex; }
.banner.tone-ok { background: linear-gradient(135deg, #065f46, #059669); }
.banner.tone-warn { background: linear-gradient(135deg, #92400e, #d97706); }
.banner h2 { margin: 0 0 4px; font-size: 1.25rem; color: #fff; }
.banner p { margin: 0; opacity: .92; }
.banner .btn { background: #fff; color: var(--ink); white-space: nowrap; }
.banner img { height: 84px; width: auto; border-radius: 10px; flex: none; }
.banner-dots { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; padding-bottom: 4px; }
.banner-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #cbd5e1; cursor: pointer; }
.banner-dots button[aria-current="true"] { background: var(--primary); width: 22px; border-radius: 5px; }

/* Announcement bar, CMS, Admin site form */
.announce { background: linear-gradient(90deg, var(--indigo-soft), #fff, var(--indigo-soft)); color: var(--ink); font-size: .92rem; border-bottom: 1px solid var(--line); }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 8px; text-align: center; }
.announce a { color: inherit; font-weight: 700; text-decoration: underline; }
.announce.ok { background: #dcfce7; color: #14532d; }
.announce.warn { background: #fef3c7; color: #78350f; }
.announce-x { margin-left: auto; background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; }
.cms { max-width: 46rem; }
.cms h2 { margin: 2rem 0 .5rem; } .cms h3 { margin: 1.5rem 0 .4rem; }
.cms p { line-height: 1.7; white-space: pre-line; }
.cms img { max-width: 100%; height: auto; border-radius: 12px; }
.cms details { border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; margin: .5rem 0; background: #fff; }
.cms summary { cursor: pointer; font-weight: 700; }
.cms hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.picker-preview { max-width: 180px; max-height: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; }
.theme-preview { max-width: 28rem; }
.block-row { border-left: 4px solid var(--indigo); }
ul.clean, ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
#site-form label, #dlg-body .stack > label, #dlg-body .block-row label { display: grid; gap: .3rem; font-weight: 600; }
#site-form label.row, #dlg-body label.row { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
#site-form input:not([type=checkbox]):not([type=color]):not([type=range]):not([type=file]), #site-form textarea, #site-form select,
#dlg-body .stack input:not([type=checkbox]):not([type=file]), #dlg-body .stack textarea, #dlg-body .stack select { width: 100%; max-width: 36rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--indigo); }
#site-form .row { align-items: flex-end; gap: 1.25rem; flex-wrap: wrap; }
input[name=countryCode] { text-transform: uppercase; }
.tabs { flex-wrap: wrap; }
.coupon-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: .75rem 0 0; max-width: 70ch; }
.invoice { max-width: 860px; margin-inline: auto; }

/* Deal popup */
.deal-overlay { position: fixed; inset: 0; background: rgba(7, 10, 25, .62); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 1000; }
.deal-card { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius-lg); max-width: 520px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); }
.deal-img { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--soft-bg); }
.deal-body { padding: 18px 22px 22px; }
.deal-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.deal-code strong { padding: 2px 8px; border: 1px dashed currentColor; border-radius: 6px; letter-spacing: .05em; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; opacity: .78; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #080c1f 0%, #050814 100%);
  color: rgba(226, 232, 248, .72);
  margin-top: 4.5rem;
  padding: 3.5rem 0 0;
  font-size: .91rem;
  border-top: 1px solid rgba(244, 181, 63, .22);
}
.footer-grid { display: grid; grid-template-columns: 1.55fr repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.footer-grid h2 { color: #fff; font-size: .96rem; margin: 0 0 .8rem; }
.footer-grid nav { display: grid; gap: .48rem; align-content: start; }
.site-footer a { color: rgba(226, 232, 248, .78); position: relative; width: fit-content; }
.site-footer a:hover { color: var(--marigold); }
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: .95rem;
}
.footer-logo-box {
  width: 12.6rem;
  height: 4.1rem;
  background: #fff;
  border-radius: .75rem;
  border: 1.5px solid rgba(244, 181, 63, .52);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .34);
}
.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.30);
  display: block;
}
.footer-wordmark { font-size: 1.82rem; }
.footer-brand p { max-width: 22rem; margin: 0; line-height: 1.6; color: rgba(226, 232, 248, .75); }
.footer-base {
  margin-top: 2.75rem;
  padding: 1.2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: block;
  color: rgba(226, 232, 248, .72);
}

/* ── FLOATING SCROLL-TO-TOP & ANIMATIONS ─────────────────────── */
.qm-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  border: 1px solid rgba(244, 181, 63, .45);
  background: rgba(11, 16, 38, .9);
  backdrop-filter: blur(10px);
  color: var(--marigold);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .22s var(--ease), transform .22s var(--ease-spring), background .18s;
}
.qm-top-btn.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.qm-top-btn:hover { background: var(--indigo); color: #fff; transform: translateY(-3px); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 68rem) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 60rem) {
  .home-hero .container { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .home-hero h1 { max-width: none; }
  .home-hero img.art { max-width: 22rem; margin: 0 auto; }
  .qm-hero-stats { max-width: 28rem; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .steps-grid, .bento-pillars, .detail { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 48rem) {
  .qm-top-btn { display: none; }
}
@media (max-width: 40rem) {
  .qh-cats { display: none; }
  .trust ul { grid-template-columns: 1fr; }
  .hero-search { flex-wrap: wrap; }
  .hero-search .btn { flex: 1 1 100%; }
  .qm-hero-stats, .facts { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .cat-tile span { padding: .55rem .65rem; font-size: .86rem; }
  .banner { flex-direction: column; align-items: flex-start; }
  .banner img { display: none; }
  .biz-actions .btn { flex: 1 1 45%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .ship-steps { font-size: .7rem; }
  .qm-sticky-inner { padding-right: 0; gap: .6rem; }
  .qm-sticky-info strong { max-width: 42vw; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, .home-hero img.art, .hero-pulse, .skel-card { transition: none !important; animation: none !important; }
}
@media print {
  .qh, .site-footer, .no-print, #site-header, footer, .qm-top-btn, .qm-drawer-backdrop, .qm-compare-bar { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   ATTRACTIVE INTERACTIVE UX COMPONENTS (v2.2)
   Quick View, Cart Drawer, Live Search, Compare, Lightbox, Dark Mode
═══════════════════════════════════════════════════════════════ */

/* Card badges & action bar */
.pcard-badges {
  position: absolute;
  top: .6rem;
  left: .6rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: flex-start;
  pointer-events: none;
}
.pcard-badge {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  font-size: .68rem;
  font-weight: 800;
  padding: .22rem .58rem;
  border-radius: var(--radius-full);
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(11, 16, 38, .22);
}
.pcard-badge.verified { background: linear-gradient(135deg, #065f46, #059669); color: #fff; }
.pcard-badge.bulk { background: var(--qm-gold-rich); color: #090d1f; }

.pcard .card-actions {
  display: flex;
  gap: .4rem;
  padding: 0 1.05rem 1rem;
  position: relative;
  z-index: 3;
}
.pcard .card-actions .qm-quick-add {
  flex: 1 1 auto;
  padding: .52rem .75rem;
  font-size: .82rem;
  border-radius: .65rem;
}
.pcard .card-actions .qm-icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  flex: none;
  border-radius: .65rem;
  display: grid;
  place-items: center;
}
.pcard .card-actions .qm-icon-btn[aria-pressed="true"] {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* Quantity Stepper (- [ 1 ] +) */
.qm-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: .75rem;
  background: #fff;
  overflow: hidden;
  width: fit-content;
}
.qm-qty button {
  width: 2.35rem;
  border: 0;
  background: var(--soft-bg);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
}
.qm-qty button:hover { background: var(--indigo-soft); color: var(--indigo); }
.qm-qty input[type="number"] {
  width: 4.2rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: center;
  font-weight: 700;
  padding: .45rem .25rem;
  box-shadow: none !important;
}

/* Live Search Autocomplete Dropdown */
.qh-search, .hero-search { position: relative; }
.qm-suggest {
  position: absolute;
  top: calc(100% + .45rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  overflow: hidden;
  display: grid;
  color: var(--ink);
}
.qm-suggest[hidden] { display: none !important; }
.qm-suggest-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .62rem .85rem;
  color: inherit;
  border-bottom: 1px solid #f1f3f9;
  transition: background .15s;
}
.qm-suggest-item:hover { background: var(--indigo-soft); }
.qm-suggest-item img { width: 3rem; height: 3rem; object-fit: cover; border-radius: .5rem; background: var(--soft-bg); }
.qm-suggest-item strong { display: block; font-size: .9rem; line-height: 1.25; }
.qm-suggest-item small { color: var(--muted); font-size: .78rem; }
.qm-suggest-price { font-weight: 800; font-size: .9rem; color: var(--indigo); white-space: nowrap; }
.qm-suggest-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .68rem .95rem;
  background: #f8fafd;
  font-weight: 700;
  font-size: .85rem;
  color: var(--indigo);
}
.qm-suggest-all:hover { background: var(--indigo-soft); }

/* Slide-Out Mini Cart Drawer */
.qm-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 25, .56);
  backdrop-filter: blur(4px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease);
}
.qm-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.qm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(27rem, 94vw);
  background: #fff;
  color: var(--ink);
  z-index: 2501;
  box-shadow: -18px 0 50px rgba(7, 10, 25, .28);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform .28s var(--ease);
}
.qm-drawer-backdrop.open .qm-drawer { transform: translateX(0); }
.qm-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.qm-drawer-head h2 { margin: 0; font-size: 1.18rem; }
.qm-drawer-body { overflow-y: auto; padding: 1rem 1.25rem; display: grid; gap: .85rem; align-content: start; }
.qm-drawer-item {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: .75rem;
  align-items: center;
  padding-bottom: .85rem;
  border-bottom: 1px solid #eef1f7;
}
.qm-drawer-item img { width: 4rem; height: 4rem; object-fit: cover; border-radius: .65rem; background: var(--soft-bg); }
.qm-drawer-foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: #f8fafd;
  display: grid;
  gap: .65rem;
}

/* Quick View & Compare Modals */
dialog.qm-dialog { width: min(50rem, calc(100vw - 1.5rem)); padding: 0; }
.qm-qv-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; padding: 1.5rem; align-items: start; }
.qm-qv-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--soft-bg); }
.qm-dlg-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.qm-dlg-close:hover { background: var(--indigo-soft); color: var(--indigo); }
@media (max-width: 44rem) { .qm-qv-grid { grid-template-columns: 1fr; } }

/* Fullscreen Image Lightbox */
dialog.qm-lightbox {
  width: min(64rem, calc(100vw - 1.5rem));
  background: #070a19;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
}
dialog.qm-lightbox::backdrop { background: rgba(4, 6, 16, .88); backdrop-filter: blur(8px); }
.qm-lb-body { position: relative; padding: 1rem; display: grid; place-items: center; gap: .75rem; }
.qm-lb-body img { max-height: 75vh; width: auto; max-width: 100%; border-radius: .75rem; object-fit: contain; }
.qm-lb-nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }

/* Compare Floating Bar & Table */
.qm-compare-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  background: rgba(11, 16, 38, .95);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: .65rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(244, 181, 63, .45);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
  z-index: 1100;
  max-width: calc(100vw - 1.5rem);
  flex-wrap: wrap;
}
.qm-compare-bar[hidden] { display: none !important; }
.qm-compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.qm-compare-table th, .qm-compare-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.qm-compare-table img { width: 5.5rem; height: 4.2rem; object-fit: cover; border-radius: .5rem; }

/* Shop Active Filter Pills & Share Row */
.qm-filter-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.qm-filter-pills[hidden] { display: none !important; }
.qm-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .7rem;
  border-radius: var(--radius-full);
  background: var(--indigo-soft);
  color: var(--indigo);
  font-size: .8rem;
  font-weight: 700;
  border: 1px solid rgba(45, 42, 124, .18);
  cursor: pointer;
}
.qm-pill:hover, .qm-pill.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.qm-share-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.btn.whatsapp { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; }

/* Deals Live Countdown Pill */
.qm-countdown {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .85rem;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  border: 1px solid rgba(201, 123, 20, .3);
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Toast clearance above floating Compare Bar */
.toast-host { bottom: 4.75rem; }

/* Header Theme Toggle Button */
.qm-theme-label { display: none; }
.qm-theme-btn {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .65rem;
  border: 1.5px solid var(--line);
  background: #f8fafd;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  transition: background .15s, border-color .15s, color .15s;
}
.qm-theme-btn:hover { background: var(--indigo-soft); border-color: var(--indigo); color: var(--indigo); }

/* ── DARK MODE (User Toggle) ─────────────────────────────────── */
html[data-theme="dark"] {
  --ink: #eef2ff;
  --charcoal: #eef2ff;
  --muted: #9aa4c4;
  --line: #232b49;
  --soft-bg: #0c1124;
  --indigo-soft: #1d254d;
  --primary-soft: #2e2112;
  --trust-soft: #0d2f27;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 70, 229, .14) 0%, transparent 40%),
    #080c1c;
  color: #eef2ff;
}
html[data-theme="dark"] header.site-header,
html[data-theme="dark"] header.site-header.qh {
  background: rgba(11, 16, 36, .92);
  border-bottom-color: #232b49;
}
html[data-theme="dark"] .qh-menu-toggle,
html[data-theme="dark"] .qm-theme-btn,
html[data-theme="dark"] .cat-tile,
html[data-theme="dark"] .pcard,
html[data-theme="dark"] .card,
html[data-theme="dark"] .org-card,
html[data-theme="dark"] .biz-strip,
html[data-theme="dark"] .filters,
html[data-theme="dark"] .bento-pillar,
html[data-theme="dark"] .trust,
html[data-theme="dark"] .buybox,
html[data-theme="dark"] .quote-details,
html[data-theme="dark"] .facts .fact,
html[data-theme="dark"] .fact,
html[data-theme="dark"] .kpi,
html[data-theme="dark"] button.stat,
html[data-theme="dark"] .list-item,
html[data-theme="dark"] .cms details,
html[data-theme="dark"] .deal-card,
html[data-theme="dark"] .qm-drawer,
html[data-theme="dark"] .qm-suggest,
html[data-theme="dark"] dialog {
  background: #111833;
  color: #eef2ff;
  border-color: #232b49;
}
html[data-theme="dark"] .qh-search-field,
html[data-theme="dark"] .qh-search input,
html[data-theme="dark"] .qh-country select,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form input,
html[data-theme="dark"] .form select,
html[data-theme="dark"] .form textarea,
html[data-theme="dark"] .filters input,
html[data-theme="dark"] .filters select,
html[data-theme="dark"] #site-form input:not([type="checkbox"]):not([type="color"]):not([type="range"]):not([type="file"]),
html[data-theme="dark"] #site-form textarea,
html[data-theme="dark"] #site-form select,
html[data-theme="dark"] #dlg-body .stack input:not([type="checkbox"]):not([type="file"]),
html[data-theme="dark"] #dlg-body .stack textarea,
html[data-theme="dark"] #dlg-body .stack select,
html[data-theme="dark"] .select,
html[data-theme="dark"] .qm-qty,
html[data-theme="dark"] .qm-qty input[type="number"],
html[data-theme="dark"] .qm-drawer-foot,
html[data-theme="dark"] .qm-suggest-all,
html[data-theme="dark"] table.data th {
  background: #0b1024;
  color: #eef2ff;
  border-color: #263056;
}
html[data-theme="dark"] .hero-search input,
html[data-theme="dark"] .qm-cmd-head input {
  background: transparent;
  border-color: transparent;
}
html[data-theme="dark"] .qh-search-field:focus-within {
  background: #131b3a;
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .18);
}
html[data-theme="dark"] .qh-search .qh-search-field input,
html[data-theme="dark"] .qh-search .qh-search-field input:focus-visible {
  background: transparent !important;
  color: #eef2ff;
}
html[data-theme="dark"] .qh-search input::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #8b96ba; opacity: 1; }
html[data-theme="dark"] .brand-logo-box,
html[data-theme="dark"] .footer-logo-box { display: none; }
html[data-theme="dark"] .brand-wordmark { display: inline-flex; align-items: center; }
html[data-theme="dark"] .gallery-stage,
html[data-theme="dark"] .gallery-slide,
html[data-theme="dark"] .thumb,
html[data-theme="dark"] .picker-preview,
html[data-theme="dark"] input[type="color"] {
  background: #111833;
  border-color: #263056;
}
html[data-theme="dark"] .btn.secondary { background: #172044; color: #eef2ff; border-color: #2d3866; }
html[data-theme="dark"] .btn.secondary:hover { background: #222e5c; border-color: #4f5ca3; }
html[data-theme="dark"] .btn.danger { background: #2a121b; color: #fca5a5; border-color: #7f1d1d; }
html[data-theme="dark"] .btn.danger:hover { background: #3f1826; }
html[data-theme="dark"] .banner .btn { background: #fff; color: #0b1026; }
html[data-theme="dark"] .pcard h3,
html[data-theme="dark"] .pcard .price,
html[data-theme="dark"] .big-price,
html[data-theme="dark"] .steps-grid h3,
html[data-theme="dark"] .band-head h2,
html[data-theme="dark"] a { color: #e2e8ff; }
html[data-theme="dark"] .qh-nav { background: transparent; }
html[data-theme="dark"] .qh-nav a { background: transparent; color: #e2e8ff; border-color: transparent; }
html[data-theme="dark"] .qh-nav a:hover,
html[data-theme="dark"] .qh-nav a[aria-current="page"] { background: #1d254d; color: #fde68a; }
@media (max-width: 64rem) { html[data-theme="dark"] .qh-nav { background: #111833; } }
html[data-theme="dark"] .cat-list button { color: #cbd5e1; }
html[data-theme="dark"] .cat-list button:hover { background: #1a2346; color: #fff; }
html[data-theme="dark"] .cat-list button[aria-pressed="true"],
html[data-theme="dark"] .list-item:hover,
html[data-theme="dark"] .list-item[aria-current="true"] { background: #1d254d; color: #e0e7ff; border-color: #6366f1; }
html[data-theme="dark"] .band-head a,
html[data-theme="dark"] .cat-tile small,
html[data-theme="dark"] .qm-fx-chip,
html[data-theme="dark"] .badge { background: #1d254d; color: #c7d2fe; }
html[data-theme="dark"] .crumbs a,
html[data-theme="dark"] .quote-details > summary { color: #a5b4fc; }
html[data-theme="dark"] .tabs button { color: #9aa4c4; }
html[data-theme="dark"] .tabs button[aria-selected="true"] { color: #fde68a; border-color: var(--marigold); }
html[data-theme="dark"] .announce { background: linear-gradient(90deg, #161e3e, #111833, #161e3e); color: #e2e8ff; border-color: #232b49; }
html[data-theme="dark"] table.data td { border-bottom-color: #232b49; }
html[data-theme="dark"] table.data tr:hover td { background: rgba(99, 102, 241, .10); }
html[data-theme="dark"] .qm-suggest-item:hover { background: #1b244a; }
html[data-theme="dark"] .qm-qty button { background: #182144; color: #eef2ff; }
html[data-theme="dark"] .pcard .heart,
html[data-theme="dark"] .deal-close,
html[data-theme="dark"] .qm-dlg-close { background: rgba(17, 24, 51, .92); color: #cbd5e1; border-color: #2a345c; }
html[data-theme="dark"] .pcard .card-actions .qm-icon-btn[aria-pressed="true"] { background: #2e2112; border-color: #f4b53f; color: #fde68a; }

/* ── PASSWORD EYE TOGGLE, STRENGTH METER, REVIEW BARS, CHECKOUT STEPS ── */
.qm-pw-wrap { position: relative; display: flex; align-items: center; }
.qm-pw-wrap input { padding-right: 2.8rem !important; }
.qm-pw-toggle {
  position: absolute;
  right: .45rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.qm-pw-toggle:hover { background: var(--indigo-soft); color: var(--indigo); }

.qm-strength { display: grid; gap: .3rem; margin-top: .25rem; }
progress.qm-meter {
  width: 100%;
  height: 7px;
  border-radius: 99px;
  overflow: hidden;
  border: 0;
  background: var(--line);
  appearance: none;
}
progress.qm-meter::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress.qm-meter::-webkit-progress-value { background: var(--qm-gold-rich); border-radius: 99px; transition: width .2s var(--ease); }
progress.qm-meter.strong::-webkit-progress-value { background: linear-gradient(135deg, #059669, #10b981); }
progress.qm-meter.weak::-webkit-progress-value { background: #dc2626; }

.qm-rating-box { display: grid; gap: .45rem; padding: 1rem 1.15rem; }
.qm-rating-row { display: grid; grid-template-columns: 3.2rem 1fr 2.4rem; gap: .65rem; align-items: center; font-size: .85rem; }
.qm-rating-row span:last-child { text-align: right; color: var(--muted); }

.qm-checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-bottom: 1.25rem;
  list-style: none;
  padding: 0;
}
.qm-checkout-steps li {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .9rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: .86rem;
  font-weight: 700;
  color: var(--muted);
}
.qm-checkout-steps li.active {
  border-color: var(--indigo);
  background: var(--indigo-soft);
  color: var(--indigo);
}
.qm-checkout-steps li b {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: .78rem;
  flex: none;
}
.qm-checkout-steps li.active b { background: var(--indigo); color: #fff; }
@media (max-width: 40rem) { .qm-checkout-steps { grid-template-columns: 1fr; } }

html[data-theme="dark"] .qm-checkout-steps li { background: #111833; border-color: #232b49; }
html[data-theme="dark"] .qm-checkout-steps li.active { background: #1d254d; border-color: #6366f1; color: #eef2ff; }

/* ── EXCITING STANDOUT FEATURES (v2.3) ───────────────────────── */
/* 1. Canvas confetti overlay */
canvas.qm-confetti {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 4000;
}

/* 2. Ctrl+K Command Palette */
.qm-kbd-btn,
.qh-search .qm-kbd-btn {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: .3rem;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, .055);
  color: var(--muted);
  border-radius: .45rem;
  padding: .24rem .52rem;
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  cursor: pointer;
  flex: none;
  transition: border-color .15s, color .15s, background .15s;
}
.qm-kbd-btn:hover,
.qh-search .qm-kbd-btn:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-soft);
}
@media (max-width: 64rem) { .qm-kbd-btn, .qh-search .qm-kbd-btn { display: none; } }

dialog.qm-cmd-dlg {
  width: min(41rem, calc(100vw - 1.5rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(8, 12, 28, .35);
  overflow: hidden;
}
dialog.qm-cmd-dlg::backdrop {
  background: rgba(8, 12, 28, .62);
  backdrop-filter: blur(8px);
}
.qm-cmd-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.05rem;
  border-bottom: 1px solid var(--line);
  background: #f8fafd;
}
.qm-cmd-search-ico {
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: grid;
  place-items: center;
  flex: none;
  font-size: .9rem;
}
.qm-cmd-head input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: .25rem 0;
  font-size: .98rem;
  background: transparent !important;
  color: inherit;
}
.qm-cmd-esc {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: .45rem;
  padding: .28rem .6rem;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  flex: none;
  transition: border-color .15s, color .15s, background .15s;
}
.qm-cmd-esc:hover { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-soft); }
.qm-cmd-list {
  max-height: 22.5rem;
  overflow-y: auto;
  padding: .55rem;
  display: grid;
  gap: .25rem;
}
.qm-cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .62rem .85rem;
  border-radius: .68rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  font: inherit;
  transition: background .12s, color .12s;
}
.qm-cmd-item:hover, .qm-cmd-item.selected { background: var(--indigo-soft); color: var(--indigo); }
.qm-cmd-item span { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; min-width: 0; }
.qm-cmd-item span i {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: .5rem;
  background: var(--soft-bg);
  color: var(--indigo);
  display: inline-grid;
  place-items: center;
  flex: none;
  font-size: .85rem;
}
.qm-cmd-item small {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  padding: .18rem .52rem;
  border-radius: var(--radius-full);
  background: var(--soft-bg);
  flex: none;
}
.qm-cmd-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  padding: .62rem 1.05rem;
  border-top: 1px solid var(--line);
  background: #f8fafd;
  font-size: .76rem;
  color: var(--muted);
}
.qm-cmd-foot kbd {
  display: inline-block;
  padding: .12rem .42rem;
  margin-right: .25rem;
  border-radius: .35rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: .72rem;
}

/* 3. Interactive Bulk & Currency Calculator on Product Detail */
.qm-calc {
  background: linear-gradient(145deg, #ffffff 0%, #f7f9ff 100%);
  border: 1.5px solid #d5daf0;
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: .85rem;
}
.qm-calc-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.qm-calc-head h3 { margin: 0; font-size: 1rem; display: inline-flex; align-items: center; gap: .45rem; }
.qm-calc-range { width: 100%; accent-color: var(--indigo); cursor: pointer; }
.qm-calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.qm-calc-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: .65rem .8rem;
}
.qm-calc-stat small { display: block; color: var(--muted); font-size: .74rem; }
.qm-calc-stat strong { display: block; font-size: 1.05rem; color: var(--ink); margin-top: .15rem; }
.qm-fx-strip { display: flex; flex-wrap: wrap; gap: .4rem; }
.qm-fx-chip {
  font-size: .75rem;
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: var(--radius-full);
  background: var(--indigo-soft);
  color: var(--indigo);
}

/* 4. Product Gallery 3D Studio Toggle + Sticky Quick-Buy Bar */
.qm-3d-btn {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .34rem .75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(11, 16, 38, .85);
  backdrop-filter: blur(8px);
  color: #fde68a;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}
.qm-3d-btn[aria-pressed="true"] { background: var(--qm-gold-rich); color: #0b1026; }
.gallery-stage.studio3d {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(244, 181, 63, .45);
  transition: transform .22s var(--ease);
}
.gallery-stage.studio3d.tilting { transition: none; }

.qm-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(11, 16, 38, .12);
  padding: .65rem 1rem;
  z-index: 940;
  transform: translateY(110%);
  transition: transform .25s var(--ease);
}
.qm-sticky-buy.show { transform: translateY(0); }
.qm-sticky-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-right: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.qm-sticky-info { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.qm-sticky-info img { width: 2.75rem; height: 2.75rem; object-fit: cover; border-radius: .5rem; flex: none; }
.qm-sticky-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }

html[data-theme="dark"] .qm-calc { background: #111833; border-color: #232b49; }
html[data-theme="dark"] .qm-calc-stat { background: #0b1024; border-color: #232b49; }
html[data-theme="dark"] .qm-kbd-btn,
html[data-theme="dark"] .qh-search .qm-kbd-btn { background: #172044; border-color: #2d3866; color: #cbd5e1; }
html[data-theme="dark"] .qh-search .qm-kbd-btn:hover { background: #222e5e; border-color: #6366f1; color: #fff; }
html[data-theme="dark"] .qm-sticky-buy { background: rgba(11, 16, 36, .96); border-top-color: #232b49; }
html[data-theme="dark"] dialog.qm-cmd-dlg { background: #111833; border-color: #2c3766; color: #eef2ff; }
html[data-theme="dark"] .qm-cmd-head,
html[data-theme="dark"] .qm-cmd-foot { background: #0b1024; border-color: #232b49; }
html[data-theme="dark"] .qm-cmd-search-ico { background: #1d254d; color: #a5b4fc; }
html[data-theme="dark"] .qm-cmd-esc,
html[data-theme="dark"] .qm-cmd-foot kbd { background: #172044; border-color: #2d3866; color: #e2e8ff; }
html[data-theme="dark"] .qm-cmd-item span i { background: #172044; color: #a5b4fc; }
html[data-theme="dark"] .qm-cmd-item small { background: #172044; color: #9aa4c4; }
html[data-theme="dark"] .qm-cmd-item:hover,
html[data-theme="dark"] .qm-cmd-item.selected { background: #1d254d; color: #eef2ff; }
html[data-theme="dark"] .qm-cmd-item:hover small,
html[data-theme="dark"] .qm-cmd-item.selected small { background: #2a366c; color: #e2e8ff; }
@media (max-width: 40rem) { .qm-calc-grid { grid-template-columns: 1fr; } .qm-sticky-info strong { max-width: 45vw; } }



