/* ==========================================================================
   [Store Name] — Homepage Stylesheet
   Table of contents:
   1. Design Tokens
   2. Reset / Base
   3. Layout Utilities
   4. Atoms (Button, Badge, Tag, Icon Button, Price, Select, Input)
   5. Molecules (Product Card, Nav Item, Search Bar, Trust Item, Testimonial,
      FAQ Item, Tile Card, Brand Tile, Coverage List)
   6. Organisms (Announcement Bar, Header, Mobile Drawer, Hero, Wizard,
      Product Carousel, Technician Band, Final CTA, Footer, Sticky WhatsApp)
   7. Accessibility helpers
   8. Reduced motion
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Color */
  --color-primary: #0F2540;
  --color-primary-dark: #0A1B30;
  --color-secondary: #5A6B7B;
  --color-accent-whatsapp: #25D366;
  --color-accent-whatsapp-dark: #1DA851;
  --color-highlight: #F5A623;
  --color-success: #2E9E5B;
  --color-error: #D64545;
  --color-bg: #F7F8FA;
  --color-surface: #FFFFFF;
  --color-border: #E3E6EA;
  --color-text: #1A2733;
  --color-text-muted: #5A6B7B;
  --color-focus: #1E7BD6;

  /* Typography */
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-h1: 1.75rem;      /* 28px */
  --text-h2: 1.375rem;     /* 22px */
  --text-h3: 1.125rem;     /* 18px */
  --text-body: 1rem;       /* 16px */
  --text-small: 0.8125rem; /* 13px */

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;

  /* Spacing scale (8px base) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 1rem;     /* 16px */
  --space-4: 1.5rem;   /* 24px */
  --space-5: 2rem;     /* 32px */
  --space-6: 3rem;     /* 48px */
  --space-7: 4rem;     /* 64px */

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* Elevation */
  --elevation-1: 0 1px 3px rgba(15, 37, 64, 0.08);
  --elevation-2: 0 4px 12px rgba(15, 37, 64, 0.12);
  --elevation-3: 0 8px 24px rgba(15, 37, 64, 0.16);

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --easing-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Layout */
  --container-max: 1280px;
  --header-height: 64px;
  --announcement-height: 40px;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--announcement-height) + var(--space-3));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; margin: 0; color: var(--color-primary); }
h1 { font-size: var(--text-h1); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); line-height: var(--leading-tight); }
h3 { font-size: var(--text-h3); line-height: var(--leading-snug); }
p { margin: 0; }

/* Consistent, visible focus state on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section { padding-block: var(--space-6); }
.section--muted { background: var(--color-surface); border-block: 1px solid var(--color-border); }

.section-heading { margin-bottom: var(--space-4); max-width: 640px; }
.section-heading p { color: var(--color-text-muted); margin-top: var(--space-2); }
.section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  max-width: none;
  flex-wrap: wrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Media placeholder frame — reserves aspect ratio to prevent CLS */
.media-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ph-color, var(--color-border));
}
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.lazy-img { opacity: 0; transition: opacity var(--duration-slow) var(--easing-standard); }
.lazy-img.is-loaded { opacity: 1; }

/* ==========================================================================
   4. ATOMS
   ========================================================================== */

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 88px;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-body);
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color var(--duration-fast) var(--easing-standard),
              transform var(--duration-fast) var(--easing-standard),
              box-shadow var(--duration-fast) var(--easing-standard);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn__icon { flex-shrink: 0; }

.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: var(--elevation-1); }

.btn--whatsapp { background: var(--color-accent-whatsapp); color: #fff; }
.btn--whatsapp:hover { background: var(--color-accent-whatsapp-dark); box-shadow: var(--elevation-1); }

.btn--secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--secondary:hover { background: rgba(15,37,64,0.05); }

.btn--ghost { background: transparent; color: var(--color-primary); min-width: auto; padding-inline: var(--space-2); }
.btn--ghost:hover { text-decoration: underline; }

.btn--sm { min-height: 32px; padding: var(--space-1) var(--space-3); font-size: var(--text-small); }
.btn--lg { min-height: 52px; padding: var(--space-3) var(--space-5); font-size: 1.0625rem; }
.btn--full { width: 100%; }

.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.2;
}
.badge--in-stock { background: rgba(46,158,91,0.12); color: var(--color-success); }
.badge--low-stock { background: rgba(245,166,35,0.15); color: #8a5a00; }
.badge--out-of-stock { background: rgba(214,69,69,0.12); color: var(--color-error); }

/* --- Tag --- */
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: var(--space-2) 0; }
.tag {
  font-size: var(--text-small);
  padding: 2px var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
.tag--overflow { color: var(--color-primary); border-style: dashed; }

/* --- Icon button --- */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-primary);
}
.icon-button:hover { background: rgba(15,37,64,0.06); }

/* --- Price --- */
.price { font-weight: 700; color: var(--color-primary); font-family: var(--font-heading); }
.price--sm { font-size: 1rem; }
.price--lg { font-size: 1.75rem; }

/* --- Select / Input --- */
.wizard__select,
.search-bar input {
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
}
.wizard__select:disabled { background: var(--color-bg); color: var(--color-text-muted); }

/* ==========================================================================
   5. MOLECULES
   ========================================================================== */

/* --- Product Card --- */
.product-card {
  flex: 0 0 78%;
  scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: box-shadow var(--duration-fast) var(--easing-standard);
}
.product-card:hover { box-shadow: var(--elevation-1); }
.product-card--placeholder { background: var(--color-bg); border-style: dashed; min-height: 320px; }
.product-card__media-link { display: block; margin-bottom: var(--space-3); }
.product-card__badge { position: absolute; top: var(--space-2); left: var(--space-2); z-index: 1; }
.product-card__media-link .media-frame { position: relative; }
.product-card__name { font-size: var(--text-h3); margin: 0; }
.product-card__name a:hover { text-decoration: underline; }

/* --- Search bar --- */
.search-bar { position: relative; display: flex; align-items: center; }
.search-bar__icon { position: absolute; left: var(--space-3); color: var(--color-text-muted); pointer-events: none; }
.search-bar input { padding-left: calc(var(--space-3) * 2 + 18px); }

/* --- Trust item --- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.trust-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}
.trust-item__icon { font-size: var(--space-5); display: block; margin-bottom: var(--space-2); }
.trust-item__label { font-weight: 700; color: var(--color-primary); }
.trust-item__desc { color: var(--color-text-muted); font-size: var(--text-small); margin-top: 2px; }

/* --- Testimonial card --- */
.testimonial-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
}
.testimonial-card {
  flex: 0 0 88%;
  scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.testimonial-card__quote { font-size: 1.0625rem; line-height: var(--leading-normal); color: var(--color-text); }
.testimonial-card__attribution { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--text-small); font-weight: 600; }

/* --- FAQ item --- */
.faq-accordion { display: flex; flex-direction: column; gap: var(--space-2); }
.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-text-muted);
  transition: transform var(--duration-base) var(--easing-standard);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: var(--space-2); color: var(--color-text-muted); }

/* --- Tile card (Shop by Part) --- */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.tile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-2);
  text-align: center;
  transition: box-shadow var(--duration-fast) var(--easing-standard), border-color var(--duration-fast) var(--easing-standard);
}
.tile-card:hover { box-shadow: var(--elevation-1); border-color: rgba(15,37,64,0.2); }
.tile-card__icon { font-size: 1.75rem; }
.tile-card__label { font-weight: 600; font-size: var(--text-small); color: var(--color-primary); }

/* --- Brand tile (Shop by Brand) --- */
.brand-row {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
}
.brand-tile {
  flex: 0 0 auto;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3);
  transition: box-shadow var(--duration-fast) var(--easing-standard);
}
.brand-tile:hover { box-shadow: var(--elevation-1); }
.brand-tile__name { font-weight: 700; color: var(--color-primary); font-family: var(--font-heading); }

/* --- Delivery coverage list --- */
.coverage-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.coverage-list li { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text); }
.coverage-list li span { color: var(--color-success); }
.delivery-cta { margin-top: var(--space-4); }

/* ==========================================================================
   6. ORGANISMS
   ========================================================================== */

/* --- Announcement bar --- */
.announcement-bar {
  background: var(--color-primary);
  color: #fff;
  min-height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-inline: var(--space-6);
  text-align: center;
}
.announcement-bar__text { font-size: var(--text-small); margin: 0; padding: var(--space-2) 0; }
.announcement-bar__icon { margin-right: 4px; }
.announcement-bar__close {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  opacity: 0.75;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.announcement-bar__close:hover { opacity: 1; }
.announcement-bar[hidden] { display: none; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-height);
}
.site-header__logo { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.site-header__logo-mark { font-size: 1.5rem; color: var(--color-accent-whatsapp); }
.site-header__logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--color-primary); }

.site-nav { display: none; }
.site-nav__list { display: flex; align-items: center; gap: var(--space-4); }
.site-nav__link { display: flex; align-items: center; gap: 4px; font-weight: 600; padding: var(--space-2) 0; }
.site-nav__item.has-submenu { position: relative; }
.site-nav__submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-2);
  min-width: 220px;
  padding: var(--space-2);
  z-index: 20;
}
.site-nav__item.has-submenu:hover .site-nav__submenu,
.site-nav__item.has-submenu:focus-within .site-nav__submenu { display: block; }
.site-nav__submenu li a { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.site-nav__submenu li a:hover { background: var(--color-bg); }

.site-header__actions { display: flex; align-items: center; gap: var(--space-1); }
.site-header__call { display: none; }
.site-header__whatsapp { display: none; }

.search-panel { border-top: 1px solid var(--color-border); padding-block: var(--space-3); }
.search-panel[hidden] { display: none; }

/* --- Mobile drawer --- */
.mobile-drawer[hidden] { display: none; }
.mobile-drawer__backdrop {
  position: fixed; inset: 0;
  background: rgba(15,37,64,0.5);
  z-index: 30;
}
.mobile-drawer__panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--color-surface);
  z-index: 31;
  padding: var(--space-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mobile-drawer__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.mobile-accordion summary { font-weight: 700; padding: var(--space-2) 0; cursor: pointer; color: var(--color-primary); list-style: none; }
.mobile-accordion summary::-webkit-details-marker { display: none; }
.mobile-accordion ul { padding-left: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-2); }
.mobile-drawer__flat-links { display: flex; flex-direction: column; gap: var(--space-2); border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
.mobile-drawer__flat-links a { font-weight: 600; display: block; padding: var(--space-1) 0; }
.mobile-drawer__whatsapp { width: 100%; margin-top: auto; }

/* --- Hero --- */
.hero { padding-block: var(--space-6); background: var(--color-surface); }
.hero__inner { display: flex; flex-direction: column; gap: var(--space-5); }
.hero__heading { font-size: 1.875rem; margin-bottom: var(--space-3); }
.hero__copy { color: var(--color-text-muted); margin-bottom: var(--space-4); max-width: 52ch; }
.hero__actions { display: flex; flex-direction: column; gap: var(--space-2); }
.hero__actions .btn { width: 100%; }
.hero__trust-row { display: flex; gap: var(--space-4); margin-top: var(--space-4); flex-wrap: wrap; }
.hero__trust-row li { display: flex; align-items: center; gap: 6px; font-size: var(--text-small); font-weight: 600; color: var(--color-primary); }
.hero__trust-row span { color: var(--color-success); }
.hero__visual { order: -1; }

/* --- Find My Part Wizard --- */
.wizard-section { padding-block: var(--space-6); background: var(--color-bg); }
.wizard {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.wizard__label { display: block; font-weight: 600; margin-bottom: var(--space-1); font-size: var(--text-small); color: var(--color-primary); }
.wizard__submit { width: 100%; margin-top: var(--space-2); }

/* --- Product carousel --- */
.product-carousel {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
}

/* --- Technician band --- */
.technician-band { background: var(--color-primary); color: #fff; padding-block: var(--space-5); }
.technician-band__inner { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.technician-band h2 { color: #fff; }
.technician-band p { color: rgba(255,255,255,0.8); margin-top: var(--space-2); }
.technician-band .btn--whatsapp { flex-shrink: 0; }

/* --- Final CTA --- */
.final-cta { padding-block: var(--space-7); background: var(--color-surface); text-align: center; }
.final-cta__inner { max-width: 560px; margin-inline: auto; }
.final-cta p { color: var(--color-text-muted); margin-block: var(--space-3) var(--space-4); }
.btn--full-mobile { width: 100%; }

/* --- Footer --- */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.85); padding-top: var(--space-6); }
.site-footer__grid { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col { border-bottom: 1px solid rgba(255,255,255,0.12); padding-block: var(--space-2); }
.footer-col summary,
.footer-col__heading {
  font-weight: 700;
  color: #fff;
  padding: var(--space-2) 0;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col summary::after { content: "+"; font-size: 1.25rem; }
.footer-col[open] summary::after { content: "–"; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); padding-block: var(--space-2) var(--space-3); }
.footer-col a:hover { text-decoration: underline; }
.footer-col--contact { border-bottom: none; }
.footer-contact-list { margin-bottom: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: var(--space-4); padding-block: var(--space-3); }
.site-footer__bottom-inner { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-small); }
.site-footer__legal { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.site-footer__legal a:hover { text-decoration: underline; }

/* --- Sticky WhatsApp bar (mobile) / floating button (desktop) --- */
.sticky-whatsapp {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  background: var(--color-accent-whatsapp);
  display: flex;
  align-items: stretch;
  box-shadow: var(--elevation-2);
}
.sticky-whatsapp__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: #fff;
  font-weight: 700;
  min-height: 52px;
  padding-inline: var(--space-3);
}
.sticky-whatsapp__call {
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-left: 1px solid rgba(255,255,255,0.3);
}

/* ==========================================================================
   7. TABLET (600px+)
   ========================================================================== */
@media (min-width: 600px) {
  .container { padding-inline: var(--space-5); }
  .tile-grid--parts { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .coverage-list { grid-template-columns: repeat(2, 1fr); }
  .product-card { flex: 0 0 46%; }
  .testimonial-card { flex: 0 0 60%; }
  .hero__heading { font-size: 2.25rem; }

  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-header__heading { font-size: 1.875rem; }
  .technician-cta-sm { flex-direction: row; align-items: center; justify-content: space-between; }

  .pdp-action-panel__actions { flex-direction: row; flex-wrap: wrap; }
  .pdp-action-panel__actions .btn--whatsapp { flex: 1 1 100%; }
  .pdp-action-panel__actions .btn--secondary { flex: 1; }
}

/* ==========================================================================
   7. DESKTOP (960px+)
   ========================================================================== */
@media (min-width: 960px) {
  :root { --header-height: 72px; }

  .announcement-bar__text { font-size: 0.875rem; }

  .site-nav { display: block; }
  .site-header__call,
  .site-header__whatsapp { display: inline-flex; }
  .site-header__search-toggle { display: none; }
  .search-panel { display: none !important; }
  .site-header__menu-toggle { display: none; }

  .hero__inner { flex-direction: row; align-items: center; }
  .hero__content { flex: 0 0 56%; }
  .hero__visual { order: 0; flex: 0 0 40%; }
  .hero__heading { font-size: 2.75rem; }
  .hero__actions { flex-direction: row; }
  .hero__actions .btn { width: auto; }

  .wizard { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
  .wizard__submit { width: auto; margin-top: 0; }

  .tile-grid--parts { grid-template-columns: repeat(4, 1fr); }
  .brand-row { overflow-x: visible; }

  .product-card { flex: 0 0 calc(25% - var(--space-3) * 3 / 4); }
  .product-carousel { overflow-x: visible; flex-wrap: wrap; }

  .testimonial-card { flex: 0 0 calc(33.333% - var(--space-3) * 2 / 3); }
  .testimonial-track { overflow-x: visible; }

  .technician-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }

  .site-footer__grid { flex-direction: row; justify-content: space-between; }
  .footer-col { border-bottom: none; flex: 1; }
  .footer-col summary, .footer-col__heading { cursor: default; }
  .footer-col summary::after { display: none; }
  .footer-col ul { padding-top: var(--space-2); }
  .site-footer__bottom-inner { flex-direction: row; justify-content: space-between; }

  .category-layout { flex-direction: row; align-items: flex-start; gap: var(--space-5); }
  .filter-bar { display: none; }
  .filter-sidebar {
    display: block;
    flex: 0 0 260px;
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
  }
  .filter-sidebar__section[open] { /* desktop: keep persistent, no accordion collapse needed visually but harmless */ }
  .category-content { flex: 1; min-width: 0; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }

  /* --- PDP: gallery + action panel side-by-side --- */
  .pdp-layout__top { display: flex; gap: var(--space-6); align-items: flex-start; }
  .pdp-gallery { flex: 0 0 46%; margin-bottom: 0; }
  .pdp-gallery__mobile { display: none; }
  .pdp-gallery__desktop { display: flex; gap: var(--space-3); }
  .pdp-action-panel { flex: 1; padding-block: 0; }
  .pdp-action-panel__actions { flex-direction: column; }
  .pdp-action-panel__actions .btn { width: 100%; }
  .pdp-below-fold { max-width: 720px; }

  /* Sticky WhatsApp becomes a floating button on desktop */
  .sticky-whatsapp {
    left: auto;
    right: var(--space-4);
    bottom: var(--space-4);
    width: auto;
    border-radius: var(--radius-full);
    overflow: hidden;
  }
  .sticky-whatsapp__label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width var(--duration-base) var(--easing-standard);
  }
  .sticky-whatsapp:hover .sticky-whatsapp__label,
  .sticky-whatsapp:focus-within .sticky-whatsapp__label { max-width: 220px; }
  .sticky-whatsapp__link { padding-inline: var(--space-3); }
  .sticky-whatsapp__call { display: none; }
}

/* ==========================================================================
   9. CATEGORY / LISTING PAGE COMPONENTS
   (Breadcrumb, Category Header, FilterSidebar/FilterDrawer, FilterChip,
   ActiveFiltersBar, ProductGrid, EmptyState, Load More, Technician CTA sm)
   ========================================================================== */

/* --- Breadcrumb --- */
.breadcrumb { padding-block: var(--space-3); }
.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.breadcrumb__list a { color: var(--color-text-muted); font-weight: 600; }
.breadcrumb__list a:hover { text-decoration: underline; color: var(--color-primary); }
.breadcrumb__list li { display: flex; align-items: center; gap: 6px; }
.breadcrumb__list li[aria-current="page"] { color: var(--color-primary); font-weight: 700; }
.breadcrumb__sep { color: var(--color-border); }

/* --- Category page header --- */
.category-header { padding-bottom: var(--space-4); }
.category-header__heading { font-size: 1.5rem; }
.category-header__copy { color: var(--color-text-muted); margin-top: var(--space-2); max-width: 60ch; }
.category-header__count { color: var(--color-text-muted); font-size: var(--text-small); margin-top: var(--space-2); }

/* --- Category layout: sidebar + grid column --- */
.category-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* --- Filter trigger (mobile) --- */
.filter-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.filter-trigger__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}
.filter-trigger__count:empty,
.filter-trigger__count[hidden] { display: none; }

/* --- FilterSidebar / FilterDrawer shared content styles --- */
.filter-sidebar__section { border-bottom: 1px solid var(--color-border); padding-block: var(--space-3); }
.filter-sidebar__section:first-child { padding-top: 0; }
.filter-sidebar__section-title {
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-1) 0;
}
.filter-sidebar__section-title::-webkit-details-marker { display: none; }
.filter-sidebar__section-title::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 1.6px solid var(--color-text-muted);
  border-bottom: 1.6px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform var(--duration-base) var(--easing-standard);
}
.filter-sidebar__section[open] .filter-sidebar__section-title::after { transform: rotate(-135deg); }

.filter-checklist { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); }
.filter-checklist__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  cursor: pointer;
  font-size: var(--text-body);
}
.filter-checklist__item input { width: 18px; height: 18px; accent-color: var(--color-primary); flex-shrink: 0; }
.filter-checklist__item span { flex: 1; }
.filter-checklist__item small { color: var(--color-text-muted); font-size: var(--text-small); }

.filter-price-range { display: flex; align-items: center; gap: var(--space-2); padding-top: var(--space-3); }
.filter-price-range input {
  width: 100%;
  min-height: 40px;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
}
.filter-price-range span { color: var(--color-text-muted); }

.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
}
.filter-toggle__switch {
  position: relative;
  width: 40px; height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  flex-shrink: 0;
  transition: background var(--duration-base) var(--easing-standard);
}
.filter-toggle__switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--elevation-1);
  transition: transform var(--duration-base) var(--easing-standard);
}
.filter-toggle input { position: absolute; opacity: 0; width: 40px; height: 24px; cursor: pointer; margin: 0; }
.filter-toggle input:checked + .filter-toggle__switch { background: var(--color-success); }
.filter-toggle input:checked + .filter-toggle__switch::after { transform: translateX(16px); }
.filter-toggle input:focus-visible + .filter-toggle__switch { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.filter-sidebar__actions {
  display: flex;
  gap: var(--space-2);
  padding-top: var(--space-4);
}
.filter-sidebar__actions .btn--primary { flex: 1; }

/* Desktop persistent sidebar (rendered as a plain <aside>) */
.filter-sidebar {
  display: none;
}

/* Mobile filter drawer (bottom sheet) */
.filter-drawer[hidden] { display: none; }
.filter-drawer__backdrop {
  position: fixed; inset: 0;
  background: rgba(15,37,64,0.5);
  z-index: 30;
}
.filter-drawer__panel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-height: 85vh;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 31;
  display: flex;
  flex-direction: column;
  box-shadow: var(--elevation-3);
}
.filter-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.filter-drawer__header h2 { font-size: var(--text-h3); }
.filter-drawer__body { padding: 0 var(--space-4); overflow-y: auto; }
.filter-drawer__footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}
.filter-drawer__footer .btn--primary { flex: 1; }

/* --- ActiveFiltersBar / FilterChip --- */
.active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.active-filters-bar[hidden] { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px var(--space-2);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  background: rgba(15,37,64,0.05);
  color: var(--color-primary);
  font-size: var(--text-small);
  font-weight: 600;
}
.filter-chip__remove { display: inline-flex; color: var(--color-primary); opacity: 0.7; }
.filter-chip__remove:hover { opacity: 1; }
.active-filters-bar__clear { align-self: center; }

/* --- ProductGrid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.product-grid .product-card { flex: unset; scroll-snap-align: unset; }

/* --- EmptyState --- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-6) var(--space-3);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.empty-state__icon { font-size: 2rem; display: block; margin-bottom: var(--space-2); opacity: 0.6; }
.empty-state__message { color: var(--color-text-muted); margin-bottom: var(--space-3); max-width: 40ch; margin-inline: auto; }
.empty-state[hidden] { display: none; }

/* --- Load more --- */
.load-more-wrap { text-align: center; margin-top: var(--space-5); }

/* --- Technician CTA block (compact, embedded on category pages) --- */
.technician-cta-sm {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-top: var(--space-6);
  align-items: flex-start;
}
.technician-cta-sm h3 { font-size: var(--text-h3); }
.technician-cta-sm p { color: var(--color-text-muted); margin-top: var(--space-1); font-size: var(--text-small); }

/* ==========================================================================
   10. PDP (PRODUCT DETAIL PAGE) COMPONENTS
   (PDPGallery, ImageZoomModal, PDPActionPanel, TrustBadgeItem mini,
   SpecTable/SpecRow, CompatibilityTable/CompatibilityListItem,
   RelatedPartsCarousel section wrapper)
   ========================================================================== */

/* --- Extra Badge variants (Atom/Badge) --- */
.badge--new-oem { background: rgba(15,37,64,0.08); color: var(--color-primary); }
.badge--warranty { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border); }
.pdp-badge-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }

/* --- PDPGallery --- */
.pdp-gallery { margin-bottom: var(--space-4); }
.pdp-gallery__desktop { display: none; }

.pdp-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}
.pdp-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  border-radius: 0;
}
.pdp-gallery__zoom {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 2;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--elevation-1);
}
.pdp-gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-2); }
.pdp-gallery__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-border); transition: background var(--duration-fast) var(--easing-standard), width var(--duration-fast) var(--easing-standard); }
.pdp-gallery__dot.is-active { background: var(--color-primary); width: 16px; border-radius: var(--radius-full); }

.pdp-gallery__thumbs { display: flex; flex-direction: column; gap: var(--space-2); }
.pdp-gallery__thumb {
  display: block;
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
}
.pdp-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery__thumb:hover { opacity: 1; }
.pdp-gallery__thumb.is-active { border-color: var(--color-primary); opacity: 1; }
.pdp-gallery__main { position: relative; }

/* --- ImageZoomModal --- */
.image-zoom-modal[hidden] { display: none; }
.image-zoom-modal__backdrop { position: fixed; inset: 0; background: rgba(10,20,32,0.92); z-index: 40; }
.image-zoom-modal__panel {
  position: fixed; inset: 0;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.image-zoom-modal__panel img { max-width: 100%; max-height: 85vh; border-radius: var(--radius-md); }
.image-zoom-modal__close {
  position: absolute;
  top: var(--space-3); right: var(--space-3);
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.image-zoom-modal__close:hover { background: rgba(255,255,255,0.22); }

/* --- PDPActionPanel --- */
.pdp-action-panel { padding-block: var(--space-4); }
.pdp-action-panel__name { font-size: 1.375rem; margin-bottom: var(--space-3); }
.pdp-action-panel__desc { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.pdp-action-panel .price--lg { display: block; margin-bottom: var(--space-4); }
.pdp-action-panel__actions { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.pdp-action-panel__actions .btn { width: 100%; }
.pdp-action-panel__delivery-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  margin-bottom: var(--space-4);
}
.pdp-action-panel__delivery-note span:first-child { color: var(--color-success); }

/* --- TrustBadgeItem (mini row, condensed 2-across on PDP) --- */
.trust-badge-mini-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
.trust-badge-mini {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
}
.trust-badge-mini__icon { font-size: 1.125rem; flex-shrink: 0; }
.trust-badge-mini__label { font-weight: 600; font-size: var(--text-small); color: var(--color-primary); line-height: var(--leading-tight); }

/* --- SpecTable / SpecRow --- */
.spec-table { border-top: 1px solid var(--color-border); }
.spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.spec-row__label { color: var(--color-text-muted); font-size: var(--text-small); }
.spec-row__value { color: var(--color-primary); font-weight: 600; }

/* --- CompatibilityTable / CompatibilityListItem --- */
.compatibility-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.compatibility-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.compatibility-list li span.check-icon { color: var(--color-success); flex-shrink: 0; }
.compatibility-note {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.compatibility-note p { color: var(--color-text-muted); font-size: var(--text-small); }

/* --- RelatedPartsCarousel section wrapper --- */
.related-parts .section-heading { margin-bottom: var(--space-3); }

/* --- PDP page layout wrapper --- */
.pdp-layout { display: flex; flex-direction: column; }

/* ==========================================================================
   8. ACCESSIBILITY / REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
