/* ============================================================
   COMPONENTS.CSS — Reusable UI Components
   ============================================================ */

/* ── Announcement Bar ─────────────────────────────────────── */
.announce-bar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 0 var(--side-pad);
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: var(--s3);
}
.announce-bar strong { color: var(--white); }
.announce-bar a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.announce-sep { color: rgba(255,255,255,0.25); }
.announce-close {
  position: absolute;
  right: var(--s2);
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--silver);
  transition: color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}
.announce-close:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.announce-bar.hidden { display: none; }

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow var(--t-base);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.10); }

/* Top row */
.header-top {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 0 var(--side-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--smoke);
}

.logo {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: baseline;
  gap: 0;
}
.logo-xl   { color: var(--accent); }
.logo-parts { color: var(--ink); }

/* Search */
.header-search {
  flex: 1;
  max-width: 600px;
  display: flex;
  align-items: stretch;
  height: 46px;
  background: var(--smoke);
  border: 1.5px solid var(--mist);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,79,0,0.12);
  background: var(--white);
}
.header-search input {
  flex: 1;
  padding: 0 var(--s2);
  font-size: 14px;
  border: none;
  background: transparent;
  outline: none;
  color: var(--ink);
  min-width: 0;
}
.header-search input::placeholder { color: var(--silver); }
.search-submit {
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast);
  flex-shrink: 0;
}
.search-submit:hover { background: var(--accent-dark); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.header-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: var(--r-md);
  color: var(--slate);
  font-size: 11px;
  font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
}
.header-icon-btn:hover { background: var(--smoke); color: var(--ink); }
.cart-count {
  position: absolute;
  top: 3px;
  right: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0;
}

/* Nav bar */
.header-nav {
  border-bottom: 1px solid var(--smoke);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  padding: 6px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover { background: var(--smoke); color: var(--ink); }
.nav-link.active { color: var(--accent); font-weight: 700; }
.nav-all-btn {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding: 6px 14px;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-sm);
  transition: background var(--t-fast), color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-all-btn:hover { background: var(--accent); color: var(--white); }

/* Mobile */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  color: var(--ink);
  transition: background var(--t-fast);
  cursor: pointer;
}
.mobile-menu-btn:hover { background: var(--smoke); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.mobile-nav.open { pointer-events: all; }
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity var(--t-base);
  backdrop-filter: blur(3px);
}
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 88vw);
  background: var(--white);
  transform: translateX(-100%);
  transition: transform var(--t-slow);
  overflow-y: auto;
  padding: var(--s4) var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--smoke);
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-links a {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--r-md);
  transition: background var(--t-fast), color var(--t-fast);
}
.mobile-nav-links a:hover { background: var(--smoke); color: var(--ink); }
.mobile-nav-links .divider {
  height: 1px;
  background: var(--smoke);
  margin: var(--s1) 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(240,79,0,0.32);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.38);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--ink-light); box-shadow: var(--shadow-md); }

.btn-sm   { font-size: 13px; padding: 9px 18px; }
.btn-lg   { font-size: 16px; padding: 16px 34px; }
.btn-full { width: 100%; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-fit    { background: var(--success); color: var(--white); }
.badge-sale   { background: var(--accent); color: var(--white); }
.badge-new    { background: var(--ink); color: var(--white); }
.badge-oem    { background: #1E40AF; color: var(--white); }
.badge-stock  { background: var(--success-pale); color: #065F46; border: 1px solid #A7F3D0; }
.badge-low    { background: var(--warning-pale); color: #92400E; border: 1px solid #FDE68A; }

/* ── Stars ────────────────────────────────────────────────── */
.stars {
  display: inline-flex;
  align-items: center;
  color: #F59E0B;
  gap: 1px;
  font-size: 14px;
  line-height: 1;
}
.review-count { font-size: 12px; color: var(--silver); margin-left: 5px; font-weight: 500; }

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--smoke);
  padding: var(--s4) 0;
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s2);
  border-right: 1px solid var(--smoke);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: var(--accent-pale);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-text h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.trust-text p { font-size: 12px; color: var(--silver); line-height: 1.4; }

@media (max-width: 900px) {
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-top: 1px solid var(--smoke); }
}
@media (max-width: 480px) {
  .trust-bar-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-top: 1px solid var(--smoke); }
  .trust-item:first-child { border-top: none; }
}

/* ── Product Card ─────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border: 1px solid var(--smoke);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mist);
}
.product-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--smoke);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--t-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.card-badges {
  position: absolute;
  top: var(--s1);
  left: var(--s1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.card-wishlist {
  position: absolute;
  top: var(--s1);
  right: var(--s1);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  font-size: 15px;
  transition: color var(--t-fast), background var(--t-fast);
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 1;
  border: none;
}
.card-wishlist:hover { color: var(--accent); background: var(--white); }

.product-card-body {
  padding: var(--s2) var(--s3) var(--s3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-sku    { font-size: 11px; color: var(--silver); font-weight: 500; letter-spacing: 0.06em; }
.card-name   {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-rating { display: flex; align-items: center; }
.card-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--s1);
  flex-wrap: wrap;
  margin-top: auto;
}
.price-now  { font-size: 21px; font-weight: 800; color: var(--ink); }
.price-was  { font-size: 14px; color: var(--silver); text-decoration: line-through; }
.price-save { font-size: 12px; font-weight: 700; color: var(--success); }
.card-avail {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-avail-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
}
.card-cta { margin-top: var(--s2); }

/* List view variant */
.product-card.list-view {
  flex-direction: row;
  aspect-ratio: unset;
}
.product-card.list-view .product-card-img {
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: unset;
  height: auto;
  min-height: 120px;
}

/* ── Category Card ────────────────────────────────────────── */
.category-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
  cursor: pointer;
  display: block;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--t-slow);
}
.category-card:hover .cat-bg { transform: scale(1.07); }

.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,10,20,0.42) 0%, rgba(10,10,20,0.84) 100%);
  transition: background var(--t-base);
}
.category-card:hover .cat-overlay {
  background: linear-gradient(160deg, rgba(10,10,20,0.28) 0%, rgba(10,10,20,0.72) 100%);
}

.cat-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cat-icon {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: rgba(240,79,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  backdrop-filter: blur(6px);
  transition: background var(--t-fast), transform var(--t-fast);
}
.category-card:hover .cat-icon { background: var(--accent); transform: scale(1.06); }
.cat-arrow {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--t-fast), transform var(--t-fast);
}
.category-card:hover .cat-arrow { background: var(--accent); transform: translateX(3px); }
.cat-name {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.cat-count { color: rgba(255,255,255,0.65); font-size: 12px; }

/* ── Make Card ────────────────────────────────────────────── */
.make-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.make-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.make-card-inner {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--t-slow);
}
.make-card:hover .make-card-inner { transform: scale(1.06); }
.make-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0.78) 100%);
}
.make-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--s2) var(--s3) var(--s2);
}
.make-card-name {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}
.make-card-count {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  margin-top: 2px;
}

/* ── YMM Vehicle Selector ─────────────────────────────────── */
.ymm-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--r-lg);
  padding: var(--s4);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-xl);
  min-width: 340px;
}
.ymm-card h3 { font-size: 17px; font-weight: 800; margin-bottom: var(--s3); color: var(--ink); }
.ymm-selects {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s1);
  margin-bottom: var(--s2);
}
.ymm-field { display: flex; flex-direction: column; gap: 4px; }
.ymm-field label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.ymm-select {
  height: 44px;
  padding: 0 28px 0 10px;
  border: 1.5px solid var(--mist);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.ymm-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,79,0,0.12);
}
.ymm-select:disabled {
  background-color: var(--smoke);
  color: var(--silver);
  cursor: not-allowed;
}
.ymm-or {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 12px;
  color: var(--silver);
  font-weight: 600;
  margin: 10px 0;
}
.ymm-or::before, .ymm-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--smoke);
}
.vin-row { display: flex; gap: var(--s1); }
.vin-input {
  flex: 1;
  height: 44px;
  padding: 0 var(--s2);
  border: 1.5px solid var(--mist);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t-fast);
}
.vin-input:focus { border-color: var(--accent); }
.vin-input::placeholder { color: var(--silver); font-size: 12px; }

/* ── Filter Sidebar ───────────────────────────────────────── */
.filter-sidebar { width: 250px; flex-shrink: 0; }
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 2px solid var(--ink);
}
.filter-head h3 { font-size: 16px; font-weight: 800; }
.clear-all-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity var(--t-fast);
}
.clear-all-btn:hover { opacity: 0.7; }

.filter-group { border-top: 1px solid var(--smoke); }
.filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  user-select: none;
}
.filter-toggle h5 { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.filter-toggle svg {
  color: var(--silver);
  transition: transform var(--t-fast);
}
.filter-group.open .filter-toggle svg { transform: rotate(180deg); }
.filter-body { padding-bottom: 14px; display: none; }
.filter-group.open .filter-body { display: block; }

.filter-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--slate);
  transition: color var(--t-fast);
}
.filter-opt:hover { color: var(--ink); }
.filter-opt input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.filter-opt-count { margin-left: auto; font-size: 12px; color: var(--silver); }
.price-inputs { display: flex; gap: var(--s1); margin-top: var(--s1); }
.price-input {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--mist);
  border-radius: var(--r-sm);
  font-size: 13px;
  outline: none;
  transition: border-color var(--t-fast);
}
.price-input:focus { border-color: var(--accent); }

/* ── Tabs ─────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--smoke);
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--silver);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: var(--slate); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; padding: var(--s4) 0; }
.tab-panel.active { display: block; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--silver);
}
.breadcrumb a { color: var(--silver); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--mist); }
.breadcrumb .crumb-cur { color: var(--ink); font-weight: 600; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--s5) 0;
}
.pg-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--mist);
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
  cursor: pointer;
  background: var(--white);
  gap: 4px;
}
.pg-btn:hover { border-color: var(--accent); color: var(--accent); }
.pg-btn.active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pg-btn.disabled { opacity: 0.35; pointer-events: none; }

/* ── Fitment Banner ───────────────────────────────────────── */
.fitment-bar {
  background: var(--warning-pale);
  border: 1.5px solid #FDE68A;
  border-radius: var(--r-md);
  padding: 11px var(--s3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  font-size: 14px;
  color: #92400E;
  font-weight: 500;
  flex-wrap: wrap;
}
.fitment-bar svg { color: var(--warning); flex-shrink: 0; }
.fitment-bar .change-vehicle {
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
}
.fitment-bar.confirmed {
  background: var(--success-pale);
  border-color: #A7F3D0;
  color: #065F46;
}
.fitment-bar.confirmed svg { color: var(--success); }

/* ── Qty Control ──────────────────────────────────────────── */
.qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--mist);
  border-radius: var(--r-md);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--slate);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.qty-btn:hover { background: var(--smoke); color: var(--ink); }
.qty-val {
  width: 48px;
  height: 44px;
  border: none;
  border-left: 1.5px solid var(--mist);
  border-right: 1.5px solid var(--mist);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  background: var(--white);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding-top: var(--s10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s8);
  padding-bottom: var(--s8);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo { font-size: 34px; margin-bottom: var(--s2); }
.footer-brand .logo .logo-xl    { color: var(--accent); }
.footer-brand .logo .logo-parts { color: var(--white); }
.footer-tagline { color: var(--silver); font-size: 14px; line-height: 1.75; max-width: 270px; }
.footer-social  { display: flex; gap: var(--s1); margin-top: var(--s3); }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  transition: background var(--t-fast), color var(--t-fast);
  font-size: 15px;
}
.footer-social a:hover { background: var(--accent); color: var(--white); }

.footer-col h5 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--s3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  transition: color var(--t-fast);
  line-height: 1;
}
.footer-col li a:hover { color: var(--white); }

.footer-bottom {
  padding: var(--s3) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }
.payment-icons { display: flex; align-items: center; gap: 6px; }
.pay-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}

/* Responsive nav + footer */
@media (max-width: 900px) {
  .header-nav    { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-search { max-width: none; }
}
@media (max-width: 640px) {
  .header-icon-btn span { display: none; }
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline { max-width: 100%; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════ */

/* ── Announce bar: single message on phones ──────────────── */
@media (max-width: 640px) {
  .announce-bar {
    height: auto;
    padding: 8px var(--s2);
    padding-right: 40px;
    font-size: 12px;
    flex-wrap: wrap;
    row-gap: 0;
    justify-content: center;
  }
  .announce-bar .announce-sep,
  .announce-bar > a { display: none; }
}

/* ── Header: search wraps to its own row on small phones ─── */
@media (max-width: 520px) {
  .header-top {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 0;
    row-gap: 8px;
  }
  .logo { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .header-search {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }
}

/* ── YMM card: selects stack vertically on phones ─────────── */
@media (max-width: 480px) {
  .ymm-card { padding: var(--s3); min-width: unset; }
  .ymm-selects { grid-template-columns: 1fr; gap: var(--s1); }
  .ymm-card h3 { font-size: 15px; margin-bottom: var(--s2); }
}

/* ── Trust bar: 2 → 1 column on very small screens ────────── */
@media (max-width: 400px) {
  .trust-bar-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-top: 1px solid var(--smoke); }
  .trust-item:first-child { border-top: none; }
}

/* ── Product card: comfortable touch target sizes ──────────── */
@media (max-width: 480px) {
  .product-card-body { padding: var(--s2); }
  .card-name { font-size: 13px; }
  .price-now { font-size: 18px; }
}

/* ── Pagination: tighter on mobile ────────────────────────── */
@media (max-width: 480px) {
  .pagination { gap: 4px; padding: var(--s4) 0; }
  .pg-btn { min-width: 36px; height: 36px; font-size: 13px; padding: 0 8px; }
}

/* ── Filter sidebar: larger touch targets ──────────────────── */
@media (max-width: 900px) {
  .filter-opt { padding: 10px 0; font-size: 15px; }
}

/* ── Cart remove button: easier to tap ─────────────────────── */
@media (max-width: 640px) {
  .cart-remove { padding: 4px 0; font-size: 14px; }
}

/* ── Footer: smaller padding on mobile ─────────────────────── */
@media (max-width: 640px) {
  .site-footer { padding-top: var(--s8); }
  .footer-col ul { gap: 12px; }
  .footer-social { gap: var(--s2); }
}

/* ── Fitment bar: wrap gracefully ──────────────────────────── */
@media (max-width: 480px) {
  .fitment-bar { font-size: 13px; padding: 10px var(--s2); gap: var(--s1); }
  .fitment-bar .change-vehicle { margin-left: 0; width: 100%; }
}
