/* ===========================================================
   Rajguru Enterprise — Customer Website
   Clean, professional B2B stylesheet (no build step)
   2-wheeler & 3-wheeler auto parts · light + dark mode
   =========================================================== */

:root {
  /* Brand palette — steel blue + industrial gold */
  --brand:        #1e3a5f;
  --brand-dark:   #152a45;
  --brand-2:      #2b5488;
  --accent:       #f2c94c;   /* bright gold — fills, glows, CTAs */
  --accent-dark:  #a9761c;   /* readable bronze — text accents on light bg */
  --accent-ink:   #17181b;   /* dark ink on gold fills */

  /* Themeable surfaces / text (overridden in dark) */
  --ink:          #14202e;
  --body:         #3f4a58;
  --muted:        #6b7686;
  --line:         #e3e7ee;
  --bg:           #ffffff;
  --bg-soft:      #f5f7fa;
  --bg-steel:     #eef2f7;
  --card:         #ffffff;
  --field-bg:     #ffffff;
  --header-bg:    rgba(255,255,255,.92);
  --banner-bg:    #fdf1d8;
  --banner-fg:    #7a5a12;
  --banner-line:  #f0dcae;

  --success:      #1f8b57;
  --radius:       18px;
  --radius-sm:    12px;
  --radius-lg:    26px;
  --shadow-sm:    0 1px 2px rgba(20,32,46,.05), 0 4px 16px rgba(20,32,46,.06);
  --shadow:       0 12px 32px -6px rgba(20,32,46,.12);
  --shadow-lg:    0 26px 60px -14px rgba(20,32,46,.20);
  --maxw:         1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Glassmorphism tokens (light) */
  --glass-bg:     rgba(255,255,255,.55);
  --glass-bg-2:   rgba(255,255,255,.42);
  --glass-brd:    rgba(255,255,255,.7);
  --glass-hi:     rgba(255,255,255,.85);
  --glass-blur:   18px;
  --glass-shadow: 0 10px 30px -8px rgba(20,32,46,.18), 0 2px 8px rgba(20,32,46,.06);
  /* Morph aurora blob colors */
  --blob-1: rgba(43,84,136,.55);
  --blob-2: rgba(242,201,76,.42);
  --blob-3: rgba(30,58,95,.50);
  --blob-4: rgba(159,194,234,.42);
}

:root[data-theme="dark"] {
  --ink:          #eaf0f7;
  --body:         #b7c3d2;
  --muted:        #869482;
  --muted:        #8493a5;
  --line:         #26333f;
  --bg:           #0e1620;
  --bg-soft:      #111b26;
  --bg-steel:     #16222f;
  --card:         #16212c;
  --field-bg:     #1a2733;
  --header-bg:    rgba(14,22,32,.9);
  --banner-bg:    #2a2113;
  --banner-fg:    #e7c785;
  --banner-line:  #3a2f18;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.4);
  --shadow:       0 6px 24px rgba(0,0,0,.5);
  --shadow-lg:    0 20px 50px rgba(0,0,0,.6);

  /* Glassmorphism tokens (dark) */
  --glass-bg:     rgba(22,33,44,.52);
  --glass-bg-2:   rgba(20,30,40,.40);
  --glass-brd:    rgba(255,255,255,.12);
  --glass-hi:     rgba(255,255,255,.16);
  --glass-blur:   20px;
  --glass-shadow: 0 14px 40px -10px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);
  --blob-1: rgba(63,110,170,.42);
  --blob-2: rgba(242,201,76,.26);
  --blob-3: rgba(43,84,136,.48);
  --blob-4: rgba(120,160,210,.30);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .2s ease, color .2s ease;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { text-decoration: none; transition: color .15s ease; }
a:not([class*="btn"]) { color: var(--brand-2); }
a:not([class*="btn"]):hover { color: var(--accent-dark); }
:root[data-theme="dark"] a:not([class*="btn"]) { color: #7fb0e6; }
:root[data-theme="dark"] a:not([class*="btn"]):hover { color: #e7c785; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--steel { background: var(--bg-steel); }
.text-center { text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .6rem; }
:root[data-theme="dark"] .eyebrow { color: #e0b45f; }
.lead { font-size: 1.12rem; color: var(--body); max-width: 640px; }
.section-head { max-width: 680px; margin: 0 auto 44px; }
.section-head.text-center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Testing-phase banner ---------- */
.testing-banner {
  background: var(--banner-bg); color: var(--banner-fg); border-bottom: 1px solid var(--banner-line);
  text-align: center; font-size: .84rem; font-weight: 600; padding: 8px 16px; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.testing-banner .tb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(201,144,42,.5); animation: pulse 2.2s infinite; flex: 0 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: inherit; font-size: .98rem; font-weight: 600; line-height: 1;
  padding: 14px 26px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-dark); background: var(--card); }
:root[data-theme="dark"] .btn-ghost { color: #9fc2ea; }
:root[data-theme="dark"] .btn-ghost:hover { color: #cfe0f4; border-color: #3d556f; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
/* Inert button — looks like a button, intentionally does nothing (Enquire, testing phase) */
.btn-inert { cursor: default; }
.btn-inert:active { transform: none; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 40px; height: 40px; flex: 0 0 auto; }
.brand .brand-name { font-size: 1.15rem; line-height: 1.05; }
.brand .brand-name small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav-area { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: block; padding: 10px 14px; border-radius: 10px; color: var(--body); font-weight: 600; font-size: .96rem; }
.nav-links a:not(.btn):hover { background: var(--bg-soft); color: var(--brand); }
:root[data-theme="dark"] .nav-links a:not(.btn):hover { color: #cfe0f4; }
.nav-links a.active { color: var(--brand); background: var(--bg-steel); }
:root[data-theme="dark"] .nav-links a.active { color: #cfe0f4; }
.nav-cta { margin-left: 6px; }

/* ---------------------------------------------------------------
   Theme toggle (top-right) — day / night SLIDER
   Pill switch built entirely in CSS (no images, no JS animation):
   light = sun on the left over a banded blue sky with clouds,
   dark  = moon on the right over a navy sky with twinkling stars.
   Everything keys off --tt-x, which shifts when <html data-theme=dark>.
   --------------------------------------------------------------- */
.theme-toggle {
  --tt-w: 64px; --tt-h: 32px; --tt-pad: 3px; --tt-knob: 26px;
  --tt-x: 0px;                       /* knob travel: 0 = day */
  width: var(--tt-w); height: var(--tt-h); flex: 0 0 auto;
  position: relative; display: block; padding: 0; border: 0;
  background: none; border-radius: 999px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s ease;
}
:root[data-theme="dark"] .theme-toggle { --tt-x: 32px; }
.theme-toggle:active { transform: scale(.95); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

/* --- the sky --- */
.tt-pill {
  position: absolute; inset: 0; display: block;
  border-radius: 999px; overflow: hidden;
  background: linear-gradient(180deg, #2eb3ef 0%, #7fd0f4 46%, #c3e7fa 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.62),
              inset 0 -4px 8px rgba(0,0,0,.06),
              0 3px 8px rgba(6,26,48,.28);
  transition: background .55s ease, box-shadow .55s ease;
}
:root[data-theme="dark"] .tt-pill {
  background: linear-gradient(180deg, #0c1136 0%, #141a45 55%, #1c2252 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18),
              inset 0 -4px 8px rgba(0,0,0,.18),
              0 3px 8px rgba(0,0,0,.42);
}

/* --- concentric light bands radiating from the sun / moon --- */
.tt-band {
  position: absolute; left: 16px; top: 16px; display: block;
  border-radius: 50%; background: rgba(255,255,255,.17);
  transform: translateX(var(--tt-x));
  transition: transform .6s cubic-bezier(.36,1.4,.5,1), background .55s ease;
}
.tt-b1 { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.tt-b2 { width: 66px; height: 66px; margin: -33px 0 0 -33px; }
.tt-b3 { width: 90px; height: 90px; margin: -45px 0 0 -45px; }
:root[data-theme="dark"] .tt-band { background: rgba(214,222,255,.13); }

/* --- stars (dark only) --- */
.tt-stars { position: absolute; inset: 0; display: block; opacity: 0;
  transition: opacity .45s ease .08s; }
:root[data-theme="dark"] .tt-stars { opacity: 1; }
.tt-stars i {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: #fff; box-shadow: 0 0 4px rgba(255,255,255,.85);
  animation: ttTwinkle 2.6s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes ttTwinkle {
  0%, 100% { opacity: .35; transform: scale(.75); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* --- clouds (light only) — they sink away as night falls --- */
.tt-clouds { position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  display: block; transition: transform .55s cubic-bezier(.4,0,.2,1), opacity .4s ease; }
:root[data-theme="dark"] .tt-clouds { transform: translateY(130%); opacity: 0; }
.tt-cloud { position: absolute; display: block; border-radius: 999px; background: #fff; }
.tt-c1 { width: 34px; height: 20px; left: 24px; bottom: -9px; }
.tt-c2 { width: 24px; height: 15px; left: 44px; bottom: -4px; background: rgba(255,255,255,.9); }
.tt-c3 { width: 26px; height: 14px; left: 14px; bottom: -7px; background: rgba(255,255,255,.72); }

/* --- the knob: sun -> moon --- */
.tt-knob {
  position: absolute; top: var(--tt-pad); left: var(--tt-pad); display: block;
  width: var(--tt-knob); height: var(--tt-knob); border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #ffe886, #f5c518 62%, #e0ac0b 100%);
  box-shadow: 0 0 10px rgba(255,205,60,.8), 0 2px 4px rgba(0,0,0,.2),
              inset 0 -2px 4px rgba(0,0,0,.08);
  transform: translateX(var(--tt-x));
  transition: transform .6s cubic-bezier(.36,1.4,.5,1), background .5s ease, box-shadow .5s ease;
}
:root[data-theme="dark"] .tt-knob {
  background: radial-gradient(circle at 34% 28%, #ffffff, #edf0f7 58%, #c9cee0 100%);
  box-shadow: 0 0 12px rgba(198,216,255,.55), 0 2px 4px rgba(0,0,0,.38),
              inset 0 -2px 4px rgba(0,0,0,.06);
}
.tt-crater { position: absolute; display: block; border-radius: 50%;
  background: #c6ccdf; opacity: 0; transition: opacity .4s ease .14s; }
:root[data-theme="dark"] .tt-crater { opacity: .78; }
.tt-k1 { width: 9px; height: 9px; left: 10px; top: 13px; }
.tt-k2 { width: 5px; height: 5px; left: 5px; top: 7px; }
.tt-k3 { width: 4px; height: 4px; left: 17px; top: 5px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1100px 500px at 82% -10%, rgba(242,201,76,.32), transparent 60%), linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-2) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 44px 44px; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 90px 0; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.86); font-size: 1.15rem; max-width: 540px; }
.hero .badge { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); margin-bottom: 20px; }
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: .85rem; color: rgba(255,255,255,.75); }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; padding: 26px; backdrop-filter: blur(6px); }
.hero-card h3 { color: #fff; font-size: 1.05rem; }
.hero-card ul { list-style: none; margin: 14px 0 0; padding: 0; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.9); font-size: .96rem; }
.hero-card li:first-child { border-top: 0; }
.hero-card .ico { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd8e6; }
:root[data-theme="dark"] .card:hover { border-color: #33475b; }
.card .ico-box { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-steel); color: var(--brand); margin-bottom: 16px; }
:root[data-theme="dark"] .card .ico-box { color: #8fb6e4; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--body); font-size: .96rem; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; color: var(--body); }
.checklist .ico { color: var(--success); flex: 0 0 auto; margin-top: 3px; }

/* ---------- Category / product cards ---------- */
.tag { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--accent-dark); background: #fbf3e2; padding: 3px 9px; border-radius: 999px; }
:root[data-theme="dark"] .tag { background: #2c2413; color: #e0b45f; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--field-bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 260px; flex: 1 1 300px; max-width: 420px; }
.search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(43,84,136,.12); }
.search input { border: 0; outline: 0; font-family: inherit; font-size: .98rem; width: 100%; color: var(--ink); background: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--body); background: var(--card); border: 1.5px solid var(--line); padding: 9px 16px; border-radius: 999px; transition: .15s; }
.chip:hover { border-color: var(--brand-2); color: var(--brand); }
:root[data-theme="dark"] .chip:hover { color: #cfe0f4; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product .thumb { height: 132px; display: grid; place-items: center; color: #fff; position: relative; background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.product .thumb .cat-label { position: absolute; bottom: 10px; left: 14px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(0,0,0,.22); padding: 4px 9px; border-radius: 6px; }
.product .p-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product h4 { margin: 0 0 6px; color: var(--ink); font-size: 1.02rem; }
.product .brand-tag { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.product .desc { font-size: .9rem; color: var(--body); margin: 0 0 14px; flex: 1; }
.product .p-foot { display: flex; align-items: center; justify-content: space-between; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Full item catalog (master list) ---------- */
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.catalog-toolbar .search { flex: 1 1 280px; max-width: none; }
.cat-select { font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); background: var(--field-bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; min-width: 190px; max-width: 260px; }
.cat-select:focus { outline: 0; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(43,84,136,.12); }
.item-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); transition: border-color .15s ease, transform .12s ease; }
.item:hover { border-color: #cfd8e6; transform: translateY(-2px); }
:root[data-theme="dark"] .item:hover { border-color: #33475b; }
.item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.item h4 { margin: 0; font-size: .96rem; color: var(--ink); line-height: 1.3; font-weight: 600; }
.item .code { flex: 0 0 auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; font-weight: 700; color: var(--brand); background: var(--bg-steel); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
:root[data-theme="dark"] .item .code { color: #9fc2ea; }
.item-meta { margin-top: 8px; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.item-meta .brand { font-weight: 700; color: var(--accent-dark); }
:root[data-theme="dark"] .item-meta .brand { color: #e0b45f; }
.load-more-wrap { text-align: center; margin-top: 26px; }
@media (max-width: 640px) { .item-grid { grid-template-columns: 1fr; } .cat-select { max-width: none; flex: 1 1 100%; } }

/* ---------- Add to cart / cart / orders ---------- */
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.item-foot .item-meta { margin-top: 0; }
.add-btn { flex: 0 0 auto; font-family: inherit; font-size: .8rem; font-weight: 700; color: var(--brand); background: var(--bg-steel); border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 14px; cursor: pointer; transition: .15s; }
.add-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.add-btn.added { background: var(--success); color: #fff; border-color: var(--success); }
:root[data-theme="dark"] .add-btn { color: #9fc2ea; }

.cart-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: none; align-items: center; gap: 8px; background: var(--brand); color: #fff; border-radius: 999px; padding: 14px 20px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: .95rem; }
.cart-fab:hover { background: var(--brand-dark); color: #fff; }
.cart-fab-count { background: var(--accent); color: #23180a; border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; padding: 0 6px; }

.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.cart-row { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.cart-row .ci-main { flex: 1 1 auto; min-width: 0; }
.cart-row h4 { margin: 0 0 4px; font-size: .98rem; color: var(--ink); font-weight: 600; }
.cart-row .ci-sub { font-size: .82rem; color: var(--muted); }
.cart-row .ci-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: var(--brand); }
:root[data-theme="dark"] .cart-row .ci-code { color: #9fc2ea; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--field-bg); color: var(--ink); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.qty button:hover { background: var(--bg-steel); }
.qty span { min-width: 36px; text-align: center; font-weight: 700; color: var(--ink); }
.ci-remove { flex: 0 0 auto; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 6px; }
.ci-remove:hover { color: #c0392b; }
.cart-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.order-summary { font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.order-success { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 30px; text-align: center; box-shadow: var(--shadow-sm); }
.order-success.show { display: block; }
.order-success .ok-ico { width: 56px; height: 56px; border-radius: 50%; background: #e9f7ef; color: #1f8b57; display: grid; place-items: center; margin: 0 auto 14px; }
:root[data-theme="dark"] .order-success .ok-ico { background: #14301f; }

.login-card { max-width: 400px; margin: 30px auto; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.order-card.status-confirmed { border-left: 4px solid var(--success); }
.order-card.status-cancelled { border-left: 4px solid #c0392b; opacity: .72; }
.order-card.status-pending { border-left: 4px solid var(--accent); }
.order-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.order-head h3 { margin: 0; font-size: 1.05rem; }
.status-pill { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; }
.status-pill.pending { background: #fbf3e2; color: #a9761c; }
.status-pill.confirmed { background: #e9f7ef; color: #1f8b57; }
.status-pill.cancelled { background: #fdecea; color: #c0392b; }
.order-meta { font-size: .86rem; color: var(--muted); margin: 6px 0 0; }
.order-items { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--body); list-style: none; }
.order-items li { padding: 3px 0; display: flex; justify-content: space-between; gap: 10px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #17724a; color: #fff; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a03024; color: #fff; }
.btn-wa { background: #25d366; color: #06331b; }
.btn-wa:hover { background: #1eb257; color: #06331b; }

/* ---------- Premium touch: gold accent + soft spotlight cards ---------- */
/* Subtle top-light on light-mode cards for depth */
.card, .loc-card, .order-card { background-image: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)); background-repeat: no-repeat; }
/* Dark-mode cards get a soft radial spotlight (echoes the reference look) */
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .loc-card,
:root[data-theme="dark"] .order-card,
:root[data-theme="dark"] .item,
:root[data-theme="dark"] .cart-row { background-image: radial-gradient(circle at 30% 0%, rgba(255,255,255,.05), rgba(255,255,255,0) 70%); }
/* Gold focus ring to match the accent */
.field input:focus, .field textarea:focus, .field select:focus,
.search:focus-within, .cat-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,201,76,.18); }

/* ---------- Brand strip ---------- */
.brand-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; }
.brand-pill { font-weight: 700; color: var(--brand); background: var(--card); border: 1px solid var(--line); padding: 12px 22px; border-radius: 10px; box-shadow: var(--shadow-sm); font-size: 1rem; }
:root[data-theme="dark"] .brand-pill { color: #9fc2ea; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n { counter-increment: step; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step .n::before { content: counter(step); }
.step strong { color: var(--ink); }
.step span { color: var(--body); }

/* ---------- Scheme cards ---------- */
.scheme { position: relative; overflow: hidden; }
.scheme .ribbon { position: absolute; top: 16px; right: -34px; transform: rotate(45deg); background: var(--accent); color: #23180a; font-size: .72rem; font-weight: 800; letter-spacing: .05em; padding: 5px 42px; }
.scheme .valid { font-size: .85rem; color: var(--muted); font-weight: 600; }
.scheme .valid b { color: var(--brand); }
:root[data-theme="dark"] .scheme .valid b { color: #9fc2ea; }
.badge-live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--success); text-transform: uppercase; letter-spacing: .06em; }
.badge-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(31,139,87,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(31,139,87,.5)} 70%{box-shadow:0 0 0 8px rgba(31,139,87,0)} 100%{box-shadow:0 0 0 0 rgba(31,139,87,0)} }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-dark), var(--brand-2)); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact / locations ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico-box { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 10px; background: var(--bg-steel); color: var(--brand); display: grid; place-items: center; }
:root[data-theme="dark"] .info-row .ico-box { color: #8fb6e4; }
.info-row .l { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.info-row .v { color: var(--ink); font-weight: 600; }
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.loc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.loc-card .pin { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-steel); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
:root[data-theme="dark"] .loc-card .pin { color: #8fb6e4; }
.loc-card h4 { margin: 0 0 6px; color: var(--ink); font-size: 1.02rem; }
.loc-card p { margin: 0; font-size: .92rem; color: var(--body); }

form.card { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { font-family: inherit; font-size: .98rem; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--field-bg); width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(43,84,136,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .84rem; color: var(--muted); }
.form-success { display: none; background: #e9f7ef; border: 1px solid #b7e2c8; color: #1f7a4d; padding: 14px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 16px; }
:root[data-theme="dark"] .form-success { background: #14301f; border-color: #285e3d; color: #7fdca6; }
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.72); padding: 56px 0 26px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { padding: 5px 0; }
.footer-brand .brand-name { color: #fff; font-weight: 800; font-size: 1.15rem; }
.footer-brand p { font-size: .92rem; margin-top: 12px; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; }
.footer-logo { width: 38px; height: 38px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--brand-dark), var(--brand-2)); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; opacity:.08; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 40px 40px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 620px; margin: 0; }
.crumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.crumb a { color: rgba(255,255,255,.7); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 64px 0; }
  .hero-card { order: -1; }
  .grid-3, .grid-4, .product-grid, .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; top: 112px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px; box-shadow: var(--shadow); transform: translateY(-160%); transition: transform .25s ease; z-index: 40; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta { margin: 8px 0 0; }
  .section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .product-grid, .loc-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

/* ===========================================================
   MORPH + GLASSMORPHISM THEME  (palette unchanged — steel + gold)
   Global morphing aurora behind everything, frosted-glass surfaces.
   =========================================================== */

/* Base: color on <html>, transparent body so the fixed aurora shows through */
html { background: var(--bg); }
body { background: transparent; position: relative; z-index: 0; }

/* ---- Global morphing aurora (two fixed, blurred, drifting blob layers) ---- */
body::before,
body::after {
  content: ""; position: fixed; inset: -32vmax; z-index: -3;
  pointer-events: none; will-change: transform;
}
body::before {
  background:
    radial-gradient(closest-side, var(--blob-1), transparent 72%) 16% 22% / 46vmax 46vmax no-repeat,
    radial-gradient(closest-side, var(--blob-3), transparent 72%) 78% 70% / 52vmax 52vmax no-repeat;
  filter: blur(40px) saturate(125%);   /* was 64px — very costly to rasterise */
  animation: auroraA 32s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(closest-side, var(--blob-2), transparent 72%) 84% 14% / 40vmax 40vmax no-repeat,
    radial-gradient(closest-side, var(--blob-4), transparent 72%) 22% 84% / 44vmax 44vmax no-repeat;
  filter: blur(48px) saturate(120%);   /* was 78px */
  animation: auroraB 44s ease-in-out infinite alternate;
  z-index: -2; opacity: .9;
}
@keyframes auroraA {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(4vw,-3vh,0) rotate(8deg) scale(1.12); }
  100% { transform: translate3d(-3vw,4vh,0) rotate(-6deg) scale(1.05); }
}
@keyframes auroraB {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1.05); }
  50%  { transform: translate3d(-5vw,3vh,0) rotate(-10deg) scale(1.18); }
  100% { transform: translate3d(4vw,-4vh,0) rotate(7deg) scale(1); }
}

/* Let the aurora bleed through the tinted section bands */
.section--soft  { background: color-mix(in srgb, var(--bg-soft) 62%, transparent); }
.section--steel { background: color-mix(in srgb, var(--bg-steel) 55%, transparent); }

/* ---------------- Frosted-glass surfaces ---------------- */
.card, .hero-card, .loc-card, .order-card, .item, .cart-row,
.login-card, .brand-pill, .chip, .search, .cat-select {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi);
}
/* Slightly lighter frost for the smaller pill/control elements */
.brand-pill, .chip, .cat-select, .search {
  background: var(--glass-bg-2);
}
.card:hover, .item:hover, .product:hover, .loc-card:hover {
  border-color: var(--glass-hi);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}

/* Product cards + fields also go frosted */
.product { background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow); }
.field input, .field textarea, .field select {
  background: var(--glass-bg-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: var(--glass-brd);
}

/* Header: stronger glass bar over the aurora */
.site-header {
  /* A sticky bar must be opaque enough that scrolling content can never
     read through it. At 55% + blur, headings underneath bled through and
     looked like the page was glitching — especially where backdrop-filter
     silently failed to apply. */
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-brd);
  box-shadow: 0 6px 24px -12px rgba(20,32,46,.28);
}
/* Mobile flyout menu becomes glass too */
@media (max-width: 760px) {
  .nav-links {
    background: color-mix(in srgb, var(--card) 72%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--glass-brd);
  }
}
/* Testing banner: frosted */
.testing-banner {
  background: color-mix(in srgb, var(--banner-bg) 65%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Override the older opaque "premium" card gradients so glass reads cleanly */
.card, .loc-card, .order-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .loc-card,
:root[data-theme="dark"] .order-card,
:root[data-theme="dark"] .item,
:root[data-theme="dark"] .cart-row { background-image: none; }

/* ---------------- Hero / page-hero morphing blobs ---------------- */
.hero, .page-hero, .cta-band { position: relative; isolation: isolate; }
.hero::before, .page-hero::before, .cta-band::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(242,201,76,.40), transparent 70%) 20% 24% / 55% 60% no-repeat,
    radial-gradient(closest-side, rgba(159,194,234,.38), transparent 70%) 82% 30% / 48% 55% no-repeat,
    radial-gradient(closest-side, rgba(120,170,235,.30), transparent 70%) 60% 92% / 60% 55% no-repeat;
  filter: blur(46px) saturate(130%);
  animation: heroMorph 26s ease-in-out infinite alternate;
}
.cta-band::before { filter: blur(40px) saturate(130%); }
@keyframes heroMorph {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(-4%,3%,0) scale(1.15) rotate(6deg); }
  100% { transform: translate3d(3%,-4%,0) scale(1.08) rotate(-5deg); }
}
/* Keep hero grid overlay + content above the blobs */
.hero::after, .page-hero::after { z-index: 1; }
.hero .container, .page-hero .container, .cta-band > * { position: relative; z-index: 2; }

/* Hero card: richer glass */
.hero-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.25);
}

/* ---------------- Giant blurred wordmark behind the home hero ---------- */
.hero-watermark {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  left: 50%; top: 46%; transform: translate(-50%,-50%);
  font-weight: 800; letter-spacing: -.03em; white-space: nowrap;
  font-size: clamp(5rem, 22vw, 20rem); line-height: .8;
  color: rgba(255,255,255,.06);
  text-shadow: 0 0 60px rgba(255,255,255,.10);
  filter: blur(2px);
  animation: markFloat 18s ease-in-out infinite alternate;
}
@keyframes markFloat {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: .5; }
  100% { transform: translate(-52%,-48%) scale(1.06); opacity: .85; }
}

/* ---------------- Fallbacks & motion preferences ---------------- */
/* If backdrop-filter is unsupported, use more opaque surfaces so text stays crisp */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root      { --glass-bg: rgba(255,255,255,.9); --glass-bg-2: rgba(255,255,255,.86); }
  :root[data-theme="dark"] { --glass-bg: rgba(22,33,44,.94); --glass-bg-2: rgba(22,33,44,.9); }
  .site-header { background: var(--header-bg); }
}
/* Reduced motion — unless the visitor has explicitly opted back in
   (.rg-motion-on always lives on <html>; motion is never disabled). */
@media (prefers-reduced-motion: reduce) {
  :root:not(.rg-motion-on) body::before, :root:not(.rg-motion-on) body::after,
  :root:not(.rg-motion-on) .hero::before, :root:not(.rg-motion-on) .page-hero::before,
  :root:not(.rg-motion-on) .cta-band::before,
  :root:not(.rg-motion-on) .hero-watermark { animation: none !important; }
}

/* ===========================================================
   INTERACTIVE AUTO-PARTS MOTION LAYER  (paired with js/animations.js)
   =========================================================== */

/* Fixed field of drifting/rotating parts — sits above the aurora,
   below all page content. Refracts softly through the glass cards. */
.parts-field {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.parts-field .part { position: absolute; will-change: transform; }
.parts-field .part svg { width: 100%; height: 100%; display: block; }
.part--steel { color: var(--brand-2); opacity: .085; }
.part--gold  { color: var(--accent-dark); opacity: .12; }
:root[data-theme="dark"] .part--steel { color: #6f9bd6; opacity: .16; }
:root[data-theme="dark"] .part--gold  { color: #f2c94c; opacity: .13; }

/* ---- Hero meshing gear cluster (interactive centerpiece) ---- */
.hero-gears {
  position: absolute; right: -30px; bottom: -50px;
  width: 360px; height: 360px; z-index: 0; pointer-events: none;
}
.hero-gears .hg { position: absolute; display: block; }
.hero-gears .hg svg { width: 100%; height: 100%; display: block; }
.hero-gears .hg1 { width: 210px; height: 210px; right: 78px; bottom: 74px; color: rgba(255,255,255,.15); animation: spinCW 15s linear infinite; }
.hero-gears .hg2 { width: 120px; height: 120px; right: 18px; bottom: 158px; color: rgba(242,201,76,.28); animation: spinCCW 9s linear infinite; }
.hero-gears .hg3 { width: 158px; height: 158px; right: 60px; bottom: -18px; color: rgba(255,255,255,.12); animation: spinCW 20s linear infinite; }
/* Hovering the hero "revs" the whole cluster up */
.hero-gears.rev .hg1 { animation-duration: 4.5s; }
.hero-gears.rev .hg2 { animation-duration: 2.6s; }
.hero-gears.rev .hg3 { animation-duration: 6s; }
@keyframes spinCW  { to { transform: rotate(360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }

/* ---- Scroll-reveal for cards (JS toggles .rvl-in) ---- */
.rvl { opacity: 0; transform: translateY(22px) scale(.985);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.75,.25,1); }
.rvl-in { opacity: 1; transform: none; }

/* ---- Hover micro-interactions: parts feel mechanical ---- */
.card .ico-box, .loc-card .pin, .info-row .ico-box {
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .25s ease, color .25s ease;
}
.card:hover .ico-box, .loc-card:hover .pin {
  transform: rotate(9deg) scale(1.08);
  background: linear-gradient(135deg, rgba(242,201,76,.28), rgba(43,84,136,.18));
}
.brand-pill { transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s ease, box-shadow .2s ease, color .2s ease; }
.brand-pill:hover { transform: translateY(-4px) rotate(-1.5deg);
  border-color: var(--accent); color: var(--accent-dark); box-shadow: var(--shadow); }
:root[data-theme="dark"] .brand-pill:hover { color: #f2c94c; }
/* Step number badges spin a touch on hover of their card */
.step:hover .n { transform: rotate(360deg); transition: transform .8s cubic-bezier(.3,.7,.2,1); }
.step .n { transition: transform .4s ease; }
/* CTA button gets a mechanical press feel already via .btn:active */

@media (prefers-reduced-motion: reduce) {
  :root:not(.rg-motion-on) .parts-field,
  :root:not(.rg-motion-on) .hero-gears { display: none !important; }
  :root:not(.rg-motion-on) .rvl { opacity: 1 !important; transform: none !important; }
}
/* ===========================================================
   BROCHURE CONTENT — logo walls, product range by brand, offices
   =========================================================== */

/* Real RG mark (transparent PNG) on a white frosted chip — works on
   the light glass header and on the dark footer alike. */
.brand .logo, .footer-logo {
  object-fit: contain;
  padding: 5px;
  border-radius: 11px;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 14px rgba(20,32,46,.16), inset 0 1px 0 rgba(255,255,255,.9);
}
.brand .logo { width: 46px; height: 46px; }
.footer-logo { width: 44px; height: 44px; }
/* Keep the chip readable on dark backgrounds (footer / dark mode) */
.site-footer .footer-logo { background: rgba(255,255,255,.86); }
:root[data-theme="dark"] .brand .logo { background: rgba(255,255,255,.86); }

/* 30-year excellence badge, hung off the hero card */
.hero-card { position: relative; }
.hero-badge {
  position: absolute; top: -26px; right: -14px;
  width: 96px; height: 96px; z-index: 3;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.45));
  animation: badgeFloat 6s ease-in-out infinite alternate;
}
@keyframes badgeFloat { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8px) rotate(3deg); } }

/* ---- Logo walls ---- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 14px; }
.logo-tile {
  background: #fff; border: 1px solid rgba(20,32,46,.08); border-radius: 14px;
  height: 94px; padding: 14px 18px; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
}
.logo-tile:hover { transform: translateY(-5px) scale(1.03); box-shadow: var(--shadow); }
.logo-tile img { max-height: 58px; max-width: 100%; width: auto; object-fit: contain; }
.logo-tile--text { font-weight: 800; color: var(--brand); letter-spacing: .02em; }
.logo-wall--oem { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-width: 780px; margin: 0 auto; }
.wall-label { display: flex; align-items: center; gap: 16px; margin: 38px 0 18px; }
.wall-label::before, .wall-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.wall-label span { font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
:root[data-theme="dark"] .wall-label span { color: #e0b45f; }

/* ---- Product range by brand ---- */
.range { display: grid; grid-template-columns: 268px 1fr; gap: 22px; align-items: start; }
.range-tabs { display: flex; flex-direction: column; gap: 8px; }
.range-tab {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  font-family: inherit; color: var(--ink); padding: 10px 12px; border-radius: 14px;
  background: var(--glass-bg-2); border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.range-tab img, .rt-fallback { width: 46px; height: 32px; flex: 0 0 auto; border-radius: 7px; background: #fff; }
.range-tab img { object-fit: contain; padding: 3px; }
.rt-fallback { display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: .95rem; }
.rt-name { flex: 1; font-weight: 700; font-size: .95rem; }
.rt-count { font-size: .72rem; font-weight: 800; background: var(--bg-steel); color: var(--brand); padding: 2px 9px; border-radius: 999px; }
.range-tab:hover { transform: translateX(4px); border-color: var(--accent); }
.range-tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-color: transparent; box-shadow: var(--shadow);
}
.range-tab.active .rt-count { background: var(--accent); color: var(--accent-ink); }

.range-panel {
  background: var(--glass-bg); border: 1px solid var(--glass-brd); border-radius: var(--radius);
  padding: 26px; min-height: 330px; box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur)) saturate(165%);
}
.range-panel.swap { animation: rpIn .38s cubic-bezier(.2,.8,.2,1); }
@keyframes rpIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rp-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.rp-logo { background: #fff; border-radius: 12px; padding: 8px 12px; flex: 0 0 auto; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.rp-logo img { max-height: 46px; max-width: 130px; object-fit: contain; display: block; }
.rp-head h3 { margin: 0; font-size: 1.35rem; }
.rp-head p { margin: 3px 0 0; font-size: .87rem; color: var(--muted); }
.rp-group { margin-bottom: 18px; }
.rp-group h4 { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 9px; }
:root[data-theme="dark"] .rp-group h4 { color: #e0b45f; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chip {
  font-size: .9rem; font-weight: 600; color: var(--ink); padding: 8px 15px; border-radius: 999px;
  background: var(--glass-bg-2); border: 1px solid var(--glass-brd);
  transition: transform .16s ease, border-color .16s ease, color .16s ease;
}
.rp-chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-dark); }
:root[data-theme="dark"] .rp-chip:hover { color: #f2c94c; }
.rp-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.rp-photo { margin: 0; text-align: center; }
.rp-photo img { width: 100%; height: 112px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; box-shadow: var(--shadow-sm); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.rp-photo:hover img { transform: scale(1.07) rotate(-2deg); }
.rp-photo figcaption { font-size: .77rem; font-weight: 600; color: var(--muted); margin-top: 7px; }

/* ---- Office cards ---- */
.office-card h3 { margin-bottom: 10px; }
.office-card .office-tels { font-weight: 700; margin: 12px 0 16px; font-size: .95rem; }

/* ===========================================================
   POINTER INTERACTION LAYER  (js/interactions.js)
   Custom cursor · magnetic elements · 3D tilt + spotlight ·
   text scramble. Desktop + fine-pointer only; JS bails out on
   touch and on prefers-reduced-motion, and only then are these
   classes ever added.
   =========================================================== */

/* The custom cursor, magnetic pull and 3D card tilt that used to live here
   were REMOVED on purpose: applied broadly they read as "everything
   wobbles", and their rAF loop froze software-rendered machines. A JS
   cursor also can never track as smoothly as the native one over RDP.
   Only the pointer spotlight below survives, and it costs nothing. */

/* --- Cursor spotlight travelling across glass --- */
/* (The cursor-follow spotlight was removed — repainting a big radial
   gradient over a blurred card every mousemove is inherently laggy,
   especially over RDP. No amount of tuning makes it lag-free.) */

/* --- Text scramble glitch (chromatic aberration) --- */
.rg-glitch {
  display: inline-block;
  text-shadow: -1.2px 0 rgba(255,42,90,.7), 1.2px 0 rgba(0,225,255,.7);
  animation: rgGlitch .2s steps(2) infinite;
}
@keyframes rgGlitch {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(.7px); }
}

/* ===========================================================
   WEBGL PARTICLE MORPH (js/particles.js) + MOBILE LAYER (js/touch.js)
   =========================================================== */
.morph-stage { position: relative; }
#morphCanvas {
  display: block; width: 100%; height: 460px;
  touch-action: pan-y;              /* let the page still scroll over it */
}
.morph-stage.morph-off { display: none; }
.morph-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.morph-btn {
  font-family: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
  color: var(--ink); padding: 9px 20px; border-radius: 999px;
  background: var(--glass-bg-2); border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .22s ease, color .22s ease, border-color .22s ease;
}
.morph-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.morph-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-color: transparent; box-shadow: var(--shadow);
}

/* Tap ripple (mobile) */
.rg-ripple {
  position: fixed; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 2px solid var(--accent);
  pointer-events: none; z-index: 9998;
  animation: rgRipple .68s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes rgRipple {
  from { transform: scale(.4); opacity: .85; }
  to   { transform: scale(7);  opacity: 0; }
}

@media (max-width: 760px) { #morphCanvas { height: 340px; } }

/* ===========================================================
   PERFORMANCE
   backdrop-filter is expensive PER ELEMENT. Keep it for the few
   large surfaces (header, cards, range panel) and drop it from
   anything numerous or small — the catalogue alone renders 60+
   items at a time.
   =========================================================== */
.item, .product, .cart-row, .brand-pill, .chip, .search, .cat-select,
.range-tab, .morph-btn, .testing-banner,
.field input, .field textarea, .field select {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* "Lite" mode — no usable GPU acceleration (RDP, low-end devices).
   Detected in main.js. Strip everything that needs rasterising. */
:root.rg-lite { --glass-bg: rgba(255,255,255,.93); --glass-bg-2: rgba(255,255,255,.89); }
:root.rg-lite[data-theme="dark"] { --glass-bg: rgba(22,33,44,.95); --glass-bg-2: rgba(22,33,44,.92); }
:root.rg-lite *, :root.rg-lite *::before, :root.rg-lite *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
:root.rg-lite .parts-field,
:root.rg-lite .hero-gears,
:root.rg-lite body::before,
:root.rg-lite body::after {
  animation: none !important;
  filter: blur(26px) saturate(115%) !important;
}
:root.rg-lite .hero::before,
:root.rg-lite .page-hero::before,
:root.rg-lite .cta-band::before,
:root.rg-lite .hero-watermark { animation: none !important; }
:root.rg-lite .rvl { opacity: 1 !important; transform: none !important; }

@media (max-width: 860px) {
  .range { grid-template-columns: 1fr; }
  .range-tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .range-tab { flex: 0 0 auto; }
  .range-tab:hover { transform: none; }
  .rt-name { white-space: nowrap; }
  .hero-badge { width: 74px; height: 74px; top: -20px; right: -6px; }
}

@media (max-width: 760px) {
  /* Lighten the load on phones: fewer, calmer parts */
  .parts-field .part { opacity: .06; }
  :root[data-theme="dark"] .parts-field .part { opacity: .1; }
  .hero-gears { width: 240px; height: 240px; right: -50px; bottom: -40px; }
  .hero-gears .hg1 { width: 150px; height: 150px; }
  .hero-gears .hg2 { width: 90px; height: 90px; }
  .hero-gears .hg3 { width: 110px; height: 110px; }
}

/* ===========================================================
   SEO CONTENT PAGES — category / brand / location / blog
   Added 2026-07-25. Reuses the existing card + section tokens.
   =========================================================== */

/* Nav now carries 7 items — tighten spacing and collapse a step earlier
   so the header never wraps on mid-size laptops. */
@media (max-width: 1240px) and (min-width: 941px) {
  .nav-links a:not(.btn) { padding: 10px 8px; font-size: .89rem; }
  .nav-links { gap: 1px; }
  .nav-cta { margin-left: 2px; }
}
/* Seven nav items no longer fit on a tablet — collapse to the flyout earlier
   than the old 760px breakpoint (the flyout styles below still apply). */
@media (max-width: 940px) {
  .nav-links { position: fixed; top: 112px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--card); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; gap: 2px; box-shadow: var(--shadow);
    transform: translateY(-160%); transition: transform .25s ease; z-index: 40; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle { display: block; }
  .nav-cta { margin: 8px 0 0; }
}

/* Link grids (related categories, brand ranges, area lists) */
.link-grid {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.link-grid li {
  background: var(--glass-bg-2); border: 1px solid var(--glass-brd);
  border-radius: 12px; padding: 11px 14px; font-weight: 600; font-size: .95rem;
}
.link-grid li a { color: var(--brand); }
:root[data-theme="dark"] .link-grid li a { color: #cfe0f4; }
.link-grid li:hover { border-color: var(--glass-hi); }

/* Card that is itself a link (category / brand / location / blog tiles) */
a.link-card { display: block; text-decoration: none; color: inherit; }
a.link-card h3 { margin: 4px 0 8px; }
a.link-card p { color: var(--body); }
.link-more {
  display: inline-block; margin-top: 12px; font-weight: 700;
  font-size: .92rem; color: var(--brand);
}
:root[data-theme="dark"] .link-more { color: #f2c94c; }
a.link-card:hover .link-more { text-decoration: underline; }

/* Parts tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 18px; }
.parts-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.parts-table caption {
  caption-side: top; text-align: left; padding: 0 0 12px;
  color: var(--body); font-size: .9rem;
}
.parts-table th, .parts-table td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line);
}
.parts-table thead th {
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--body); border-bottom-width: 2px;
}
.parts-table tbody tr:hover { background: var(--bg-soft); }
.parts-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88rem; background: var(--bg-steel); padding: 2px 7px; border-radius: 6px;
}

/* FAQ cards */
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { color: var(--body); }

/* Blog articles */
.article { max-width: 78ch; }
.article p { margin-bottom: 16px; line-height: 1.75; }
.article-meta {
  font-size: .88rem; color: var(--body); opacity: .8;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.article-cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Wider SEO footer */
.footer-grid--seo { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; }
@media (max-width: 1020px) { .footer-grid--seo { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 680px)  { .footer-grid--seo { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px)  { .footer-grid--seo { grid-template-columns: 1fr; } }

/* Address block in location cards */
.card address { color: var(--body); line-height: 1.7; }

/* ===========================================================
   2026-07-25 — conversion + trust layer
   Added with: contact form -> Firestore, header call button,
   floating WhatsApp CTA, admin enquiries view, legal pages.
   =========================================================== */

/* ---------- Form error (contact form failure path) ---------- */
.form-error {
  display: none; background: #fdecea; border: 1px solid #f5c6c0; color: #a5281b;
  padding: 14px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 16px;
}
.form-error a { color: inherit; text-decoration: underline; }
:root[data-theme="dark"] .form-error { background: #3a1714; border-color: #6d2b23; color: #f5a99f; }
.form-error.show { display: block; }

/* ---------- Header click-to-call ---------- */
.header-call {
  display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto;
  padding: 7px 13px 7px 10px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--body); line-height: 1.15; transition: .15s;
}
.header-call:hover { border-color: var(--brand-2); background: var(--bg-soft); color: var(--brand); }
:root[data-theme="dark"] .header-call:hover { color: #cfe0f4; }
.header-call svg { flex: 0 0 auto; color: var(--brand); }
:root[data-theme="dark"] .header-call svg { color: var(--accent); }
.header-call span { display: flex; flex-direction: column; }
.header-call strong { font-size: .93rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.header-call small { font-size: .7rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
/* The header now carries brand + 7 nav items + Get a Quote + call button +
   theme toggle. Below 1500px there is no room for the phone number as text,
   so collapse it to an icon-only circle well before anything wraps. */
@media (max-width: 1500px) {
  .header-call span { display: none; }
  .header-call { padding: 9px; border-radius: 50%; }
}
/* Belt and braces: nothing in the header should ever wrap to a second line. */
.brand .brand-name { white-space: nowrap; }
.brand .brand-name small { white-space: nowrap; }
.nav-links a:not(.btn) { white-space: nowrap; }
.nav-cta .btn { white-space: nowrap; }
@media (max-width: 940px) {
  /* flyout: wrapping is fine (and desirable) once the nav is a column */
  .nav-links a:not(.btn) { white-space: normal; }
}

/* ---------- Floating WhatsApp CTA ----------
   Bottom-LEFT on purpose: the cart FAB owns bottom-right. */
.wa-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #06331b; font-weight: 700; font-size: .93rem;
  border-radius: 999px; padding: 13px 19px 13px 16px; box-shadow: var(--shadow-lg);
  transition: transform .18s ease, background .18s ease;
}
.wa-fab:hover { background: #1eb257; color: #06331b; transform: translateY(-2px); }
.wa-fab svg { flex: 0 0 auto; }
@media (max-width: 620px) {
  .wa-fab { padding: 14px; border-radius: 50%; left: 16px; bottom: 16px; }
  .wa-fab .wa-fab-label { display: none; }
}

/* ---------- Admin: quote enquiries ---------- */
.chip-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 7px;
  border-radius: 999px; background: var(--accent); color: #23180a;
  font-size: .74rem; font-weight: 800;
}
.enq-message {
  margin: 12px 0 14px; padding: 12px 14px; border-left: 3px solid var(--brand-2);
  background: var(--bg-soft); border-radius: 0 10px 10px 0;
  color: var(--body); line-height: 1.65; font-size: .95rem;
}
.order-card.status-new { border-left: 4px solid var(--accent); }
.order-card.status-answered { border-left: 4px solid var(--success); }
.order-card.status-closed { border-left: 4px solid var(--line); opacity: .72; }
.status-pill.new { background: #fbf3e2; color: #a9761c; }
.status-pill.answered { background: #e9f7ef; color: #1f8b57; }
.status-pill.closed { background: #eef1f5; color: #5c6a7a; }

/* ---------- Legal / policy pages ---------- */
.legal-doc { max-width: 82ch; }
.legal-doc h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc p, .legal-doc li { line-height: 1.75; margin-bottom: 12px; }
.legal-doc ul { padding-left: 22px; margin-bottom: 16px; }
.legal-doc .legal-updated { font-size: .88rem; color: var(--muted); font-weight: 600; margin-bottom: 26px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 20px 70px; }
.notfound .nf-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; color: var(--brand-2); opacity: .35; letter-spacing: -.04em; }
.notfound h1 { margin: 6px 0 14px; }
.notfound p { max-width: 56ch; margin: 0 auto 12px; color: var(--body); }
.notfound .nf-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.notfound .nf-links { margin-top: 40px; }
.notfound .nf-links a { margin: 0 10px; font-weight: 600; }

/* ---------- Footer legal row ---------- */
.footer-bottom .footer-legal a { color: inherit; opacity: .85; }
.footer-bottom .footer-legal a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom .footer-legal span { opacity: .5; margin: 0 8px; }
