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

:root {
  --primary: #0F2A44;
  --primary-light: #1B5E8A;
  --accent: #2E86C1;
  --accent-hover: #1B5E8A;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #f8f9fa;
  --white: #fff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: .25s ease;
  --max-width: 1280px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select { font-family: inherit; }

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

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: rgba(255,255,255,.8); transition: color var(--transition); }
.top-bar a:hover { color: var(--white); }
.top-bar-links { display: flex; gap: 20px; }

/* ========== HEADER ========== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 26px; height: 26px; fill: var(--white); }
.logo-text { font-size: 1.35rem; font-weight: 700; color: var(--primary); letter-spacing: -.5px; }
.logo-text span { color: var(--accent); }

/* Search */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: .95rem;
  transition: border-color var(--transition);
  outline: none;
  background: var(--bg);
}
.header-search input:focus { border-color: var(--accent); background: var(--white); }
.header-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.header-search button:hover { background: var(--accent-hover); }
.header-search button svg { width: 16px; height: 16px; fill: var(--white); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: .75rem;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
  cursor: pointer;
}
.header-action:hover { color: var(--accent); }
.header-action svg { width: 22px; height: 22px; fill: currentColor; }
.header-action .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: var(--white);
  font-size: .65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ========== NAVIGATION ========== */
.main-nav {
  background: var(--primary-light);
}
.main-nav .container {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-link {
  color: rgba(255,255,255,.85);
  padding: 14px 20px;
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}
.nav-link.highlight {
  color: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: var(--transition); }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46,134,193,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-block;
  background: rgba(46,134,193,.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(46,134,193,.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.05); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}
.hero-stat span {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ========== TRUST BAR ========== */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: .9rem;
  font-weight: 500;
}
.trust-item svg { width: 24px; height: 24px; fill: var(--accent); flex-shrink: 0; }

/* ========== SECTION TITLES ========== */
.section { padding: 64px 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.5px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: .95rem;
  margin-top: 4px;
}
.section-link {
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.section-link:hover { gap: 8px; }

/* ========== CATEGORY GRID ========== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid var(--border);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.category-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(46,134,193,.1), rgba(46,134,193,.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.category-icon svg { width: 28px; height: 28px; fill: var(--accent); }
.category-card h3 { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.category-card span { font-size: .8rem; color: var(--text-muted); }

/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-image {
  position: relative;
  background: #f0f0f0;
  padding-top: 75%;
  overflow: hidden;
}
.product-image .placeholder-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  background: linear-gradient(135deg, #f5f5f5, #ebebeb);
}
.product-image .placeholder-img svg { width: 48px; height: 48px; fill: #ccc; }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.product-badge.sale { background: var(--accent); color: var(--white); }
.product-badge.new { background: #10b981; color: var(--white); }
.product-badge.hot { background: #f59e0b; color: var(--white); }
.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.product-wishlist:hover { background: var(--accent); }
.product-wishlist:hover svg { fill: var(--white); }
.product-wishlist svg { width: 16px; height: 16px; fill: var(--text-muted); }
.product-info { padding: 16px; }
.product-category { font-size: .75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.product-name { font-size: .95rem; font-weight: 600; margin-bottom: 6px; line-height: 1.3; color: var(--primary); }
.product-compat { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.product-price .old-price { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.product-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.product-cart-btn:hover { background: var(--accent); }
.product-cart-btn svg { width: 16px; height: 16px; fill: var(--white); }

/* ========== VEHICLE FINDER ========== */
.vehicle-finder {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.vehicle-finder h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.vehicle-finder p {
  color: var(--text-light);
  font-size: .9rem;
  margin-bottom: 24px;
}
.finder-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.finder-field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.finder-field select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.finder-field select:focus { border-color: var(--accent); outline: none; }
.finder-btn {
  padding: 10px 32px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  height: 44px;
}
.finder-btn:hover { background: var(--accent-hover); }

/* ========== WHY US ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(46,134,193,.12), rgba(46,134,193,.04));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; fill: var(--accent); }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--text-light); line-height: 1.5; }

/* ========== BRANDS ========== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.brand-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-light);
  transition: all var(--transition);
  cursor: pointer;
}
.brand-card:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-sm); }

/* ========== NEWSLETTER ========== */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 64px 0;
}
.newsletter .container { text-align: center; max-width: 560px; }
.newsletter h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.newsletter p { color: rgba(255,255,255,.6); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 50px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: .9rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: 12px 28px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--accent-hover); }

/* ========== FOOTER ========== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
.footer-about p { font-size: .88rem; line-height: 1.6; margin: 16px 0; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--accent); }
.footer-social a svg { width: 16px; height: 16px; fill: var(--white); }
.footer h4 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: .88rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
}
.footer-payments { display: flex; gap: 8px; }
.footer-payments span {
  background: rgba(255,255,255,.08);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: .75rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar .container { font-size: .78rem; }
  .header .container { flex-wrap: wrap; }
  .header-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .nav-toggle { display: block; }
  .main-nav .container { flex-direction: column; align-items: stretch; display: none; }
  .main-nav .container.open { display: flex; }
  .nav-link { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .finder-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-form { flex-direction: column; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .trust-bar .container { gap: 24px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; }
}
