/* ============================================================
   KITNE KI HAI — style.css
   Responsive · Clean · Mobile-First
   Sections:
     1.  Variables & Reset
     2.  Utility
     3.  Navigation
     4.  Mobile Menu
     5.  Pages
     6.  Hero & Ad Banner
     7.  Sections & Brands
     8.  Car Cards
     9.  Listing & Filters
    10.  Car Detail
    11.  Compare
    12.  EMI Calculator
    13.  Brands Page
    14.  Footer
    15.  Toast
    16.  Responsive Breakpoints
   ============================================================ */


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

:root {
  --red:       #D92B2B;
  --red-l:     #FFF0F0;
  --red-d:     #b02020;
  --blue:      #1A6FE8;
  --blue-l:    #EEF4FF;
  --text:      #0F0F0F;
  --muted:     #6B7280;
  --hint:      #9CA3AF;
  --border:    #E5E7EB;
  --bg:        #F3F4F6;
  --white:     #FFFFFF;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --r:         6px;
  --r-lg:      10px;
  --shadow:    0 1px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a    { text-decoration: none; color: inherit; cursor: pointer; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
img  { max-width: 100%; display: block; }
ul, ol { list-style: none; }


/* ============================================================
   2. UTILITY
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.cnt-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.cnt-search {
  background: var(--red-l);
  color: var(--red);
  border-color: #FECACA;
}

.no-res {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.no-res h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}


/* ============================================================
   3. NAVIGATION
   ============================================================ */
nav#main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.nav-wrap {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.5px;
  user-select: none;
  flex-shrink: 0;
}
.logo em { color: var(--text); font-style: normal; }

/* Search */
.nav-search { flex: 1; max-width: 420px; position: relative; }

.nav-search input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s, background .15s;
}
.nav-search input:focus { border-color: var(--blue); background: var(--white); }

.nav-search-ico {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: flex;
  pointer-events: none;
}
.nav-search-ico svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Dropdown */
.sdrop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  display: none;
  z-index: 400;
  max-height: 280px;
  overflow-y: auto;
}
.sdrop.open { display: block; }

.sdrop-item {
  padding: 9px 13px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.sdrop-item:last-child { border-bottom: none; }
.sdrop-item:hover { background: var(--bg); }
.sdrop-item small { color: var(--muted); font-size: 11px; }

/* Nav links */
.nav-links { display: flex; gap: 2px; margin-left: auto; }

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--r);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.on { color: var(--red); background: var(--red-l); }

.nav-login {
  padding: 7px 14px;
  background: var(--red);
  color: #fff;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.nav-login:hover { background: var(--red-d); }

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s;
}


/* ============================================================
   4. MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--red-l); color: var(--red); }


/* ============================================================
   5. PAGES
   ============================================================ */
.page        { display: none; }
.page.active { display: block; }


/* ============================================================
   6. HERO & AD BANNER
   ============================================================ */
.ad-banner-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px 0;
}

.ad-banner { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }

.ad-inner {
  background: linear-gradient(90deg, #1a1a1a 60%, #2d2d2d);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

.ad-text { color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ad-btn {
  padding: 6px 14px;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.ad-btn:hover { background: var(--red-d); }

/* Hero */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 44px 16px 36px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--red); }

.hero-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

.hero-search {
  display: flex;
  max-width: 540px;
  margin: 0 auto 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.hero-search input {
  flex: 1;
  padding: 13px 16px;
  font-size: 14px;
  font-family: var(--font);
  border: none;
  outline: none;
  color: var(--text);
  min-width: 0;
}

.hero-search button {
  padding: 0 24px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-search button:hover { background: var(--red-d); }

/* Quick Filters */
.qf-wrap { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.qf {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.qf:hover { border-color: var(--red); color: var(--red); background: var(--red-l); }


/* ============================================================
   7. SECTIONS & BRANDS
   ============================================================ */
.sec { max-width: 1200px; margin: 0 auto; padding: 28px 16px; }

.sec-white {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.sec-hd h2 { font-size: 17px; font-weight: 700; }
.sec-hd a { font-size: 12px; color: var(--blue); font-weight: 500; cursor: pointer; }
.sec-hd a:hover { opacity: .75; }

/* Brands */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }

.brand-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.brand-box:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-1px); }

.brand-ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--muted);
}
.brand-box span { font-size: 11px; font-weight: 500; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  text-align: center;
}
.why-ico  { font-size: 26px; margin-bottom: 7px; }
.why-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.why-card p  { font-size: 12px; color: var(--muted); }


/* ============================================================
   8. CAR CARDS
   ============================================================ */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }

.car-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .18s, transform .18s;
}
.car-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.cc-img { width: 100%; height: 155px; overflow: hidden; position: relative; background: #f3f4f6; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.car-card:hover .cc-img img { transform: scale(1.05); }

.cc-img-fb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}
.cc-img-fb svg { width: 60px; opacity: .18; }

/* Badges */
.badge { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.b-new { background: #DCFCE7; color: #15803D; }
.b-pop { left: auto; right: 8px; background: #FEF3C7; color: #B45309; }
.b-ev  { background: #DBEAFE; color: #1D4ED8; }
.b-lux { background: #F3E8FF; color: #7E22CE; }

.cc-body { padding: 11px 12px; }
.cc-brand { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; font-weight: 500; }
.cc-name  { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.cc-price { font-size: 15px; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.cc-price small { font-size: 11px; font-weight: 400; color: var(--muted); }
.cc-meta  { display: flex; gap: 5px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 8px; flex-wrap: wrap; }


/* ============================================================
   9. LISTING & FILTERS
   ============================================================ */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  position: sticky;
  top: 56px;
  z-index: 200;
}

.filter-inner { max-width: 1200px; margin: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.filter-label { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.fc {
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 12px; font-weight: 500;
  background: var(--white);
  cursor: pointer; color: var(--muted);
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.fc select { border: none; outline: none; background: transparent; font-family: var(--font); font-size: 12px; color: inherit; cursor: pointer; font-weight: 500; }
.fc:hover, .fc.on { border-color: var(--red); color: var(--red); background: var(--red-l); }

.listing-layout { max-width: 1200px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }

.sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  position: sticky;
  top: 100px;
}

.sb-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sb-group { margin-bottom: 16px; }
.sb-group h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sb-opt { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; cursor: pointer; font-size: 13px; }
.sb-opt input { accent-color: var(--red); }

.pr-inputs { display: flex; gap: 6px; }
.pr-inputs input { flex: 1; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--r); font-size: 12px; font-family: var(--font); outline: none; min-width: 0; }
.pr-inputs input:focus { border-color: var(--blue); }

.sort-sel { width: 100%; padding: 7px 9px; border: 1px solid var(--border); border-radius: var(--r); font-size: 13px; font-family: var(--font); outline: none; color: var(--text); }
.sort-sel:focus { border-color: var(--blue); }


/* ============================================================
   10. CAR DETAIL
   ============================================================ */
/* Breadcrumb */
.d-breadbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 16px; }
.d-breadbar-in { max-width: 1200px; margin: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.d-breadbar-in span[onclick] { cursor: pointer; }
.d-breadbar-in span[onclick]:hover { color: var(--red); }
.sep { color: var(--border); }

/* Main grid */
.d-main { max-width: 1200px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }

/* Header card */
.d-header-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.d-car-top { display: flex; gap: 16px; align-items: flex-start; }
.d-car-info { flex: 1; min-width: 0; }
.d-car-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

.d-car-logo { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--muted); flex-shrink: 0; }

.d-title { font-size: 20px; font-weight: 700; margin-bottom: 3px; letter-spacing: -.3px; line-height: 1.2; }
.d-source { font-size: 11px; color: var(--blue); }

.d-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.d-stars   { color: #F59E0B; font-size: 13px; letter-spacing: 1px; }
.d-rat-num { font-size: 13px; font-weight: 700; }
.d-rev     { font-size: 12px; color: var(--blue); text-decoration: underline; }

.d-desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }

.d-car-img { width: 260px; height: 155px; flex-shrink: 0; border-radius: var(--r); overflow: hidden; background: var(--bg); }
.d-car-img img { width: 100%; height: 100%; object-fit: cover; }

.d-img-placeholder { width: 100%; height: 155px; display: flex; align-items: center; justify-content: center; background: #f3f4f6; }
.d-img-placeholder svg { width: 80px; opacity: .18; }

.d-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.d-share, .d-wish { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; transition: all .15s; }
.d-share:hover, .d-wish:hover { border-color: var(--red); color: var(--red); }

.d-colors-wrap { margin-left: auto; }
.d-colors-label { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.d-colors-row { display: flex; gap: 6px; align-items: center; }

.color-dot { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all .15s; box-shadow: 0 0 0 1px #ddd; }
.color-dot.active { border-color: var(--text); transform: scale(1.1); }

/* Spec grids */
.d-spec-table { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.dst-cell { background: var(--white); padding: 10px 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dst-cell:nth-child(3n)         { border-right: none; }
.dst-cell:nth-last-child(-n+3)  { border-bottom: none; }
.dst-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; font-weight: 500; }
.dst-val   { font-size: 13px; font-weight: 600; }

.d-full-spec { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--white); margin-bottom: 12px; }
.dfs-cell { padding: 9px 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dfs-cell:nth-child(3n)         { border-right: none; }
.dfs-cell:nth-last-child(-n+3)  { border-bottom: none; }
.dfs-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.dfs-val   { font-size: 13px; font-weight: 500; }

/* Price bar */
.d-price-bar { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dpb-price   { font-size: 22px; font-weight: 700; color: var(--text); }
.dpb-note    { font-size: 11px; color: var(--muted); }
.dpb-city    { color: var(--blue); }

.dpb-offer { padding: 7px 16px; background: var(--red); color: #fff; border-radius: var(--r); font-size: 13px; font-weight: 600; transition: background .15s; }
.dpb-offer:hover { background: var(--red-d); }

.dpb-emi-wrap  { display: flex; align-items: center; gap: 8px; }
.dpb-emi-label { font-size: 11px; color: var(--muted); }
.dpb-emi-val   { font-size: 14px; display: block; }
.dpb-emi-calc  { color: var(--blue); font-size: 12px; text-decoration: underline; cursor: pointer; }

.dpb-dl { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 12px; font-weight: 500; background: var(--white); cursor: pointer; transition: all .15s; }
.dpb-dl:hover { border-color: var(--blue); color: var(--blue); }

/* Tabs */
.d-tabs-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }

.d-tabs { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.d-tabs::-webkit-scrollbar { display: none; }

.d-tab { padding: 11px 18px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; white-space: nowrap; flex-shrink: 0; }
.d-tab.on { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

.d-tab-body { padding: 16px; }

/* Key Highlights */
.kh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 8px; }
.kh-card { border: 1px solid var(--border); border-radius: var(--r); padding: 12px; display: flex; gap: 10px; align-items: center; }
.kh-ico  { font-size: 22px; flex-shrink: 0; }
.kh-lbl  { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.kh-val  { font-size: 13px; font-weight: 600; }

/* Gallery */
.gallery-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery-scroll::-webkit-scrollbar { height: 4px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.gal-thumb { flex-shrink: 0; width: 180px; height: 115px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); cursor: pointer; position: relative; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gal-thumb:hover img { transform: scale(1.05); }
.gal-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; padding: 4px 7px; font-weight: 500; }

/* Variants */
.var-hint { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.var-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.var-scroll::-webkit-scrollbar { height: 4px; }
.var-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.var-card { flex-shrink: 0; width: 280px; border: 1.5px solid var(--border); border-radius: var(--r); padding: 14px; cursor: pointer; transition: border-color .15s; position: relative; background: var(--white); }
.var-card:hover, .var-card.active { border-color: var(--red); }
.var-badge { position: absolute; top: -1px; right: 12px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 0 0 4px 4px; }
.var-name  { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.var-mini-img    { width: 100%; height: 70px; object-fit: contain; margin: 6px 0; display: block; }
.var-mini-img-ph { width: 100%; height: 70px; display: flex; align-items: center; justify-content: center; margin: 6px 0; }
.var-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 10px; }
.vs-i label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 1px; }
.vs-i span  { font-size: 12px; font-weight: 500; }
.var-colors { display: flex; gap: 5px; margin-top: 8px; }
.var-cdot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #ddd; cursor: pointer; }
.var-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.var-price { font-size: 16px; font-weight: 700; }
.var-book  { padding: 6px 14px; background: var(--red); color: #fff; border-radius: var(--r); font-size: 12px; font-weight: 600; transition: background .15s; }
.var-book:hover { background: var(--red-d); }

/* Video */
.video-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.vs-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.vs-header h3 { font-size: 13px; font-weight: 700; }
.vs-header small { color: var(--muted); font-size: 11px; }
.vs-header-actions { margin-left: auto; display: flex; gap: 12px; }
.vs-header-actions span { font-size: 11px; color: var(--blue); cursor: pointer; }
.vs-player { background: #111; height: 220px; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.vs-player-label { position: absolute; top: 10px; left: 12px; color: rgba(255,255,255,.7); font-size: 11px; font-style: italic; }
.vs-play { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,170,0,.9); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform .15s; }
.vs-player:hover .vs-play { transform: scale(1.1); }
.vs-footer { padding: 8px 16px; background: var(--bg); display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* Similar cars */
.similar-cars-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.similar-cars-box .sec-hd { margin-bottom: 12px; }
.similar-cars-box .sec-hd h2 { font-size: 14px; }

/* Right sidebar */
.d-side-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.d-side-box h3 { font-size: 13px; font-weight: 700; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.ad-side { margin-bottom: 12px; }

/* EMI sidebar */
.emi-side-city  { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.emi-side-price { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.emi-side-note  { font-size: 11px; color: var(--muted); margin-bottom: 12px; }

.emi-result-box { background: var(--red-l); border: 1px solid #FECACA; border-radius: var(--r); padding: 10px 12px; margin-bottom: 12px; }
.emi-result-label { font-size: 11px; color: var(--muted); }
.emi-result-val   { font-size: 18px; font-weight: 700; color: var(--red); }

.emi-inputs { display: grid; gap: 8px; margin-bottom: 12px; }
.emi-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.emi-row label { font-size: 11px; color: var(--muted); width: 90px; flex-shrink: 0; }
.emi-row input[type="range"] { flex: 1; accent-color: var(--red); min-width: 0; }
.emi-row span  { font-size: 11px; font-weight: 600; min-width: 48px; text-align: right; }

.emi-edit  { font-size: 11px; color: var(--blue); cursor: pointer; text-decoration: underline; margin-bottom: 10px; display: block; }
.emi-offer { font-size: 11px; color: var(--blue); cursor: pointer; text-decoration: underline; }

.side-btn-r { width: 100%; padding: 9px; background: var(--red); color: #fff; border-radius: var(--r); font-size: 13px; font-weight: 600; margin-bottom: 7px; transition: background .15s; }
.side-btn-r:hover { background: var(--red-d); }

.side-btn-o { width: 100%; padding: 8px; background: transparent; color: var(--text); border: 1.5px solid var(--border); border-radius: var(--r); font-size: 13px; font-weight: 500; margin-bottom: 7px; transition: all .15s; }
.side-btn-o:hover { border-color: var(--red); color: var(--red); }

.side-links { display: flex; justify-content: space-around; margin-top: 4px; flex-wrap: wrap; gap: 4px; }
.side-links a { font-size: 11px; color: var(--blue); cursor: pointer; }

.d-side-offer { background: linear-gradient(135deg, #1A1A2E, #16213E); border: none; }
.offer-label  { color: #fff; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.offer-amount { color: #F59E0B; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.offer-sub    { color: rgba(255,255,255,.7); font-size: 11px; margin-bottom: 10px; }
.offer-btn    { width: 100%; padding: 7px; background: var(--blue); color: #fff; border-radius: var(--r); font-size: 12px; font-weight: 600; transition: background .15s; }
.offer-btn:hover { background: #1558c0; }

/* Compare / specs table (shared) */
.cmp-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.cmp-table th { padding: 11px 14px; text-align: left; font-weight: 600; font-size: 13px; background: var(--bg); border-bottom: 1px solid var(--border); }
.cmp-table td { padding: 9px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.cmp-table tr:last-child td { border-bottom: none; }
.row-l  { color: var(--muted); font-size: 12px; font-weight: 500; width: 160px; }
.hl-td  { color: var(--red); font-weight: 600; }
.sec-r td { background: var(--bg); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }


/* ============================================================
   11. COMPARE
   ============================================================ */
.cmp-wrap  { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.cmp-title { font-size: 22px; font-weight: 700; margin-bottom: 5px; letter-spacing: -.3px; }
.cmp-sub   { color: var(--muted); margin-bottom: 20px; font-size: 13px; }

.cmp-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }

.cmp-slot {
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  min-height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .15s;
}
.cmp-slot:hover:not(.filled) { border-color: var(--red); }
.cmp-slot.filled { border-style: solid; border-color: var(--border); cursor: default; }
.cmp-plus { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); }
.cmp-slot p    { font-size: 13px; color: var(--muted); }
.cmp-slot h3   { font-size: 14px; font-weight: 700; }
.cmp-slot .cmp-pr { color: var(--red); font-size: 12px; font-weight: 600; }
.rm-btn { color: var(--muted); font-size: 16px; padding: 3px; transition: color .15s; }
.rm-btn:hover { color: var(--red); }

/* Picker modal */
.picker-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; }
.picker-box { background: var(--white); border-radius: var(--r-lg); padding: 20px; width: 100%; max-width: 500px; max-height: 75vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.picker-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.picker-close  { float: right; font-size: 20px; color: var(--muted); margin-top: -4px; }
.picker-close:hover { color: var(--red); }
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.picker-item { border: 1px solid var(--border); border-radius: var(--r); padding: 10px; cursor: pointer; transition: all .15s; }
.picker-item:hover { border-color: var(--red); background: var(--red-l); }
.picker-item strong { display: block; font-size: 12px; font-weight: 600; margin-bottom: 1px; }
.picker-item small  { font-size: 11px; color: var(--muted); }


/* ============================================================
   12. EMI CALCULATOR
   ============================================================ */
.emi-wrap { max-width: 860px; margin: 0 auto; padding: 32px 16px; }
.emi-wrap h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.3px; }
.emi-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.emi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.emi-form-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.emi-flbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 7px; display: block; }
.emi-fg   { margin-bottom: 18px; }
.emi-sl-row { display: flex; align-items: center; gap: 10px; }
.emi-sl-row input[type="range"] { flex: 1; accent-color: var(--red); min-width: 0; }
.emi-sl-val { font-weight: 600; font-size: 13px; min-width: 68px; text-align: right; color: var(--text); }
.emi-tip { background: var(--bg); border-radius: var(--r); padding: 11px; font-size: 12px; color: var(--muted); line-height: 1.6; }

.emi-result-panel { background: var(--red); border-radius: var(--r); padding: 22px; color: #fff; position: sticky; top: 90px; }
.emi-result-panel h3 { font-size: 11px; opacity: .8; margin-bottom: 5px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; border: none; padding: 0; color: #fff; }
.emi-big { font-size: 40px; font-weight: 700; margin-bottom: 18px; line-height: 1; letter-spacing: -1px; }
.emi-rows { display: grid; }
.e-row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.e-row:last-child { border-bottom: none; }
.e-row .el { opacity: .8; }
.e-row .ev { font-weight: 600; }

.pie-wrap { margin-top: 14px; }
.pie-title { font-size: 10px; opacity: .8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.pie-bar  { height: 7px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; margin: 0 0 5px; }
.pie-fill { height: 100%; background: rgba(255,255,255,.75); transition: width .5s ease; }
.pie-lbls { display: flex; justify-content: space-between; font-size: 10px; opacity: .75; }

.emi-browse-btn { margin-top: 16px; width: 100%; padding: 10px; border: 1.5px solid rgba(255,255,255,.5); border-radius: var(--r); background: transparent; color: #fff; font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s; }
.emi-browse-btn:hover { background: rgba(255,255,255,.1); }


/* ============================================================
   13. BRANDS PAGE
   ============================================================ */
.brands-page { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.brands-page-hd { margin-bottom: 20px; }
.brands-page-hd h1 { font-size: 22px; font-weight: 700; }
.all-brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.brand-tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 10px; text-align: center; cursor: pointer; transition: all .15s; }
.brand-tile:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-1px); }
.bt-ico { width: 50px; height: 50px; border-radius: 50%; background: var(--bg); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.brand-tile h3 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.brand-tile p  { font-size: 11px; color: var(--muted); }


/* ============================================================
   14. FOOTER
   ============================================================ */
footer { background: var(--white); border-top: 1px solid var(--border); padding: 32px 16px 16px; margin-top: 40px; }
.foot-in { max-width: 1200px; margin: auto; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.foot-logo { font-size: 18px; font-weight: 700; color: var(--red); margin-bottom: 8px; letter-spacing: -.3px; }
.foot-desc { font-size: 12px; color: var(--muted); line-height: 1.65; max-width: 240px; }
.foot-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; color: var(--text); }
.foot-col a  { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; cursor: pointer; transition: color .15s; }
.foot-col a:hover { color: var(--red); }
.foot-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); gap: 12px; flex-wrap: wrap; }


/* ============================================================
   15. TOAST
   ============================================================ */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(60px); background: #111; color: #fff; padding: 9px 18px; border-radius: var(--r); font-size: 13px; z-index: 9999; transition: transform .3s ease; pointer-events: none; white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }


/* ============================================================
   16. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Large Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .d-main    { grid-template-columns: 1fr 270px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ── Tablet (≤860px) ── */
@media (max-width: 860px) {
  .nav-links  { display: none; }
  .nav-login  { display: none; }
  .hamburger  { display: flex; }
  .nav-search { max-width: 100%; }
  .listing-layout { grid-template-columns: 1fr; }
  .sidebar        { display: none; }
  .d-main { grid-template-columns: 1fr; }
  .d-right { order: -1; }
  .d-car-top { flex-direction: column; }
  .d-car-img { width: 100%; }
  .d-spec-table, .d-full-spec { grid-template-columns: 1fr 1fr; }
  .d-price-bar { gap: 10px; }
  .emi-grid { grid-template-columns: 1fr; }
  .emi-result-panel { position: relative; top: 0; }
  .cmp-slots { grid-template-columns: 1fr; }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
  .logo         { font-size: 17px; }
  .hero         { padding: 28px 16px 24px; }
  .hero-sub     { font-size: 13px; margin-bottom: 20px; }
  .hero-search button { padding: 0 14px; font-size: 13px; }
  .qf           { padding: 5px 10px; font-size: 11px; }
  .brands-grid  { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); }
  .cars-grid    { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .cc-img       { height: 130px; }
  .d-title      { font-size: 16px; }
  .kh-grid      { grid-template-columns: 1fr 1fr; }
  .d-car-img    { height: 180px; }
  .d-tab        { padding: 9px 12px; font-size: 12px; }
  .dpb-price    { font-size: 18px; }
  .dpb-offer    { font-size: 12px; padding: 6px 12px; }
  .dpb-dl       { display: none; }
  .emi-wrap h1  { font-size: 22px; }
  .emi-big      { font-size: 32px; }
  .picker-grid  { grid-template-columns: 1fr; }
  .all-brands-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .foot-grid    { grid-template-columns: 1fr; }
  .foot-bot     { flex-direction: column; text-align: center; }
  .why-grid     { grid-template-columns: 1fr 1fr; }
  .filter-bar   { padding: 8px; }
  .filter-inner { gap: 5px; }
  .fc           { padding: 4px 8px; }
}

/* ── Small Mobile (≤400px) ── */
@media (max-width: 400px) {
  .cars-grid    { grid-template-columns: 1fr; }
  .why-grid     { grid-template-columns: 1fr; }
  .cmp-table th,
  .cmp-table td { padding: 7px 8px; font-size: 12px; }
}
