/*
 * ERG Base Theme — theme.css v1.0.0
 * Best Of Indian Products — Harkanwal Singh
 *
 * All colours via CSS custom properties — child themes override in :root.
 * Zero hardcoded brand colours in this file.
 *
 * Table of contents:
 *  00. Custom properties (defaults — child themes override)
 *  01. Reset & base
 *  02. Typography
 *  03. Layout utilities
 *  04. Buttons
 *  05. Skip link & accessibility
 *  06. Top bar
 *  07. Header
 *  08. Trust bar
 *  09. Nav bar wrapper
 *  10. Hero section
 *  11. Dispatch bar
 *  12. Section shared styles
 *  13. Category grid
 *  14. Product card grid
 *  15. Product card
 *  16. Brand strip
 *  17. How it works
 *  18. Clearance CTA banner
 *  19. Dealer strip
 *  20. Breadcrumbs
 *  21. Shop / archive page
 *  22. Single product page
 *  23. Specs tab
 *  24. Spare parts section
 *  25. Dispatch countdown
 *  26. Cart & checkout
 *  27. My account
 *  28. Blog
 *  29. Sidebar
 *  30. 404 page
 *  31. Pagination
 *  32. Footer
 *  33. WhatsApp float
 *  34. Back to top
 *  35. Responsive
 */

/* ── 00. CUSTOM PROPERTIES ───────────────────────────────────── */
:root {
  /* Brand — overridden by child theme */
  --erg-accent:        #D4500A;
  --erg-accent-light:  #F46B20;
  --erg-accent-pale:   #FBE8DC;
  --erg-steel:         #1B3F6B;
  --erg-steel-light:   #2A5490;
  --erg-steel-pale:    #E3EAF4;
  --erg-ivory:         #F9F5EE;
  --erg-green:         #1A6B3C;
  --erg-green-pale:    #E6F4EC;

  /* Neutrals */
  --erg-white:         #FFFFFF;
  --erg-charcoal:      #1E1E1E;
  --erg-gray-700:      #444444;
  --erg-gray-500:      #666666;
  --erg-gray-300:      #CCCCCC;
  --erg-gray-100:      #F4F4F4;
  --erg-border:        #E8E8E8;

  /* Typography */
  --erg-font-display:  'Mukta', 'Segoe UI', Arial, sans-serif;
  --erg-font-body:     'DM Sans', 'Segoe UI', Arial, sans-serif;
  --erg-font-size:     15px;
  --erg-line-height:   1.65;

  /* Spacing */
  --erg-gap:           24px;
  --erg-section-gap:   64px;
  --erg-radius:        6px;
  --erg-radius-lg:     12px;

  /* Shadows */
  --erg-shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --erg-shadow:        0 4px 16px rgba(27,63,107,.08);
  --erg-shadow-md:     0 6px 28px rgba(27,63,107,.13);

  /* Z-index scale — carefully ordered to prevent stacking context traps.
     The header is sticky but must NOT isolate its children, so we avoid
     setting transform/filter/will-change on the header element itself.
     The search dropdown (.erg-live-search) is position:fixed so it
     escapes any parent stacking context entirely. */
  --z-topbar:          50;
  --z-header:          100;   /* sticky header */
  --z-nav:             90;    /* nav BELOW header so search dropdown clears it */
  --z-dropdown:        200;   /* mega menu panels */
  --z-search-drop:     500;   /* live search — above everything including nav */
  --z-float:           900;
  --z-minicart:        950;
  --z-modal:           1000;
  --z-toast:           1100;

  /* Transitions */
  --t-fast:   0.13s ease;
  --t-mid:    0.22s ease;
  --t-slow:   0.35s ease;
}

/* ── 01. RESET & BASE ────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--erg-font-size);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--erg-font-body);
  line-height: var(--erg-line-height);
  color: var(--erg-charcoal);
  background: var(--erg-ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--erg-accent); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ── 02. TYPOGRAPHY ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--erg-font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--erg-steel);
}
h1 { font-size: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

/* Entry content (blog, pages) */
.erg-entry-content h2,
.erg-entry-content h3,
.erg-entry-content h4 { margin: 1.5em 0 .6em; }
.erg-entry-content ul,
.erg-entry-content ol { list-style: revert; padding-left: 1.5em; margin-bottom: 1em; }
.erg-entry-content li { margin-bottom: .4em; }
.erg-entry-content a { color: var(--erg-accent); text-decoration: underline; }
.erg-entry-content table th,
.erg-entry-content table td { padding: 10px 14px; border: 1px solid var(--erg-border); }
.erg-entry-content table th { background: var(--erg-gray-100); font-weight: 600; }
.erg-entry-content blockquote {
  border-left: 4px solid var(--erg-accent);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--erg-accent-pale);
  border-radius: 0 var(--erg-radius) var(--erg-radius) 0;
  font-style: italic;
}

/* ── 03. LAYOUT UTILITIES ────────────────────────────────────── */
.erg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--erg-gap);
  width: 100%;
}
.erg-container--wide  { max-width: 1440px; }
.erg-container--narrow { max-width: 800px; }
.erg-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.erg-page-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.erg-content-area { flex: 1; }

/* With sidebar layout */
.erg-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.erg-main { min-width: 0; }

/* ── 04. BUTTONS ─────────────────────────────────────────────── */
.erg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--erg-radius);
  font-family: var(--erg-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  border: 1.5px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.erg-btn:focus-visible {
  outline: 2px solid var(--erg-accent);
  outline-offset: 2px;
}
.erg-btn--lg  { padding: 13px 28px; font-size: 15px; }
.erg-btn--sm  { padding: 7px 16px;  font-size: 13px; }

.erg-btn--primary {
  background: var(--erg-accent);
  color: var(--erg-white);
  border-color: var(--erg-accent);
}
.erg-btn--primary:hover {
  background: var(--erg-accent-light);
  border-color: var(--erg-accent-light);
  color: var(--erg-white);
  transform: translateY(-1px);
}

.erg-btn--steel {
  background: var(--erg-steel);
  color: var(--erg-white);
  border-color: var(--erg-steel);
}
.erg-btn--steel:hover {
  background: var(--erg-steel-light);
  border-color: var(--erg-steel-light);
  color: var(--erg-white);
}

.erg-btn--outline {
  background: transparent;
  color: var(--erg-steel);
  border-color: var(--erg-steel);
}
.erg-btn--outline:hover {
  background: var(--erg-steel);
  color: var(--erg-white);
}

.erg-btn--ghost {
  background: rgba(255,255,255,.12);
  color: var(--erg-white);
  border-color: rgba(255,255,255,.3);
}
.erg-btn--ghost:hover {
  background: rgba(255,255,255,.2);
  border-color: var(--erg-white);
  color: var(--erg-white);
}

.erg-btn--white {
  background: var(--erg-white);
  color: var(--erg-green);
  border-color: var(--erg-white);
  font-weight: 700;
}
.erg-btn--white:hover {
  background: var(--erg-green-pale);
  color: var(--erg-green);
}

.erg-btn--quote {
  background: var(--erg-steel);
  color: var(--erg-white);
  border-color: var(--erg-steel);
}
.erg-btn--quote:hover {
  background: var(--erg-steel-light);
  color: var(--erg-white);
  border-color: var(--erg-steel-light);
}

/* WooCommerce button override */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--erg-accent) !important;
  color: var(--erg-white) !important;
  border-radius: var(--erg-radius) !important;
  font-family: var(--erg-font-body) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 22px !important;
  transition: background var(--t-fast) !important;
  border: none !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--erg-accent-light) !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--erg-steel) !important;
}
.woocommerce a.button.alt:hover { background: var(--erg-steel-light) !important; }

/* ── 05. SKIP LINK ───────────────────────────────────────────── */
.erg-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--erg-accent);
  color: var(--erg-white);
  padding: 10px 18px;
  border-radius: 0 0 var(--erg-radius) var(--erg-radius);
  font-weight: 600;
  z-index: var(--z-toast);
  transition: top var(--t-fast);
}
.erg-skip-link:focus { top: 0; }

/* ── 06b. ANNOUNCEMENT BAR ───────────────────────────────────── */
.erg-announce {
  position: relative;
  background: var(--erg-accent);
  color: #fff;
  font-size: 12.5px; font-weight: 600;
  text-align: center;
  padding: 8px 40px;
  overflow: hidden;
}
.erg-announce__track { position: relative; height: 18px; }
.erg-announce__msg {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.erg-announce__msg.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.erg-announce__close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: .8; transition: opacity var(--t-fast), background var(--t-fast);
}
.erg-announce__close:hover { opacity: 1; background: rgba(255,255,255,.15); }
.erg-announce.is-dismissed { display: none; }

/* ── 06. TOP BAR ─────────────────────────────────────────────── */
.erg-topbar {
  background: var(--erg-steel);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  padding: 6px 0;
  z-index: var(--z-topbar);
}
.erg-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.erg-topbar__left,
.erg-topbar__right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.erg-topbar__item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.75);
  transition: color var(--t-fast);
  font-size: 12px;
}
.erg-topbar__item:hover { color: var(--erg-white); }
.erg-topbar__promo {
  background: var(--erg-accent);
  color: var(--erg-white);
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
.erg-topbar__nav { display: flex; gap: 0; list-style: none; }
.erg-topbar__nav a { color: rgba(255,255,255,.75); font-size: 12px; padding: 0 10px; transition: color var(--t-fast); }
.erg-topbar__nav a:hover { color: var(--erg-white); }

/* ── 07. HEADER ──────────────────────────────────────────────── */
.erg-header {
  background: var(--erg-white);
  border-bottom: 1px solid var(--erg-border);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: var(--erg-shadow-sm);
  /* NO transform/filter/will-change — would create stacking context
     trapping the search dropdown below the nav */
  overflow: visible; /* ensure dropdown children can escape */
}
.erg-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.erg-header__logo { flex-shrink: 0; }
.erg-header__logo img { height: 48px; width: auto; }
.erg-header__logo-text { display: flex; flex-direction: column; }
.erg-header__logo-name {
  font-family: var(--erg-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--erg-steel);
  line-height: 1;
}
.erg-header__logo-desc {
  font-size: 10px;
  color: var(--erg-accent);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Search */
.erg-header__search { flex: 1; max-width: 500px; position: relative; }
.erg-search-form { position: relative; display: flex; }
.erg-search-form__input {
  width: 100%;
  padding: 10px 48px 10px 16px;
  border: 1.5px solid var(--erg-border);
  border-radius: var(--erg-radius);
  font-size: 14px;
  background: var(--erg-gray-100);
  transition: border-color var(--t-fast), background var(--t-fast);
  color: var(--erg-charcoal);
}
.erg-search-form__input:focus {
  outline: none;
  border-color: var(--erg-accent);
  background: var(--erg-white);
}
.erg-search-form__btn {
  position: absolute; right: 0; top: 0;
  height: 100%; width: 44px;
  background: var(--erg-accent);
  color: var(--erg-white);
  border-radius: 0 var(--erg-radius) var(--erg-radius) 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.erg-search-form__btn:hover { background: var(--erg-accent-light); }

/* Actions */
.erg-header__actions { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.erg-header__action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--erg-steel); transition: color var(--t-fast);
}
.erg-header__action:hover { color: var(--erg-accent); }
.erg-header__action-label { font-size: 10px; font-weight: 500; color: var(--erg-gray-500); }

.erg-header__cart {
  display: flex; align-items: center; gap: 8px;
  background: var(--erg-accent); color: var(--erg-white);
  padding: 10px 18px; border-radius: var(--erg-radius);
  font-weight: 600; font-size: 14px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.erg-header__cart:hover {
  background: var(--erg-accent-light);
  color: var(--erg-white);
  transform: translateY(-1px);
}
.erg-header__cart-count {
  background: var(--erg-white);
  color: var(--erg-accent);
  border-radius: 50%; width: 20px; height: 20px;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── 08. TRUST BAR ───────────────────────────────────────────── */
.erg-trustbar {
  background: var(--erg-steel-pale);
  border-bottom: 1px solid #d0daea;
  padding: 0;
}
.erg-trustbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.erg-trustbar__item { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--erg-steel); }
.erg-trustbar__icon { color: var(--erg-accent); font-size: 15px; }

/* ── 09. NAV WRAP ────────────────────────────────────────────── */
.erg-nav-wrap {
  background: var(--erg-steel);
  position: sticky;
  top: 72px;
  z-index: var(--z-nav); /* 90 — below search dropdown (500) */
}

/* ── 10. HERO ────────────────────────────────────────────────── */
.erg-hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: var(--erg-steel);
}
.erg-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .2;
}
.erg-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--erg-steel) 0%, rgba(27,63,107,.7) 100%);
}
.erg-hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
  min-height: 500px;
}
.erg-hero__title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: var(--erg-white);
  line-height: 1.07;
  margin-bottom: 20px;
}
.erg-hero__title em, .erg-hero__title span.accent { color: var(--erg-accent-light); font-style: normal; }
.erg-hero__sub { font-size: 16px; color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 32px; max-width: 460px; }
.erg-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 11. DISPATCH BAR ────────────────────────────────────────── */
.erg-dispatch-bar {
  background: var(--erg-white);
  border-bottom: 1px solid var(--erg-border);
  padding: 10px 0;
}
.erg-dispatch-bar__inner {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; flex-wrap: wrap;
}
.erg-dispatch-bar__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--erg-green);
  animation: erg-pulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes erg-pulse { 0%,100%{opacity:1}50%{opacity:.35} }
.erg-dispatch-bar__text { font-size: 13px; font-weight: 600; color: var(--erg-green); }

/* ── 12. SECTION SHARED ──────────────────────────────────────── */
.erg-section { padding: var(--erg-section-gap) 0; }
.erg-section--alt { background: var(--erg-white); }
.erg-section__head { text-align: center; margin-bottom: 40px; }
.erg-section__eyebrow {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--erg-accent); margin-bottom: 8px;
}
.erg-section__title { font-size: clamp(22px,3vw,34px); color: var(--erg-steel); margin-bottom: 12px; }
.erg-section__sub { font-size: 15px; color: var(--erg-gray-500); max-width: 560px; margin: 0 auto; }
.erg-section__footer { text-align: center; margin-top: 36px; }

/* ── 13. CATEGORY GRID ───────────────────────────────────────── */
.erg-cats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.erg-cats__item { list-style: none; }
.erg-cats__link {
  display: block;
  background: var(--erg-white);
  border: 1px solid var(--erg-border);
  border-radius: var(--erg-radius-lg);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-mid);
  text-align: center;
}
.erg-cats__link:hover {
  border-color: var(--erg-accent);
  box-shadow: 0 4px 20px rgba(212,80,10,.12);
  transform: translateY(-2px);
}
.erg-cats__img-wrap { overflow: hidden; }
.erg-cats__img { width: 100%; height: 100px; object-fit: cover; transition: transform var(--t-slow); }
.erg-cats__link:hover .erg-cats__img { transform: scale(1.05); }
.erg-cats__img-placeholder { display: block; height: 100px; background: var(--erg-gray-100); }
.erg-cats__body { padding: 10px 8px; }
.erg-cats__name { display: block; font-size: 12px; font-weight: 700; color: var(--erg-steel); line-height: 1.3; }
.erg-cats__count { display: block; font-size: 11px; color: var(--erg-gray-500); margin-top: 2px; }

/* ── 14. PRODUCT CARD GRID ───────────────────────────────────── */
.erg-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* WooCommerce native grid */
ul.products { display: grid; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; margin: 0 !important; }
ul.products li.product { margin: 0 !important; }

/* ── 15. PRODUCT CARD ────────────────────────────────────────── */
.erg-product-card {
  background: var(--erg-white);
  border: 1px solid var(--erg-border);
  border-radius: var(--erg-radius-lg);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-mid), transform var(--t-mid);
  display: flex; flex-direction: column;
}
.erg-product-card:hover {
  border-color: var(--erg-steel-pale);
  box-shadow: var(--erg-shadow-md);
  transform: translateY(-2px);
}
.erg-product-card__img-wrap {
  position: relative; overflow: hidden;
  display: block;
}
.erg-product-card__img {
  width: 100%; height: 200px; object-fit: cover;
  transition: transform var(--t-slow);
}
.erg-product-card:hover .erg-product-card__img { transform: scale(1.04); }

.erg-product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; }
.erg-product-card__badge {
  font-size: 10px; font-weight: 700; padding: 2px 9px;
  border-radius: 3px; text-transform: uppercase; letter-spacing: .04em;
}
.erg-product-card__badge--tier2  { background: var(--erg-steel); color: var(--erg-white); }
.erg-product-card__badge--sale   { background: var(--erg-accent); color: var(--erg-white); }
.erg-product-card__badge--new    { background: var(--erg-green);  color: var(--erg-white); }

.erg-product-card__tier-tag {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 600; padding: 2px 9px; border-radius: 3px;
}
.erg-product-card__tier-tag--a { background: var(--erg-green-pale); color: var(--erg-green); }
.erg-product-card__tier-tag--b { background: var(--erg-steel-pale); color: var(--erg-steel); }

.erg-product-card__body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.erg-product-card__cat { font-size: 11px; color: var(--erg-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.erg-product-card__cat a { color: inherit; }
.erg-product-card__name { font-size: 13px; font-weight: 600; color: var(--erg-charcoal); line-height: 1.4; margin-bottom: 6px; }
.erg-product-card__name a { color: inherit; }
.erg-product-card__name a:hover { color: var(--erg-accent); }

.erg-product-card__rating { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.erg-product-card__rating .star-rating { font-size: 13px; }
.erg-product-card__rating-count { font-size: 11px; color: var(--erg-gray-500); }

.erg-product-card__desc { font-size: 12px; color: var(--erg-gray-500); margin-bottom: 10px; line-height: 1.4; }
.erg-product-card__price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.erg-product-card__price-label { font-size: 10px; color: var(--erg-gray-500); display: block; }
.erg-product-card__price-amount { display: block; }
.erg-product-card__price-note { font-size: 10px; color: var(--erg-gray-500); display: block; margin-top: 1px; }
.erg-product-card__price ins { text-decoration: none; font-weight: 700; font-size: 17px; color: var(--erg-steel); font-family: var(--erg-font-display); }
.erg-product-card__price del { font-size: 12px; color: #aaa; }
.erg-product-card__cta { font-size: 13px !important; padding: 8px 14px !important; flex-shrink: 0; }
.erg-product-card__sold { font-size: 11px; color: var(--erg-gray-500); margin-top: 8px; }
.erg-stock-urgency {
  font-size: 11px; font-weight: 700; color: #C0392B;
  margin-top: 6px; display: flex; align-items: center; gap: 4px;
}

/* Ex-factory price note */
.erg-exfactory-note {
  background: var(--erg-steel-pale);
  border-left: 3px solid var(--erg-steel);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--erg-steel);
  border-radius: 0 var(--erg-radius) var(--erg-radius) 0;
  margin-bottom: 12px;
}

/* ── 16. BRAND STRIP ─────────────────────────────────────────── */
.erg-brand-strip {
  background: linear-gradient(135deg, var(--erg-steel) 0%, #0d2744 100%);
  padding: var(--erg-section-gap) 0;
}
.erg-brand-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.erg-brand-strip__title {
  font-size: clamp(28px,3.5vw,42px);
  font-weight: 800;
  color: var(--erg-white);
  line-height: 1.1;
  margin-bottom: 18px;
}
.erg-brand-strip__body { font-size: 15px; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 28px; }

/* ── 17. HOW IT WORKS ────────────────────────────────────────── */
.erg-how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.erg-how__steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, var(--erg-accent), var(--erg-steel));
  opacity: .2;
}
.erg-how__step { text-align: center; padding: 0 10px; }
.erg-how__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--erg-accent); color: var(--erg-white);
  font-family: var(--erg-font-display); font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.erg-how__title { font-size: 14px; font-weight: 700; color: var(--erg-steel); margin-bottom: 6px; }
.erg-how__body  { font-size: 12px; color: var(--erg-gray-500); line-height: 1.5; }
.erg-how__tag {
  display: inline-block; margin-top: 8px;
  font-size: 10px; font-weight: 600; padding: 2px 9px;
  border-radius: 20px; background: var(--erg-green-pale); color: var(--erg-green);
}

/* ── 18. CLEARANCE CTA BANNER ────────────────────────────────── */
.erg-clearance-banner {
  background: linear-gradient(135deg, #0F2A1A 0%, var(--erg-green) 100%);
  border-radius: var(--erg-radius-lg);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.erg-clearance-banner__eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6fcf97; margin-bottom: 8px; }
.erg-clearance-banner__title { font-family: var(--erg-font-display); font-size: 26px; font-weight: 800; color: var(--erg-white); margin-bottom: 8px; }
.erg-clearance-banner__body { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.5; }

/* ── 19. DEALER STRIP ────────────────────────────────────────── */
.erg-dealer-strip {
  background: var(--erg-accent-pale);
  border-top: 1px solid #f0d5c5;
  border-bottom: 1px solid #f0d5c5;
  padding: 24px 0;
}
.erg-dealer-strip__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.erg-dealer-strip__text { display: flex; flex-direction: column; gap: 3px; }
.erg-dealer-strip__text strong { font-size: 16px; color: var(--erg-steel); }
.erg-dealer-strip__text span  { font-size: 13px; color: var(--erg-gray-500); }

/* ── 20. BREADCRUMBS ─────────────────────────────────────────── */
.erg-breadcrumbs { padding: 12px 0; }
.erg-bc-list { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; list-style: none; }
.erg-bc-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--erg-gray-500); }
.erg-bc-item a { color: var(--erg-gray-500); }
.erg-bc-item a:hover { color: var(--erg-accent); }
.erg-bc-item span { color: var(--erg-charcoal); font-weight: 500; }
.erg-bc-sep { color: var(--erg-gray-300); font-size: 14px; }

/* ── 21. SHOP / ARCHIVE PAGE ─────────────────────────────────── */
.erg-wc-wrap { padding: 24px 0 60px; }
.erg-wc-wrap .erg-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.woocommerce .woocommerce-result-count { font-size: 13px; color: var(--erg-gray-500); margin-bottom: 16px; }
.woocommerce .woocommerce-ordering select {
  border: 1.5px solid var(--erg-border);
  border-radius: var(--erg-radius);
  padding: 8px 12px;
  font-family: var(--erg-font-body);
  font-size: 13px;
}

/* ── 22. SINGLE PRODUCT ──────────────────────────────────────── */
.single-product .erg-wc-wrap { padding: 32px 0 60px; }
.woocommerce div.product div.images .woocommerce-product-gallery { border-radius: var(--erg-radius-lg); overflow: hidden; }
.woocommerce div.product .product_title { font-family: var(--erg-font-display); font-size: clamp(22px,3vw,34px); color: var(--erg-steel); margin-bottom: 12px; }
.woocommerce div.product .price { font-family: var(--erg-font-display); font-size: 26px; font-weight: 800; color: var(--erg-steel); margin-bottom: 16px; }
.woocommerce div.product .price del { font-size: 16px; color: #aaa; }
.woocommerce div.product .price ins { text-decoration: none; }

/* Sticky add to cart bar */
.erg-sticky-atc {
  position: sticky; bottom: 0; z-index: 200;
  background: var(--erg-white);
  border-top: 2px solid var(--erg-accent);
  padding: 12px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  display: none;
}
.erg-sticky-atc.is-visible { display: block; }
.erg-sticky-atc__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.erg-sticky-atc__name { font-size: 14px; font-weight: 600; color: var(--erg-steel); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erg-sticky-atc__price { font-family: var(--erg-font-display); font-size: 20px; font-weight: 700; color: var(--erg-steel); flex-shrink: 0; }

/* ── 23. SPECS TAB ───────────────────────────────────────────── */
.erg-specs-table { width: 100%; border-collapse: collapse; }
.erg-specs-table th,
.erg-specs-table td { padding: 10px 14px; border: 1px solid var(--erg-border); font-size: 14px; text-align: left; }
.erg-specs-table th { background: var(--erg-gray-100); font-weight: 600; color: var(--erg-steel); width: 40%; }
.erg-specs-table tr:nth-child(even) td { background: var(--erg-gray-100); }

/* ── 24. SPARE PARTS SECTION ─────────────────────────────────── */
.erg-spare-parts { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--erg-border); }
.erg-spare-parts__title { font-size: 22px; color: var(--erg-steel); margin-bottom: 20px; }
.erg-spare-parts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.erg-spare-parts__link {
  display: flex; flex-direction: column; align-items: center;
  background: var(--erg-white); border: 1px solid var(--erg-border);
  border-radius: var(--erg-radius); padding: 14px;
  text-align: center; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.erg-spare-parts__link:hover { border-color: var(--erg-accent); box-shadow: var(--erg-shadow); }
.erg-spare-parts__img img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.erg-spare-parts__name { font-size: 12px; font-weight: 600; color: var(--erg-charcoal); margin-bottom: 4px; }
.erg-spare-parts__price { font-size: 13px; font-weight: 700; color: var(--erg-steel); }

/* ── 25. DISPATCH COUNTDOWN ──────────────────────────────────── */
.erg-dispatch-countdown {
  display: flex; align-items: center; gap: 8px;
  background: var(--erg-green-pale);
  border: 1px solid #a8d5b5;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px; font-weight: 600; color: var(--erg-green);
  margin-bottom: 12px;
  width: fit-content;
}
.erg-dispatch-countdown::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--erg-green);
  animation: erg-pulse 1.5s infinite;
  flex-shrink: 0;
}
.erg-sold-count { font-size: 13px; color: var(--erg-gray-500); margin-bottom: 12px; }

/* Single-product low-stock urgency (mirrors .erg-card__urgency) */
.erg-single-urgency {
  font-size: 13px; font-weight: 700; color: #C0392B;
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 12px;
}

/* Trust strip under Add to Cart */
.erg-trust-strip {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  list-style: none; margin: 14px 0 0; padding: 0;
}
.erg-trust-strip__item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--erg-gray-500, #666);
}
.erg-trust-strip__item svg { color: var(--erg-green, #3F9142); flex-shrink: 0; }

/* Quantity stepper — progressively enhanced by main.js, degrades to the
   plain WooCommerce number input if JS is disabled */
.quantity { display: inline-flex; align-items: stretch; }
.erg-qty-btn {
  width: 34px; border: 1px solid var(--erg-border);
  background: var(--erg-white); color: var(--erg-steel);
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background var(--t-fast);
}
.erg-qty-btn:hover { background: var(--erg-steel-pale); }
.erg-qty-btn--minus { border-radius: var(--erg-radius) 0 0 var(--erg-radius); }
.erg-qty-btn--plus  { border-radius: 0 var(--erg-radius) var(--erg-radius) 0; }
.quantity .qty {
  width: 46px; text-align: center;
  border-top: 1px solid var(--erg-border); border-bottom: 1px solid var(--erg-border);
  border-left: none; border-right: none;
  -moz-appearance: textfield;
}
.quantity .qty::-webkit-inner-spin-button,
.quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Recently viewed */
.erg-section-title { font-size: 22px; color: var(--erg-steel); margin: 40px 0 20px; }
.erg-recently-viewed { margin-top: 20px; }

/* ── 26. CART & CHECKOUT ─────────────────────────────────────── */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout #place_order {
  background: var(--erg-accent) !important;
  font-family: var(--erg-font-body) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: var(--erg-radius) !important;
  padding: 14px 28px !important;
  width: 100%;
}

/* ── 27. MY ACCOUNT ──────────────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--erg-white);
  border: 1px solid var(--erg-border);
  border-radius: var(--erg-radius-lg);
  padding: 16px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block; padding: 10px 14px; border-radius: var(--erg-radius);
  font-size: 14px; font-weight: 500; color: var(--erg-charcoal);
  transition: background var(--t-fast), color var(--t-fast);
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--erg-accent-pale);
  color: var(--erg-accent);
}

/* ── 28. BLOG ────────────────────────────────────────────────── */
.erg-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.erg-post-card {
  background: var(--erg-white); border: 1px solid var(--erg-border);
  border-radius: var(--erg-radius-lg); overflow: hidden;
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}
.erg-post-card:hover { box-shadow: var(--erg-shadow-md); transform: translateY(-2px); }
.erg-post-card__img img { width: 100%; height: 220px; object-fit: cover; }
.erg-post-card__body { padding: 20px; }
.erg-post-card__cat { font-size: 11px; font-weight: 700; color: var(--erg-accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; display: block; }
.erg-post-card__title { font-size: 17px; font-weight: 700; color: var(--erg-steel); margin-bottom: 8px; line-height: 1.35; }
.erg-post-card__title a:hover { color: var(--erg-accent); }
.erg-post-card__excerpt { font-size: 13px; color: var(--erg-gray-500); line-height: 1.5; margin-bottom: 14px; }
.erg-post-card__meta { font-size: 12px; color: var(--erg-gray-500); }

/* ── 29. SIDEBAR ─────────────────────────────────────────────── */
.erg-sidebar { position: sticky; top: 120px; }
.widget { background: var(--erg-white); border: 1px solid var(--erg-border); border-radius: var(--erg-radius-lg); padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: 15px; font-weight: 700; color: var(--erg-steel); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--erg-accent); }

/* ── 30. 404 ─────────────────────────────────────────────────── */
.erg-404 { text-align: center; padding: 80px 24px; }
.erg-404__code { font-family: var(--erg-font-display); font-size: 120px; font-weight: 800; color: var(--erg-accent); line-height: 1; opacity: .2; }
.erg-404__title { font-size: 28px; color: var(--erg-steel); margin-bottom: 12px; }
.erg-404__body { font-size: 15px; color: var(--erg-gray-500); margin-bottom: 24px; }

/* ── 31. PAGINATION ──────────────────────────────────────────── */
.erg-pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 40px; }
.erg-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--erg-radius);
  font-size: 14px; font-weight: 500; color: var(--erg-steel);
  border: 1px solid var(--erg-border); background: var(--erg-white);
  transition: all var(--t-fast);
}
.erg-pagination .page-numbers:hover { border-color: var(--erg-accent); color: var(--erg-accent); }
.erg-pagination .page-numbers.current { background: var(--erg-accent); color: var(--erg-white); border-color: var(--erg-accent); }
.erg-pagination .prev, .erg-pagination .next { width: auto; padding: 0 16px; }

/* ── 32. FOOTER ──────────────────────────────────────────────── */
.erg-footer {
  background: var(--erg-steel);
  color: rgba(255,255,255,.65);
  margin-top: auto;
}
.erg-footer__top { padding: 52px 0 40px; }
.erg-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.erg-footer__logo img { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: 8px; }
.erg-footer__logo-text { font-family: var(--erg-font-display); font-size: 20px; font-weight: 800; color: var(--erg-white); margin-bottom: 8px; }
.erg-footer__tagline { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--erg-accent-light); margin-bottom: 12px; }
.erg-footer__about { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.erg-footer__contact { font-style: normal; display: flex; flex-direction: column; gap: 6px; }
.erg-footer__contact-item { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: rgba(255,255,255,.65); transition: color var(--t-fast); }
.erg-footer__contact-item:hover { color: var(--erg-white); }
.erg-footer__contact-item svg { margin-top: 2px; flex-shrink: 0; }
.erg-footer__gstin { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 10px; }
.erg-footer__col-title { font-size: 13px; font-weight: 700; color: var(--erg-white); margin-bottom: 14px; }
.erg-footer__nav { list-style: none; }
.erg-footer__nav li { margin-bottom: 8px; }
.erg-footer__nav a { font-size: 13px; color: rgba(255,255,255,.65); transition: color var(--t-fast); display: block; }
.erg-footer__nav a:hover { color: var(--erg-white); }
.erg-footer__nav--two-col { columns: 2; gap: 16px; }
.erg-footer__nav--two-col li { break-inside: avoid; }

.erg-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.erg-footer__bottom-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.erg-footer__copy,
.erg-footer__managed { font-size: 12px; color: rgba(255,255,255,.35); }
.erg-footer__legal { display: flex; gap: 16px; }
.erg-footer__legal a { font-size: 12px; color: rgba(255,255,255,.35); transition: color var(--t-fast); }
.erg-footer__legal a:hover { color: var(--erg-white); }

/* ── 33. WHATSAPP FLOAT ──────────────────────────────────────── */
.erg-wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: var(--z-float);
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--erg-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.erg-wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
  color: var(--erg-white);
}
.erg-wa-float__tooltip {
  position: absolute; right: 64px;
  background: var(--erg-charcoal); color: var(--erg-white);
  font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 4px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast);
}
.erg-wa-float:hover .erg-wa-float__tooltip { opacity: 1; }

/* ── 34. BACK TO TOP ─────────────────────────────────────────── */
.erg-back-top {
  position: fixed; bottom: 92px; right: 28px; z-index: var(--z-float);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--erg-steel); color: var(--erg-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--erg-shadow);
  transition: opacity var(--t-fast), transform var(--t-fast);
  opacity: 0;
}
.erg-back-top:not([hidden]) { opacity: 1; }
.erg-back-top:hover { background: var(--erg-accent); transform: translateY(-2px); }

/* ── 33b. MINI-CART FLY-OUT ──────────────────────────────────── */
.erg-minicart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 950;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-mid);
}
.erg-minicart-overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

.erg-minicart {
  position: fixed; top: 0; right: -420px;
  width: min(420px, 92vw); height: 100vh;
  background: var(--erg-white);
  z-index: 951;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,.18);
  transition: right 0.3s cubic-bezier(.4,0,.2,1);
}
.erg-minicart.is-open { right: 0; }

.erg-minicart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--erg-border);
  flex-shrink: 0;
}
.erg-minicart__title { font-size: 17px; color: var(--erg-steel); display: flex; align-items: center; gap: 8px; }
.erg-minicart__count { font-size: 13px; color: var(--erg-gray-500); font-weight: 400; }
.erg-minicart__close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--erg-gray-500); transition: background var(--t-fast), color var(--t-fast);
}
.erg-minicart__close:hover { background: var(--erg-gray-100); color: var(--erg-charcoal); }

.erg-minicart__body {
  flex: 1; min-height: 0; padding: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.erg-minicart-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; }
.erg-minicart__body .woocommerce-mini-cart { list-style: none; }
.erg-minicart__body .woocommerce-mini-cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--erg-border);
  position: relative;
}
.erg-mini-item__thumb { flex-shrink: 0; display: block; }
.erg-mini-item__thumb img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 6px; display: block;
}
.erg-mini-item__details { flex: 1; min-width: 0; padding-right: 22px; }
.erg-mini-item__name {
  font-size: 13px; font-weight: 600; color: var(--erg-charcoal); display: block; margin-bottom: 8px;
}
.erg-minicart__body .woocommerce-mini-cart-item .remove {
  position: absolute; top: 12px; right: 0;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  color: var(--erg-gray-500); font-size: 16px; border-radius: 50%;
}
.erg-minicart__body .woocommerce-mini-cart-item .remove:hover { background: var(--erg-accent-pale); color: var(--erg-accent); }

/* Mini-cart quantity stepper */
.erg-mini-qty {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--erg-border); border-radius: var(--erg-radius);
  margin-bottom: 6px;
}
.erg-mini-qty__btn {
  width: 26px; height: 26px; border: none; background: none;
  color: var(--erg-steel); font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.erg-mini-qty__btn:hover { background: var(--erg-steel-pale); }
.erg-mini-qty__btn:disabled { opacity: .4; cursor: not-allowed; }
.erg-mini-qty__value { min-width: 22px; text-align: center; font-size: 13px; font-weight: 600; }
.erg-mini-qty.is-updating { opacity: .5; pointer-events: none; }
.erg-mini-item__price { display: block; font-size: 13px; font-weight: 700; color: var(--erg-steel); }

/* Free shipping progress bar */
.erg-freeship-bar { margin: 0 0 14px; }
.erg-freeship-bar__msg { font-size: 12.5px; font-weight: 600; color: var(--erg-charcoal); margin-bottom: 6px; }
.erg-freeship-bar__track { height: 6px; border-radius: 3px; background: var(--erg-gray-100, #eee); overflow: hidden; }
.erg-freeship-bar__fill { height: 100%; background: var(--erg-accent); border-radius: 3px; transition: width .3s ease; }
.erg-freeship-bar--done {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--erg-green, #1A6B3C);
  margin: 0 0 14px;
}

/* Sticky footer: subtotal + View Cart/Checkout — never scrolls away */
.erg-minicart-sticky-footer {
  flex-shrink: 0; padding: 14px 20px 16px; border-top: 1px solid var(--erg-border);
}
.erg-minicart__body .total { padding-top: 0; font-size: 16px; font-weight: 700; color: var(--erg-steel); display: flex; justify-content: space-between; }
.erg-minicart__body .wc-proceed-to-checkout,
.erg-minicart__body .woocommerce-mini-cart__buttons { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.erg-minicart__body .wc-proceed-to-checkout a,
.erg-minicart__body .woocommerce-mini-cart__buttons a {
  display: block; text-align: center; padding: 12px; border-radius: var(--erg-radius);
  font-weight: 700; font-size: 14px;
  background: var(--erg-steel-pale); color: var(--erg-steel);
}
.erg-minicart__body .checkout-button,
.erg-minicart__body .checkout { background: var(--erg-accent); color: #fff; }
.erg-minicart__body .checkout-button:hover,
.erg-minicart__body .checkout:hover { background: var(--erg-accent-light); color: #fff; }

.erg-minicart__trust {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 14px 20px; border-top: 1px solid var(--erg-border);
  flex-shrink: 0; background: var(--erg-gray-100);
}
.erg-minicart__trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; color: var(--erg-gray-500);
}
.erg-minicart__trust-item svg { color: var(--erg-green); flex-shrink: 0; }

.erg-minicart-empty {
  text-align: center; padding: 50px 10px; color: var(--erg-gray-500); font-size: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.erg-minicart-empty svg { color: var(--erg-border); }
.erg-minicart-empty .erg-btn { margin-top: 4px; }

/* ── 35b. 44PX MINIMUM TAP TARGETS — MOBILE ─────────────────── */
@media (max-width: 767px) {
  .erg-header__action,
  .erg-header__cart,
  .erg-search-form__btn,
  .erg-btn,
  .erg-back-top,
  .erg-wa-float,
  .erg-minicart__close,
  .erg-cats__link,
  .woocommerce a.button,
  .woocommerce button.button {
    min-height: 44px;
    min-width: 44px;
  }
  .erg-product-card__cta { min-height: 40px; } /* card CTAs sit inside a larger tappable card */
}

/* Large desktop */
@media (min-width: 1201px) {
  .erg-cats__grid { grid-template-columns: repeat(6, 1fr); }
}

/* Tablet */
@media (max-width: 1024px) {
  .erg-products-grid { grid-template-columns: repeat(3, 1fr); }
  ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .erg-cats__grid { grid-template-columns: repeat(4, 1fr); }
  .erg-footer__grid { grid-template-columns: 1fr 1fr; }
  .erg-brand-strip__inner { grid-template-columns: 1fr; gap: 32px; }
  .erg-how__steps { grid-template-columns: repeat(2, 1fr); }
  .erg-how__steps::before { display: none; }
  .erg-hero__inner { grid-template-columns: 1fr; }
  .erg-with-sidebar { grid-template-columns: 1fr; }
  .erg-sidebar { position: static; }
  .erg-spare-parts__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --erg-section-gap: 40px; }

  .erg-header__inner { height: 60px; gap: 12px; }
  .erg-header__logo img { height: 36px; }
  .erg-header__search { display: none; } /* replaced by mobile search icon */
  .erg-header__action:not(.erg-header__cart) { display: none; }
  .erg-header__cart { padding: 8px 14px; font-size: 13px; }

  .erg-topbar { display: none; }

  .erg-trustbar__inner { gap: 6px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .erg-trustbar__item { flex-shrink: 0; white-space: nowrap; }

  .erg-nav-wrap { top: 60px; }

  .erg-hero { min-height: 400px; }
  .erg-hero__inner { grid-template-columns: 1fr; padding: 40px 0; min-height: auto; }
  .erg-hero__title { font-size: clamp(28px, 7vw, 40px); }

  .erg-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  .erg-cats__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .erg-cats__img, .erg-cats__img-placeholder { height: 70px; }

  .erg-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .erg-footer__nav--two-col { columns: 1; }

  .erg-how__steps { grid-template-columns: 1fr 1fr; gap: 16px; }

  .erg-blog-grid { grid-template-columns: 1fr; }
  .erg-spare-parts__grid { grid-template-columns: repeat(2, 1fr); }

  .erg-clearance-banner { padding: 24px; flex-direction: column; }
  .erg-wa-float { bottom: 16px; right: 16px; width: 48px; height: 48px; }
  .erg-back-top { bottom: 72px; right: 16px; }

  .erg-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Very small phones */
@media (max-width: 400px) {
  .erg-cats__grid { grid-template-columns: repeat(2, 1fr); }
  .erg-products-grid { grid-template-columns: 1fr; }
  ul.products { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT CARD v2 — complete conversion-optimised card styles
   These replace the earlier .erg-product-card rules.
══════════════════════════════════════════════════════════════ */

/* Grid wrapper */
.erg-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0; padding: 0;
}
.erg-product-li { list-style: none; }

/* Responsive columns */
@media (max-width: 1100px) { .erg-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .erg-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 400px)  { .erg-products-grid { grid-template-columns: 1fr; } }

/* ── Card shell ──────────────────────────────────────────── */
.erg-card {
  background: var(--erg-white, #fff);
  border: 1.5px solid var(--erg-border, #E8E8E8);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.15s ease;
  position: relative;
}
.erg-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.10);
  transform: translateY(-3px);
  border-color: var(--erg-accent, #D4500A);
}

/* ── Image zone ──────────────────────────────────────────── */
.erg-card__img-link { display: block; position: relative; overflow: hidden; flex-shrink: 0; }
.erg-card__img-wrap {
  position: relative;
  background: var(--erg-gray-100, #F4F4F4);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.erg-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.erg-card__img--hover {
  position: absolute; inset: 0;
  opacity: 0;
}
.erg-card:hover .erg-card__img:not(.erg-card__img--hover) { transform: scale(1.06); }
.erg-card:hover .erg-card__img--hover { opacity: 1; }

/* ── Badges ──────────────────────────────────────────────── */
.erg-card__badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.erg-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase; letter-spacing: .04em;
  line-height: 1.4;
}
.erg-badge--sale   { background: #C0392B; color: #fff; }
.erg-badge--new    { background: var(--erg-green, #1A6B3C); color: #fff; }
.erg-badge--quote  { background: var(--erg-steel, #1B3F6B); color: #fff; }

/* ── Wishlist button ─────────────────────────────────────── */
.erg-card__wishlist {
  position: absolute; top: 10px; right: 10px;
  z-index: 2;
  opacity: 0; transform: translateX(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.erg-card:hover .erg-card__wishlist { opacity: 1; transform: translateX(0); }
.erg-card__wishlist-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  color: var(--erg-gray-500, #666);
  transition: background 0.15s, color 0.15s;
}
.erg-card__wishlist-btn:hover { background: var(--erg-accent, #D4500A); color: #fff; }

/* YITH/TI wishlist button normalisation */
.erg-card__wishlist .yith-wcwl-add-to-wishlist { margin: 0 !important; }
.erg-card__wishlist .add_to_wishlist {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important; height: 32px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  color: var(--erg-gray-500, #666) !important;
  font-size: 0 !important;      /* hide default text */
  text-decoration: none !important;
}
.erg-card__wishlist .add_to_wishlist::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.erg-card__wishlist .add_to_wishlist:hover { background: var(--erg-accent, #D4500A) !important; color: #fff !important; }

/* ── Card body ───────────────────────────────────────────── */
.erg-card__body {
  padding: 14px 14px 16px;
  display: flex; flex-direction: column;
  gap: 5px;
  flex: 1;
}
.erg-card__cat {
  font-size: 11px; font-weight: 700;
  color: var(--erg-accent, #D4500A);
  text-transform: uppercase; letter-spacing: .05em;
}
.erg-card__cat a { color: inherit; }
.erg-card__name {
  font-size: 13.5px; font-weight: 700;
  color: var(--erg-charcoal, #1E1E1E);
  line-height: 1.4;
  margin: 0;
  /* Show max 2 lines then ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.erg-card__name a { color: inherit; text-decoration: none; }
.erg-card__name a:hover { color: var(--erg-accent, #D4500A); }

/* Star rating */
.erg-card__rating {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px;
}
.erg-card__rating .star-rating { font-size: 13px !important; }
.erg-card__rating-count { font-size: 11px; color: var(--erg-gray-500, #666); }

/* Short desc */
.erg-card__desc {
  font-size: 12px; color: var(--erg-gray-500, #666);
  line-height: 1.45; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stock urgency */
.erg-card__urgency {
  font-size: 11.5px; font-weight: 700;
  color: #C0392B;
  display: flex; align-items: center; gap: 4px;
  margin: 0;
}
.erg-card__out-of-stock {
  font-size: 11.5px; font-weight: 600;
  color: var(--erg-gray-500, #666); margin: 0;
}

/* ── Price + CTA row (pinned to bottom) ─────────────────── */
.erg-card__footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--erg-border, #E8E8E8);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.erg-card__price-wrap { display: flex; flex-direction: column; gap: 1px; }
.erg-card__price-label {
  font-size: 10px; color: var(--erg-gray-500, #666);
  font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
}
.erg-card__price {
  font-family: var(--erg-font-display, 'Mukta', sans-serif);
  font-size: 18px; font-weight: 700;
  color: var(--erg-steel, #1B3F6B);
  line-height: 1.1;
}
.erg-card__price ins { text-decoration: none; }
.erg-card__price del { font-size: 13px; color: #aaa; font-weight: 400; display: block; }
.erg-card__logistics {
  font-size: 10px; color: var(--erg-gray-500, #666);
}

/* Sold count */
.erg-card__sold {
  font-size: 11px; color: var(--erg-gray-500, #666);
  text-align: right;
}

/* ── CTA Button ─────────────────────────────────────────── */
.erg-card__btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 12.5px; font-weight: 700;
  font-family: var(--erg-font-body, 'DM Sans', sans-serif);
  cursor: pointer; border: none;
  text-decoration: none; text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
  min-height: 38px;
  flex-shrink: 0;
}
.erg-card__btn--atc {
  background: var(--erg-accent, #D4500A);
  color: #fff;
}
.erg-card__btn--atc:hover {
  background: var(--erg-accent-light, #F46B20);
  transform: translateY(-1px);
}
.erg-card__btn--atc.loading {
  pointer-events: none; opacity: .7;
}
.erg-card__btn--quote {
  background: var(--erg-steel, #1B3F6B);
  color: #fff;
}
.erg-card__btn--quote:hover { background: var(--erg-steel-light, #2A5490); color: #fff; }
.erg-card__btn--view {
  background: transparent;
  color: var(--erg-steel, #1B3F6B);
  border: 1.5px solid var(--erg-steel, #1B3F6B);
}
.erg-card__btn--view:hover { background: var(--erg-steel, #1B3F6B); color: #fff; }
.erg-card__btn--disabled {
  background: var(--erg-gray-100, #F4F4F4);
  color: var(--erg-gray-500, #666);
  cursor: not-allowed;
}

/* ── Shop page layout ───────────────────────────────────── */
.erg-shop-wrap { padding: 24px 0 60px; }
.erg-shop-title { margin-bottom: 8px; }
.erg-shop-title h1 { font-size: clamp(20px,3vw,30px); color: var(--erg-steel,#1B3F6B); }

.erg-cat-banner {
  background: var(--erg-steel, #1B3F6B);
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.erg-cat-banner__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .18;
}
.erg-cat-banner__title {
  font-size: clamp(20px,3vw,32px);
  font-weight: 800; color: #fff;
  position: relative; z-index: 1;
  margin-bottom: 6px;
}
.erg-cat-banner__desc {
  font-size: 14px; color: rgba(255,255,255,.75);
  position: relative; z-index: 1;
  max-width: 600px;
}

.erg-shop-toolbar {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--erg-border, #E8E8E8);
  margin-bottom: 20px;
}
.erg-shop-toolbar__count { font-size: 13px; color: var(--erg-gray-500, #666); }
.erg-shop-toolbar__sort select {
  border: 1.5px solid var(--erg-border, #E8E8E8);
  border-radius: 6px; padding: 7px 12px;
  font-size: 13px;
  font-family: var(--erg-font-body, sans-serif);
}
.woocommerce-result-count { font-size: 13px; color: var(--erg-gray-500, #666); }
.woocommerce-ordering select {
  border: 1.5px solid var(--erg-border, #E8E8E8);
  border-radius: 6px; padding: 7px 12px;
  font-size: 13px;
}

.erg-shop-body { display: flex; gap: 28px; align-items: flex-start; }
.erg-shop-body.has-sidebar .erg-shop-products { flex: 1; min-width: 0; }
.erg-shop-sidebar { width: 260px; flex-shrink: 0; }

/* Desktop: the <details> wrapper is purely structural — always expanded,
   summary hidden, sidebar sits beside the grid exactly as before. */
.erg-shop-sidebar-toggle { flex-shrink: 0; }

/* Desktop only: the <details> wrapper is purely structural here — always
   expanded, summary hidden, sidebar sits beside the grid exactly as before.
   Deliberately scoped to min-width so it never overrides the mobile
   accordion's native open/closed state below. */
@media (min-width: 769px) {
  .erg-shop-sidebar-toggle summary { display: none; }
  .erg-shop-sidebar-toggle > .erg-shop-sidebar { display: block; }
}
.erg-shop-products { width: 100%; }

/* WooCommerce pagination */
.woocommerce-pagination { margin-top: 32px; }
.woocommerce-pagination ul {
  display: flex; gap: 6px; list-style: none;
  justify-content: center; flex-wrap: wrap;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1.5px solid var(--erg-border, #E8E8E8);
  border-radius: 6px; font-size: 13px; font-weight: 500;
  color: var(--erg-steel, #1B3F6B);
  text-decoration: none; transition: all .15s;
}
.woocommerce-pagination ul li a:hover {
  background: var(--erg-accent, #D4500A);
  border-color: var(--erg-accent, #D4500A);
  color: #fff;
}
.woocommerce-pagination ul li span.current {
  background: var(--erg-accent, #D4500A);
  border-color: var(--erg-accent, #D4500A);
  color: #fff;
}

/* WooCommerce "added to cart" feedback on button */
.erg-card__btn--atc.added::after {
  content: ' ✓';
}

/* Mobile shop */
@media (max-width: 768px) {
  .erg-shop-body { flex-direction: column; }
  .erg-shop-sidebar { width: 100%; }
  .erg-cat-banner { padding: 20px; }
  .erg-card__name { -webkit-line-clamp: 3; }

  /* Native <details>/<summary> accordion — closed by default, no JS.
     This is what stops the sidebar widgets from dumping full height
     above the product grid. */
  .erg-shop-sidebar-toggle {
    width: 100%;
    border: 1px solid var(--erg-border);
    border-radius: var(--erg-radius-lg);
    margin-bottom: 20px;
    background: var(--erg-white);
  }
  .erg-shop-sidebar-toggle summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    font-size: 15px; font-weight: 700; color: var(--erg-steel);
    cursor: pointer; list-style: none;
  }
  .erg-shop-sidebar-toggle summary::-webkit-details-marker { display: none; }
  .erg-shop-sidebar-toggle summary::after {
    content: '+'; font-size: 20px; font-weight: 400; color: var(--erg-accent);
  }
  .erg-shop-sidebar-toggle[open] summary::after { content: '−'; }
  .erg-shop-sidebar-toggle > .erg-shop-sidebar {
    width: 100%; padding: 0 18px 18px; border-top: 1px solid var(--erg-border);
  }
  .erg-shop-sidebar-toggle .widget { border: none; padding: 16px 0 0; margin: 0; }
}

/* ══════════════════════════════════════════════════════════════
   LIVE SEARCH DROPDOWN
   Uses position:fixed (not absolute) so it escapes all parent
   stacking contexts including the sticky header and nav bar.
   JS sets top/left/width via getBoundingClientRect() on the input.
══════════════════════════════════════════════════════════════ */
.erg-live-search {
  position: fixed;             /* CRITICAL — escapes sticky header stacking context */
  background: var(--erg-white, #fff);
  border: 1.5px solid var(--erg-border, #E8E8E8);
  border-top: 2px solid var(--erg-accent, #D4500A);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  z-index: var(--z-search-drop, 500); /* above nav (90), header (100), mega menu (200) */
  max-height: 440px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* width and top/left set by JS */
}

.erg-ls-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--erg-gray-500, #666);
  padding: 10px 16px 4px;
  border-bottom: 1px solid var(--erg-border, #E8E8E8);
  background: var(--erg-gray-100, #F4F4F4);
}

.erg-ls-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--erg-charcoal, #1E1E1E);
  transition: background 0.12s ease;
  cursor: pointer;
  border-bottom: 1px solid var(--erg-border, #E8E8E8);
}
.erg-ls-item:last-of-type { border-bottom: none; }
.erg-ls-item:hover,
.erg-ls-item.is-active {
  background: var(--erg-accent-pale, #FBE8DC);
}
.erg-ls-item--cat {
  background: var(--erg-gray-100, #F4F4F4);
}
.erg-ls-item--cat:hover,
.erg-ls-item--cat.is-active {
  background: var(--erg-steel-pale, #E3EAF4);
}

.erg-ls-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--erg-gray-100, #F4F4F4);
  display: block;
}
.erg-ls-img--empty {
  width: 48px;
  height: 48px;
  background: var(--erg-gray-100, #F4F4F4);
  border-radius: 6px;
  flex-shrink: 0;
  display: inline-block;
}

.erg-ls-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.erg-ls-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--erg-charcoal, #1E1E1E);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.erg-ls-name mark {
  background: transparent;
  color: var(--erg-accent, #D4500A);
  font-weight: 800;
}
.erg-ls-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.erg-ls-cat {
  font-size: 11px;
  color: var(--erg-gray-500, #666);
}
.erg-ls-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--erg-steel, #1B3F6B);
  font-family: var(--erg-font-display, sans-serif);
}
.erg-ls-tier {
  font-size: 10px;
  background: var(--erg-steel-pale, #E3EAF4);
  color: var(--erg-steel, #1B3F6B);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.erg-ls-oos {
  font-size: 10px;
  background: #FEF0F0;
  color: #C0392B;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.erg-ls-count {
  font-size: 11px;
  color: var(--erg-gray-500, #666);
}

.erg-ls-all {
  display: block;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--erg-steel, #1B3F6B);
  text-decoration: none;
  border-top: 1px solid var(--erg-border, #E8E8E8);
  background: var(--erg-gray-100, #F4F4F4);
  transition: background 0.12s;
}
.erg-ls-all:hover {
  background: var(--erg-steel-pale, #E3EAF4);
  color: var(--erg-steel, #1B3F6B);
}

/* Quick view trigger button — appears on card image hover */
.erg-qv-trigger {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(255,255,255,.95);
  color: var(--erg-steel, #1B3F6B);
  border: 1.5px solid var(--erg-border, #E8E8E8);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--erg-font-body, sans-serif);
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.12s, color 0.12s;
  z-index: 5;
}
.erg-card:hover .erg-qv-trigger,
.erg-card__img-wrap:hover .erg-qv-trigger {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.erg-qv-trigger:hover {
  background: var(--erg-accent, #D4500A);
  color: #fff;
  border-color: var(--erg-accent, #D4500A);
}

/* ── QUICK VIEW MODAL ────────────────────────────────────────── */
.erg-qv-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: calc(var(--z-modal, 1000) - 1);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
}
.erg-qv-overlay.is-active { opacity: 1; visibility: visible; }

.erg-qv-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  width: min(900px, 96vw);
  max-height: 90vh;
  background: var(--erg-white, #fff);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  z-index: var(--z-modal, 1000);
  overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.erg-qv-modal.is-open {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.erg-qv-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--erg-charcoal, #1E1E1E);
  z-index: 2;
  transition: background 0.15s;
}
.erg-qv-close:hover { background: rgba(0,0,0,.12); }

.erg-qv-content {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.erg-qv-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.erg-qv-images {
  background: var(--erg-gray-100, #F4F4F4);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.erg-qv-main-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}
.erg-qv-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.erg-qv-img.is-active { opacity: 1; }
.erg-qv-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.erg-qv-thumb {
  width: 56px; height: 56px;
  border-radius: 6px; overflow: hidden;
  border: 2px solid transparent;
  padding: 0; cursor: pointer;
  transition: border-color 0.15s;
}
.erg-qv-thumb.is-active { border-color: var(--erg-accent, #D4500A); }
.erg-qv-thumb img { width: 100%; height: 100%; object-fit: cover; }

.erg-qv-details {
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
}
.erg-qv-cat {
  font-size: 11px; font-weight: 700;
  color: var(--erg-accent, #D4500A);
  text-transform: uppercase; letter-spacing: .05em;
}
.erg-qv-cat a { color: inherit; }
.erg-qv-name {
  font-size: 20px; font-weight: 800;
  color: var(--erg-steel, #1B3F6B);
  line-height: 1.25; margin: 0;
}
.erg-qv-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.erg-qv-price {
  font-family: var(--erg-font-display, sans-serif);
  font-size: 22px; font-weight: 700;
  color: var(--erg-steel, #1B3F6B);
  display: flex; flex-direction: column; gap: 2px;
}
.erg-qv-price__label { font-size: 11px; color: var(--erg-gray-500, #666); font-family: var(--erg-font-body, sans-serif); font-weight: 500; }
.erg-qv-price__note { font-size: 11px; color: var(--erg-gray-500, #666); font-family: var(--erg-font-body, sans-serif); font-weight: 400; }
.erg-qv-price ins { text-decoration: none; }
.erg-qv-price del { font-size: 15px; color: #aaa; font-weight: 400; }
.erg-qv-desc { font-size: 13px; color: var(--erg-gray-500, #666); line-height: 1.6; margin: 0; }
.erg-qv-urgency { font-size: 12px; font-weight: 700; color: #C0392B; margin: 0; }
.erg-qv-sold { font-size: 12px; color: var(--erg-gray-500, #666); margin: 0; }
.erg-qv-oos { font-size: 13px; font-weight: 600; color: var(--erg-gray-500, #666); }
.erg-qv-actions {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.erg-qv-full-link {
  font-size: 13px; font-weight: 600;
  color: var(--erg-steel, #1B3F6B);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.erg-qv-meta { border-top: 1px solid var(--erg-border, #E8E8E8); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.erg-qv-meta__item { font-size: 12px; color: var(--erg-gray-500, #666); }
.erg-qv-meta__item a { color: var(--erg-accent, #D4500A); }

/* Spinner */
.erg-qv-spinner { display: flex; align-items: center; justify-content: center; min-height: 300px; }
.erg-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--erg-border, #E8E8E8);
  border-top-color: var(--erg-accent, #D4500A);
  border-radius: 50%;
  animation: erg-spin 0.7s linear infinite;
}
@keyframes erg-spin { to { transform: rotate(360deg); } }

/* Cart/Checkout styles */
.erg-cart-wrap { padding: 32px 0 60px; }
.erg-cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.erg-cart-title { font-size: 22px; color: var(--erg-steel,#1B3F6B); margin-bottom: 20px; }
.erg-cart-table { width: 100%; border-collapse: collapse; }
.erg-cart-table th {
  text-align: left; padding: 10px 14px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--erg-gray-500,#666);
  border-bottom: 2px solid var(--erg-border,#E8E8E8);
}
.erg-cart-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--erg-border,#E8E8E8);
  vertical-align: middle; font-size: 14px;
}
.erg-cart-table .product-thumbnail img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.erg-cart-item__name { font-weight: 600; color: var(--erg-charcoal,#1E1E1E); }
.erg-cart-remove {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--erg-gray-100,#F4F4F4);
  color: var(--erg-gray-500,#666);
  font-size: 18px; line-height: 1;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
}
.erg-cart-remove:hover { background: #FEF0F0; color: #C0392B; }
.erg-cart-trust { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--erg-gray-100,#F4F4F4); border-radius: 8px; margin-top: 16px; }
.erg-cart-trust__item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--erg-gray-500,#666); }
.erg-cart-trust__item svg { color: var(--erg-green,#1A6B3C); flex-shrink: 0; }
.erg-cart-totals-wrap { position: sticky; top: 100px; }

.erg-checkout-wrap { padding: 32px 0 60px; }
.erg-checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; }
.erg-checkout-trust {
  display: flex; gap: 16px; flex-wrap: wrap;
  background: var(--erg-green-pale,#E6F4EC);
  border-radius: 8px; padding: 10px 16px;
  margin-bottom: 16px;
}
.erg-checkout-trust span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--erg-green,#1A6B3C); }
.erg-checkout-right { position: sticky; top: 100px; }

/* Quick view mobile */
@media (max-width: 700px) {
  .erg-qv-layout { grid-template-columns: 1fr; }
  .erg-qv-modal { width: 98vw; max-height: 95vh; top: 2.5vh; left: 1vw; transform: none; }
  .erg-qv-modal.is-open { transform: none; }
  .erg-cart-layout { grid-template-columns: 1fr; }
  .erg-checkout-layout { grid-template-columns: 1fr; }
  .erg-cart-totals-wrap, .erg-checkout-right { position: static; }
}
