/* ==========================================================
   County Auto Salvage - Stylesheet
   Pixel-Perfect Match to drawing.png
   ========================================================== */

:root {
  --primary-red: #c8102e;
  --primary-red-hover: #a60d26;
  --dark-bg: #0d1217;
  --dark-header: #0e1115;
  --text-dark: #111827;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --card-bg-gray: #f3f5f8;
  --border-light: #e5e7eb;
  --stock-green: #22c55e;
  --star-gold: #f59e0b;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1024px;
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: var(--font-family);
  background-color: #ffffff;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ==========================================================
   1. Top Announcement Bar
   ========================================================== */
.top-bar {
  background-color: #0c1014;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  height: 28px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.top-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.divider {
  color: #4b5563;
  font-weight: 300;
  user-select: none;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-link {
  color: #e5e7eb;
  font-weight: 600;
}
.top-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  position: relative;
  padding: 2px 4px;
}

.cart-icon {
  width: 15px;
  height: 15px;
}

.cart-badge {
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ==========================================================
   2. Main Header
   ========================================================== */
.main-header {
  background-color: #ffffff;
  height: 66px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f2f5;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-link {
  display: block;
  flex-shrink: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-item {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  padding: 6px 0;
  position: relative;
}

.nav-item:hover {
  color: var(--primary-red);
}

.search-box {
  flex-shrink: 0;
  width: 320px;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
  background-color: #ffffff;
  height: 36px;
}

.search-form input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 11.5px;
  outline: none;
  color: #1f2937;
  font-family: inherit;
}

.search-form input::placeholder {
  color: #9ca3af;
}

.search-submit-btn {
  background-color: var(--primary-red);
  color: #ffffff;
  width: 38px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.search-submit-btn:hover {
  background-color: var(--primary-red-hover);
}

/* ==========================================================
   3. Hero Section
   ========================================================== */
.hero-section {
  position: relative;
  min-height: 345px;
  background-color: #0b0f14;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 30px 0 28px;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
  transition: background 0.3s ease;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transition: opacity 0.3s ease;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
}

.hero-content {
  max-width: 480px;
}

.hero-badge {
  color: #ef4444;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  display: inline-block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hero-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.highlight-red {
  color: var(--primary-red);
}

.hero-subtitle {
  color: #e2e8f0;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Hero Search Tabs & Form */
.hero-search-widget {
  width: 100%;
  margin-top: auto;
}

.widget-tabs {
  display: flex;
  gap: 3px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  border-radius: 6px 6px 0 0;
  background-color: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background-color 0.15s;
}

.tab-btn.active {
  background-color: var(--primary-red);
}

.tab-btn:not(.active):hover {
  background-color: rgba(45, 55, 72, 0.9);
}

.vehicle-picker-form {
  background-color: #ffffff;
  border-radius: 0 6px 6px 6px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.3fr;
  gap: 10px;
  align-items: flex-end;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.filter-col {
  display: flex;
  flex-direction: column;
}

.filter-col label {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0 24px 0 10px;
  font-size: 12px;
  font-family: inherit;
  color: #4b5563;
  background-color: #ffffff;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.select-wrapper select:focus {
  border-color: var(--primary-red);
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #6b7280;
  pointer-events: none;
}

.btn-find-part {
  background-color: var(--primary-red);
  color: #ffffff;
  height: 36px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: background-color 0.15s;
}

.btn-find-part:hover {
  background-color: var(--primary-red-hover);
}

/* ==========================================================
   4. Trust Bar / Guarantees
   ========================================================== */
.trust-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.trust-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon-box {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  font-size: 12px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.trust-text span {
  font-size: 11px;
  color: #4b5563;
  margin-top: 1px;
}

/* ==========================================================
   Shared Section Headers
   ========================================================== */
.section {
  padding: 24px 0 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.title-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: #94a3b8;
  vertical-align: middle;
}

.view-all-link {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-all-link:hover {
  color: var(--primary-red);
}

/* ==========================================================
   5. Shop By Category
   ========================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.category-card {
  background-color: var(--card-bg-gray);
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #ebedf2;
}

.category-img-box {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-img-box img {
  max-height: 66px;
  max-width: 90%;
  object-fit: contain;
}

.category-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #111827;
  margin-top: 4px;
  white-space: nowrap;
}

/* ==========================================================
   6. Shop By Vehicle Make
   ========================================================== */
.makes-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}

.make-card {
  background-color: var(--card-bg-gray);
  border-radius: 6px;
  padding: 8px 4px 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.make-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #ebedf2;
}

.make-logo-box {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.make-logo-box img {
  max-height: 38px;
  max-width: 85%;
  object-fit: contain;
}

.make-name {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  margin-top: 2px;
  white-space: nowrap;
}

/* ==========================================================
   7. Featured Auto Parts
   ========================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.product-img-box {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.product-img-box img {
  max-height: 76px;
  max-width: 95%;
  object-fit: contain;
}

.product-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  min-height: 28px;
  margin-bottom: 4px;
}

.product-price {
  font-size: 15px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 4px;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--stock-green);
  display: inline-block;
}

.btn-add-to-cart {
  width: 100%;
  background-color: var(--primary-red);
  color: #ffffff;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s;
}

.btn-add-to-cart:hover {
  background-color: var(--primary-red-hover);
}

/* ==========================================================
   8. CTA Banner
   ========================================================== */
.cta-banner-section {
  position: relative;
  background-color: #0b0f14;
  margin: 16px 0 10px;
  min-height: 150px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.cta-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 16px;
}

.cta-content {
  max-width: 480px;
  margin-left: 280px; /* offset to place text neatly in the clear center area */
}

.cta-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.cta-subtitle {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.btn-request-part {
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
}

.btn-request-part:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-1px);
}

.cta-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-right: 170px; /* offset to avoid mechanic engine on right */
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.perk-icon-box {
  width: 26px;
  height: 26px;
  background-color: #ffffff;
  color: #0b0f14;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perk-icon-box svg {
  width: 16px;
  height: 16px;
}

.perk-label {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================
   9. Split Section: How it Works & Testimonials
   ========================================================== */
.split-section {
  padding: 20px 0 28px;
}

.split-container {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px 10px 10px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  background-color: var(--primary-red);
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  margin-left: 28px;
}

.step-icon {
  margin-bottom: 6px;
  color: #111827;
}

.step-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.step-desc {
  font-size: 10px;
  color: #6b7280;
  margin-top: 2px;
}

/* Testimonial Card */
.testimonial-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  height: 100%;
}

.quote-mark {
  font-size: 38px;
  line-height: 1;
  color: #0f172a;
  font-family: Georgia, serif;
  font-weight: 900;
  align-self: flex-start;
}

.testimonial-content {
  flex: 1;
}

.review-text {
  font-size: 11px;
  line-height: 1.4;
  color: #1e293b;
  font-style: normal;
  margin-bottom: 6px;
}

.stars-rating {
  color: var(--star-gold);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.author-name {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.review-next-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.review-next-btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

/* ==========================================================
   10. Main Footer
   ========================================================== */
.main-footer {
  background-color: #0d1217;
  color: #94a3b8;
  padding: 34px 0 0;
  font-size: 11.5px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 24px;
  padding-bottom: 30px;
}

.brand-col .footer-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-heading {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: none;
}

.footer-heading.mt-16 {
  margin-top: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  color: #ffffff;
  transition: opacity 0.15s;
}

.social-icon:hover {
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
  height: 34px;
  max-width: 290px;
}

.newsletter-form input {
  flex: 1;
  height: 100%;
  border: none;
  padding: 0 10px;
  font-size: 11.5px;
  font-family: inherit;
  outline: none;
  background-color: #ffffff;
  color: #1f2937;
}

.btn-subscribe {
  background-color: var(--primary-red);
  color: #ffffff;
  height: 100%;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-subscribe:hover {
  background-color: var(--primary-red-hover);
}

/* Bottom Bar */
.bottom-bar {
  border-top: 1px solid #1e293b;
  padding: 12px 0;
  font-size: 10.5px;
  color: #64748b;
}

.bottom-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slogan-eco {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eco-divider {
  color: #334155;
}

.eco-tag {
  color: #94a3b8;
}

/* ==========================================================
   Modals & Slide-over Drawers
   ========================================================== */
/* Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Cart Drawer */
.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.25);
  z-index: 501;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.btn-close-drawer {
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty-state {
  text-align: center;
  padding: 40px 0;
  color: #64748b;
}

.btn-browse-parts {
  margin-top: 14px;
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-red);
  margin-top: 4px;
}

.btn-remove-item {
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
}
.btn-remove-item:hover {
  color: var(--primary-red);
}

.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  background-color: #f8fafc;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.cart-free-shipping-note {
  font-size: 11px;
  color: var(--stock-green);
  font-weight: 600;
  margin-bottom: 12px;
}

.btn-checkout {
  width: 100%;
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Request Part Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 600;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #ffffff;
  width: 540px;
  max-width: 92vw;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  z-index: 601;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-dialog.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.btn-close-modal {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.form-group input, .form-group textarea {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-red);
}

.btn-submit-request {
  width: 100%;
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 11px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  margin-top: 6px;
  cursor: pointer;
}

/* ==========================================================
   Mobile Navigation & Touch Enhancements
   ========================================================== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: #111827;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-cart-wrap {
  display: none;
}

.header-main-row {
  display: contents;
}

/* Mobile Nav Drawer */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  max-width: 85vw;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.btn-close-mobile-nav {
  font-size: 26px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-links {
  list-style: none;
  padding: 12px 0;
}

.mobile-nav-links li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s, color 0.15s;
}

.mobile-nav-links li a:active,
.mobile-nav-links li a:hover {
  background-color: #fef2f2;
  color: var(--primary-red);
}

.mobile-nav-footer {
  margin-top: auto;
  padding: 20px 18px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-mobile-request-part {
  width: 100%;
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 11px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.mobile-quick-links {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.mobile-quick-links a:hover {
  color: var(--primary-red);
}

.mobile-call-box {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #64748b;
}

.mobile-phone-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-red);
  margin-top: 2px;
}

/* ==========================================================
   Responsive Breakpoints
   ========================================================== */

/* 1. Medium Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
  .container {
    padding: 0 14px;
  }
  .search-box {
    width: 250px;
  }
  .nav-links {
    gap: 14px;
  }
  .cta-content {
    margin-left: 80px;
    max-width: 380px;
  }
  .cta-perks {
    margin-right: 20px;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .makes-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .vehicle-picker-form {
    grid-template-columns: 1fr 1fr;
  }
  .action-col {
    grid-column: span 2;
  }
  .split-container {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 2. Tablets & Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
  .top-bar-left {
    display: none;
  }
  .top-bar-container {
    justify-content: flex-end;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-cart-wrap {
    display: block;
  }
  .top-bar-right .cart-btn {
    display: none;
  }
  .mobile-only-cart {
    display: inline-flex;
    align-items: center;
    color: #111827;
    position: relative;
    padding: 6px;
  }
  .mobile-only-cart .cart-icon {
    width: 22px;
    height: 22px;
    fill: #111827;
  }
  .mobile-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
  }
  .header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .main-header {
    height: auto;
    padding: 8px 0;
  }
  .header-container {
    flex-direction: column;
    gap: 8px;
  }
  .brand-logo {
    height: 40px;
  }
  .search-box {
    width: 100%;
  }
  .search-form {
    height: 38px;
  }
  .search-form input {
    font-size: 13px;
  }

  /* Hero Mobile */
  .hero-section {
    padding: 24px 0 20px;
    min-height: auto;
    background: radial-gradient(
      circle at 90% 10%,
      rgba(200, 16, 46, 0.20) 0%,
      rgba(15, 23, 42, 0.98) 55%,
      #0b0f14 100%
    );
  }
  .hero-bg-wrapper {
    display: none !important; /* Hide image completely on mobile to eliminate any visual clash */
  }
  .hero-content {
    max-width: 100%;
    margin-bottom: 16px;
  }
  .hero-badge {
    font-size: 11.5px;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
  }
  .hero-title {
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -0.2px;
    word-break: normal;
    overflow-wrap: break-word;
    margin-bottom: 8px;
  }
  .hero-subtitle {
    font-size: 12px;
    line-height: 1.45;
    color: #cbd5e1;
    margin-bottom: 16px;
  }
  .vehicle-picker-form {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
  }
  .action-col {
    grid-column: span 2;
  }

  /* Trust Bar */
  .trust-container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .trust-item {
    gap: 10px;
  }

  /* Categories & Makes */
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .category-card {
    min-height: 100px;
    padding: 6px 4px;
  }
  .category-img-box {
    height: 56px;
  }
  .category-img-box img {
    max-height: 52px;
  }
  .category-name {
    font-size: 10.5px;
  }

  .makes-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .make-card {
    min-height: 72px;
    padding: 6px 2px;
  }
  .make-logo-box {
    height: 36px;
  }
  .make-logo-box img {
    max-height: 30px;
  }
  .make-name {
    font-size: 10px;
  }

  /* Products */
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card {
    padding: 8px;
  }
  .product-img-box {
    height: 72px;
  }
  .product-title {
    font-size: 11px;
    min-height: auto;
  }

  /* CTA Banner Mobile */
  .cta-banner-section {
    min-height: auto;
    padding: 24px 0;
  }
  .cta-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 12px 14px;
  }
  .cta-content {
    margin-left: 0;
    max-width: 100%;
  }
  .cta-title {
    font-size: 19px;
  }
  .cta-perks {
    margin-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .perk-label {
    font-size: 11.5px;
  }

  /* How it Works & Testimonials */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .brand-col,
  .newsletter-col {
    grid-column: span 2;
  }
}

/* 3. Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  .top-bar {
    height: auto;
    padding: 4px 0;
  }
  .top-bar-left .divider,
  .top-bar-left .top-item:nth-child(n+2) {
    display: none;
  }
  .hero-title {
    font-size: 20px;
    line-height: 1.22;
  }
  .widget-tabs {
    flex-direction: row;
  }
  .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 11px;
  }
  .vehicle-picker-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .action-col {
    grid-column: span 1;
  }
  .trust-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .makes-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .cta-perks {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .brand-col,
  .newsletter-col {
    grid-column: span 1;
  }
  .bottom-bar-container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  /* Touch target sizes */
  .btn-find-part,
  .btn-add-to-cart,
  .btn-request-part,
  .btn-subscribe {
    min-height: 42px;
  }
  .select-wrapper select,
  .search-form input,
  .newsletter-form input {
    font-size: 15px; /* prevents iOS auto zoom */
  }
}

