/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:  #df1f2d;   /* red */
  --primary-dark: #a80f1b;
  --accent:   #111111;   /* black (was green) */
  --green:    #df1f2d;   /* alias kept; now red so old refs stay on-palette */
  --red:      #df1f2d;
  --bg:       #f7f7f7;
  --card:     #ffffff;
  --border:   #e6e6e6;
  --text:     #111111;
  --muted:    #6b6b6b;
  --radius:   14px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
}

body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg);
       color: var(--text); font-size: 14px; line-height: 1.5; min-height: 100vh;
       overflow-x: hidden; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.header {
  background: #fff;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 14px rgba(80,20,20,.14);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { font-size: 26px; font-weight: 900; color: var(--accent); letter-spacing: -1px; }
.logo-text { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.2; }
.logo-sub  { color: rgba(35,31,32,.62); font-size: 11px; font-weight: 500; }
.logo-sub-wrap { line-height: 1.15; }

/* Logo image (used when assets/logo.png exists) */
.brand-logo-img { height: 34px; width: auto; max-width: 260px; object-fit: contain; display: block; }
.footer-brand .brand-logo-img { height: 38px; }

/* Text wordmark fallback */
.brand-wordmark { display: inline-flex; align-items: center; gap: 8px; }
.brand-wordmark .bw-ic { font-size: 24px; line-height: 1; }
.brand-wordmark .bw-name {
  font-size: 22px; font-weight: 900; letter-spacing: .5px; color: var(--primary);
}
.brand-wordmark--light .bw-name { font-size: 19px; }
.header-right { display: flex; align-items: center; gap: 20px; }
/* Stock Clearance now lives in the main menu (see .mn-clearance-link). */
.header-contact { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.header-contact .hc-item { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-weight: 700; transition: color .15s; }
.header-contact .hc-item:hover { color: var(--primary); }
.header-contact .hc-ico { font-size: 14px; line-height: 1; display: inline-flex; align-items: center; }
.header-contact .hc-ico-wa svg { display: block; }
.header-contact .hc-sep { color: rgba(35,31,32,.35); font-weight: 700; }

/* Logged-in user chip + logout (storefront) */
.header-user { display: flex; align-items: center; gap: 10px; }
.hu-name { color: var(--text); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hu-role { background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 2px 7px; border-radius: 999px; }
.hu-logout { color: var(--primary); font-size: 12px; font-weight: 700; text-decoration: none; border: 1px solid rgba(223,31,45,.28); padding: 5px 12px; border-radius: 8px; transition: all .15s; }
.hu-logout:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
@media (max-width: 640px) { .header-contact { display: none; } .hu-name .hu-role { display: none; } }

/* ── Hero strip ─────────────────────────────────────────────────────────── */
.hero {
  color: #fff; min-height: 420px; overflow: hidden; position: relative;
  display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.68) 34%, rgba(0,0,0,.20) 64%, rgba(0,0,0,.04) 100%),
              url('banner.jpeg') center / cover no-repeat;
}
.hero-content {
  width: min(520px, 92vw); margin-right: auto; padding: 44px 18px 44px 42px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hero h1 {
  font-size: 42px; font-weight: 900; line-height: 1.05; margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,.28);
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 16px; color: rgba(255,255,255,.82); max-width: 430px; margin: 0 0 22px;
  text-shadow: 0 1px 10px rgba(0,0,0,.25);
}
.hero-badges { display: flex; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 700; color: #fff;
  backdrop-filter: blur(4px);
}

/* ── Hero Carousel ──────────────────────────────────────────────────────── */
/* Banner: aspect-ratio box so the full image fits without cropping. */
.hero-carousel { position: relative; overflow: hidden; aspect-ratio: 1600 / 639; height: auto; background: #1a1a1a; }
.hc-track { position: relative; height: 100%; }
/* every slide fills the carousel box → all slides share one fixed height */
.hero-carousel .hero {
  position: absolute; inset: 0; min-height: 0; height: 100%;
  opacity: 0; visibility: hidden; transition: opacity .6s ease;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-carousel .hero.active { opacity: 1; visibility: visible; z-index: 1; }
.hc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 26px; line-height: 1;
  backdrop-filter: blur(4px); transition: background .15s; display: flex; align-items: center; justify-content: center;
}
.hc-arrow:hover { background: rgba(255,255,255,.34); }
.hc-prev { left: 18px; } .hc-next { right: 18px; }
.hc-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 9px; }
.hc-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: background .15s; }
.hc-dot.active { background: #fff; }
@media (max-width: 600px) { .hc-arrow { width: 36px; height: 36px; font-size: 20px; } }

/* ── Page layout ─────────────────────────────────────────────────────────── */
.page { max-width: 1260px; margin: 0 auto; padding: 28px 16px 120px; }

/* ── Category tabs ──────────────────────────────────────────────────────── */
/* Make Your Own Kit banner */
.kit-banner {
  background: var(--primary); color: #fff;
  padding: 28px 22px; margin-bottom: 8px;
}
.kit-banner-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.kit-banner .kit-step { font-size: 48px; line-height: 1; }
.kit-banner h1 { font-size: 26px; margin: 0 0 6px; }
.kit-banner p { margin: 10px 0 12px; opacity: .9; max-width: 640px; }
.kit-product-filters { max-width: 760px; margin: 16px 0; padding: 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; background: rgba(0,0,0,.12); }
.kit-filter-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.kit-filter-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.kit-filter-fields label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; }
.kit-filter-fields select { min-width: 190px; padding: 9px 10px; border: 0; border-radius: 7px; font: inherit; color: var(--text); background: #fff; }
.kit-price-range { display: flex; align-items: center; gap: 8px; }
.kit-price-range input { width: 95px; padding: 9px 10px; border: 0; border-radius: 7px; font: inherit; color: var(--text); background: #fff; }
.kit-price-dash { color: #fff; font-weight: 700; }
.kit-filter-fields button { padding: 10px 15px; border: 0; border-radius: 7px; background: #fff; color: var(--primary); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.kit-filter-fields button:hover { background: #ffe5e7; }
.kit-name-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; max-width: 360px; }
.kit-name-field input { padding: 10px 12px; border-radius: 8px; border: none; font-size: 14px; }
.kit-qty-field { max-width: 160px; margin-top: 10px; }
.kit-disclaimer { margin-top: 22px; font-size: 13px; font-weight: 700; color: red; background: #ffff00;
  border: 1.5px solid #f5c518; border-radius: 8px; padding: 10px 13px; display: inline-block;
  box-shadow: 0 2px 8px rgba(245,197,24,.35); }
.kit-disclaimer strong { color: #5a4500; }

/* Step 1: kit size (N-in-1) picker */
.kit-size-picker { max-width: 760px; margin: 16px 0; padding: 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; background: rgba(0,0,0,.12); }
.kit-size-hint { font-size: 13px; margin: 0 0 10px; opacity: .95; }
.kit-size-hint strong { color: #ffe58a; }
.kit-size-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-size-btn { padding: 9px 14px; border: 0; border-radius: 8px; background: #fff; color: var(--primary); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; line-height: 1; }
.kit-size-btn:hover { background: #ffe5e7; }
.kit-size-btn.is-active { background: var(--primary); color: #fff; box-shadow: 0 0 0 2px #fff inset; }
.kit-size-more { background: #25D366; color: #fff; }
.kit-size-more:hover { background: #1ebe5b; }
.kit-size-status { margin-top: 10px; font-size: 13px; font-weight: 800; }
.kit-size-status.is-full { color: #7CFC00; }

.kit-name-summary .pr-name { font-weight: 800; color: var(--primary); }
@media (max-width: 640px) { .kit-banner-inner { flex-direction: column; align-items: flex-start; } .kit-banner .kit-step { font-size: 36px; } .kit-filter-fields { align-items: stretch; } .kit-filter-fields label, .kit-filter-fields select, .kit-filter-fields button { width: 100%; } .kit-price-range { width: 100%; } .kit-price-range input { flex: 1; width: auto; } }

/* Budget chooser */
.budget-chooser {
  background: var(--card); border: 2px solid var(--border); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 22px;
}
.bc-title { font-weight: 800; margin-bottom: 12px; }
.bc-minmax { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.bc-minmax label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.bc-minmax input { width: 120px; padding: 8px 10px; border-radius: 8px; border: 2px solid var(--border); font-size: 14px; font-weight: 700; }
.bc-minmax input:focus { outline: none; border-color: var(--primary); }
.bc-apply { padding: 9px 22px; border-radius: 20px; border: 0; background: var(--primary); color: #fff; cursor: pointer; font-size: 14px; font-weight: 800; }
.bc-cat { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bc-cat select { padding: 7px 10px; border-radius: 8px; border: 2px solid var(--border); font-size: 13px; }

/* New / Diwali ribbons on product cards */
.pcard-flags { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.pflag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 3px 8px; border-radius: 999px; color: #fff; }
.pflag.new { background: var(--primary); }
.pflag.diwali { background: #111; }
.pflag.yos { background: #111; }
.pflag.eco { background: #2e7d32; }
.pflag.innovative { background: #6a1b9a; }

/* Branded products grid */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.brand-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 22px 16px; background: var(--card); border: 2px solid var(--border); border-radius: 14px;
  text-decoration: none; transition: all .16s; min-height: 130px;
}
.brand-card:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(223,31,45,.16); transform: translateY(-2px); }
.brand-card img { max-width: 100%; max-height: 70px; object-fit: contain; }
.brand-name { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }

.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-tab {
  padding: 8px 20px; border-radius: 22px; border: 2px solid var(--border);
  background: var(--card); cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--muted); transition: all .18s; white-space: nowrap;
}
.cat-tab:hover, .cat-tab.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* Supplied visual category artwork, shown as a clickable homepage category grid. */
.category-visual-section { margin: 28px; }
.category-visual-grid {
  --category-tile-gap: 12px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: var(--category-tile-gap);
  justify-content: center;
  max-width: calc((140px * 10) + (var(--category-tile-gap) * 9));
  margin: 0 auto;
}
.category-visual-card { display: block; width: 100%; aspect-ratio: 290 / 272; border-radius: 8px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.14); transition: transform .16s, box-shadow .16s; }
.category-visual-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.category-visual-card:hover, .category-visual-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(168,15,27,.28); outline: none; }
@media (max-width: 1180px) { .category-visual-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .category-visual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .category-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* ── Mega Nav Bar ───────────────────────────────────────────────────────── */
.meganav {
  background: var(--primary);
  position: sticky; top: 62px; z-index: 500;
  box-shadow: 0 3px 14px rgba(0,0,0,.22);
}
.meganav-inner {
  width: 100%; margin: 0 auto; padding: 0 12px;
  display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap;
  /* keep everything (incl. search) on one line on desktop */
  /* NOTE: do NOT use overflow:auto here — it clips the open dropdowns */
}
.nav-toggle { display: none; }
.mn-item { position: relative; display: flex; align-items: stretch; }
.mn-link {
  background: none; border: none; cursor: pointer; white-space: nowrap;
  color: rgba(255,255,255,.92); font-size: 11.5px; font-weight: 600;
  padding: 13px 7px; display: flex; align-items: center; gap: 4px;
  text-decoration: none; transition: background .15s; font-family: inherit;
}
.mn-link:hover, .mn-item.open > .mn-link, .mn-link.active { background: rgba(255,255,255,.14); color: #fff; }
.mn-link.active { box-shadow: inset 0 -3px 0 #fff; }
.mn-clearance-link { color: #ffd400; font-weight: 800; }
.mn-clearance-link:hover, .mn-clearance-link.active { background: rgba(255,212,0,.18); color: #ffd400; }
.mn-link .caret { font-size: 15px; opacity: .95; margin-left: 3px; transition: transform .18s; }
.mn-item.open .caret { transform: rotate(180deg); }
.mn-yos-link { padding: 5px 6px; }
.mn-yos-logo {
  display: block; width: 50px; height: 28px; object-fit: contain;
  border-radius: 5px; background: #fff; padding: 2px 5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6);
}
/* House-brand dropdown — WANGARI opens WANGARI, EVM and GLOW. */
.mn-brand-link { padding: 5px 6px; font-weight: 700; letter-spacing: .4px; }
.mn-brand-link .caret { margin-left: 5px; }
.mn-brand-logo {
  display: block; width: 50px; height: 28px; object-fit: contain;
  border-radius: 5px; background: #fff; padding: 2px 5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6);
}
.mn-brand-drop { min-width: 88px; }
.mn-brand-drop-link { display: flex; justify-content: center; padding: 8px 14px; }
.mn-brand-drop-link:hover { padding-left: 14px; }

.mn-drop {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--primary-dark);
  border-radius: 0 0 10px 10px; box-shadow: 0 12px 30px rgba(0,0,0,.3);
  padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .16s; z-index: 510;
}
.mn-item.open .mn-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.mn-drop-link {
  display: block; padding: 11px 18px; color: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.07); transition: background .12s;
}
.mn-drop-link:last-child { border-bottom: none; }
.mn-drop-link:hover { background: rgba(255,255,255,.16); color: #fff; padding-left: 22px; }
.mn-rupee {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-weight: 800; font-size: 11px;
  margin-right: 6px; vertical-align: middle;
}

/* Sub-category flyout (e.g. Gift Sets) */
.mn-sub { position: relative; }
.mn-sub-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flyout-caret { opacity: .7; font-size: 14px; }
.mn-flyout {
  position: absolute; top: 0; left: 100%; min-width: 210px;
  background: var(--primary-dark);
  border-radius: 0 10px 10px 10px; box-shadow: 0 12px 30px rgba(0,0,0,.3);
  padding: 6px 0; opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: all .16s; z-index: 520;
}
.mn-sub:hover > .mn-flyout, .mn-sub.open > .mn-flyout { opacity: 1; visibility: visible; transform: translateX(0); }
/* On narrow screens the flyout drops below instead of beside */
@media (max-width: 820px) {
  .mn-flyout { position: static; left: auto; top: auto; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-radius: 0; background: rgba(0,0,0,.18); }
  .mn-flyout .mn-drop-link { padding-left: 34px; font-size: 12px; }
  .flyout-caret { transform: rotate(90deg); }
}

/* wide 4-column product mega panel */
.mn-mega {
  display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr));
  width: min(1180px, calc(100vw - 28px)); padding: 14px; gap: 0;
  background: linear-gradient(110deg, #a80f1b 0%, var(--primary) 50%, #ef4350 100%);
}
.mn-mega-col { padding: 0 12px; border-right: 1px solid rgba(255,255,255,.55); }
.mn-mega-col:last-child { border-right: 0; }
.mn-mega .mn-drop-link {
  color: #fff; border-bottom: 0; padding: 10px 12px; border-radius: 7px; font-size: 14px; font-weight: 600;
}
.mn-mega .mn-drop-link:hover { padding-left: 16px; background: rgba(255,255,255,.16); }
.mn-mega .mn-drop-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mn-mega-group { margin-bottom: 4px; }
.mn-mega-cat { font-weight: 800 !important; display: inline-flex; align-items: center; gap: 7px; }
.mn-mega-ico { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; flex: none; vertical-align: middle; }
.mn-mega-emoji { display: inline-block; width: 22px; text-align: center; }
/* Caret marks categories that have sub-items; it flips when the group opens. */
.mn-mega-caret { font-size: 14px; opacity: .9; margin-left: 5px; display: inline-block; transition: transform .2s ease; }
.mn-mega-group.has-subs:hover > .mn-mega-cat .mn-mega-caret,
.mn-mega-group.has-subs:focus-within > .mn-mega-cat .mn-mega-caret { transform: rotate(180deg); }
/* Sub-categories stay collapsed so the menu reads as a flat category list;
   they open only while their group is hovered/focused. */
.mn-mega-subs { display: flex; flex-direction: column; padding: 0 0 0 28px;
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height .22s ease, opacity .18s ease; }
.mn-mega-group:hover > .mn-mega-subs,
.mn-mega-group:focus-within > .mn-mega-subs { max-height: 420px; opacity: 1; padding-bottom: 4px; }
.mn-mega-sub { color: rgba(255,255,255,.85); text-decoration: none; font-size: 12.5px; padding: 5px 8px; border-radius: 6px; }
/* Chevron marks each sub-item and nudges forward on hover. */
.mn-mega-sub::before { content: "›"; display: inline-block; margin-right: 7px; opacity: .7;
  font-weight: 800; transition: transform .15s ease; }
.mn-mega-sub:hover { background: rgba(255,255,255,.16); color: #fff; }
.mn-mega-sub:hover::before { transform: translateX(2px); opacity: 1; }
.mn-mega .mn-col-title {
  color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .6px; padding: 4px 10px 8px; border-bottom: 1px solid rgba(255,255,255,.18);
  margin-bottom: 4px;
}
@media (max-width: 700px) {
  .mn-mega { grid-template-columns: 1fr; min-width: 0; width: 100%; padding: 0; }
  .mn-mega-col { padding: 0; border-right: 0; }
}

.mn-search { position: relative; margin-left: auto; display: flex; align-items: center; padding-left: 6px; min-width: 0; flex-shrink: 1; }

/* Live product suggestions dropdown */
.mn-suggest {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 120;
  width: 300px; max-width: 78vw; max-height: 60vh; overflow-y: auto;
  background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 6px;
}
.mn-suggest-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px;
  text-decoration: none; color: var(--text);
}
.mn-suggest-item:hover, .mn-suggest-item.active { background: rgba(223,31,45,.08); }
.mn-suggest-item img, .mn-suggest-item .ms-noimg {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 6px; object-fit: cover;
  background: #f4f4f4; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.mn-suggest-item .ms-txt { display: flex; flex-direction: column; min-width: 0; }
.mn-suggest-item .ms-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-suggest-item .ms-code { font-size: 11px; color: var(--muted, #667); font-weight: 600; }
.mn-search input {
  border: none; border-radius: 18px; padding: 7px 14px; font-size: 12.5px;
  width: 250px; max-width: 100%; background: rgba(255,255,255,.16); color: #fff; outline: none;
  transition: background .15s, width .2s;
}
.mn-search input::placeholder { color: rgba(255,255,255,.7); }
.mn-search input:focus { background: #fff; color: var(--text); width: 300px; }
.mn-search input:focus::placeholder { color: var(--muted); }
/* On smaller screens, let the bar wrap again so nothing is cut off */
@media (max-width: 1024px) {
  .meganav-inner { flex-wrap: wrap; }
  .mn-link { font-size: 12.5px; padding: 13px 11px; }
  .mn-search { width: 100%; margin-left: 0; padding-left: 0; }
  .mn-search input { width: 100%; }
}

/* ── Active filter bar / empty state ────────────────────────────────────── */
.filter-bar {
  display: none; align-items: center; gap: 14px; margin-bottom: 20px;
  background: #fff1f2; border: 1.5px solid var(--primary); border-radius: 10px;
  padding: 10px 16px;
}
.filter-bar.show { display: flex; }
.fb-label { font-weight: 700; color: var(--primary); font-size: 13px; }
.fb-clear {
  margin-left: auto; background: var(--primary); color: #fff; border: none;
  border-radius: 18px; padding: 7px 16px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.fb-clear:hover { background: #a80f1b; }
/* Compact single-row price filter (~80% smaller than the old stacked block). */
.price-range-filter {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px 10px; margin: -4px 0 12px; box-shadow: 0 1px 6px rgba(0,0,0,.04);
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
}
.prf-head {
  display: flex; align-items: baseline; gap: 6px; margin: 0;
}
.prf-title { color: var(--text); font-size: 12px; font-weight: 800; }
.prf-scope { color: var(--muted); font-size: 11px; font-weight: 600; }
.prf-head button {
  border: 1px solid var(--border); background: #fff; color: var(--primary);
  border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 700; cursor: pointer;
  margin-left: auto;
}
.prf-values { display: flex; align-items: center; gap: 8px; margin: 0; }
.prf-values label {
  display: flex; align-items: center; gap: 4px; color: var(--muted);
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px;
}
.prf-values input {
  width: 64px; border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px;
  color: var(--text); font: inherit; font-size: 12px; font-weight: 700;
}
/* One shared scale with independently draggable minimum and maximum handles. */
.prf-sliders { position: relative; height: 26px; margin-top: 10px; }
.prf-slider-track, .prf-slider-track span { position: absolute; top: 10px; height: 6px; border-radius: 999px; }
.prf-slider-track { right: 9px; left: 9px; background: #e8e8e8; overflow: hidden; }
.prf-slider-track span { left: 0; width: 100%; background: linear-gradient(90deg, var(--primary-dark), var(--primary), #ef4350); }
.prf-sliders input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 26px; margin: 0; padding: 0;
  appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none;
}
.prf-sliders input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: transparent; }
.prf-sliders input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 3px solid var(--primary); box-shadow: 0 2px 7px rgba(168,15,27,.28); cursor: grab; pointer-events: auto;
}
.prf-sliders input[type="range"]::-moz-range-track { height: 6px; background: transparent; }
.prf-sliders input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 2px 7px rgba(168,15,27,.28); cursor: grab; pointer-events: auto;
}
.prf-sliders input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(223,31,45,.3); outline-offset: 2px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .es-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .es-title { font-size: 16px; font-weight: 700; color: var(--muted); margin-bottom: 18px; }

/* Coming Soon section for taxonomy categories with no products yet. */
.coming-soon-block {
  text-align: center; padding: 40px 20px; border: 1px dashed var(--border);
  border-radius: 14px; background: #fafafa;
}
.coming-soon-block .cs-icon { font-size: 40px; margin-bottom: 8px; }
.coming-soon-block .cs-title { font-size: 17px; font-weight: 800; color: var(--accent, #1a1a1a); margin-bottom: 6px; }
.coming-soon-block .cs-text { font-size: 13.5px; color: var(--muted); max-width: 460px; margin: 0 auto; line-height: 1.6; }

/* ── Product Detail Page (PDP) ──────────────────────────────────────────── */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--text); font-weight: 600; }

.pdp { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 36px; align-items: start; }
.pdp-media {
  position: relative; background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); aspect-ratio: 1/1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pdp-media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.pdp-media .pid-tag { position: absolute; top: 12px; left: 12px; background: var(--primary); color:#fff; font-size:12px; font-weight:700; padding:4px 10px; border-radius:8px; }
.pdp-media .stock-tag { position: absolute; top: 12px; right: 12px; left: auto; bottom: auto; width: auto; }

/* Zoomable main image */
.pdp-media.zoomable { cursor: zoom-in; }
.pdp-media .zoom-hint {
  position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.62); color: #fff;
  font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 8px; pointer-events: none;
  opacity: 0; transition: opacity .15s;
}
.pdp-media.zoomable:hover .zoom-hint { opacity: 1; }

/* Fullscreen zoom lightbox */
.zoom-overlay {
  position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; overflow: hidden;
}
.zoom-overlay.open { display: flex; }
.zoom-overlay img {
  max-width: 92vw; max-height: 88vh; object-fit: contain; cursor: zoom-in;
  transition: transform .12s ease-out; will-change: transform; user-select: none; -webkit-user-drag: none;
}
.zoom-overlay img.zoomed { cursor: grab; }
.zoom-overlay img.zoomed:active { cursor: grabbing; }
.zoom-close {
  position: absolute; top: 18px; right: 22px; z-index: 2; width: 42px; height: 42px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff;
  font-size: 20px; cursor: pointer; transition: background .15s;
}
.zoom-close:hover { background: rgba(255,255,255,.3); }
.zoom-tip { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 12px; pointer-events: none; }

.pdp-cat { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.pdp-name { font-size: 28px; font-weight: 900; color: var(--primary); line-height: 1.15; margin-bottom: 12px; }
.pdp-desc { font-size: 15px; color: var(--text); margin-bottom: 22px; line-height: 1.6; }

.pdp-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.pdp-meta-box { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; flex: 1; min-width: 120px; }
.pdp-meta-box .lbl { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.pdp-meta-box .val { font-size: 16px; font-weight: 800; color: var(--primary); margin-top: 2px; }

.pdp-gallery { display: flex; flex-direction: column; gap: 12px; }
.pdp-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-thumb {
  width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--border);
  background: #fff; padding: 4px; cursor: pointer; overflow: hidden; transition: border-color .15s;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--primary); }
.pdp-video { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); }
.pdp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.pdp-por-box {
  display: flex; gap: 14px; align-items: flex-start; background: #fff1f2;
  border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px;
}
.pdp-por-box .por-ic { font-size: 26px; }
.pdp-por-box strong { color: var(--primary); font-size: 16px; }
.pdp-por-box p { font-size: 13px; color: var(--text); margin-top: 4px; line-height: 1.55; }

.pdp-gst-note { font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.pdp-tiers { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
.pdp-tiers-title { background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; padding: 10px 16px; }
.pdp-tier-row { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.pdp-tier-row:last-child { border-bottom: none; }
.pdp-tier-row .t-qty { font-weight: 700; flex: 1; }
.pdp-tier-row .t-disc { color: var(--green); font-weight: 600; flex: 1; }
.pdp-tier-row .t-price { font-weight: 800; color: var(--primary); text-align: right; }

.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pdp-actions .modal-action-btn { flex: 1; min-width: 180px; text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 760px) {
  .pdp { grid-template-columns: 1fr; gap: 22px; }
  .pdp-name { font-size: 22px; }
}

/* ── Section header ─────────────────────────────────────────────────────── */
.sec-head {
  font-size: 18px; font-weight: 800; color: var(--primary);
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.sec-head::after { content:''; flex:1; height:2px; background:var(--border); }
.latest-products-section { margin-top: 22px; }
.view-more-products { margin-left: auto; color: var(--primary); font-size: 13px; text-decoration: none; white-space: nowrap; }
.cat-circles-section { margin-top: 30px; background: #f5f5f5; border-radius: 14px; padding: 26px 28px 30px; }
.cat-circles { display: flex; flex-wrap: wrap; gap: 26px 22px; justify-content: flex-start; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 96px; text-decoration: none; color: var(--text); }
.cat-circle-badge {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  font-size: 32px; background: var(--card); border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cat-circle:hover .cat-circle-badge { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.cat-circle-label { font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.25; }
.cat-circle:hover .cat-circle-label { color: var(--primary); }
@media (max-width: 600px) {
  .cat-circles { gap: 16px 14px; }
  .cat-circle { width: 78px; }
  .cat-circle-badge { width: 62px; height: 62px; font-size: 26px; }
}
.homepage-all-products { display: none; }
.homepage-all-products.kit-products { display: block; }
.category-page { max-width: 1280px; margin: 0 auto; padding: 28px 20px 70px; }
.category-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:32px; margin-top:26px; }
.category-sidebar { border-right:1px solid var(--border); padding-right:20px; display:flex; flex-direction:column; gap:4px; }
.category-sidebar h2 { font-size:18px; text-transform:uppercase; margin-bottom:8px; }
.category-sidebar a { color:var(--text); text-decoration:none; padding:8px 10px; border-radius:7px; display:flex; justify-content:space-between; gap:8px; }
.category-sidebar a:hover,.category-sidebar a.active { background:#fff1f2; color:var(--primary); font-weight:700; }
.category-sidebar span { color:var(--muted); font-size:12px; }
.cat-side-ico { width:30px; height:30px; border-radius:6px; object-fit:cover; vertical-align:middle; margin-right:6px; flex:none; }
.cat-side-emoji { display:inline-block; width:30px; text-align:center; margin-right:6px; }
.category-sidebar .cat-side-lbl { display:flex; align-items:center; }
.category-sidebar .cat-side-lbl span { color:inherit; font-size:inherit; }
/* Expandable category groups (categories that have subcategories). */
.cat-side-group { border-radius:7px; }
.cat-side-group > summary {
  list-style:none; cursor:pointer; display:flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:7px; color:var(--text); user-select:none;
  transition: background .15s ease, color .15s ease;
}
.cat-side-group > summary::-webkit-details-marker { display:none; }
.cat-side-group > summary:hover, .cat-side-group > summary.active { background:#fff1f2; color:var(--primary); font-weight:700; }
.cat-side-lbl { flex:1; min-width:0; }
.cat-side-count { color:var(--muted); font-size:12px; }
.cat-side-caret { font-size:11px; color:var(--muted); transition: transform .2s ease; }
.cat-side-group[open] > summary .cat-side-caret { transform: rotate(180deg); }
.cat-side-subs { display:flex; flex-direction:column; gap:2px; padding:2px 0 6px; animation: catSubReveal .2s ease; }
.cat-side-subs a { padding:6px 10px 6px 30px; font-size:13px; color:var(--muted); }
.cat-side-subs a:hover, .cat-side-subs a.active { background:#fff1f2; color:var(--primary); font-weight:700; }
.category-coming-soon { display:flex; justify-content:center; }
.category-coming-soon img { max-width:100%; width:600px; height:auto; border-radius:16px; box-shadow:0 8px 28px rgba(0,0,0,.12); }
@keyframes catSubReveal { from { opacity:0; transform: translateY(-4px); } to { opacity:1; transform: translateY(0); } }
.category-results-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:18px; }.category-results-head h1{color:var(--primary);font-size:24px}.category-results-head p{color:var(--muted)}
.category-product { color:var(--text); text-decoration:none; text-align:center; display:flex; flex-direction:column; align-items:center; gap:8px; }.category-product:hover strong{color:var(--primary)}
.category-product-img { width:100%; aspect-ratio:1; background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; }.category-product-img img{width:100%;height:100%;object-fit:contain}.category-product-img span{font-size:38px}.category-product strong{font-size:13px;line-height:1.4}.category-product small{color:var(--primary);font-weight:800}.category-product-btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:8px 16px;border-radius:8px;background:var(--primary);color:#fff;font-size:12px;font-weight:900;line-height:1;text-transform:uppercase;letter-spacing:.2px;box-shadow:0 4px 12px rgba(223,31,45,.22);transition:background .15s ease,transform .15s ease,box-shadow .15s ease}.category-product:hover .category-product-btn,.category-product:focus-visible .category-product-btn{background:var(--primary-dark);transform:translateY(-1px);box-shadow:0 6px 16px rgba(168,15,27,.28)}
.category-pagination{display:flex;gap:7px;justify-content:center;margin-top:26px}.category-pagination a{padding:7px 11px;border:1px solid var(--border);border-radius:7px;color:var(--primary);text-decoration:none}.category-pagination a.active{background:var(--primary);color:#fff}
.lp-pagination{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin-top:24px}
.lp-pagination .lp-page{min-width:38px;text-align:center;padding:8px 12px;border:1px solid var(--border);border-radius:8px;color:var(--primary);text-decoration:none;font-weight:700;transition:background .15s,color .15s}
.lp-pagination .lp-page:hover{background:#f2f2f2}
.lp-pagination .lp-page.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.lp-pagination .lp-page.disabled{opacity:.4;pointer-events:none}
.lp-pagination .lp-ellipsis{padding:8px 4px;color:var(--muted);font-weight:700;align-self:center}
.category-pagination .cp-ellipsis{padding:7px 4px;color:var(--muted);font-weight:700}
@media(max-width:760px){.category-page{padding:20px 12px 50px}.category-layout{grid-template-columns:1fr;gap:20px}.category-sidebar{border-right:0;border-bottom:1px solid var(--border);padding:0 0 14px;max-height:250px;overflow:auto}.category-results-head{align-items:flex-start;flex-direction:column}.category-results .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* ── Product grid ───────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 36px;
}

/* ── Product card ───────────────────────────────────────────────────────── */
.pcard {
  background: var(--card); border-radius: var(--radius);
  border: 1.5px solid var(--border); overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column; cursor: default;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9d9d9; }
.pcard.in-cart { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(223,31,45,.2); }
.pcard.inactive, .pcard.out-stock { opacity: .72; }

/* image area */
.pcard-img {
  width: 100%; aspect-ratio: 1/1; overflow: hidden; display: block;
  background: #f0f2f7; position: relative; flex-shrink: 0;
}
.pcard-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 10px;
  background: #fff;
  transition: transform .25s;
}
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-img .pid-tag {
  position: absolute; top: 8px; left: 8px;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 8px;
}
.pcard-img .added-tag {
  position: absolute; top: 8px; right: 8px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 8px;
  display: none;
}
.pcard.in-cart .added-tag { display: block; }
.stock-tag {
  position: absolute; left: 8px; bottom: 8px; background: rgba(17,17,17,.92);
  color: #fff; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 8px;
}
.stock-tag.out, .stock-tag.unavailable { background: var(--red); }

/* placeholder when no image */
.img-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: var(--muted);
}
.img-placeholder .ph-icon { font-size: 42px; }
.img-placeholder .ph-text { font-size: 11px; font-weight: 600; opacity: .7; }

/* card body */
.pcard-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pcard-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.35;
  text-decoration: none; display: block; }
.pcard-name:hover { color: var(--primary); }
.pcard-desc { font-size: 11.5px; color: var(--muted); flex: 1; line-height: 1.4; }

/* price badges */
.price-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.pbadge {
  border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 700; line-height: 1.3;
}
.pbadge-50  { background: #fff1f2; color: var(--primary); }
.pbadge-100 { background: #f2f2f2; color: #111; }
.pbadge-500 { background: #fef0f0; color: var(--primary-dark); font-style: italic; }

/* add button */
.add-btn {
  margin-top: 10px; width: 100%; padding: 9px;
  background: var(--primary); color: #fff; border: none;
  border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .18s;
}
.add-btn:hover { background: var(--primary-dark); }
.pcard.in-cart .add-btn { background: #111; color: #fff; }
.add-btn:disabled { background: #c9c9c9; color: #fff; cursor: not-allowed; }
/* Guest "login to see price" button (rendered as a link) */
.add-btn-login { display: block; text-align: center; text-decoration: none;
  background: #111; color: #fff; }
.add-btn-login:hover { background: var(--primary); }

/* ── Floating cart bar ──────────────────────────────────────────────────── */
.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--primary); color: #fff;
  padding: 14px 24px; z-index: 190;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  transform: translateY(100%); transition: transform .3s ease;
}
.cart-bar.visible { transform: translateY(0); }
.cart-bar-info { display: flex; flex-direction: column; gap: 2px; }
.cart-bar-info .items { font-size: 12px; color: rgba(255,255,255,.7); }
.cart-bar-info .total { font-size: 20px; font-weight: 800; }
.cart-bar-info .total small { font-size: 12px; font-weight: 400; color: rgba(255,255,255,.6); }
.cart-items-preview {
  flex: 1; display: flex; gap: 6px; overflow-x: auto; padding: 2px 0;
}
.cart-chip {
  background: rgba(255,255,255,.15); border-radius: 20px;
  padding: 4px 10px; font-size: 11px; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.cart-chip .rm { cursor: pointer; opacity: .7; font-size: 13px; }
.cart-chip .rm:hover { opacity: 1; }

.get-quote-btn {
  padding: 13px 32px; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 800;
  cursor: pointer; white-space: nowrap; transition: transform .15s;
}
.get-quote-btn:hover { transform: scale(1.03); }

/* ── Modals ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 2000; display: none; align-items: center; justify-content: center;
  padding: 16px; backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--card); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  width: 100%; max-width: 460px; overflow: hidden;
  animation: slideUp .22s ease;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-head {
  background: var(--primary); color: #fff;
  padding: 18px 22px; display: flex; align-items: flex-start; justify-content: space-between;
}
.modal-head h2 { font-size: 16px; font-weight: 800; line-height: 1.3; }
.modal-head .sub { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }
.modal-close {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 50%; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: 10px;
}
.modal-close:hover { background: rgba(255,255,255,.3); }

.modal-body { padding: 22px; }

/* qty modal */
.qty-tiers { display: flex; gap: 10px; flex-direction: column; margin-bottom: 16px; }
.qty-tier-btn {
  width: 100%; padding: 13px 16px; border: 2px solid var(--border);
  border-radius: 12px; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .15s; text-align: left;
}
.qty-tier-btn:hover { border-color: var(--primary); background: #fff1f2; }
.qty-tier-btn.selected { border-color: var(--accent); background: #f2f2f2; }
/* Display-only price tiers (not clickable) */
.qty-tier-btn.info { cursor: default; }
.qty-tier-btn.info:hover { border-color: var(--border); background: #fff; }
.qty-tier-btn .qt-label { font-size: 14px; font-weight: 700; color: var(--text); }
.qty-tier-btn .qt-disc  { font-size: 11px; color: var(--muted); margin-top: 2px; }
.qty-tier-btn .qt-price { font-size: 16px; font-weight: 800; color: var(--primary); }
.qty-tier-btn.por .qt-price { color: var(--red); font-size: 13px; font-style: italic; }

.custom-qty-row { margin: 12px 0; }
.custom-qty-row label { display: block; font-size: 12px; font-weight: 700; color: var(--muted);
                         text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.custom-qty-row input {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 9px; font-size: 14px; font-weight: 600;
}
.custom-qty-row input:focus { outline: none; border-color: var(--primary); }
.any-qty-badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 20px;
  background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 800;
  letter-spacing: .3px; vertical-align: middle; text-transform: uppercase;
}
.any-qty-hint { display: block; margin-top: 5px; font-size: 11px; color: var(--accent);
  font-weight: 700; }

.por-note {
  background: #fff1f2; border: 1px solid var(--primary); border-radius: 10px;
  padding: 12px 14px; font-size: 12.5px; color: var(--primary-dark); margin: 12px 0;
  display: none;
}
.por-note.show { display: block; }

.modal-action-btn {
  width: 100%; padding: 13px; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 800; cursor: pointer; transition: opacity .15s;
}
.modal-action-btn:hover { opacity: .88; }
.modal-action-btn.primary { background: var(--primary); color: #fff; }
.modal-action-btn.accent  { background: var(--accent);  color: #fff; }

/* ── Customer details modal ─────────────────────────────────────────────── */
.details-modal { max-width: 520px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:480px){ .form-grid-2 { grid-template-columns: 1fr; } }
.fgroup { display: flex; flex-direction: column; gap: 5px; }
.fgroup label { font-size: 11px; font-weight: 700; color: var(--muted);
                text-transform: uppercase; letter-spacing: .4px; }
.fgroup input, .fgroup textarea {
  padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: 9px; font-size: 14px; color: var(--text);
  background: #fff; transition: border-color .15s; outline: none;
}
.fgroup input:focus, .fgroup textarea:focus { border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(223,31,45,.12); }
.fgroup .hint { font-size: 11px; color: var(--muted); }
.fgroup.full   { grid-column: 1/-1; }

/* order summary inside details modal */
.order-summary {
  background: #f5f6fa; border-radius: 10px; padding: 14px;
  margin-bottom: 16px; max-height: 160px; overflow-y: auto;
}
.order-summary-title { font-size: 12px; font-weight: 700; color: var(--muted);
                       text-transform: uppercase; letter-spacing:.4px; margin-bottom: 8px; }
.order-row { display: flex; justify-content: space-between; align-items: flex-start;
             gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.order-row:last-child { border: 0; }
.order-row .pr-name { font-size: 12px; font-weight: 600; color: var(--text); flex:1; }
.order-row .pr-qty  { font-size: 11px; color: var(--muted); white-space: nowrap; }
.order-row .pr-amt  { font-size: 12px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.order-total-row    { display: flex; justify-content: space-between; margin-top: 8px;
                      padding-top: 8px; border-top: 2px solid var(--border); }
.order-total-row .lbl { font-size: 13px; font-weight: 700; color: var(--text); }
.order-total-row .amt { font-size: 18px; font-weight: 900; color: var(--primary); }

/* ── Quote result page ───────────────────────────────────────────────────── */
.result-page { max-width: 1180px; margin: 0 auto; padding: 28px 16px 48px; }
.result-shell { display: flex; flex-direction: column; gap: 18px; }
.result-hero-card, .result-card, .result-panel {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.result-hero-card {
  padding: 24px; background: #fff;
}
.result-kicker {
  color: var(--accent); font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 5px;
}
.result-hero-card h1 {
  color: var(--primary); font-size: 30px; line-height: 1.15;
  font-weight: 900; margin-bottom: 8px;
}
.result-hero-card p { color: var(--muted); max-width: 720px; font-size: 14px; }
.quote-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin-top: 18px;
}
.quote-stat {
  background: rgba(255,255,255,.78); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px;
}
.quote-stat span {
  display: block; color: var(--muted); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px;
}
.quote-stat strong { color: var(--text); font-size: 18px; font-weight: 900; }
.result-grid { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); gap: 18px; }
.result-card { padding: 18px; min-width: 0; }
.result-card-title {
  color: var(--primary); font-size: 15px; font-weight: 900;
  margin-bottom: 12px;
}
.summary-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.summary-line {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.summary-line span { color: var(--muted); font-weight: 700; }
.summary-line strong { color: var(--text); text-align: right; }
.summary-line.grand { align-items: center; border-bottom: 0; padding-bottom: 2px; }
.summary-line.grand span, .summary-line.grand strong { color: var(--primary); font-size: 18px; font-weight: 900; }
.selected-card { overflow: hidden; }
.selected-products { display: flex; flex-direction: column; gap: 9px; max-height: 430px; overflow-y: auto; padding-right: 4px; }
.selected-product {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center; gap: 12px; padding: 10px;
  border: 1px solid var(--border); border-radius: 10px; background: #fbfcff;
}
.selected-img {
  width: 58px; height: 58px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.selected-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.selected-code { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .4px; }
.selected-name { color: var(--text); font-size: 13px; font-weight: 800; line-height: 1.3; }
.selected-meta { color: var(--muted); font-size: 11px; margin-top: 3px; }
.selected-total { color: var(--primary); font-size: 13px; font-weight: 900; white-space: nowrap; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.quote-bottom-actions { justify-content: center; margin: 26px 0 4px; }
.result-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 11px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 900; text-decoration: none;
  transition: transform .15s, opacity .15s;
}
.result-btn:hover { transform: translateY(-1px); opacity: .9; }
.result-btn-primary { background: var(--primary); color: #fff; }
.result-btn-accent { background: var(--accent); color: #fff; }
.result-btn-whatsapp { background: #111; color: #fff; }
.result-btn-pi { background: #111111; color: #fff; border: 1.5px solid var(--primary); }
.pi-box {
  margin-top: 18px; padding: 16px 18px; border: 1.5px solid var(--primary);
  border-radius: 12px; background: #fff5f5;
}
.pi-box-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.pi-box-head strong { color: #111111; font-size: 14px; font-weight: 900; }
.pi-box-head span { color: var(--primary-dark); font-size: 12px; }
.pi-fields { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.pi-fields label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px;
  font-size: 11px; font-weight: 800; color: var(--muted, #6b7a99);
  text-transform: uppercase; letter-spacing: .3px; }
.pi-fields input { padding: 10px 12px; border: 1.5px solid var(--border, #dde3ee);
  border-radius: 9px; font-size: 14px; font-weight: 600; }
.pi-fields input:focus { outline: none; border-color: #111111; }
.pi-fields .result-btn-pi { flex: 0 0 auto; }
.pi-lines { margin: 14px 0; border: 1px solid #e6e6e6; border-radius: 10px; overflow: hidden; background: #fff; }
.pi-line { display: grid; grid-template-columns: 1fr 70px 150px 110px; gap: 8px;
  align-items: center; padding: 9px 12px; border-bottom: 1px solid #eeeeee; font-size: 13px; }
.pi-line:last-child { border-bottom: 0; }
.pi-line-head { background: #111111; color: #fff; font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .3px; }
.pi-line-name strong { color: #111111; }
.pi-line-qty, .pi-line-total { text-align: right; font-weight: 700; }
.pi-line-head span:nth-child(2), .pi-line-head span:nth-child(4),
.pi-line-foot span:nth-child(4) { text-align: right; }
.pi-price-input { width: 100%; padding: 7px 9px; border: 1.5px solid var(--primary);
  border-radius: 7px; font-size: 13px; font-weight: 700; text-align: right; }
.pi-price-input:focus { outline: none; border-color: #111111; }
.pi-price-input:disabled, .pi-price-input[readonly] { color: #111111; background: transparent; border-color: transparent;
  opacity: 1; -webkit-text-fill-color: #111111; }
.pi-por { color: var(--primary-dark); font-size: 12px; }
.pi-line-foot { background: #fff5f5; font-weight: 700; }
.pi-line-grand { font-size: 15px; color: #111111; font-weight: 900; }

/* Reseller per-line margin column (PI only) */
.pi-has-margin .pi-line { grid-template-columns: 1fr 60px 118px 130px 100px; }
.pi-margin-cell { display: flex; gap: 4px; }
.pi-margin-input { width: 60px; padding: 6px 6px; border: 1.5px solid #2e8b57; border-radius: 6px;
  font-size: 12px; font-weight: 700; text-align: right; }
.pi-margin-type { padding: 5px 4px; border: 1.5px solid #2e8b57; border-radius: 6px; font-size: 12px; font-weight: 700; }
.pi-margin-input:focus, .pi-margin-type:focus { outline: none; border-color: #111111; }
/* footer rows only have the last 3 cells → push them right so totals stay aligned */
.pi-has-margin .pi-line-foot span:first-child { grid-column: 1 / 4; }

@media (max-width: 560px) {
  .pi-line { grid-template-columns: 1fr 50px 110px 90px; gap: 5px; font-size: 12px; padding: 8px; }
  .pi-has-margin .pi-line { grid-template-columns: 1fr 44px 92px 92px 80px; }
  .pi-margin-input { width: 44px; }
}
.pi-mode-tabs { display: flex; gap: 8px; margin: 12px 0 16px; flex-wrap: wrap; }
.pi-mode-tab { flex: 1 1 180px; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border: 1.5px solid #e6e6e6; border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 13px; font-weight: 800; color: #111111; text-align: left; }
.pi-mode-tab small { font-weight: 600; font-size: 10.5px; color: var(--primary-dark); }
.pi-mode-tab.active { background: #111111; border-color: #111111; color: #fff; }
.pi-mode-tab.active small { color: #fff; }
.pi-section { margin-bottom: 6px; }
.pi-section-title { font-size: 11px; font-weight: 800; color: #111111; text-transform: uppercase;
  letter-spacing: .4px; margin: 12px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #e6e6e6; }
.result-alert {
  border-radius: 10px; padding: 12px 14px; margin-top: 14px;
  font-size: 13px; line-height: 1.45;
}
.result-alert.success { background: #f2f2f2; border:1px solid #111111; color:#111111; }
.result-alert.warn { background: #fff1f2; border:1px solid var(--primary); color:var(--primary-dark); }
.direct-link {
  color: var(--muted); font-size: 11px; margin-top: 4px; word-break: break-all;
}
.result-panel {
  max-width: 520px; margin: 44px auto; padding: 34px; text-align: center;
}
.result-icon {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: #fff0f0; color: var(--red); font-size: 28px; font-weight: 900;
}
.result-panel h2 { color: var(--primary); font-size: 24px; margin-bottom: 8px; }
.result-panel p { color: var(--muted); }

/* ── Admin panel ─────────────────────────────────────────────────────────── */
.admin-page { max-width: 1180px; margin: 0 auto; padding: 26px 16px 60px; }
.admin-login, .admin-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.admin-login { max-width: 420px; margin: 54px auto; padding: 28px; }
.admin-login h1, .admin-top h1 { color: var(--primary); font-size: 26px; margin-bottom: 6px; }
.admin-login label {
  display: block; color: var(--muted); font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .4px; margin: 16px 0 6px;
}
.admin-login input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 9px; font-size: 15px;
}
.admin-login button, .stock-form button {
  border: 0; border-radius: 9px; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 900; padding: 10px 16px; cursor: pointer;
}
.admin-login button { width: 100%; margin-top: 16px; padding: 13px; }
.admin-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.admin-top p { color: var(--muted); }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
/* Keep the primary tab bar visible while scrolling the long admin pages. */
.admin-top .admin-tabs {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250,250,250,.92); backdrop-filter: blur(6px);
  padding: 10px 0; margin: -4px 0 -4px; max-width: 100%;
}
.admin-tabs a, .admin-link {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); background: #fff1f2; border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 13px; text-decoration: none; font-weight: 800;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.admin-tabs a:hover, .admin-link:hover { transform: translateY(-1px); border-color: var(--primary); }
.danger-link { color: var(--red); background: #fff; border-color: var(--red); }
.admin-actions-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 320px; }
.admin-actions-cell form { display: inline-flex; align-items: center; gap: 6px; }
.admin-actions-cell input[type="text"] {
  width: 132px; border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 9px;
}
.admin-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-alert {
  border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-weight: 700;
}
.admin-alert.success { background: #f2f2f2; border:1px solid #111111; color:#111111; }
.admin-alert.error { background: #fff0f0; border:1px solid var(--red); color:var(--primary-dark); }
/* Shared admin form layout (Add/Update Reseller, Direct Client, etc.). */
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 20px; max-width: 760px; }
.admin-form > label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px;
}
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 14px; font-weight: 600; font-family: inherit; color: var(--text);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.admin-form input::placeholder, .admin-form textarea::placeholder { font-weight: 500; color: #9aa0a6; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(168,15,27,.12);
}
.admin-form textarea { resize: vertical; min-height: 64px; }
.admin-form .af-full { grid-column: 1 / -1; }
.admin-form .af-check {
  flex-direction: row; align-items: center; gap: 8px; align-self: end;
  text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; color: var(--text);
}
.admin-form .af-check input { width: auto; accent-color: var(--primary); }
.admin-form button[type="submit"] {
  background: var(--primary); color: #fff; border: 0; border-radius: 10px;
  font-weight: 900; font-size: 14px; padding: 11px 26px; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.admin-form button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(168,15,27,.3); }
.admin-form button[type="submit"]:active { transform: translateY(0); }
@media (max-width: 600px) { .admin-form { grid-template-columns: 1fr; } }

.admin-card { padding: 20px; margin-bottom: 18px; transition: box-shadow .18s ease, transform .18s ease; animation: adminCardIn .35s ease both; }
.admin-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.08); }
@keyframes adminCardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
/* Stagger the cards so the page assembles itself on load. */
.admin-card:nth-of-type(1) { animation-delay: .02s; }
.admin-card:nth-of-type(2) { animation-delay: .08s; }
.admin-card:nth-of-type(3) { animation-delay: .14s; }
.admin-card:nth-of-type(4) { animation-delay: .20s; }
.admin-card:nth-of-type(n+5) { animation-delay: .26s; }
@media (prefers-reduced-motion: reduce) { .admin-card { animation: none; } }

/* Save-confirmation toast (replaces the static success banner). */
.admin-toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: #111; color: #fff; font-weight: 700; font-size: 14px;
  padding: 13px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.28);
  transform: translateY(24px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease; cursor: pointer;
}
.admin-toast.show { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.admin-toast-ic {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #2ecc71; color: #fff; font-size: 13px; font-weight: 900;
  animation: toastPop .4s ease both .1s;
}
@keyframes toastPop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.admin-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.admin-card-head h2 { color: var(--primary); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.admin-table th {
  background: var(--primary); color: #fff; padding: 10px; text-align: left;
  font-size: 12px; text-transform: uppercase; letter-spacing: .3px;
}
.admin-table td { border-bottom: 1px solid var(--border); padding: 10px; vertical-align: middle; }
.admin-table small { color: var(--muted); }
.admin-card input, .admin-card select, .admin-card textarea {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 10px; font: inherit;
}
.admin-product { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.admin-product img {
  width: 46px; height: 46px; max-width: 46px; max-height: 46px; object-fit: contain; background: #fff;
  border: 1px solid var(--border); border-radius: 7px; padding: 3px; flex-shrink: 0;
}
.stock-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stock-form input[type="number"] {
  width: 92px; padding: 9px 10px; border: 1.5px solid var(--border);
  border-radius: 8px; font-weight: 800;
}
.stock-form label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 800; }
.admin-summary-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 14px;
}
.admin-summary-grid div {
  background: #f6f8fc; border: 1px solid var(--border); border-radius: 10px; padding: 11px;
}
.admin-summary-grid span {
  display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.admin-summary-grid strong { color: var(--text); }
.admin-dashboard .admin-card-head p { color: var(--muted); margin-top: 3px; }
.dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-stats a {
  background: #f6f8fc; border: 1px solid var(--border); border-radius: 10px; padding: 13px;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.dashboard-stats a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dashboard-stats span, .dashboard-stats small { display: block; color: var(--muted); }
.dashboard-stats strong { display: block; font-size: 24px; margin: 4px 0; }
.dashboard-stats small { font-size: 12px; }
.dashboard-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.dashboard-chart-card .admin-card-head { margin-bottom: 4px; }
.dashboard-chart-card .admin-card-head p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.dashboard-bar-chart { height: 180px; display: flex; align-items: end; gap: 10px; padding: 18px 8px 0; border-bottom: 1px solid var(--border); }
.dashboard-bar-wrap { height: 100%; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 5px; }
.dashboard-bar { width: min(34px, 100%); min-height: 4px; background: var(--primary); border-radius: 7px 7px 2px 2px; }
.dashboard-bar-chart.visitors .dashboard-bar { background: #111; }
.dashboard-bar-value { color: var(--text); font-size: 12px; font-weight: 800; }
.dashboard-bar-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.dashboard-bar { transition: height .6s cubic-bezier(.2,.8,.2,1); }
/* Pie chart (conic-gradient) + legend. */
.dashboard-pie-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 8px; }
.dashboard-pie {
  width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0;
  box-shadow: inset 0 0 0 6px #fff, 0 4px 16px rgba(0,0,0,.12);
  animation: pieSpinIn .7s ease both;
}
@keyframes pieSpinIn { from { transform: rotate(-120deg) scale(.6); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
.dashboard-pie-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 7px; }
.dashboard-pie-legend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.dashboard-pie-legend .pie-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.dashboard-pie-legend .pie-lbl { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-pie-legend .pie-val { margin-left: auto; color: var(--muted); font-weight: 700; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .dashboard-pie { animation: none; } }
.admin-notes {
  background: #fff1f2; border: 1px solid var(--primary); color: var(--primary-dark);
  border-radius: 10px; padding: 12px; margin-bottom: 14px;
}

/* ── Profile dashboard ───────────────────────────────────────────────────── */
.profile-page { max-width: 920px; margin: 0 auto; padding: 28px 16px 70px; }
.profile-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.profile-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.profile-head h1 { color: var(--primary); font-size: 26px; margin-bottom: 4px; }
.profile-head p { color: var(--muted); }
.profile-logo {
  width: 86px; height: 86px; object-fit: contain; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; padding: 6px; flex-shrink: 0;
}
.profile-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.profile-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.profile-form input, .profile-form select, .profile-form textarea {
  border: 1.5px solid var(--border); border-radius: 9px; padding: 11px 12px;
  font: inherit; color: var(--text); background: #fff; text-transform: none; letter-spacing: 0;
}
.profile-form input[readonly] { background: #f5f6f8; color: var(--muted); cursor: not-allowed; }
.profile-form .full, .profile-note, .profile-actions { grid-column: 1 / -1; }
.profile-note { color: red; font-size: 13px; font-weight: 700; }
.profile-actions { text-align: right; }
.profile-actions button {
  background: var(--primary); color: #fff; border: 0; border-radius: 9px;
  font-weight: 900; padding: 11px 22px; cursor: pointer;
}
.profile-quotes { margin-top: 18px; }
.profile-quotes .profile-head { margin-bottom: 12px; }
.profile-empty {
  border: 1.5px dashed var(--border); border-radius: 10px; padding: 18px;
  color: var(--muted); font-weight: 700; text-align: center; background: #fafafa;
}
.profile-quote-table-wrap { overflow-x: auto; }
.profile-quote-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.profile-quote-table th {
  background: #fff1f2; color: var(--primary); font-size: 11px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .3px; text-align: left; padding: 10px 12px;
  border-bottom: 1.5px solid var(--border);
}
.profile-quote-table td {
  padding: 12px; border-bottom: 1px solid var(--border); color: var(--text);
  font-size: 13px; vertical-align: middle;
}
.profile-quote-table td span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.profile-quote-table tbody tr:hover td { background: #fafafa; }
.quote-status {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-width: 58px; margin: 0 !important; padding: 4px 8px; border-radius: 999px;
  font-size: 11px !important; font-weight: 900; background: #f1f1f1; color: var(--muted) !important;
}
.quote-status.sent { background: #e7f6ec; color: #128c3e !important; }
.quote-download {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px;
  padding: 7px 12px; border-radius: 8px; background: var(--primary); color: #fff;
  text-decoration: none; font-size: 12px; font-weight: 900;
}
.quote-download:hover { background: var(--primary-dark); }
.quote-missing { color: var(--muted); font-size: 12px; font-weight: 700; }

/* ── Misc ─────────────────────────────────────────────────────────────────── */
details summary { cursor:pointer; font-weight:700; color:var(--primary); padding:8px 0; }
.items-table { width:100%; font-size:12px; border-collapse:collapse; margin-top:10px; }
.items-table th { background:var(--primary); color:#fff; padding:7px 8px; text-align:left; }
.items-table td { padding:6px 8px; border-bottom:1px solid var(--border); }
.items-table tr:nth-child(even) td { background:#f8f9fc; }

/* ── Mobile navigation ──────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .header { height: 58px; min-height: 58px; padding: 8px 14px; gap: 8px; }
  .logo-sub-wrap, .header-contact, .hu-name { display: none; }
  .header-right, .header-user { gap: 6px; min-width: 0; }
  .hu-logout { padding: 5px 8px; font-size: 11px; }
  .meganav { top: 58px; min-height: 46px; }
  .nav-toggle {
    width: 100%; min-height: 46px; padding: 0 16px; display: flex; align-items: center; gap: 10px;
    border: 0; background: transparent; color: #fff; font: inherit; font-weight: 800; cursor: pointer;
  }
  .nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; content: ''; transition: transform .18s;
  }
  .nav-toggle-icon { position: relative; }
  .nav-toggle-icon::before { position: absolute; top: -6px; }
  .nav-toggle-icon::after { position: absolute; top: 6px; }
  .meganav.is-open .nav-toggle-icon { background: transparent; }
  .meganav.is-open .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
  .meganav.is-open .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .meganav-inner {
    display: none; position: absolute; top: 100%; left: 0; width: 100%; max-height: calc(100vh - 104px);
    overflow-y: auto; padding: 4px 0 12px; flex-direction: column; align-items: stretch; background: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,.24);
  }
  .meganav.is-open .meganav-inner { display: flex; }
  .mn-item, .mn-search { width: 100%; margin: 0; }
  .mn-item { display: flex; flex-direction: column; }
  .mn-link { width: 100%; justify-content: space-between; padding: 12px 18px; font-size: 14px; }
  .mn-yos-link, .mn-brand-link { justify-content: flex-start; }
  .mn-drop, .mn-flyout {
    display: none; position: static; min-width: 0; width: 100%; opacity: 1; visibility: visible; transform: none;
    border-radius: 0; box-shadow: none; background: rgba(0,0,0,.18); padding: 0;
  }
  .mn-item.open > .mn-drop { display: block; }
  .mn-drop-link { padding: 10px 32px; font-size: 13px; }
  .mn-sub:hover > .mn-flyout, .mn-sub.open > .mn-flyout { display: block; }
  .mn-search { padding: 10px 16px; }
  .mn-search input { width: 100%; }
}

@media(max-width:900px){
  .hero-carousel { height: auto; }
  .hero { min-height: 0; background-position: center; }
  .hero-content { width: min(470px, 94vw); padding-left: 28px; }
  .hero h1 { font-size: 36px; }
  .result-grid { grid-template-columns: 1fr; }
  .admin-top { align-items: flex-start; flex-direction: column; }
  .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-charts { grid-template-columns: 1fr; }
  .profile-form { grid-template-columns: 1fr; }
}

@media(max-width:700px){
  .header { height: 58px; min-height: 58px; padding: 8px 12px; gap: 8px; }
  .meganav { top: 58px; }
  .brand-logo-img { height: 30px; max-width: 210px; }
  .logo-mark { font-size: 23px; }
  .logo-text { font-size: 14px; }
  .header-contact { font-size: 11px; line-height: 1.35; }
  .logo-sub-wrap, .header-contact, .hu-name { display: none; }
  .header-right, .header-user { gap: 6px; min-width: 0; }
  .hu-logout { padding: 5px 8px; font-size: 11px; }
  .page { padding: 20px 12px 110px; }
  .cat-tabs {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
    margin: 0 -12px 22px; padding-left: 12px; padding-right: 12px;
    scrollbar-width: none;
  }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex: 0 0 auto; padding: 8px 15px; }
  .sec-head { font-size: 16px; margin-bottom: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard-body { padding: 11px; }
  .pcard-name { font-size: 12.5px; }
  .pcard-desc { font-size: 11px; }
  .price-badges { gap: 4px; }
  .pbadge { font-size: 10.5px; padding: 3px 6px; }
  .add-btn { font-size: 12px; padding: 9px 7px; }
}

@media(max-width:600px){
  .hero-carousel { height: auto; }
  .hero { align-items: flex-end; }
  .hero-content { width: 100%; margin-right: 0; padding: 120px 18px 28px; }
  .hero h1 { font-size: 31px; }
  .result-page { padding: 18px 12px 34px; }
  .result-hero-card { padding: 18px; }
  .result-hero-card h1 { font-size: 24px; }
  .quote-stats, .result-grid { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .result-btn { width: 100%; }
  .selected-product { grid-template-columns: 52px minmax(0, 1fr); }
  .selected-img { width: 52px; height: 52px; }
  .selected-total { grid-column: 2; justify-self: start; }
  .cart-bar {
    padding: 12px; flex-wrap: wrap; align-items: stretch; gap: 10px;
  }
  .cart-bar-info { min-width: calc(50% - 5px); }
  .cart-items-preview { display: none; }
  .get-quote-btn { flex: 1 1 100%; width: 100%; padding: 12px; font-size: 14px; }
  .modal-overlay { padding: 10px; align-items: flex-end; }
  .modal {
    max-width: none; max-height: calc(100vh - 20px);
    border-radius: 16px 16px 0 0; overflow-y: auto;
  }
  .modal-head { padding: 15px 16px; }
  .modal-body { padding: 16px; }
  .qty-tier-btn { padding: 11px 12px; gap: 12px; }
  .qty-tier-btn .qt-price { font-size: 14px; text-align: right; }
  .order-summary { max-height: 135px; }
}

@media(max-width:420px){
  .header { align-items: center; }
  .brand-logo-img { height: 28px; max-width: 150px; }
  .header-contact { display: none; }
  .hu-logout { padding: 4px 6px; font-size: 10px; }
  .hero-carousel { height: auto; }
  .hero { background-position: 58% center; }
  .hero-content { padding: 100px 14px 24px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 13.5px; }
  .hero-badge { font-size: 11px; padding: 5px 10px; }
  .product-grid { grid-template-columns: 1fr; }
  .pcard { max-width: 340px; width: 100%; margin: 0 auto; }
  .cart-bar-info .total { font-size: 18px; }
  .form-grid-2 { gap: 10px; }
  .summary-line { flex-direction: column; gap: 2px; }
  .summary-line strong { text-align: left; }
  .prf-values { grid-template-columns: 1fr 1fr; }
  .selected-product { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .selected-img { width: 48px; height: 48px; }
  .selected-name { font-size: 12px; }
  .admin-page { padding: 18px 12px 42px; }
  .admin-login { margin: 32px auto; padding: 20px; }
  .admin-card { padding: 12px; }
  .admin-summary-grid { grid-template-columns: 1fr; }
}

/* ── Site Footer ────────────────────────────────────────────────────────── */
.site-footer { background: #eceef0; color: rgba(0,0,0,.72); margin-top: 60px; }
.footer-inner {
  max-width: 1260px; margin: 0 auto; padding: 44px 20px 30px;
  display: grid; grid-template-columns: 1.4fr auto; gap: 36px;
}
/* Push the Quick Links column to the right edge of the footer. */
.footer-inner .footer-col:last-child { justify-self: end; text-align: right; }
.footer-col a { color: rgba(0,0,0,.66); text-decoration: none; display: block; padding: 4px 0; font-size: 13.5px; }
.footer-col a:hover { color: var(--primary); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
.footer-brand .logo-mark { font-size: 22px; }
.footer-tag { color: var(--primary); font-weight: 600; font-size: 13px; margin-bottom: 14px; }
.footer-addr { font-size: 12.5px; line-height: 1.7; color: rgba(0,0,0,.55); }
.footer-contacts { margin-top: 14px; }
.footer-contacts a { color: var(--primary); font-weight: 600; }
.footer-title { color: #1a1a1a; font-weight: 700; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col-catalogue { justify-self: end; min-width: 360px; }
.footer-catalogue-links { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); column-gap: 24px; }

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,.12); padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1260px; margin: 0 auto;
}
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.footer-social .soc {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; color: #fff;
  transition: transform .15s, filter .15s; text-decoration: none;
}
.footer-social .soc svg { width: 19px; height: 19px; }
.footer-social .soc:hover { transform: translateY(-3px); filter: brightness(.9); }
.footer-social .soc-wa { background: #25D366; }
.footer-social .soc-ig { background: linear-gradient(135deg, #833AB4, #FD1D1D 55%, #FCAF45); }
.footer-social .soc-yt { background: #FF0000; }
.footer-social .soc-fb { background: #1877F2; }
.footer-copy { font-size: 12.5px; color: rgba(0,0,0,.5); margin-right: auto; text-align: left; }

.consultation-cta {     position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 0;
    max-width: calc(100vw - 40px);
    padding: 11px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.18;
    box-shadow: 0 7px 22px rgba(18, 140, 62, .32);
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: gap .18s ease, padding .18s ease, transform .15s ease, background .15s ease, opacity .15s ease, visibility 0s linear .15s; }
.consultation-cta.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.consultation-cta:hover,
.consultation-cta:focus-visible { background: #128C3E; gap: 10px; padding-right: 15px; transform: translateY(-2px); }
.consultation-label { max-width: 0; opacity: 0; overflow: hidden; transform: translateX(6px); transition: max-width .22s ease, opacity .16s ease, transform .18s ease; }
.consultation-cta:hover .consultation-label,
.consultation-cta:focus-visible .consultation-label { max-width: 230px; opacity: 1; transform: translateX(0); }
.consultation-cta small { display: block; margin-top: 2px; font-size: 10px; font-weight: 600; opacity: .94; }
.consultation-wa { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #25D366; font-size: 18px; flex: 0 0 34px; }
.consultation-wa svg { width: 21px; height: 21px; display: block; }

@media (max-width: 980px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col-catalogue { justify-self: stretch; min-width: 0; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-catalogue-links { grid-template-columns: 1fr; }
  .consultation-cta { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
}

/* ── Simple content pages (about / contact) ─────────────────────────────── */
.content-page { max-width: 1100px; margin: 0 auto; padding: 36px 20px 40px; }
.page-hero { background: var(--primary); color:#fff; padding: 46px 20px; text-align: center; }
.page-hero h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto; }
.brand-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.brand-product-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; background: #fff; transition: transform .15s, box-shadow .15s; }
.brand-product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.1); }
.brand-product-image { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.brand-product-image img { width: 100%; height: 100%; object-fit: contain; }
.brand-product-image span { font-size: 40px; }
.brand-product-card strong { font-size: 14px; line-height: 1.35; }
.brand-product-card small { color: var(--muted); font-size: 12px; }
/* Full-bleed text banners — rendered in a fixed 15:4 frame. */
.distributor-hero, .contact-hero, .brands-hero, .process-hero { width: 100%; background: #fff; }
.distributor-hero img, .contact-hero img, .brands-hero img, .process-hero img {
  display: block; width: 100%;  
  object-fit: cover; object-position: center; margin: 0 auto;
}

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; margin: 28px 0; }
.about-card { background:#fff; border:1.5px solid var(--border); border-radius: var(--radius); padding: 22px; }
.about-card .ac-icon { font-size: 30px; margin-bottom: 10px; }
.about-card h3 { color: var(--primary); font-size: 16px; margin-bottom: 6px; }
.about-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.about-stats { display:flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin: 30px 0; }
.about-stat { text-align:center; }
.about-stat .num { font-size: 34px; font-weight: 900; color: var(--accent); }
.about-stat .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.prose { font-size: 15px; line-height: 1.8; color: var(--text); }
.prose h2 { color: var(--primary); font-size: 20px; margin: 26px 0 10px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 28px; }
.contact-info-box { background:#fff; border:1.5px solid var(--border); border-radius: var(--radius); padding: 24px; }
.contact-info-box .ci-row { display:flex; gap:12px; align-items:flex-start; padding: 12px 0; border-bottom:1px solid var(--border); }
.contact-info-box .ci-row:last-child { border-bottom:none; }
.contact-info-box .ci-ic { font-size: 20px; }
.contact-info-box .ci-lbl { font-size: 12px; color: var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.4px; }
.contact-info-box .ci-val { font-size: 14px; font-weight: 600; color: var(--text); }
.contact-info-box .ci-val a { color: var(--primary); text-decoration:none; }

.contact-form-box { background:#fff; border:1.5px solid var(--border); border-radius: var(--radius); padding: 24px; }
.contact-form-box label { display:block; font-size:13px; font-weight:600; color:var(--text); margin: 12px 0 5px; }
.contact-form-box input, .contact-form-box textarea {
  width:100%; border:1.5px solid var(--border); border-radius:8px; padding:10px 12px; font-size:14px; font-family:inherit; outline:none;
}
.contact-form-box input:focus, .contact-form-box textarea:focus { border-color: var(--primary); }
.flash-msg { background:#f2f2f2; border:1.5px solid var(--green); color:#111111; border-radius:10px; padding:14px 18px; margin-bottom: 20px; font-weight:600; }

@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Admin: Banners ─────────────────────────────────────────────────────── */
.banner-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; margin-bottom: 14px; }
.banner-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text); }
.banner-form label .lbl-inline { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.banner-form input { border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 13px; font-family: inherit; }
.banner-form > button { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 11px 22px; font-weight: 700; cursor: pointer; }
.brand-cms-tabs { margin-bottom: 16px; }
.brand-product-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text); }
.brand-product-form label[hidden] { display: none !important; }
.brand-product-form input, .brand-product-form select, .brand-product-form textarea { border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 11px; font: inherit; }
.brand-product-form .brand-product-active { flex-direction: row; align-items: center; padding-top: 31px; }
.brand-product-form .brand-product-description { grid-column: 1 / -1; }
.brand-product-form .special-category-options, .pe-form .special-category-options {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  padding: 14px; background: #fafafa; border: 1.5px solid var(--border); border-radius: 10px;
}
.special-category-options strong { width: 100%; font-size: 13px; margin-bottom: 2px; }
.brand-product-form .special-category-options label, .pe-form .special-category-options label {
  display: inline-flex; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 7px;
  padding: 8px 12px; background: #fff; border: 1.5px solid var(--border); border-radius: 999px;
  font-size: 12.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s;
}
.brand-product-form .special-category-options label:hover, .pe-form .special-category-options label:hover { border-color: var(--primary); background: #fff6f6; }
.brand-product-form .special-category-options input[type="checkbox"], .pe-form .special-category-options input[type="checkbox"] {
  width: 16px; height: 16px; margin: 0; padding: 0; flex: 0 0 16px; accent-color: var(--primary);
}
.brand-product-form .special-category-options label:has(input:checked), .pe-form .special-category-options label:has(input:checked) {
  color: var(--primary-dark); border-color: var(--primary); background: #fff1f2;
}
.pe-cat-group.has-conditional-subs:not(:has(.pe-cat-main input:checked)) .pe-cat-sub { display: none; }
.brand-product-form > button { background: var(--primary); color: #fff; border: 0; border-radius: 8px; padding: 11px 22px; font-weight: 700; cursor: pointer; }
.brand-product-form > .brand-product-cancel { margin-left: 8px; background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.banner-list { display: flex; flex-direction: column; gap: 12px; }
.banner-item { display: flex; gap: 14px; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px; }
.banner-item.off { opacity: .55; }
.banner-item img { width: 140px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #eef1f7; }
.banner-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.banner-meta strong { color: var(--primary); }
.banner-meta span, .banner-meta small { color: var(--muted); font-size: 12.5px; }
.banner-meta a { color: var(--accent); font-size: 12px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-actions { display: flex; gap: 8px; }
.banner-actions button { border: 1.5px solid var(--border); background: #fff; border-radius: 8px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.banner-actions button.danger { color: var(--red); border-color: var(--red); }

/* ── Header login button (guests) ───────────────────────────────────────── */
.hu-login {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 800;
  text-decoration: none; padding: 8px 16px; border-radius: 8px;
  transition: background .15s;
}
.hu-login:hover { background: var(--primary-dark); }

/* ── Showcase homepage theme ────────────────────────────────────────────── */
.showcase-strip {
  position: relative; background-size: cover; background-position: center;
  color: #fff; padding: 56px 20px;
}
.showcase-strip::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.30) 100%);
}
.showcase-strip-inner { position: relative; max-width: 1260px; margin: 0 auto; }
.showcase-strip h1 { font-size: 34px; font-weight: 900; line-height: 1.1; margin-bottom: 8px; }
.showcase-strip h1 span { color: var(--primary); }
.showcase-strip p { font-size: 15px; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 16px; }
.showcase-cta {
  display: inline-block; background: var(--primary); color: #fff; font-weight: 800;
  text-decoration: none; padding: 11px 22px; border-radius: 10px; transition: background .15s;
}
.showcase-cta:hover { background: var(--primary-dark); }

.showcase-cats-wrap { padding-bottom: 8px; }
.showcase-cats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-top: 4px;
}
.showcase-cat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 22px 14px; background: var(--card); border: 2px solid var(--border);
  border-radius: 14px; cursor: pointer; transition: all .16s; font-family: inherit;
}
.showcase-cat:hover {
  border-color: var(--primary); box-shadow: 0 8px 22px rgba(223,31,45,.16);
  transform: translateY(-2px); background: #fff1f2;
}
.showcase-cat .sc-ic { font-size: 30px; line-height: 1; }
.showcase-cat .sc-lbl { font-size: 13px; font-weight: 700; color: var(--text); text-align: center; }
@media (max-width: 560px) {
  .showcase-strip { padding: 40px 16px; }
  .showcase-strip h1 { font-size: 26px; }
  .showcase-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ── Admin: per-product editor (stock + pricing + categories) ───────────── */
.prod-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 16px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg,#fafafa,#f4f4f5); box-shadow: inset 0 1px 0 #fff; }
.prod-filter label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
  .prod-filter input:not([type="range"]) { padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 700; font-family: inherit; }
  .prod-filter input:not([type="range"]):focus { outline: none; border-color: var(--primary); }
.prod-filter-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Stock report export buttons */
.admin-btn-pdf { display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: #fff; color: var(--primary); border: 1.5px solid var(--primary); border-radius: 9px;
  font-weight: 800; font-size: 12.5px; padding: 8px 14px; transition: background .15s, color .15s; }
.admin-btn-pdf:hover { background: var(--primary); color: #fff; }
.prod-filter-actions button { background: var(--primary); color: #fff; border: 0; border-radius: 9px; font-weight: 900; padding: 9px 20px; cursor: pointer; }
.prod-filter-search { flex: 1 1 220px; }
.prod-filter-search input { width: 100%; }
.prod-filter select { padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 700; font-family: inherit; }
.prod-filter select:focus { outline: none; border-color: var(--primary); }
.prod-range { display: flex; flex-direction: column; gap: 6px; min-width: 210px; }
.prod-range-head { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.prod-range-head em { font-style: normal; color: var(--primary); }
    /* ── Dual-handle range slider ─────────────────────────────────────────────────
      Two <input type=range> stacked over a shared 20px-tall lane. Both inputs are
      the full height of the lane so their native thumbs land on the centre rail.
      Rail + active fill are drawn by ::before/::after. All critical layout props
      are !important so generic .prod-filter input rules can never distort them. */
    .prod-range-track {
      position: relative !important; height: 20px !important; padding: 0 !important;
      border: 0 !important; background: none !important; --lo: 0%; --hi: 100%;
    }
    /* Grey rail (full lane, vertically centred). */
    .prod-range-track::before {
      content: ''; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
      height: 4px; background: var(--border); border-radius: 3px; pointer-events: none;
    }
    /* Red active fill between the two thumbs. */
    .prod-range-track::after {
      content: ''; position: absolute; top: 50%; transform: translateY(-50%);
      left: var(--lo); right: calc(100% - var(--hi));
      height: 4px; background: var(--primary); border-radius: 3px; pointer-events: none;
    }
    /* Both range inputs overlay the lane exactly; only the thumbs are clickable. */
    .prod-range-track input[type="range"] {
      position: absolute !important; left: 0 !important; top: 0 !important;
      width: 100% !important; height: 20px !important; margin: 0 !important;
      padding: 0 !important; border: 0 !important; border-radius: 0 !important;
      background: transparent !important; pointer-events: none;
      -webkit-appearance: none !important; appearance: none !important;
    }
    .prod-range-track input[type="range"]::-webkit-slider-runnable-track { height: 20px; background: transparent; border: 0; }
    .prod-range-track input[type="range"]::-moz-range-track { height: 20px; background: transparent; border: 0; }
    /* Thumbs — WebKit centres on the runnable track automatically. */
    .prod-range-track input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none; appearance: none; pointer-events: auto;
      width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
      background: var(--primary); border: 3px solid #fff;
      box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer; transition: transform .12s ease;
    }
    .prod-range-track input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
    .prod-range-track input[type="range"]::-moz-range-thumb {
      pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
      background: var(--primary); border: 3px solid #fff;
      box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer;
    }
.prod-range-nums { display: flex; align-items: center; gap: 6px; }
.prod-range-nums input { width: 72px; padding: 6px 8px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 13px; font-weight: 700; font-family: inherit; }
.prod-range-nums input:focus { outline: none; border-color: var(--primary); }
.prod-range-nums span { color: var(--muted); font-weight: 800; }
.prod-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; font-weight: 800; color: var(--muted); }
.prod-pager a { color: var(--primary); text-decoration: none; border: 1.5px solid var(--border); border-radius: 9px; padding: 8px 16px; }
.prod-pager a:hover { border-color: var(--primary); }
.prod-edit-list { display: flex; flex-direction: column; gap: 10px; }
.prod-edit { border: 1.5px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.prod-edit[open] { border-color: var(--primary); box-shadow: 0 4px 18px rgba(168,15,27,.10); }
.prod-edit:hover { border-color: var(--primary); }
/* Compact one-line summary; expands to the edit form on click. */
.pe-summary {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer;
  list-style: none; user-select: none; transition: background .15s ease;
}
.pe-summary::-webkit-details-marker { display: none; }
.pe-summary:hover { background: #fafafa; }
.pe-summary img, .pe-noimg {
  width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #fff;
  border: 1px solid var(--border); flex-shrink: 0; display: grid; place-items: center; font-size: 20px;
}
.pe-summary-id { display: flex; flex-direction: column; min-width: 0; }
.pe-summary-id strong { color: var(--primary); font-size: 14px; }
.pe-summary-name { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.pe-summary-meta { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.pe-chip { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 20px; background: #f1f1f1; color: var(--muted); white-space: nowrap; }
.pe-chip.is-on { background: #e7f6ec; color: #128c3e; }
.pe-chip.is-off { background: #fde8e8; color: var(--primary); }
.pe-chip.is-out { background: #fff3cd; color: #8a6d00; }
.pe-summary-edit { font-weight: 800; color: var(--primary); font-size: 12px; white-space: nowrap; transition: transform .2s ease; }
.prod-edit[open] .pe-summary-edit { transform: rotate(180deg); }
.pe-form { padding: 4px 14px 14px; animation: peReveal .22s ease; }
@keyframes peReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) { .pe-summary-name { max-width: 130px; } }
.pe-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pe-head img { width: 46px; height: 46px; max-width: 46px; max-height: 46px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 3px; flex-shrink: 0; }
.pe-head strong { color: var(--primary); }
.pe-active { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.pe-fields { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin-bottom: 10px; }
.pe-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.pe-fields input { padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 700; }
.pe-fields input:focus { outline: none; border-color: var(--primary); }
.pe-fields .pe-yt input { font-weight: 500; }
.pe-image-row { display: flex; align-items: center; gap: 10px; }
.pe-image-preview { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 3px; flex-shrink: 0; }
.pe-image-row input[type="file"] { flex: 1; min-width: 0; font-weight: 500; }
.pe-cats { border: 1px dashed var(--border); border-radius: 10px; padding: 4px 12px; margin-bottom: 10px; }
.pe-cats > summary { font-weight: 800; color: var(--primary); }
.pe-cat-count { font-weight: 600; color: var(--muted); font-size: 12px; }
.pe-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 12px; padding: 12px 2px; }
.pe-cat-group { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.pe-cat-main { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.pe-cat-main strong { color: var(--text); }
.pe-cat-sub { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding-left: 16px; margin-top: 5px; }
.pe-cat-group label input { accent-color: var(--primary); }
/* Catalogue sidebar: colour + budget filters (shown above the category list) */
.cat-filters { margin: 0 0 16px; padding: 12px 10px; border: 1px solid var(--border, #e6e6e6); border-radius: 10px; }
.ccf-head { font-weight: 800; font-size: 13.5px; margin-bottom: 10px; }
.ccf-head-budget { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border, #e6e6e6); }
/* Dual-handle price range slider */
.cpr { position: relative; padding: 6px 4px 0; margin-bottom: 12px; }
.cpr-track { position: relative; height: 4px; border-radius: 999px; background: rgba(0,0,0,.12); }
.cpr-fill { position: absolute; top: 0; height: 100%; border-radius: 999px; background: var(--primary, #df1f2d); }
.cpr-range { position: absolute; left: 4px; right: 4px; top: 4px; width: calc(100% - 8px);
  margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 4px; }
.cpr-range:focus { outline: none; }
.cpr-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 16px; height: 16px; border-radius: 50%; background: #fff; cursor: grab;
  border: 3px solid var(--primary, #df1f2d); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.cpr-range::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; cursor: grab; border: 3px solid var(--primary, #df1f2d); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.cpr-range::-moz-range-track { background: none; border: 0; }
.cpr-vals { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700;
  color: var(--text, #111); margin-top: 14px; }
.cpr-go { margin-top: 9px; width: 100%; background: var(--primary, #df1f2d); color: #fff; border: 0;
  border-radius: 8px; font-weight: 800; font-size: 12.5px; padding: 7px 10px; cursor: pointer; }
.cbf-list { display: flex; flex-direction: column; gap: 2px; }
.cbf-band { display: block; font-size: 12.5px; padding: 6px 9px; border-radius: 7px;
  color: var(--muted, #667); text-decoration: none; }
.cbf-band:hover { background: rgba(0,0,0,.05); color: var(--text, #111); }
.cbf-band.on { background: var(--primary, #df1f2d); color: #fff; font-weight: 700; }
.ccf-count { background: var(--primary, #df1f2d); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.ccf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 12px 6px; }
.ccf-swatch { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ccf-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
/* Glossy 3D bead: white ring + drop shadow, with a soft highlight on top. */
.ccf-dot { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.28), inset 0 -3px 6px rgba(0,0,0,.22), inset 0 3px 6px rgba(255,255,255,.35);
  background-image: linear-gradient(160deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 42%, rgba(255,255,255,0) 58%); }
.ccf-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  color: var(--muted, #667); text-align: center; line-height: 1.15; }
.ccf-swatch.on .ccf-dot,
.ccf-swatch input:focus-visible + .ccf-dot { outline: 2px solid var(--primary, #df1f2d); outline-offset: 2px; }
.ccf-swatch.on .ccf-lbl { color: var(--primary, #df1f2d); }
.ccf-go { margin-top: 10px; background: var(--primary, #df1f2d); color: #fff; border: 0; border-radius: 8px; font-weight: 800; padding: 7px 14px; cursor: pointer; }
.ccf-clear { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700;
  color: var(--primary, #df1f2d); text-decoration: none; }
.ccf-clear:hover { text-decoration: underline; }

/* Empty-results state + popular fallback */
.category-no-results { text-align: center; padding: 44px 16px 28px; }
.cnr-icon { font-size: 40px; line-height: 1; margin-bottom: 10px; opacity: .55; }
.category-no-results h2 { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.category-no-results p { color: var(--muted, #667); font-size: 14px; margin-bottom: 16px; }
.cnr-reset, .cnr-browse { display: inline-block; margin: 0 5px; font-size: 13px; font-weight: 800;
  padding: 9px 18px; border-radius: 9px; text-decoration: none; }
.cnr-reset { background: var(--primary, #df1f2d); color: #fff; }
.cnr-browse { border: 1.5px solid var(--border, #e6e6e6); color: var(--text, #111); }
.cnr-browse:hover { border-color: var(--primary, #df1f2d); color: var(--primary, #df1f2d); }
.cnr-popular { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border, #e6e6e6); }
.cnr-popular h3 { font-size: 15px; font-weight: 900; margin-bottom: 14px; }

/* CMS colour picker */
.pe-color-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 2px 2px; width: 100%; }
/* Inside the pill-styled option blocks the swatches sit inline, not stacked. */
.special-category-options .pe-color-grid { padding: 0; }
.special-category-options .pe-color-grid .pe-color { flex: 0 0 auto; }
.pe-color { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.pe-color input { accent-color: var(--primary); }
.pe-color-dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid transparent; flex: none; }
.pe-actions { text-align: right; }
.pe-actions button { background: var(--primary); color: #fff; border: 0; border-radius: 9px; font-weight: 900; padding: 9px 20px; cursor: pointer; }
@media (max-width: 760px) {
  .pe-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pe-fields .pe-yt { grid-column: 1 / -1; }
}

/* ── Admin: category manager ────────────────────────────────────────────── */
.cat-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; align-items: end; max-width: 900px; }
.cat-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text); }
.cat-form input, .cat-form select { border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 14px; font-family: inherit; }
.cat-form input:focus, .cat-form select:focus { outline: none; border-color: var(--primary); }
.cat-form .cat-chk { flex-direction: row; align-items: center; gap: 7px; font-weight: 800; }
.cat-form button { background: var(--primary); color: #fff; border: 0; border-radius: 9px; font-weight: 900; padding: 10px 20px; cursor: pointer; }
.cat-list { display: flex; flex-direction: column; gap: 12px; }
.cat-block { border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.cat-block.is-other { border-color: var(--primary); background: #fff7f7; }
.cat-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-name code, .cat-sub-pill code { background: #f2f2f2; color: var(--muted); font-size: 11px; padding: 1px 6px; border-radius: 5px; }
.cat-tag { background: var(--primary); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.cat-del { background: #fff; color: var(--red); border: 1.5px solid var(--red); border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.cat-subs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cat-subs-empty { color: var(--muted); font-size: 12.5px; font-style: italic; }
.cat-sub-pill { display: inline-flex; align-items: center; gap: 6px; background: #f7f7f7; border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.cat-sub-del { background: none; border: 0; color: var(--red); font-weight: 900; cursor: pointer; padding: 0 2px; }
.cat-fixed { background: #f2f2f2; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 2px 8px; border-radius: 999px; }
.cat-sub-toggle-form { display: inline-flex; align-items: center; gap: 5px; }
.cat-sub-pill input[type="checkbox"] { accent-color: var(--primary); cursor: pointer; }
.cat-sub-pill { cursor: pointer; }
.cat-sub-pill.off { opacity: .5; text-decoration: line-through; }
.cat-sub-position { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.cat-sub-position input { width: 52px; border: 1px solid var(--border); border-radius: 6px; padding: 4px 5px; font: inherit; }
.cat-sub-save { border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--primary); padding: 4px 8px; font-size: 11px; font-weight: 800; cursor: pointer; }

/* ── Quote modal: logged-in account chip (replaces customer-detail fields) ── */
.quote-acct {
  display: flex; align-items: center; gap: 12px;
  background: #fff1f2; border: 1.5px solid var(--primary);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.quote-acct .qa-ic { font-size: 26px; line-height: 1; }
.quote-acct .qa-name { font-size: 15px; font-weight: 800; color: var(--text); }
.quote-acct .qa-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.quote-acct .qa-sub strong { color: var(--primary); }

/* ── Category catalogue downloads ───────────────────────────────────────── */
.cat-download-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.catalog-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.catalog-actions a {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--primary); border-radius: 8px; padding: 8px 12px;
  color: var(--primary); background: #fff; text-decoration: none; font-size: 12px; font-weight: 900;
}
.catalog-actions a:first-child { background: var(--primary); color: #fff; }

/* Hide injected desktop report widget. */
.webpkg-desktop-report-box {
  display: none !important;
}

/* ── Downloads page ──────────────────────────────────────────────────────── */
.dl-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 24px; }
.dl-tab {
  padding: 10px 22px; border: 1px solid #d7dbe2; border-radius: 8px;
  font-weight: 600; color: #3c424b; text-decoration: none; background: #fff;
  transition: all .15s;
}
.dl-tab:hover { border-color: #df1f2d; color: #df1f2d; }
.dl-tab.active { background: #df1f2d; border-color: #df1f2d; color: #fff; }

.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border: 1px solid #e6e8ec; border-radius: 10px;
  background: #fbfbfc; flex-wrap: wrap;
}
.dl-row-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dl-row-ico { font-size: 26px; line-height: 1; }
.dl-row-img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex-shrink: 0; border: 1px solid #e6e8ec; }
.dl-row-title { font-weight: 700; color: #1e2637; font-size: 15px; }
.dl-row-sub { color: #6e7890; font-size: 13px; }
.dl-row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-btn {
  padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
  text-decoration: none; background: #df1f2d; color: #fff;
  border: 1px solid #df1f2d; white-space: nowrap; transition: opacity .15s;
}
.dl-btn:hover { opacity: .88; }
.dl-btn-alt { background: #fff; color: #df1f2d; }
.dl-btn-alt:hover { background: #fdecee; opacity: 1; }

@media (max-width: 640px) {
  .dl-row { align-items: flex-start; }
  .dl-row-actions { width: 100%; }
  .dl-btn { flex: 1; text-align: center; }
}

/* ── Admin ▸ Stock Report ──────────────────────────────────────────────────── */
.sr-actions { display: flex; gap: 8px; align-items: center; }
.sr-actions button { cursor: pointer; font-family: inherit; }
.sr-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.sr-filters input, .sr-filters select {
  padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit;
}
.sr-filters input[type="number"] { width: 110px; }
.sr-filters button {
  background: var(--primary); color: #fff; border: 0; border-radius: 8px;
  font-weight: 800; padding: 9px 18px; cursor: pointer; font-family: inherit;
}
.sr-modes { margin-left: auto; display: inline-flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.sr-modes a { padding: 8px 14px; font-size: 12.5px; font-weight: 800; text-decoration: none; color: var(--muted); }
.sr-modes a.on { background: var(--primary); color: #fff; }

.sr-capture { background: #fff; padding: 16px; border-radius: 10px; }
.sr-title { display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 14px; }
.sr-title strong { font-size: 15px; }
.sr-title span { font-size: 12px; color: var(--muted); }

.sr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 18px; }
.sr-tile { border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.sr-tile span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--muted); margin-bottom: 4px; }
.sr-tile strong { font-size: 19px; font-weight: 900; }
.sr-tile.warn   { border-color: #f0b429; background: #fffaf0; }
.sr-tile.danger { border-color: #e05252; background: #fff5f5; }
.sr-tile.muted  { background: #fafafa; }

.sr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sr-table th { background: #f4f4f4; text-align: left; padding: 8px 9px; border: 1px solid #e2e2e2;
  font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
.sr-table td { padding: 7px 9px; border: 1px solid #ececec; vertical-align: middle; }
.sr-table tbody tr:nth-child(even) { background: #fbfbfb; }
.sr-table .r { text-align: right; }
.sr-table .c { text-align: center; }
.sr-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.sr-table .low  { color: #b8860b; }
.sr-table .out  { color: #c92a2a; }
.sr-colors { color: var(--muted); font-size: 11.5px; }
.sr-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; }
.sr-pill.on  { background: #e6f7ed; color: #1a7f43; }
.sr-pill.off { background: #f0f0f0; color: #888; }

.sr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sr-card { border: 1.5px solid var(--border); border-radius: 10px; padding: 8px; }
.sr-card-img { height: 110px; display: flex; align-items: center; justify-content: center;
  background: #fafafa; border-radius: 7px; overflow: hidden; margin-bottom: 7px; }
.sr-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sr-card-img span { font-size: 11px; color: #bbb; }
.sr-card-code { font-weight: 900; font-size: 12px; color: var(--primary); }
.sr-card-name { font-size: 11.5px; line-height: 1.3; margin: 2px 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-card-foot { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; }
.sr-card-foot .low { color: #b8860b; }
.sr-card-foot .out { color: #c92a2a; }
.sr-empty { text-align: center; color: var(--muted); padding: 30px 0; }
