/* =============================================================
   eVehicle Homepage v2 — GaadiBazaar-inspired mobile-first
   Colors: #00c896 (primary), #1a1f2e (dark)
   ============================================================= */

/* ── HERO ─────────────────────────────────────────────────────── */
.ev-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
@media(max-width:767px){ .ev-hero{ min-height:480px; } }

.ev-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0d1117 0%, #1a2f20 50%, #0d1117 100%);
}
.ev-hero-overlay { background: rgba(13,17,23,.72); }
.ev-hero-video-wrap { overflow: hidden; }
.ev-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,200,150,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,150,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.ev-hero-orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,150,.18) 0%, transparent 70%);
  pointer-events: none;
}
.ev-hero-orb-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.ev-hero-orb-2 { width: 400px; height: 400px; bottom: -150px; left: -100px; }

.ev-hero-inner { position: relative; z-index: 2; width: 100%; padding: 80px 0 40px; }
@media(max-width:767px){ .ev-hero-inner{ padding: 64px 0 32px; } }

.ev-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,200,150,.15); border: 1px solid rgba(0,200,150,.35);
  color: var(--primary); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
}
.ev-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  color: #fff; line-height: 1.15; margin-bottom: 14px;
}
.ev-hero-title span { color: var(--primary); display: block; }
.ev-hero-sub { color: rgba(255,255,255,.65); font-size: 1rem; margin-bottom: 28px; max-width: 480px; }
@media(max-width:767px){ .ev-hero-sub{ font-size: .9rem; } }

/* EV Type Strip — horizontal scroll inside hero */
.ev-type-strip-wrap {
  overflow: hidden; margin-bottom: 28px;
}
.ev-type-strip {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 4px; scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
}
.ev-type-strip::-webkit-scrollbar{ display:none; }
.ev-type-pill {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 10px 14px; min-width: 72px; flex-shrink: 0;
  color: rgba(255,255,255,.85); text-decoration: none;
  scroll-snap-align: start; transition: all .2s;
}
.ev-type-pill:hover, .ev-type-pill.active {
  background: rgba(0,200,150,.18); border-color: var(--primary); color: var(--primary);
}
.ev-type-pill-ico { color: inherit; display: flex; }
.ev-type-pill-lbl { font-size: .7rem; font-weight: 700; white-space: nowrap; }

/* Hero loan CTA */
.ev-hero-loan-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #0d1117;
  font-weight: 800; font-size: .95rem;
  padding: 13px 26px; border-radius: 50px; text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,200,150,.35); transition: .2s;
}
.ev-hero-loan-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }
.ev-hero-loan-badge {
  background: #0d1117; color: var(--primary);
  font-size: .65rem; font-weight: 800; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px;
}

/* ── QUICK ACTIONS ────────────────────────────────────────────── */
.ev-quick-actions {
  background: var(--dark);
  padding-bottom: 24px;
}
.ev-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media(max-width:767px){
  .ev-quick-grid{ grid-template-columns: repeat(3,1fr); }
  .ev-quick-grid > *:nth-child(4){ grid-column: 1; }
  .ev-quick-grid > *:nth-child(5){ grid-column: 2; }
}
@media(max-width:400px){
  .ev-quick-grid{ grid-template-columns: repeat(3,1fr); gap:8px; }
}
.ev-quick-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 16px 10px;
  text-decoration: none; color: var(--text);
  position: relative; transition: .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ev-quick-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,200,150,.12); }
.ev-quick-card--highlight { border-color: var(--primary); background: var(--primary-light); }
.ev-quick-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.ev-quick-ico--green  { background: #e6faf5; color: #00996e; }
.ev-quick-ico--blue   { background: #eff6ff; color: #2563eb; }
.ev-quick-ico--orange { background: #fff7ed; color: #ea580c; }
.ev-quick-ico--primary{ background: var(--primary); color: #0d1117; }
.ev-quick-ico--purple { background: #f5f3ff; color: #7c3aed; }
.ev-quick-lbl { font-size: .78rem; font-weight: 700; text-align: center; }
.ev-quick-new-tag {
  position: absolute; top: -8px; right: -4px;
  background: var(--primary); color: #0d1117;
  font-size: .55rem; font-weight: 900; text-transform: uppercase;
  padding: 2px 7px; border-radius: 20px;
}

/* ── SECTION COMMON ──────────────────────────────────────────── */
.ev-brand-section,
.ev-carousel-section,
.ev-faq-section,
.ev-partners-section { padding: 48px 0; }
@media(max-width:767px){
  .ev-brand-section,
  .ev-carousel-section,
  .ev-faq-section { padding: 36px 0; }
}

.ev-section-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 20px; flex-wrap: wrap; gap: 8px;
}
.ev-section-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--primary); margin-bottom: 4px;
}
.ev-section-label--light { color: rgba(0,200,150,.85); }
.ev-section-h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800;
  color: var(--dark); line-height: 1.25;
}
.ev-showall-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .8rem; font-weight: 700; color: var(--primary);
  text-decoration: none; flex-shrink: 0; padding: 6px 14px;
  border: 1.5px solid var(--primary); border-radius: 20px; transition: .2s;
}
.ev-showall-link:hover { background: var(--primary); color: #0d1117; }

/* ── BRAND GRID ───────────────────────────────────────────────── */
.ev-brand-filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
}
.ev-filter-tab {
  padding: 6px 16px; border: 1.5px solid var(--border);
  border-radius: 20px; background: #fff; font-size: .8rem;
  font-weight: 700; cursor: pointer; color: var(--text-muted); transition: .15s;
}
.ev-filter-tab.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.ev-brand-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
}
@media(max-width:767px){ .ev-brand-grid{ grid-template-columns: repeat(4,1fr); gap:8px; } }
@media(max-width:380px){ .ev-brand-grid{ grid-template-columns: repeat(3,1fr); } }

.ev-brand-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px 8px;
  text-decoration: none; color: var(--text);
  transition: .2s; text-align: center;
}
.ev-brand-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,200,150,.1); }
.ev-brand-card img { width: 56px; height: 36px; object-fit: contain; }
.ev-brand-initials {
  width: 56px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); border-radius: 6px;
  font-size: .85rem; font-weight: 900; color: var(--dark);
}
.ev-brand-name { font-size: .7rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.ev-brand-count { font-size: .65rem; color: var(--text-muted); }
.ev-brand-more {
  border: 1.5px dashed var(--border); color: var(--primary);
  flex-direction: row; gap: 4px; justify-content: center;
  font-size: .75rem; font-weight: 700;
}

/* ── CAROUSELS ───────────────────────────────────────────────── */
.ev-carousel-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
}
.ev-ctab {
  padding: 6px 16px; border: 1.5px solid var(--border);
  border-radius: 20px; background: #fff; font-size: .8rem;
  font-weight: 700; cursor: pointer; color: var(--text-muted); transition: .15s;
}
.ev-ctab.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.ev-carousel-outer {
  position: relative;
}
.ev-carousel {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 12px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.ev-carousel::-webkit-scrollbar { display: none; }

.ev-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.1);
  transition: .2s; color: var(--text); opacity: .7;
}
.ev-carousel-arrow:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }
.ev-carousel-arrow-prev { left: -20px; }
.ev-carousel-arrow-next { right: -20px; }
@media(max-width:767px){
  .ev-carousel-arrow { display: none; }
}

/* ── EV CAR CARD ─────────────────────────────────────────────── */
.ev-car-card {
  flex-shrink: 0; width: 230px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 14px;
  overflow: hidden; scroll-snap-align: start;
  transition: .2s; display: flex; flex-direction: column;
}
@media(max-width:767px){ .ev-car-card{ width: 195px; } }
.ev-car-card:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(0,200,150,.12); }

.ev-car-card-img {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: var(--gray-100);
}
.ev-car-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-car-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--gray-300); background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}
.ev-car-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: .6rem; font-weight: 800; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px;
}
.ev-badge-popular { background: var(--primary); color: #0d1117; }
.ev-badge-new     { background: #3b82f6; color: #fff; }
.ev-badge-premium { background: #7c3aed; color: #fff; }
.ev-badge-luxury  { background: #d97706; color: #fff; }
.ev-car-wish {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.ev-car-wish:hover, .ev-car-wish.active { color: #ef4444; }
.ev-car-wish.active svg { fill: #ef4444; stroke: #ef4444; }

.ev-car-card-body { padding: 12px; flex: 1; }
.ev-car-brand { font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--primary); margin-bottom: 3px; }
.ev-car-name { font-size: .85rem; font-weight: 800; color: var(--dark);
  line-height: 1.3; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-car-specs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ev-spec-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .65rem; font-weight: 700;
  background: var(--gray-100); color: var(--text-muted);
  padding: 3px 7px; border-radius: 5px;
}
.ev-car-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.ev-rating-stars { color: #f59e0b; font-size: .75rem; }
.ev-rating-val { font-size: .72rem; font-weight: 700; color: var(--text-muted); }
.ev-car-price-row { display: flex; align-items: center; justify-content: space-between; }
.ev-price-label { display: block; font-size: .6rem; color: var(--text-muted); }
.ev-price-val { font-size: .85rem; font-weight: 800; color: var(--dark); font-family: var(--font-primary); }
.ev-view-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; color: var(--text-muted); transition: .2s;
  text-decoration: none; flex-shrink: 0;
}
.ev-view-btn:hover { background: var(--primary); color: #0d1117; }

.ev-car-card-footer {
  display: flex; gap: 8px; padding: 0 12px 12px;
}
.ev-car-card-footer .btn { flex: 1; font-size: .75rem; padding: 7px 8px; }
.ev-empty-state {
  text-align: center; padding: 48px; color: var(--text-muted);
  flex-shrink: 0; width: 100%;
}
.ev-empty-state p { margin-top: 12px; }

/* ── LOAN SECTION ───────────────────────────────────────────── */
.ev-loan-section { padding: 0; }
.ev-loan-inner {
  background: linear-gradient(135deg, #0d1117 0%, #1a2f20 60%, #0d1117 100%);
  padding: 64px 0;
  position: relative; overflow: hidden;
}
.ev-loan-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,200,150,.04) 1px,transparent 1px),
    linear-gradient(90deg, rgba(0,200,150,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.ev-loan-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  position: relative; z-index: 1;
}
@media(max-width:900px){ .ev-loan-grid{ grid-template-columns:1fr; gap:32px; } }

.ev-loan-h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900;
  color: #fff; line-height: 1.2; margin: 12px 0 16px;
}
.ev-loan-highlight { color: var(--primary); }
.ev-loan-body { color: rgba(255,255,255,.65); margin-bottom: 28px; line-height: 1.7; }

.ev-loan-stats { display: flex; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.ev-loan-stat { text-align: center; }
.ev-loan-stat strong {
  display: block; font-size: 1.8rem; font-weight: 900;
  color: var(--primary); font-family: var(--font-primary);
}
.ev-loan-stat span { font-size: .75rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; }

.ev-loan-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline-light {
  background: transparent; border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.8); border-radius: 8px;
  padding: 12px 20px; font-weight: 700; font-size: .9rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: .2s;
}
.btn-outline-light:hover { border-color: rgba(255,255,255,.6); color: #fff; }

.ev-loan-right { display: flex; flex-direction: column; gap: 14px; }
.ev-loan-benefit {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 14px 16px;
}
.ev-loan-benefit-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(0,200,150,.15); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ev-loan-benefit strong { display: block; color: #fff; font-size: .85rem; margin-bottom: 3px; }
.ev-loan-benefit p { color: rgba(255,255,255,.5); font-size: .78rem; margin: 0; line-height: 1.4; }

/* ── BLOG CAROUSEL ──────────────────────────────────────────── */
.ev-blog-carousel-section { background: var(--gray-50); }
.ev-blog-card {
  flex-shrink: 0; width: 240px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 14px;
  overflow: hidden; scroll-snap-align: start;
  text-decoration: none; color: var(--text); transition: .2s;
  display: flex; flex-direction: column;
}
@media(max-width:767px){ .ev-blog-card{ width:200px; } }
.ev-blog-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.ev-blog-card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.ev-blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-blog-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray-300); }
.ev-blog-cat-tag {
  position: absolute; bottom: 8px; left: 8px;
  background: var(--primary); color: #0d1117;
  font-size: .6rem; font-weight: 800; padding: 3px 8px; border-radius: 5px; text-transform: uppercase;
}
.ev-blog-card-body { padding: 12px; flex: 1; }
.ev-blog-title {
  font-size: .83rem; font-weight: 700; color: var(--dark);
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-blog-meta { font-size: .68rem; color: var(--text-muted); }

/* ── SHOP CAROUSEL ──────────────────────────────────────────── */
.ev-product-card {
  flex-shrink: 0; width: 190px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 14px;
  overflow: hidden; scroll-snap-align: start; transition: .2s;
}
@media(max-width:767px){ .ev-product-card{ width:160px; } }
.ev-product-card:hover { border-color: var(--primary); box-shadow: 0 6px 16px rgba(0,200,150,.1); }
.ev-product-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--gray-100); }
.ev-product-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-product-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray-300); }
.ev-product-sale-badge {
  position: absolute; top: 8px; left: 8px;
  background: #ef4444; color: #fff;
  font-size: .6rem; font-weight: 800; padding: 2px 7px; border-radius: 5px;
}
.ev-product-body { padding: 10px 12px 12px; }
.ev-product-name { font-size: .8rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.ev-product-name a { color: var(--dark); text-decoration: none; }
.ev-product-price { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.ev-price-orig { font-size: .72rem; color: var(--text-muted); text-decoration: line-through; }
.ev-price-sale { font-size: .88rem; font-weight: 800; color: var(--dark); }
.ev-add-cart-btn { width: 100%; justify-content: center; font-size: .75rem !important; }

/* ── FAQ ────────────────────────────────────────────────────── */
.ev-faq-header { text-align: center; margin-bottom: 36px; }
.ev-faq-header p { color: var(--text-muted); max-width: 500px; margin: 8px auto 0; }
.ev-accordion { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.ev-acc-item {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden; transition: border-color .2s;
}
.ev-acc-item.active { border-color: var(--primary); }
.ev-acc-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px; text-align: left;
  font-size: .9rem; font-weight: 700; color: var(--dark);
  font-family: var(--font-primary);
}
.ev-acc-trigger span:first-child { flex: 1; line-height: 1.4; }
.ev-acc-icon { flex-shrink: 0; color: var(--primary); display: flex; }
.ev-acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.ev-acc-body-inner { padding: 0 18px 16px; color: var(--text-muted); font-size: .88rem; line-height: 1.7; }

/* ── PARTNERS ───────────────────────────────────────────────── */
.ev-partners-section { background: var(--gray-50); padding: 32px 0; }
.ev-partners-title {
  text-align: center; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
  margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ev-partners-track-wrap { overflow: hidden; }
.ev-partners-track {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.ev-partner-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  text-decoration: none; transition: .2s; white-space: nowrap;
}
.ev-partner-chip:hover { border-color: var(--primary); color: var(--primary); }
.ev-partner-chip img { max-height: 28px; max-width: 90px; object-fit: contain; }

/* ── alt section bg ─────────────────────────────────────────── */
.ev-shop-carousel-section { background: #fff; }

/* ── Responsive carousel sizing ────────────────────────────── */
@media(max-width:480px){
  .ev-type-pill { min-width: 64px; padding: 8px 10px; }
  .ev-type-pill-ico svg { width: 20px; height: 20px; }
  .ev-quick-card { padding: 12px 6px; border-radius: 12px; }
  .ev-quick-ico { width: 44px; height: 44px; border-radius: 12px; }
  .ev-quick-lbl { font-size: .7rem; }
  .ev-car-card { width: 175px; }
  .ev-blog-card { width: 180px; }
  .ev-product-card { width: 148px; }
}
