@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;600;700;800&display=swap');

:root {
  /* CHINA PARTS — blue/silver/white brand system */
  --color-bg: #0a111c;
  --color-surface: #0e1524;
  --color-surface-hover: #162033;
  --color-surface-light: #ffffff;
  --color-primary: #1f5fd6;
  --color-primary-dark: #1647a8;
  --color-primary-soft: rgba(31, 95, 214, 0.16);
  --color-secondary: #8fa3c2;
  --color-text-main: #ffffff;
  --color-text-muted: #a8b6cc;
  --color-soft-plate: #ffffff;
  --color-border: rgba(255, 255, 255, 0.14);
  --color-success: #00c853;
  --color-error: #ff3d00;
  --color-warning: #ffc107;

  --glass-bg: rgba(14, 21, 36, 0.92);
  --glass-border: rgba(255, 255, 255, 0.12);

  --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Cairo', 'Segoe UI', Tahoma, sans-serif;

  --container-max-width: 1300px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 18px;
  --border-radius-pill: 50px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 26px rgba(31, 95, 214, 0.28);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --z-header: 1000;
  --z-dropdown: 1050;
  --z-drawer: 1100;
  --z-overlay: 1090;
  --z-toast: 1200;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-ar);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 500;
  direction: rtl;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  width: 100%;
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select {
  font-family: inherit;
  outline: none;
  border: none;
}

/* Utilities */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-inline: 20px;
  width: 100%;
  box-sizing: border-box;
}
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-transform: none;
  letter-spacing: 0;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(31, 95, 214, 0.45);
}
.btn:disabled,
.btn-primary:disabled,
.btn-outline:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
  background: rgba(31, 95, 214, 0.12);
  transform: translateY(-2px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
  position: relative;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: none;
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: none;
  border-color: transparent;
}
.btn-icon:active {
  background: rgba(31, 95, 214, 0.14);
  color: #a8c4ff;
}
.btn-icon .ui-icon,
.mobile-menu-btn .ui-icon,
.logo-mark .ui-icon,
.global-search-input .ui-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}
.btn-icon .badge {
  position: absolute;
  top: 2px;
  left: 2px;
  right: auto;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(10, 17, 28, 0.97);
  border-bottom: 1px solid rgba(170, 190, 230, 0.1);
  padding: 6px 0 0;
  overflow: visible;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 981px) {
    .site-header {
      background: rgba(10, 17, 28, 0.9);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }
  }
}
.header-main,
.header-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  min-height: 108px;
  padding-block: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-main);
  flex: 0 0 auto;
  text-decoration: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  max-width: min(460px, 68vw);
}
.logo:hover {
  background: transparent;
  border: 0;
  opacity: 0.94;
}
.logo-mark {
  width: 68px;
  height: 68px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: #8eb6ff;
  flex-shrink: 0;
  overflow: visible;
  box-shadow: none;
}
.logo-mark img,
.logo-mark-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  padding: 0;
  background: transparent;
  filter: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.12;
  min-width: 0;
  padding-block: 0;
  justify-content: center;
}
.logo-text strong,
.logo > span:not(.logo-mark):not(.logo-text) {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  white-space: nowrap;
  font-family: var(--font-en), var(--font-ar), sans-serif;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: unset;
  text-shadow: none;
  filter: none;
}
.logo-text small {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  white-space: normal;
  max-width: 250px;
  line-height: 1.35;
}
.logo i {
  color: inherit;
}
@media (max-width: 980px) {
  .header-main,
  .header-wrapper {
    min-height: 78px;
    gap: 10px;
  }
  .logo {
    gap: 10px;
    padding: 0;
    max-width: min(250px, 56vw);
  }
  .logo-mark {
    width: 48px;
    height: 48px;
  }
  .logo-text strong {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
  }
  .logo-text small {
    display: none;
  }
}
@media (max-width: 576px) {
  .logo-mark {
    width: 44px;
    height: 44px;
  }
  .logo-text strong {
    font-size: 1.02rem;
  }
}

.header-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
}
.header-nav .container {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  justify-content: space-between;
  min-height: 48px;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(245, 246, 250, 0.72);
  position: relative;
  padding: 14px 10px;
  border-radius: 0;
  background: transparent;
  transition: color .2s ease;
  white-space: nowrap;
  text-align: center;
}
.nav-link::after {
  content: '';
  position: absolute;
  inset-inline: 18%;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  transition: background-color .2s ease;
}
.nav-link:hover {
  color: #fff;
  background: transparent;
}
.nav-link:hover::after {
  background: rgba(255, 255, 255, 0.28);
}
.nav-link.active {
  color: #7eabff;
  background: transparent;
}
.nav-link.active::after {
  background: #1f5fd6;
}
.nav-link .fa-chevron-down {
  font-size: 0.62rem;
  opacity: 0.55;
  margin-inline-start: 0;
  transition: transform .2s ease;
}
.dropdown.is-open > .nav-link .fa-chevron-down,
.dropdown:hover > .nav-link .fa-chevron-down {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.header-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  color: #3ddc84;
  border: 1px solid rgba(37, 211, 102, 0.22);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
.header-wa-link:hover {
  background: rgba(37, 211, 102, 0.2);
  color: #5ee89a;
  transform: translateY(-1px);
}
.header-wa-link i {
  font-size: 1.05rem;
}
.lang-switcher-container {
  position: relative;
  flex: 0 0 auto;
}
.lang-switcher-btn {
  gap: 6px;
  min-width: 54px;
  padding-inline: 10px;
  font-size: 0.9rem;
}
.lang-switcher-btn .lang-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 148px;
  max-height: 260px;
  overflow-y: auto;
  background: #10141c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  z-index: var(--z-dropdown);
  padding: 6px;
}
.lang-dropdown[hidden] {
  display: none !important;
}
.lang-dropdown button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(245, 246, 250, 0.88);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}
.lang-dropdown button:hover {
  background: rgba(31, 95, 214, 0.12);
  color: #fff;
}
.global-search-container {
  flex: 1 1 auto;
  width: auto;
  max-width: 520px;
  margin: 0;
  position: relative;
  min-width: 0;
}
.global-search-container:focus-within {
  max-width: 560px;
}

@media (min-width: 981px) {
  .header-main,
  .header-wrapper {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    gap: 16px 20px;
    align-items: center;
  }
  .logo {
    grid-column: 1;
  }
  .global-search-container {
    grid-column: 2;
    width: min(560px, 100%);
    max-width: 560px;
    justify-self: center;
    margin-inline: 0;
  }
  .global-search-container:focus-within {
    max-width: 600px;
    width: min(600px, 100%);
  }
  .header-actions {
    grid-column: 3;
    justify-self: end;
  }
  .header-nav .container {
    padding-inline: 20px;
  }
  .nav-links {
    max-width: 980px;
    justify-content: space-between;
    gap: 0;
  }
  .nav-link {
    padding: 15px 12px;
    font-size: 0.97rem;
  }
  .nav-link::after {
    inset-inline: 22%;
  }
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1rem;
  background: transparent;
  color: rgba(245, 246, 250, 0.88);
  border: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu-btn .ui-icon {
  width: 20px;
  height: 20px;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.dropdown > .nav-link {
  width: 100%;
  flex: 1 1 auto;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0e1118;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  padding: 0;
  width: min(560px, 92vw);
  max-height: min(70vh, 480px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: var(--z-dropdown);
  display: flex;
  flex-direction: column;
}
.dropdown-menu.brands-mega-menu,
.dropdown-menu.brands-list-menu {
  width: min(560px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown.is-open > .nav-link .fa-chevron-down {
  transform: rotate(180deg);
}
.nav-link .fa-chevron-down {
  display: inline-block;
  transition: transform .2s ease;
}

.brands-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.brands-dropdown-head > span {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(245, 246, 250, 0.78);
}
.brands-dropdown-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b9dff;
}
.brands-dropdown-all:hover {
  color: #ffb07a;
}
.brands-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  overflow-y: auto;
  max-height: min(58vh, 400px);
}
.brand-menu-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(245, 246, 250, 0.78);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  min-width: 0;
}
.brand-menu-tile:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(31, 95, 214, 0.22);
  color: #fff;
}
.brand-menu-tile .brand-mini-logo,
.brand-mini-logo.is-menu {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  padding: 7px;
  background: var(--color-soft-plate);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.brand-menu-tile-name {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-item,
.brand-menu-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--color-text-main);
  font-size: 0.92rem;
  font-weight: 700;
  background: transparent;
  border: 1px solid transparent;
  min-width: 0;
  text-align: start;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.dropdown-item img,
.dropdown-item .brand-mini-logo,
.brand-menu-card .brand-mini-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}
.dropdown-item span,
.brand-menu-card-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: grid;
  gap: 1px;
  min-width: 0;
  width: auto;
  flex: 1;
}
.dropdown-item:hover,
.brand-menu-card:hover {
  background: rgba(31, 95, 214, 0.1);
  border-color: rgba(31, 95, 214, 0.2);
  color: #fff;
  transform: none;
}
.brand-menu-card-text strong {
  font-size: 0.9rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-menu-card-text small {
  color: #8b92a5;
  font-size: 0.72rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4.75rem 0 3.75rem;
  background:
    radial-gradient(ellipse 92% 58% at 50% -18%, rgba(47, 110, 214, 0.40), transparent 62%),
    radial-gradient(ellipse 42% 36% at 100% 88%, rgba(120, 168, 230, 0.12), transparent 58%),
    radial-gradient(ellipse 38% 32% at 0% 80%, rgba(31, 95, 214, 0.16), transparent 52%),
    linear-gradient(180deg, #122443 0%, #0c1730 38%, #0a111c 100%);
  overflow: hidden;
}
@media (min-width: 981px) {
  .hero {
    padding: 4.25rem 0 3.5rem;
  }
  .parts-finder {
    max-width: 1080px;
  }
}
@media (min-width: 981px) and (max-width: 1180px) {
  .parts-finder-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .parts-finder-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
  .parts-finder-fields-vin {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .parts-finder-fields-vin .parts-finder-submit {
    grid-column: auto;
    width: auto;
  }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.045) 48%, transparent 58%),
    linear-gradient(180deg, transparent 62%, rgba(10, 17, 28, 0.35) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset-inline: 8%;
  bottom: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170, 198, 240, 0.28), transparent);
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: none;
}
.hero-title {
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  letter-spacing: 0;
  max-width: 12em;
  margin-inline: auto;
  color: #ffffff;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero-title span {
  color: var(--color-primary);
  text-shadow: none;
}
.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: #b7bfcf;
  margin-bottom: 1.35rem;
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.75;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 246, 250, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}
.hero-trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.12);
}

/* Parts Finder — premium vehicle / VIN search */
.parts-finder {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 6;
}
.parts-finder-tabs {
  display: inline-flex;
  padding: 5px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  gap: 4px;
}
.parts-finder-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #a8b0c2;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 128px;
}
.parts-finder-tab:hover {
  color: #fff;
}
.parts-finder-tab.is-active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 95, 214, 0.28);
}
.parts-finder-panel {
  background: #12151e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: visible;
}
.parts-finder-fields[hidden],
.parts-finder-fields-vin[hidden] {
  display: none !important;
}
.parts-finder-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px 12px;
  align-items: end;
}
.parts-finder-fields-vin {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.parts-finder-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  text-align: start;
  min-width: 0;
}
.parts-finder-field-grow {
  flex: 1;
}
.parts-finder-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c4cad8;
  padding-inline: 2px;
}
.parts-finder-field select,
.parts-finder-field input {
  width: 100%;
  background-color: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}
.parts-finder-field select {
  padding-inline-end: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c4cad8' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 10px;
}
html[dir="ltr"] .parts-finder-field select {
  background-position: right 14px center;
}
.parts-finder-field input {
  font-family: var(--font-en), ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.parts-finder-field select:focus,
.parts-finder-field input:focus {
  border-color: rgba(31, 95, 214, 0.7);
  background-color: #10131a;
  box-shadow: 0 0 0 3px rgba(31, 95, 214, 0.16);
  outline: none;
}
.parts-finder-field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.parts-finder-field select option {
  background: var(--color-surface);
  color: #fff;
}
.parts-finder-submit {
  height: 48px;
  min-height: 48px;
  padding: 0 22px;
  white-space: nowrap;
  border-radius: 12px;
  align-self: end;
  width: auto;
  min-width: 118px;
  gap: 8px;
}
.parts-finder-hint {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #9aa3b5;
  line-height: 1.5;
}

/* Legacy search-widget hooks (kept for safety) */
.search-widget {
  background: rgba(15, 18, 26, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 30px rgba(31, 95, 214, 0.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.search-input-group {
  flex: 1;
  position: relative;
}
.search-input-group i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.search-widget select, .search-widget input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 14px 15px 14px 40px;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
  appearance: none;
}
.search-widget select {
  padding: 14px 40px 14px 15px;
}
.search-widget select:focus, .search-widget input:focus {
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(31, 95, 214, 0.12);
}
.search-widget select option {
  background: var(--color-surface);
  color: #fff;
}
.search-widget .btn-search {
  padding: 14px 30px;
  font-size: 1.1rem;
  white-space: nowrap;
}

/* Section Titles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 2rem;
}
.section-header-stack {
  align-items: flex-end;
  flex-wrap: wrap;
}
.section-heading {
  flex: 1;
  min-width: 220px;
}
.section-action {
  flex-shrink: 0;
  align-self: center;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin: 0;
  line-height: 1.25;
  color: #ffffff;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 40%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
}
.section-subtitle {
  color: var(--color-text-muted);
  margin: 1rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 36rem;
}
.section-more {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}
.products-all-wrap {
  margin-top: 1.5rem;
}
.products-all-btn {
  min-width: min(280px, 100%);
  justify-content: center;
  gap: 10px;
}
.product-card-all {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 280px;
  padding: 24px 18px;
  text-decoration: none;
  text-align: center;
  background: rgba(31, 95, 214, 0.06);
  border: 1px dashed rgba(31, 95, 214, 0.35);
  color: rgba(245, 246, 250, 0.88);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.product-card-all:hover {
  background: rgba(31, 95, 214, 0.12);
  border-color: rgba(31, 95, 214, 0.5);
  border-style: solid;
  color: #fff;
}
.product-card-all-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(31, 95, 214, 0.14);
  color: #6b9dff;
  font-size: 1.25rem;
}
.product-card-all strong {
  font-size: 1.05rem;
  font-weight: 800;
}
.product-card-all span:last-child {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245, 246, 250, 0.5);
}
.product-card-all:hover span:last-child {
  color: rgba(245, 246, 250, 0.7);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}
.product-card {
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s ease, background-color .2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 95, 214, 0.42);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  background: #121722;
}
.product-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  padding-top: 0;
  background: var(--color-soft-plate);
  display: block;
  overflow: hidden;
}
.product-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .25s ease;
}
.product-card-img-wrap.has-dual {
  display: block;
  background: var(--color-soft-plate);
}
.product-card-img-wrap.has-dual .product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: var(--color-soft-plate);
  transition: opacity .28s ease, transform .28s ease;
}
.product-card-img-wrap.has-dual .product-img.is-primary {
  opacity: 1;
  z-index: 1;
}
.product-card-img-wrap.has-dual .product-img.is-secondary {
  opacity: 0;
  z-index: 0;
}
.product-card:hover .product-card-img-wrap.has-dual .product-img.is-primary {
  opacity: 0;
  transform: scale(1.02);
}
.product-card:hover .product-card-img-wrap.has-dual .product-img.is-secondary {
  opacity: 1;
  transform: scale(1.03);
}
.product-card:hover .product-card-img-wrap:not(.has-dual) img {
  transform: scale(1.03);
}
.product-ribbon {
  position: absolute;
  top: auto;
  bottom: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(20, 22, 28, 0.82);
  color: #ffb4a3;
  font-size: 0.7rem;
  font-weight: 700;
}
.product-image-count {
  position: absolute;
  bottom: 10px;
  top: auto;
  inset-inline-end: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 18, 26, 0.78);
  color: #f2f5f8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.product-badge,
.product-brand {
  display: none;
}
.product-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-width: 0;
}
.product-brand-badge {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.product-brand-badge .brand-mini-logo.is-overlay {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 7px;
  background: var(--color-soft-plate);
  border: 1px solid rgba(15, 18, 26, 0.06);
  box-shadow: 0 3px 12px rgba(15, 18, 26, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-brand-badge .brand-mini-logo.is-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none;
  opacity: 1;
}
.product-brand-badge .brand-mini-logo.is-overlay.is-empty {
  background: #cfd8e6;
  color: #5b6b82;
}
.product-brand-badge .brand-mini-logo.is-overlay i {
  font-size: 1rem;
}
.product-brand-badge .brand-mini-logo,
.brand-mini-logo.is-card {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  padding: 4px;
  background: var(--color-soft-plate);
  border: 1px solid rgba(15, 18, 26, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.product-brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(245, 246, 250, 0.82);
  letter-spacing: 0.01em;
}
.product-brand-line .brand-mini-logo,
.product-brand-line .brand-mini-logo.is-card {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  padding: 3px;
  box-shadow: none;
}
.product-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.55;
  color: rgba(245, 246, 250, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-height: 0;
  min-width: 0;
}
.product-title:hover {
  color: #7eabff;
}
.product-oem {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(245, 246, 250, 0.55);
  font-family: var(--font-en);
  direction: ltr;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.product-meta {
  display: none;
}
.product-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}
.product-price-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #6b9dff;
  font-family: var(--font-en);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.product-stock {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  flex-shrink: 0;
}
.product-stock.is-in {
  color: rgba(90, 200, 140, 0.9);
}
.product-stock.is-out {
  color: rgba(255, 140, 110, 0.9);
}
.product-card-tools {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 5;
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.product-card-tools.is-under-card {
  position: static;
  top: auto;
  inset-inline-start: auto;
  z-index: auto;
  width: 100%;
  gap: 8px;
  margin-top: 2px;
}
.product-card-tools.is-under-card .product-tool-btn {
  flex: 1 1 0;
  width: auto;
  min-height: 38px;
  height: auto;
  border-radius: 12px;
  gap: 6px;
  padding: 8px 10px;
}
.product-tool-label {
  display: none;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.product-card-tools.is-under-card .product-tool-label {
  display: inline;
}
.product-tool-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(15, 18, 26, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(15, 18, 26, 0.22);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.product-tool-btn .ui-icon {
  width: 20px;
  height: 20px;
  display: block;
  stroke-width: 2.25;
}
.product-tool-btn:hover {
  background: #f3f7ff;
  color: #1f5fd6;
  border-color: rgba(31, 95, 214, 0.35);
  transform: translateY(-1px);
}
.product-tool-btn.active {
  background: #1f5fd6;
  border-color: #1f5fd6;
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 95, 214, 0.4);
}
.product-cta {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  background: #1f5fd6;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease;
}
.product-cta .ui-icon {
  width: 16px;
  height: 16px;
  display: block;
}
.product-cta:hover {
  background: #e85f00;
  color: #fff;
}
.product-cta-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.product-cta-row .product-cta {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 8px;
  font-size: 0.82rem;
}
.product-cta.is-buy-now {
  background: #111827;
  color: #fff;
}
.product-cta.is-buy-now:hover {
  background: #000;
  color: #fff;
}
.product-cta.is-wa {
  background: #1fad55;
}
.product-cta.is-wa:hover {
  background: #189846;
}
.product-actions {
  display: none;
}
.product-icon-btn,
.product-buy,
.btn-add-cart {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 246, 250, 0.88);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .18s ease, color .18s ease;
  text-decoration: none;
}
.product-icon-btn .ui-icon,
.product-buy .ui-icon,
.btn-add-cart .ui-icon {
  width: 17px;
  height: 17px;
  display: block;
}
.product-icon-btn:hover,
.btn-add-cart:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: none;
}
.product-buy {
  background: rgba(31, 95, 214, 0.16);
  color: #7eabff;
}
.product-buy:hover {
  background: rgba(31, 95, 214, 0.24);
  color: #a8c4ff;
}
.product-buy.is-wa {
  background: rgba(37, 211, 102, 0.14);
  color: #2fd877;
}
.product-buy.is-wa:hover {
  background: rgba(37, 211, 102, 0.2);
  color: #5ce69a;
}
.product-icon-btn.active {
  background: rgba(31, 95, 214, 0.16);
  color: #7eabff;
}
.btn-wa-mini {
  background: rgba(37, 211, 102, 0.1) !important;
  color: #3ddc84 !important;
  border-color: rgba(37, 211, 102, 0.25) !important;
}
.img-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #9aa3b2;
  font-size: 1.6rem;
  background: #eef1f5;
  min-height: 0;
}
.img-fallback[hidden] {
  display: none !important;
}
.product-card-img-wrap img[hidden],
.product-card-img-wrap img.is-broken {
  display: none !important;
}
.btn-add-cart.active,
.product-icon-btn.active {
  background: rgba(31, 95, 214, 0.16);
  border-color: rgba(31, 95, 214, 0.3);
  color: #7eabff;
}
.btn-add-cart:disabled {
  transform: none;
  background: rgba(255,255,255,0.05);
  color: var(--color-text-muted);
}

/* Features — quiet trust strip */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  margin: 48px auto 64px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  text-align: right;
  padding: 28px 24px;
  background: #0f121a;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 95, 214, 0.28);
  background: #141822;
}
.feature-icon {
  width: 40px;
  height: 40px;
  margin: 0 0 14px;
  background: #ffffff;
  color: #1f5fd6;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(245, 246, 250, 0.92);
}
.feature-card p {
  color: rgba(245, 246, 250, 0.55);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 800px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Brands Marquee */
.brands-marquee {
  overflow: hidden;
  padding: 28px 0;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.marquee-content {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  flex-shrink: 0;
  width: 148px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-soft-plate);
  border-radius: 14px;
  padding: 12px 16px;
  filter: none;
  opacity: 1;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}
.marquee-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.marquee-item img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}
.marquee-item span {
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Cart Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease-out, visibility 0.12s ease-out;
}
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  left: -400px; /* RTL means drawer comes from left */
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background: var(--color-surface);
  z-index: var(--z-drawer);
  transition: transform 0.14s ease-out;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}
.cart-drawer.open {
  transform: translateX(400px);
}
.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.close-drawer {
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-drawer:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.cart-item {
  display: flex;
  gap: 15px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-item-img {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--border-radius-sm);
  padding: 5px;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-price {
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-en);
}
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  background: rgba(0,0,0,0.3);
  width: max-content;
  border-radius: 20px;
  padding: 4px 10px;
}
.cart-qty-btn {
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.cart-remove {
  background: transparent;
  color: var(--color-error);
  cursor: pointer;
  font-size: 0.9rem;
}
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--color-border);
  background: rgba(0,0,0,0.2);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1.25rem;
  font-weight: 800;
}
.btn-checkout {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--color-primary);
  padding: 15px 20px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateX(100%); /* RTL -> right */
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast.success { border-color: var(--color-success); }
.toast.error { border-color: var(--color-error); }
.toast i { font-size: 1.5rem; }
.toast.success i { color: var(--color-success); }
.toast.error i { color: var(--color-error); }

/* Footer — store columns */
.site-footer {
  margin-top: 72px;
  padding: 0;
  background: #08090d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-shell {
  padding-block: 48px 24px;
  padding-inline: 20px;
  text-align: start;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
  align-items: start;
  margin-bottom: 28px;
}
.footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: rgba(245, 246, 250, 0.62);
  font-size: 0.92rem;
  font-weight: 600;
}
.footer-col a:hover {
  color: #7eabff;
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
}
.footer-brand-block .logo {
  justify-content: flex-start;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.footer-brand-block .logo-text {
  align-items: flex-start;
  text-align: start;
}
.footer-brand-block .logo-mark {
  width: 56px;
  height: 56px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.footer-brand-block .logo-text small {
  display: block;
  max-width: 260px;
}
.footer-tag {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(245, 246, 250, 0.52);
}
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  color: #3ddc84;
  border: 1px solid rgba(37, 211, 102, 0.2);
  font-size: 0.88rem;
  font-weight: 700;
}
.footer-wa:hover {
  color: #5ee89a;
  background: rgba(37, 211, 102, 0.18);
}
.footer-links-inline {
  display: none;
}
.footer-copy {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(245, 246, 250, 0.32);
  font-size: 0.78rem;
  text-align: center;
}
.social-links { display: none; }

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .footer-shell { padding-block: 32px 22px; padding-inline: 20px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 980px) {
  .header-main,
  .header-wrapper {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
    padding-block: 12px;
  }
  .logo {
    order: 1;
  }
  .logo-text small {
    display: none;
  }
  .header-actions {
    order: 2;
    margin-inline-start: auto;
    gap: 5px;
  }
  .header-wa-link {
    display: none;
  }
  .header-utility-btns {
    display: none;
  }
  .btn-icon,
  .mobile-menu-btn {
    width: 40px;
    height: 40px;
  }
  .btn-icon .ui-icon,
  .mobile-menu-btn .ui-icon {
    width: 20px;
    height: 20px;
  }
  .lang-switcher-btn {
    min-width: 38px;
    padding-inline: 8px;
  }
  .lang-switcher-btn .lang-label {
    display: none;
  }
  .global-search-container {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }
  .global-search-container:focus-within {
    max-width: none;
  }

  .header-nav {
    border-top: none;
    background: transparent;
  }
  .header-nav .container {
    padding: 0;
  }
  .header-nav .nav-links,
  .nav-links {
    display: none;
  }
  .header-nav .nav-links.active,
  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    min-height: 0;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #0d1016;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px;
    gap: 2px;
    z-index: var(--z-dropdown);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .dropdown {
    flex: none;
    display: block;
  }
  .dropdown > .nav-link {
    width: auto;
  }
  .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: start;
  }
  .nav-link::after {
    display: none;
  }
  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-link.active {
    color: #7eabff;
  }
  .dropdown-menu,
  .dropdown-menu.brands-list-menu,
  .dropdown-menu.brands-mega-menu {
    position: static;
    width: 100%;
    max-height: 240px;
    margin-top: 4px;
    box-shadow: none;
    transform: none;
    border-radius: 12px;
  }
  .dropdown.is-open .dropdown-menu {
    transform: none;
  }

  .search-widget { flex-direction: column; }
  .parts-finder-fields {
    grid-template-columns: 1fr;
  }
  .parts-finder-submit {
    grid-column: auto;
    width: 100%;
  }
  .parts-finder-fields-vin {
    grid-template-columns: 1fr;
  }
  .hero-title { font-size: 2.1rem; max-width: 12em; }
}
@media (max-width: 576px) {
  .hero-title { font-size: 1.75rem; }
  .parts-finder-tabs { width: 100%; }
  .parts-finder-tab { flex: 1; min-width: 0; padding-inline: 12px; }
  .parts-finder-fields { grid-template-columns: 1fr; }
}

/* Directional Layout & Typography Rules for Multi-language Support */
html[dir="ltr"] body {
  font-family: var(--font-en);
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

/* LTR Cart Drawer Slide Position */
html[dir="ltr"] .cart-drawer {
  left: auto;
  right: -400px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}
html[dir="ltr"] .cart-drawer.open {
  transform: translateX(-400px);
}

/* LTR Product Card Badge & Brand Placement */
html[dir="ltr"] .product-badge {
  right: auto;
  left: 15px;
}
html[dir="ltr"] .product-brand {
  left: auto;
  right: 15px;
}

/* Flip directional icons in LTR mode */
html[dir="ltr"] .fa-arrow-left,
html[dir="ltr"] .fa-chevron-left {
  transform: scaleX(-1);
  display: inline-block;
}

html[dir="ltr"] .fa-arrow-right,
html[dir="ltr"] .fa-chevron-right {
  transform: scaleX(-1);
  display: inline-block;
}

/* LTR Toast slide position */
html[dir="ltr"] .toast-container {
  right: auto;
  left: 20px;
}
html[dir="ltr"] .toast {
  border-left: none;
  border-right: 4px solid var(--color-primary);
  transform: translateX(-100%);
}
html[dir="ltr"] .toast.show {
  transform: translateX(0);
}

/* LTR Search Box icon & padding adjustments */
html[dir="ltr"] .global-search-container i,
html[dir="ltr"] .global-search-container > .global-search-input > .ui-icon,
html[dir="ltr"] .search-box-wrap i {
  left: 15px !important;
  right: auto !important;
  inset-inline-end: auto !important;
  inset-inline-start: 15px !important;
}

html[dir="ltr"] .global-search-container input,
html[dir="ltr"] .search-box-wrap input {
  padding-left: 45px !important;
  padding-right: 20px !important;
}

/* Language Dropdown Premium Styles */
.lang-dropdown a:hover {
  background: rgba(31, 95, 214, 0.12);
  color: var(--color-primary) !important;
}

/* Maintain Fixed Top Header Bar Layout Structure across All Languages */
.site-header {
  direction: rtl !important;
}

/* Custom Checkbox Spacing for LTR & RTL */
.custom-checkbox span {
  margin-inline-start: 10px;
}

/* Custom scrollbar for language dropdown to make it look premium */
.lang-dropdown::-webkit-scrollbar {
  width: 5px;
}
.lang-dropdown::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
}
.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}
.lang-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Checkout Verification Modal */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.checkout-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.checkout-modal-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 22px 20px 18px;
  width: min(92vw, 420px);
  max-width: 420px;
  max-height: min(88vh, 640px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}
.checkout-modal-overlay.open .checkout-modal-card {
  transform: translateY(0);
}
.checkout-modal-close {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.checkout-modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--color-text-main);
}
.checkout-modal-icon {
  width: 48px;
  height: 48px;
  background: rgba(31, 95, 214, 0.12);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-glow);
}
.checkout-modal-title {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 28px 8px;
  color: var(--color-text-main);
  line-height: 1.35;
}
.checkout-modal-desc {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0 0 14px;
}
.checkout-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
}
.checkout-modal-btn-wa {
  background: #25D366;
  color: #fff !important;
}
.checkout-modal-btn-wa:hover {
  background: #1ebd56;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}
.checkout-modal-btn-salla {
  background: var(--color-primary);
  color: #fff !important;
}
.checkout-modal-btn-salla:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.checkout-modal-btn-cancel {
  background: transparent;
  color: var(--color-text-muted) !important;
  border: 1px solid var(--color-border);
}
.checkout-modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.03);
}

.vin-checkout-card {
  text-align: start;
  max-width: 420px;
}
.vin-checkout-card .checkout-modal-icon,
.vin-checkout-card .checkout-modal-title,
.vin-checkout-card .checkout-modal-desc {
  text-align: center;
}
.vin-checkout-steps {
  display: none;
}
.checkout-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.checkout-step span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
}
.checkout-step.is-active {
  color: #d7e4ff;
}
.checkout-step.is-active span {
  border-color: rgba(31, 95, 214, 0.8);
  background: rgba(31, 95, 214, 0.35);
  color: #fff;
}
.checkout-step.is-done span {
  border-color: rgba(72, 187, 120, 0.7);
  background: rgba(72, 187, 120, 0.25);
  color: #d8ffe8;
}
.checkout-step-panel[hidden] { display: none !important; }
.checkout-field-hint {
  margin: 0 0 8px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.req-star {
  color: #ff6b6b;
  font-weight: 800;
}
.checkout-review-block {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.checkout-review-block h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}
.checkout-review-block p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.checkout-review-items {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.checkout-review-items li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.84rem;
}
.checkout-review-total {
  color: #fff !important;
}
.checkout-steps-card {
  max-width: 460px;
}
.account-nav-wrap {
  position: relative;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #121821;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  z-index: 80;
  display: grid;
  gap: 2px;
}
.account-dropdown[hidden] { display: none !important; }
.account-dropdown a,
.account-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e8eefc;
  text-decoration: none;
  font: inherit;
  font-size: 0.9rem;
  text-align: start;
  cursor: pointer;
}
.account-dropdown a:hover,
.account-dropdown button:hover {
  background: rgba(31, 95, 214, 0.18);
}
.account-dropdown .is-danger { color: #ffb4b4; }
.account-menu-head {
  padding: 8px 12px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 700;
  color: #fff;
}
.promo-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.promo-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(145deg, rgba(31,95,214,0.28), rgba(12,18,28,0.92)),
    radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 55%);
  transition: transform .2s ease, border-color .2s ease;
}
.promo-block.tone-silver {
  background:
    linear-gradient(145deg, rgba(170,184,204,0.22), rgba(12,18,28,0.94)),
    radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 55%);
}
.promo-block.tone-dark {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.06), rgba(8,12,20,0.96)),
    radial-gradient(circle at top left, rgba(31,95,214,0.2), transparent 55%);
}
.promo-block:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 95, 214, 0.55);
}
.promo-block strong {
  font-size: 1.05rem;
  line-height: 1.35;
}
.promo-block span {
  color: rgba(232,238,252,0.78);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}
.promo-block em {
  font-style: normal;
  font-weight: 700;
  color: #c9d9ff;
  font-size: 0.88rem;
}
.promo-block-skeleton {
  min-height: 150px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.products-grid-compact {
  margin-top: 4px;
}
.account-address-card {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.account-nav-btn { text-decoration: none; }
.vin-checkout-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
.vin-checkout-input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: rgba(0,0,0,0.25);
  color: var(--color-text-main);
  font-size: 0.95rem;
  letter-spacing: normal;
  outline: none;
  transition: border-color 0.2s ease;
}
#checkout-vin-input.vin-checkout-input {
  letter-spacing: 0.08em;
}
.vin-checkout-input:focus {
  border-color: var(--color-primary);
}
select.vin-checkout-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9aa3b2 50%), linear-gradient(135deg, #9aa3b2 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 34px;
}
[dir="rtl"] select.vin-checkout-input {
  background-position: 18px calc(50% - 3px), 12px calc(50% - 3px);
}
.checkout-location-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 95, 214, 0.45);
  background: rgba(31, 95, 214, 0.12);
  color: #c9d9ff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.checkout-location-btn:hover {
  background: rgba(31, 95, 214, 0.18);
}
.checkout-location-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.checkout-location-hint {
  display: block;
  margin: 0 0 12px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.vin-checkout-ack {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 95, 214, 0.25);
  background: rgba(31, 95, 214, 0.08);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-text-main);
  font-weight: 600;
}
.vin-checkout-ack input {
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.checkout-photo-benefit {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 95, 214, 0.35);
  background: rgba(31, 95, 214, 0.1);
  color: #d5e2ff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.55;
}
.checkout-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.checkout-photo-slot .vin-photo-drop {
  min-height: 110px;
}
.checkout-photo-slot .vin-photo-placeholder {
  padding: 14px 8px;
}
.checkout-photo-slot .vin-photo-placeholder strong {
  font-size: 0.8rem;
}
.checkout-photo-slot .vin-photo-preview {
  max-height: 120px;
}
.vin-photo-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.vin-photo-kind-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.3;
}
.vin-photo-kind-option:has(input:checked) {
  border-color: rgba(31, 95, 214, 0.45);
  background: rgba(31, 95, 214, 0.1);
}
.vin-photo-kind-option input {
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.vin-photo-drop {
  display: block;
  margin-bottom: 8px;
  border: 1px dashed rgba(31, 95, 214, 0.45);
  border-radius: 12px;
  background: rgba(31, 95, 214, 0.06);
  min-height: 96px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.vin-photo-drop:hover {
  border-color: var(--color-primary);
  background: rgba(31, 95, 214, 0.1);
}
.vin-photo-placeholder {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 16px 12px;
  text-align: center;
  color: var(--color-text-muted);
}
.vin-photo-placeholder i {
  font-size: 1.25rem;
  color: var(--color-primary);
}
.vin-photo-placeholder strong {
  color: var(--color-text-main);
  font-size: 0.84rem;
}
.vin-photo-placeholder small {
  font-size: 0.74rem;
}
.vin-photo-preview {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  background: #0b0d12;
}
.vin-photo-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.vin-photo-remove:hover {
  color: var(--color-text-main);
  background: rgba(255,255,255,0.1);
}
@media (max-width: 576px) {
  .checkout-modal-card {
    padding: 18px 14px 14px;
    margin: 0;
    width: min(96vw, 420px);
    max-height: 86vh;
  }
  .checkout-photo-grid,
  .vin-photo-kind {
    grid-template-columns: 1fr;
  }
}

/* Floating WhatsApp Button */
.floating-wa-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 1500;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  animation: none;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
}
.floating-wa-btn .ui-icon {
  width: 26px;
  height: 26px;
  display: block;
}
.floating-wa-btn:hover {
  transform: translateY(-2px);
  background-color: #1ebd56;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
}
.floating-wa-btn .wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: var(--shadow-md);
}
html[lang="en"] .floating-wa-btn .wa-tooltip, 
html[lang="tl"] .floating-wa-btn .wa-tooltip,
html[lang="fr"] .floating-wa-btn .wa-tooltip,
html[lang="tr"] .floating-wa-btn .wa-tooltip,
html[lang="hi"] .floating-wa-btn .wa-tooltip,
html[lang="bn"] .floating-wa-btn .wa-tooltip {
  left: 70px;
  right: auto;
}
.floating-wa-btn:hover .wa-tooltip {
  opacity: 1;
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== UX Upgrade: interactive + fast loading ===== */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  font-family: var(--font-ar), sans-serif;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  text-shadow: none;
  filter: none;
  opacity: 1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  will-change: auto;
}
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .hero-orb {
    animation: floatOrb 14s ease-in-out infinite;
  }
}
.hero-orb-a {
  width: 280px;
  height: 280px;
  background: rgba(31, 95, 214, 0.2);
  top: 8%;
  left: 12%;
}
.hero-orb-b {
  width: 220px;
  height: 220px;
  background: rgba(61, 156, 240, 0.12);
  bottom: 12%;
  right: 10%;
  animation-delay: -4s;
}
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.06); }
}
.hero-content { position: relative; z-index: 1; }

.search-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.search-tab-alt {
  color: #fff !important;
  border-color: rgba(255,255,255,0.35) !important;
}
.search-form-row {
  display: flex;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
  align-items: stretch;
}
.search-input-wide { flex: 1.4; min-width: 260px; }
.search-form-row .search-input-group { flex: 1; min-width: 150px; }

.quick-brands,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.category-chips { justify-content: flex-start; }
.chip-btn {
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.03);
  color: var(--color-text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 600;
  font-size: 0.9rem;
}
.chip-btn:hover,
.chip-btn.active {
  color: #fff;
  border-color: var(--color-primary);
  background: rgba(31, 95, 214, 0.15);
  transform: translateY(-1px);
}

.product-skeleton,
.skeleton-chip {
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: var(--border-radius-md);
}
.product-skeleton {
  min-height: 360px;
  border: 1px solid var(--color-border);
}
.skeleton-chip {
  width: 110px;
  height: 36px;
  border-radius: 999px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.btn-wa-mini {
  background: rgba(37, 211, 102, 0.12) !important;
  color: #25D366 !important;
  border-color: rgba(37, 211, 102, 0.35) !important;
}

.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.global-search-input input {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
  font-size: 0.92rem;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.global-search-input input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.global-search-input input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.global-search-input i,
.global-search-input > .ui-icon {
  position: absolute;
  right: 16px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  width: 18px;
  height: 18px;
}
/* Avoid Font Awesome ::before stacking on top of the polished SVG icon */
.global-search-input > i.fa-magnifying-glass:has(> .ui-icon)::before {
  content: none !important;
  display: none !important;
}
.global-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  margin-top: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1200;
  max-height: 400px;
  overflow-y: auto;
}
.global-search-more {
  display: block;
  padding: 12px 15px;
  text-align: center;
  color: var(--color-primary);
  font-weight: 700;
  border-top: 1px solid var(--color-border);
  background: rgba(31, 95, 214, 0.06);
}
.global-search-more:hover {
  background: rgba(31, 95, 214, 0.12);
}
.api-down-banner {
  position: sticky;
  top: 0;
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 16px;
  background: #3b1d0f;
  color: #d5e2ff;
  border-bottom: 1px solid rgba(31, 95, 214, 0.35);
  font-size: 0.9rem;
}
.api-down-banner a { color: #fff; text-decoration: underline; }
.api-down-banner code {
  background: rgba(0,0,0,0.25);
  padding: 1px 6px;
  border-radius: 4px;
}
.api-down-banner button {
  margin-inline-start: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.global-search-loading {
  padding: 20px;
  text-align: center;
  color: var(--color-text-muted);
}
.global-search-vin-notice {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  padding: 10px 15px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.global-search-item {
  display: flex;
  gap: 15px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  transition: background .2s;
}
.global-search-item:hover { background: rgba(255,255,255,0.03); }
.global-search-item img {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  background: rgba(255,255,255,0.04);
}
.global-search-item-body { flex: 1; min-width: 0; }
.global-search-item-body h4 {
  margin: 0 0 5px;
  color: var(--color-text-main);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-search-item-meta {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.global-search-item-price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cart-hint {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.feature-card {
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

@media (max-width: 768px) {
  .hero { padding: 6.5rem 0 4.5rem; }
  .search-form-row .btn-search { width: 100%; }
  .parts-finder-panel { padding: 12px; }
  .product-actions { gap: 6px; }
  .btn-add-cart { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .hero-orb,
  .reveal-on-scroll,
  .floating-wa-btn {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Brands logo showcase */
.brands-showcase,
.categories-showcase {
  margin-top: 2.5rem;
  margin-bottom: 1.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.brands-showcase .section-title,
.categories-showcase .section-title {
  color: #ffffff;
}
.brands-showcase .section-subtitle,
.categories-showcase .section-subtitle {
  color: var(--color-text-muted);
}
.brands-showcase .section-more a,
.categories-showcase .section-more a {
  color: inherit;
}
.brands-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.brand-logo-card {
  display: flex;
  flex-direction: column;
  background: #101826;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  min-height: 0;
  height: 100%;
}
.brand-logo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 95, 214, 0.55);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(31, 95, 214, 0.18);
}
.brand-logo-card.is-available {
  opacity: 1;
  border-color: rgba(31, 95, 214, 0.42);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(31, 95, 214, 0.22),
    0 0 18px rgba(31, 95, 214, 0.18);
}
.brand-logo-card.is-available:hover {
  border-color: rgba(31, 95, 214, 0.7);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(31, 95, 214, 0.35),
    0 0 26px rgba(31, 95, 214, 0.28);
}
.brand-logo-card.is-soon {
  opacity: 0.42;
  filter: grayscale(0.85);
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.08);
}
.brand-logo-card.is-soon:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.brand-logo-card.is-soon .brand-logo-media {
  background: #e8ecf2;
}
.brand-logo-card.is-soon .brand-logo-img {
  filter: grayscale(1) brightness(0.92);
  opacity: 0.75;
}
.brand-soon-label {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.brand-logo-media {
  height: 104px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #ffffff;
  padding: 14px;
  border-bottom: 1px solid rgba(15, 18, 26, 0.06);
  box-sizing: border-box;
  overflow: hidden;
}
.brand-logo-frame {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-logo-media img,
.brand-logo-img {
  width: 76px;
  height: 76px;
  max-width: 76px;
  max-height: 76px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  filter: none;
}
/* Wide wordmark badges need more horizontal room inside the square frame */
.brand-logo-img[src*="byd."],
.brand-logo-img[src*="haval."],
.brand-logo-img[src*="exeed."],
.brand-logo-img[src*="geely."],
.brand-logo-img[src*="gwm."],
.brand-logo-img[src*="maxus."] {
  width: 94%;
  height: auto;
  max-height: 52px;
  max-width: 94%;
  aspect-ratio: auto;
  filter: none;
}
.brand-logo-fallback {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1rem;
}
.brand-logo-fallback:not([hidden]) {
  display: grid;
}
.brand-logo-fallback[hidden] {
  display: none !important;
}
.brand-logo-meta {
  padding: 10px 8px 12px;
  text-align: center;
  background: #0f121a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 48px;
  display: grid;
  place-items: center;
  flex: 1;
}
.brand-logo-meta strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}
.brand-logo-skeleton {
  min-height: 154px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

/* Parts directory — unified catalog panel */
.parts-dir {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
}
.parts-dir-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 132px;
  padding: 22px 14px;
  background: #0f121a;
  text-decoration: none;
  color: #ffffff;
  transition: background-color .2s ease, color .2s ease;
}
.parts-dir-item:hover {
  background: #141822;
}
.parts-dir-item:hover .parts-dir-icon {
  color: #1647a8;
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.parts-dir-item:hover .parts-dir-name {
  color: rgba(245, 246, 250, 0.95);
}
.parts-dir-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #1f5fd6;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: color .2s ease, transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.parts-dir-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  opacity: 0.92;
}
.parts-dir-name {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  transition: color .2s ease;
}
.parts-dir-skeleton {
  min-height: 132px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

@media (max-width: 960px) {
  .parts-dir {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .brands-logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .brand-logo-media {
    height: 88px;
    padding: 10px;
  }
  .brand-logo-frame,
  .brand-logo-media img,
  .brand-logo-img,
  .brand-logo-fallback {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
  }
  .brand-logo-meta {
    min-height: 42px;
    padding: 8px 6px 10px;
  }
  .brand-logo-meta strong {
    font-size: 0.78rem;
  }
  .parts-dir-item {
    min-height: 112px;
    gap: 10px;
    padding: 18px 10px;
  }
  .parts-dir-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .parts-dir-icon svg {
    width: 24px;
    height: 24px;
  }
  .parts-dir-name {
    font-size: 0.9rem;
  }
  .parts-dir-skeleton {
    min-height: 112px;
  }
  .section-title {
    font-size: 1.55rem;
  }
}

/* Shared secondary-page polish */
.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
}
.page-breadcrumb > span:last-child {
  min-width: 0;
  max-width: min(100%, 18rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-breadcrumb a:hover { color: var(--color-primary); }
.page-breadcrumb .sep { opacity: 0.45; }
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}
.empty-state i {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 14px;
  display: block;
}
.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  line-height: 1.7;
}
.content-page {
  padding: 48px 20px 80px;
  max-width: 980px;
  margin: 0 auto;
}
.content-page-header {
  text-align: center;
  margin-bottom: 36px;
  padding: 28px 18px 8px;
}
.content-page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-text-main);
}
.content-page-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}
.content-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 18px;
}
.content-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-panel h2 i { color: var(--color-primary); }
.content-panel p,
.content-panel li {
  color: var(--color-text-muted);
  line-height: 1.85;
}
.content-panel ul {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.content-panel li {
  position: relative;
  padding-right: 18px;
}
.content-panel li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}
.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.about-point {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}
.about-point i {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.about-point strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}
.about-point span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.policy-steps {
  display: grid;
  gap: 12px;
}
.policy-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
}
.policy-step .num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31,95,214,0.14);
  color: var(--color-primary);
  font-weight: 800;
}

/* Policy page — cleaner terms layout */
.policy-page .content-page-header {
  text-align: right;
  padding-inline: 0;
}
.policy-page .content-page-header p {
  margin: 0;
  max-width: 52rem;
}
.policy-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}
.policy-highlight-item {
  background: #0f121a;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.policy-highlight-item strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #7eabff;
}
.policy-highlight-item span {
  font-size: 0.88rem;
  color: rgba(245, 246, 250, 0.55);
}
.policy-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px;
}
.policy-panel h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: rgba(245, 246, 250, 0.92);
}
.policy-terms {
  display: grid;
  gap: 0;
  margin: 0;
  list-style: none;
}
.policy-terms li {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.policy-terms li:first-child {
  border-top: none;
  padding-top: 0;
}
.policy-terms li::before {
  display: none;
}
.policy-term-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(245, 246, 250, 0.88);
}
.policy-term-desc {
  font-size: 0.92rem;
  color: rgba(245, 246, 250, 0.58);
  line-height: 1.7;
}
.policy-flow {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 14px;
}
.policy-flow li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}
.policy-flow-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31, 95, 214, 0.12);
  border: 1px solid rgba(31, 95, 214, 0.18);
  color: #6b9dff;
  font-weight: 800;
  font-size: 0.95rem;
}
.policy-flow strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(245, 246, 250, 0.92);
  font-size: 0.98rem;
}
.policy-flow p {
  margin: 0;
  color: rgba(245, 246, 250, 0.55);
  font-size: 0.9rem;
  line-height: 1.7;
}
.policy-cta {
  margin-top: 8px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.policy-cta p {
  margin: 0;
  color: rgba(245, 246, 250, 0.62);
}
.policy-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .policy-highlight {
    grid-template-columns: 1fr;
  }
  .policy-terms li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .policy-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.checkout-demo {
  background: rgba(0,230,118,0.08);
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(0,230,118,0.35);
  margin-top: 18px;
  text-align: center;
}
@media (max-width: 860px) {
  .about-points { grid-template-columns: 1fr; }
}

/* Favorites / Compare / Lightbox */
.header-utility-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 980px) {
  .header-utility-btns,
  .header-wa-link {
    display: none !important;
  }
}
#favorites-drawer.cart-drawer,
.utility-drawer.cart-drawer {
  transition: transform 0.12s ease-out;
}
.utility-drawer .cart-body {
  padding: 16px;
}
.utility-empty {
  text-align: center;
  padding: 48px 18px;
  color: var(--color-text-muted);
}
.utility-empty i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: block;
}
.utility-empty h4 {
  color: var(--color-text-main);
  margin-bottom: 8px;
}
.utility-empty p {
  margin-bottom: 16px;
  line-height: 1.7;
}
.utility-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.02);
}
.utility-item-media {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.utility-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
  transform: none;
}
.utility-item-media.is-broken .utility-img-fallback,
.utility-item-media:not(:has(img)) .utility-img-fallback:not([hidden]),
.utility-img-fallback:not([hidden]) {
  display: grid;
}
.utility-img-fallback {
  width: 100%;
  height: 100%;
  display: none;
  place-items: center;
  color: #9aa3b2;
  font-size: 1.4rem;
  background: #f3f5f8;
}
.utility-item-media > .utility-img-fallback:only-child {
  display: grid;
}
.utility-img-fallback[hidden] {
  display: none !important;
}
.utility-item-title {
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.utility-item-meta {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.utility-item-price {
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 10px;
}
.utility-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-sm {
  padding: 8px 12px !important;
  font-size: 0.85rem !important;
  min-height: auto !important;
}
.btn-icon-danger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,61,0,0.35);
  background: rgba(255,61,0,0.12);
  color: #7eabff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.compare-panel {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) + 2);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.compare-panel.open { display: flex; }
.compare-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: calc(var(--z-drawer) + 1);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border-radius: 14px;
  background: rgba(18, 22, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0,0,0,0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
  max-width: min(420px, calc(100vw - 88px));
}
body:has(.compare-dock.show) .floating-wa-btn {
  bottom: 86px;
}
.compare-dock.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.compare-dock-text {
  font-size: 0.84rem;
  white-space: nowrap;
  color: rgba(245, 246, 250, 0.88);
}
.compare-dock .compare-dock-open {
  border-radius: 10px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}
.compare-dock-close {
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

/* Bottom cart dock: visible only when cart has items */
.cart-dock {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: calc(var(--z-drawer) + 2);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(14, 17, 26, 0.96);
  border: 1px solid rgba(31, 95, 214, 0.35);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(31, 95, 214, 0.12),
    0 0 22px rgba(31, 95, 214, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  max-width: min(520px, calc(100vw - 24px));
  width: max-content;
}
.cart-dock.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cart-dock[hidden] {
  display: none !important;
}
.cart-dock-main {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  min-width: 0;
  text-align: right;
}
.cart-dock-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31, 95, 214, 0.16);
  color: #6b9dff;
  position: relative;
  flex-shrink: 0;
}
.cart-dock-icon .ui-icon {
  width: 22px;
  height: 22px;
}
.cart-dock-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-primary, #1f5fd6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(31, 95, 214, 0.35);
}
.cart-dock-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cart-dock-copy strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.cart-dock-copy small {
  font-size: 0.78rem;
  color: rgba(245, 246, 250, 0.7);
  white-space: nowrap;
}
.cart-dock-checkout {
  border-radius: 12px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
.cart-dock-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 246, 250, 0.9);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cart-dock-cancel:hover {
  background: rgba(220, 60, 60, 0.18);
  border-color: rgba(255, 110, 110, 0.45);
  color: #ffb4b4;
}
@media (max-width: 640px) {
  .cart-dock {
    width: calc(100vw - 20px);
    max-width: none;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .cart-dock-copy strong {
    font-size: 0.86rem;
  }
  .cart-dock-cancel span {
    display: none;
  }
  .cart-dock-cancel {
    min-width: 42px;
    padding: 0;
  }
}
body.has-cart-dock .floating-wa-btn {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}
body.has-cart-dock:has(.compare-dock.show) .floating-wa-btn {
  bottom: calc(150px + env(safe-area-inset-bottom, 0px));
}
body.drawer-open .cart-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(140%);
}
.compare-panel-inner {
  width: min(1100px, 100%);
  max-height: min(86vh, 820px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.compare-body {
  padding: 16px 18px 22px;
  overflow: auto;
}
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 14px 12px;
  text-align: center;
  vertical-align: middle;
}
.compare-table th {
  text-align: right;
  color: var(--color-text-muted);
  width: 120px;
  background: rgba(255,255,255,0.02);
}
.compare-table .mono { font-family: var(--font-en); direction: ltr; }
.compare-table .price { color: var(--color-primary); font-weight: 800; }
.compare-thumb {
  width: 120px;
  height: 120px;
  display: inline-grid;
  place-items: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.compare-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
  transform: none;
}
.compare-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.image-lightbox.open { display: flex; }
.image-lightbox img {
  max-width: min(920px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox-close { top: 18px; left: 18px; }
.lightbox-nav.prev { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}
body.drawer-open {
  overflow: hidden;
  touch-action: none;
}
body.drawer-open .floating-wa-btn {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 720px) {
  .compare-panel { padding: 10px; }
  .utility-item { grid-template-columns: 96px 1fr; gap: 12px; }
  .utility-item-media { width: 96px; height: 96px; }
}

/* ===== Custom selects + brand menus ===== */
.brand-mini-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 5px;
  box-sizing: border-box;
}
.brand-mini-logo.is-trigger {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  padding: 4px;
}
.brand-mini-logo.is-list {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  padding: 5px;
}
.brand-mini-logo.is-grid {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}
.brand-mini-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: none;
}
.brand-mini-logo i {
  display: none !important;
  color: #8b92a5;
  font-size: 1rem;
}
.brand-mini-logo.is-empty {
  background: #eef2f7;
}
.brand-mini-logo.is-empty i {
  display: inline-block !important;
}

.ui-select {
  position: relative;
  width: 100%;
  text-align: start;
}
.ui-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0);
}
.ui-select-trigger {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0b0d12;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.ui-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.28);
}
.ui-select.is-open .ui-select-trigger,
.ui-select-trigger:focus {
  outline: none;
  border-color: rgba(31, 95, 214, 0.7);
  box-shadow: 0 0 0 3px rgba(31, 95, 214, 0.16);
}
.ui-select.is-disabled .ui-select-trigger,
.ui-select-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ui-select-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ui-select-value-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ui-select-trigger.is-placeholder .ui-select-value-text {
  color: #9aa3b5;
  font-weight: 500;
}
.ui-select-caret {
  color: #c4cad8;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.parts-finder-field .ui-select-trigger {
  background: #0b0d12;
}

/* Stable centered picker sheet */
body.ui-picker-open {
  overflow: hidden;
}
.ui-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.ui-picker-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ui-picker-overlay[hidden] {
  display: none !important;
}
body.ui-picker-open .floating-wa-btn {
  opacity: 0;
  pointer-events: none;
}
.ui-picker-sheet {
  width: min(460px, 100%);
  max-height: min(82vh, 680px);
  display: flex;
  flex-direction: column;
  background: #12151e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  transition: transform .2s ease;
}
.ui-picker-overlay.is-open .ui-picker-sheet {
  transform: none;
}
.ui-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ui-picker-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}
.ui-picker-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #c4cad8;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ui-picker-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ui-picker-search-wrap {
  position: relative;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ui-picker-search-wrap i {
  position: absolute;
  top: 50%;
  inset-inline-start: 28px;
  transform: translateY(-50%);
  color: #8b92a5;
  pointer-events: none;
}
.ui-picker-search {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0d12;
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  padding-inline-start: 38px;
  font-family: inherit;
  font-size: 0.92rem;
}
.ui-picker-search:focus {
  outline: none;
  border-color: rgba(31, 95, 214, 0.55);
}
.ui-picker-list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 95, 214, 0.45) rgba(255, 255, 255, 0.04);
}
.ui-picker-list::-webkit-scrollbar {
  width: 8px;
}
.ui-picker-list::-webkit-scrollbar-thumb {
  background: rgba(31, 95, 214, 0.45);
  border-radius: 999px;
}
.ui-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #f5f6fa;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
  min-height: 52px;
}
.ui-picker-option.has-logo {
  min-height: 64px;
  gap: 12px;
}
.ui-picker-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 18, 26, 0.08);
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
}
.ui-picker-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: none;
}
.ui-picker-logo.is-empty {
  color: #8b92a5;
  font-size: 0.9rem;
}
.ui-picker-option.has-logo .brand-mini-logo {
  display: none;
}
.ui-select-value .brand-mini-logo {
  width: 36px;
  height: 36px;
  background: #ffffff;
  padding: 5px;
  border-radius: 7px;
  box-sizing: border-box;
  overflow: hidden;
}
.ui-select-value .brand-mini-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}
.ui-picker-option:hover {
  background: rgba(255, 255, 255, 0.05);
}
.ui-picker-option.is-selected {
  background: rgba(31, 95, 214, 0.14);
}
.ui-picker-option.is-placeholder {
  color: #9aa3b5;
  min-height: 52px;
}
.ui-picker-option-text {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
  justify-items: start;
  text-align: start;
}
.ui-picker-option-text strong {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.ui-picker-option-text small {
  color: #9aa3b5;
  font-size: 0.8rem;
}
.ui-picker-option i.fa-check {
  color: var(--color-primary);
  margin-inline-start: auto;
}
.brand-picker-host {
  display: none !important;
}

.filter-brand-label {
  gap: 12px !important;
}
.filter-brand-label .brand-mini-logo {
  width: 40px;
  height: 40px;
  background: #ffffff;
  padding: 5px;
}
.filter-brand-label span {
  flex: 1;
  min-width: 0;
}
.dropdown-menu {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.16) transparent;
}
.dropdown-menu::-webkit-scrollbar,
.brands-dropdown-grid::-webkit-scrollbar {
  width: 6px;
}
.dropdown-menu::-webkit-scrollbar-thumb,
.brands-dropdown-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 10px;
}
@media (max-width: 700px) {
  .dropdown-menu,
  .dropdown-menu.brands-mega-menu,
  .dropdown-menu.brands-list-menu {
    width: min(94vw, 420px);
    right: 12px;
    left: auto;
  }
  .brands-dropdown-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ui-picker-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .ui-picker-sheet {
    width: 100%;
    max-height: min(86vh, 720px);
    border-radius: 18px 18px 0 0;
  }
}
@media (max-width: 420px) {
  .brands-dropdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Mobile-first polish (primary audience: phones) ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(31, 95, 214, 0.18);
}
img, svg, video {
  max-width: 100%;
}
button, a, input, select, textarea {
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .container {
    padding-inline: 14px;
  }
  .container.footer-shell,
  .container.product-page {
    padding-inline: 14px;
  }

  /* Header — keep flex wrap from 980px, only refine sizes */
  .header-main,
  .header-wrapper {
    gap: 10px;
    padding-block: 10px;
  }
  .global-search-input input {
    height: 46px;
    font-size: 16px;
    border-radius: 12px;
  }
  .logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 0;
  }
  .logo-text strong {
    font-size: 1.02rem;
  }
  .btn-icon,
  .mobile-menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
  }
  .brands-dropdown-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 220px;
  }

  /* Hero + finder */
  .hero {
    padding: 1.25rem 0 2rem;
  }
  .brand-mark {
    font-size: 0.78rem;
    margin-bottom: 10px;
    padding: 0.3rem 0.75rem;
  }
  .hero-title {
    font-size: 1.7rem;
    max-width: 11em;
    margin-bottom: 0.65rem;
  }
  .hero-trust {
    gap: 8px 12px;
    margin-top: 14px;
  }
  .hero-trust li {
    font-size: 0.78rem;
  }
  .hero-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.1rem;
    padding-inline: 4px;
  }
  .parts-finder-tabs {
    width: 100%;
    display: flex;
  }
  .parts-finder-tab {
    flex: 1;
    min-height: 44px;
    font-size: 0.92rem;
  }
  .parts-finder-panel {
    padding: 12px;
    border-radius: 16px;
  }
  .parts-finder-fields,
  .parts-finder-fields-vin {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .parts-finder-field select,
  .parts-finder-field input,
  .parts-finder-submit {
    min-height: 48px;
    font-size: 16px;
    width: 100%;
  }
  .parts-finder-submit {
    margin-top: 4px;
  }
  .parts-finder-hint {
    font-size: 0.8rem;
    margin-top: 10px;
  }

  /* Sections */
  .section-header,
  .section-header-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.1rem;
  }
  .section-action {
    align-self: stretch;
  }
  .section-action.btn {
    width: 100%;
    justify-content: center;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .section-title::after {
    bottom: -8px;
    height: 3px;
  }
  .brands-showcase,
  .categories-showcase {
    margin-top: 1.75rem;
    margin-bottom: 1.25rem;
  }
  .brands-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .brand-logo-media {
    height: 78px;
    padding: 8px;
  }
  .brand-logo-frame,
  .brand-logo-media img,
  .brand-logo-img,
  .brand-logo-fallback {
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
  }
  .brand-logo-meta {
    min-height: 40px;
    padding: 6px 4px 8px;
  }
  .brand-logo-meta strong {
    font-size: 0.72rem;
  }
  .parts-dir {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 14px;
  }
  .parts-dir-item {
    min-height: 104px;
    padding: 14px 8px;
    gap: 8px;
  }
  .parts-dir-icon {
    width: 44px;
    height: 44px;
  }
  .parts-dir-name {
    font-size: 0.84rem;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-card {
    border-radius: 14px;
    min-width: 0;
  }
  .product-card-img-wrap {
    /* Keep square so the product photo is not crushed under overlays */
    aspect-ratio: 1 / 1;
  }
  .product-card-img-wrap img,
  .product-card-img-wrap.has-dual .product-img {
    padding: 10px;
  }
  /* Brand logo already shows in the card body — hide overlay that covers the photo */
  .product-brand-badge {
    display: none;
  }
  .product-card-tools:not(.is-under-card) {
    top: 8px;
    inset-inline-start: 8px;
    gap: 6px;
  }
  .product-card-tools.is-under-card .product-tool-btn {
    min-height: 36px;
    padding: 7px 8px;
  }
  .product-card-tools.is-under-card .product-tool-label {
    font-size: 0.7rem;
  }
  .product-tool-btn {
    width: 34px;
    height: 34px;
    box-shadow: 0 2px 8px rgba(15, 18, 26, 0.2);
  }
  .product-card-tools.is-under-card .product-tool-btn {
    width: auto;
    height: auto;
  }
  .product-tool-btn .ui-icon {
    width: 16px;
    height: 16px;
  }
  .product-ribbon,
  .product-image-count {
    bottom: 8px;
    font-size: 0.65rem;
    padding: 3px 7px;
  }
  .product-card-body {
    padding: 12px 14px 14px;
    gap: 6px;
  }
  .product-brand-line {
    font-size: 0.72rem;
  }
  .product-brand-line .brand-mini-logo,
  .product-brand-line .brand-mini-logo.is-card {
    width: 24px;
    height: 24px;
  }
  .product-title {
    font-size: 0.95rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }
  .product-oem {
    font-size: 0.75rem;
  }
  .product-footer {
    gap: 10px;
    padding-top: 12px;
  }
  .product-price {
    font-size: 1rem;
    white-space: normal;
  }
  .product-stock {
    font-size: 0.72rem;
  }
  .product-icon-btn,
  .product-buy,
  .btn-add-cart {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    flex: 0 0 38px;
  }
  .product-card-all {
    min-height: 180px;
    padding: 18px 12px;
  }
  .products-all-btn {
    width: 100%;
    min-height: 48px;
  }

  /* Features */
  .features-grid {
    margin: 28px auto 40px;
    border-radius: 14px;
  }
  .feature-card {
    padding: 18px 16px;
  }

  /* Footer */
  .site-footer {
    margin-top: 48px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .footer-shell {
    padding-block: 28px 20px;
    padding-inline: 14px;
  }
  .footer-grid {
    gap: 24px;
  }

  /* Drawers + WA */
  .cart-drawer {
    width: min(100vw, 400px);
    left: -100vw;
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .cart-drawer.open {
    transform: translateX(100vw);
  }
  html[dir="ltr"] .cart-drawer {
    right: -100vw;
    left: auto;
  }
  html[dir="ltr"] .cart-drawer.open {
    transform: translateX(-100vw);
  }
  .floating-wa-btn {
    width: 56px;
    height: 56px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    font-size: 1.7rem;
  }
  .floating-wa-btn .wa-tooltip {
    display: none;
  }

  /* Misc pages */
  .page-header {
    padding: 1.5rem 0 1rem;
  }
  .page-title {
    font-size: 1.55rem;
  }
  .content-page {
    padding: 28px 14px 56px;
  }
  .toast-container {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .toast {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 480px) and (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-card-img-wrap {
    aspect-ratio: 1 / 1;
  }
  .product-card-body {
    padding: 12px;
  }
  .product-title {
    font-size: 0.88rem;
    line-height: 1.45;
  }
  .product-price {
    font-size: 0.92rem;
  }
}

@media (max-width: 380px) {
  .brands-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 1.4rem;
  }
}

/* Account page */
.account-page .account-auth-wrap {
  max-width: 520px;
  margin: 0 auto;
}
.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.account-tab {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.8);
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 700;
  cursor: pointer;
}
.account-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.account-form .form-group {
  margin-bottom: 14px;
  text-align: right;
}
.account-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
}
.account-form input,
.account-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 12px 14px;
  font: inherit;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.account-form input:-webkit-autofill,
.account-form input:-webkit-autofill:hover,
.account-form input:-webkit-autofill:focus,
.account-form textarea:-webkit-autofill {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  box-shadow: 0 0 0 1000px #121a2a inset !important;
  transition: background-color 99999s ease-in-out 0s;
  border: 1px solid rgba(255,255,255,0.18);
}
.account-form textarea { resize: vertical; min-height: 90px; }
.account-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.account-orders {
  display: grid;
  gap: 12px;
}
.account-order-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
}
.account-order-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.account-nav-btn { text-decoration: none; }

.google-auth-wrap {
  margin: 18px 0 0;
}
.account-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.google-auth-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.08), rgba(18,24,36,0.92) 42%),
    radial-gradient(circle at top right, rgba(31,95,214,0.28), transparent 55%);
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}
.google-auth-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4285F4, #1f5fd6 55%, #9aa8c7);
}
.google-auth-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  text-align: start;
}
.google-auth-badge {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}
.google-auth-copy strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: 4px;
}
.google-auth-copy p {
  margin: 0;
  color: rgba(232,238,252,0.72);
  font-size: 0.86rem;
  line-height: 1.45;
}
.google-auth-cta {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.google-auth-cta:hover {
  background: #f7f9fc;
  transform: translateY(-1px);
}
.google-auth-cta:active {
  transform: translateY(0);
}
.google-auth-cta:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}
.google-auth-cta-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
}
.google-auth-cta-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(31,95,214,0.2);
  border-top-color: #1f5fd6;
  animation: google-auth-spin .7s linear infinite;
}
.google-auth-cta-spinner[hidden] { display: none !important; }
@keyframes google-auth-spin {
  to { transform: rotate(360deg); }
}
.google-auth-perks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.google-auth-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(232,238,252,0.78);
  font-size: 0.82rem;
}
.google-auth-perks i {
  color: #9db7ff;
  width: 14px;
  text-align: center;
}
.google-signin-btn { display: none !important; }
.google-auth-hint {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 0.84rem;
}
.account-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.account-auth-divider::before,
.account-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.account-field-hint {
  display: block;
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}
.account-form input.is-required-highlight {
  border-color: rgba(255, 107, 107, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 900px) {
  .promo-blocks {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card {
    border-radius: 14px;
  }
  .product-card-body {
    padding: 10px;
  }
  .product-title {
    font-size: 0.86rem;
    line-height: 1.35;
  }
  .product-cta,
  .product-tool-btn {
    min-height: 42px;
  }
  .btn-icon,
  .mobile-menu-btn,
  .account-nav-btn {
    width: 44px;
    height: 44px;
  }
  .checkout-steps-card {
    max-width: none;
  }
  .account-dropdown {
    position: fixed;
    inset-inline-end: 12px;
    top: 64px;
    width: min(280px, calc(100vw - 24px));
  }
}


