/* ==========================================================================
   KAILI Group — Redesign Stylesheet
   Author: kailiongroup redesign
   Sections:
     1. Design tokens
     2. Reset & base
     3. Layout primitives (.container, .section, .section-header)
     4. Buttons
     5. Header & nav
     6. Hero (full-screen video)
     7. About strip + stats
     8. Used-truck card grid
     9. Product category grid
    10. Advantages (dark)
    11. Blog grid
    12. Footer
    13. WhatsApp floating CTA
    14. Reveal-on-scroll
    15. Responsive breakpoints
   ========================================================================== */


/* 1. Design tokens ------------------------------------------------------- */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Brand accents */
  --accent-rust:       #b8522a;
  --accent-rust-dark:  #973f1e;
  --accent-rust-soft:  #d47a55;
  --accent-olive:      #6f7d3e;
  --accent-gold:       #e8b830;
  --accent-gold-dark:  #d4a520;

  /* Type & surfaces */
  --text-primary:      #1a1714;
  --text-secondary:    #6b6560;
  --bg-warm:           #faf9f7;
  --bg-card:           #ffffff;
  --bg-soft:           #f0ede8;
  --border-light:      #e8e4df;

  /* Layout */
  --max-w: 1280px;
}


/* 2. Reset & base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}


/* 3. Layout primitives ---------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

.section-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.25em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
}

.section-header { margin-bottom: 64px; }


/* 4. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn-primary { background: var(--accent-rust); color: #fff; }
.btn-primary:hover { background: var(--accent-rust-dark); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}
.btn-outline:hover { background: var(--text-primary); color: #fff; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }


/* 5. Header & nav -------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 23, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.site-logo img { height: 52px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 8px; }

.site-nav a {
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.site-nav a:hover,
.site-nav a.active { color: #fff; }

.nav-cta {
  background: var(--accent-rust) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 0;
}
.nav-cta:hover { background: var(--accent-rust-dark) !important; }

.nav-icon { font-size: 0.78rem; opacity: 0.85; margin-right: 2px; }

/* ----- Nav dropdown ----- */
.nav-item { position: relative; }

.nav-item > .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  font-size: 0.6rem;
  transition: transform 0.25s var(--ease-out);
}
.nav-item:hover > .dropdown-toggle .nav-caret,
.nav-item.open  > .dropdown-toggle .nav-caret { transform: rotate(180deg); }

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(26, 23, 20, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--accent-rust);
  padding: 8px 0;
  margin: 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu,
.nav-item.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li { margin: 0; }

.dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 22px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.78) !important;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: var(--accent-rust-soft);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: rgba(184, 82, 42, 0.12);
  color: #fff !important;
  border-left-color: var(--accent-rust);
  outline: none;
}

/* ----- Nav search ----- */
.nav-search {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  padding: 2px 4px 2px 16px;
  margin-left: 6px;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.nav-search:focus-within {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent-rust);
}
.nav-search-input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 1rem;
  padding: 8px 6px 8px 0;
  width: 170px;
  font-family: inherit;
}
.nav-search-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.nav-search-btn {
  background: var(--accent-rust);
  border: 0;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
  flex-shrink: 0;
}
.nav-search-btn:hover { background: var(--accent-rust-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle,
.search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-rust);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  color: #fff;
  min-height: 42px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle i,
.search-toggle i { font-size: 1rem; }
.menu-toggle:hover,
.search-toggle:hover { background: var(--accent-rust-dark); }
.search-toggle { width: 42px; padding: 9px; }


/* 6. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-rust);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--accent-rust-soft); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 50%;
  background: var(--accent-rust-soft);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -50%; }
  100% { top: 100%; }
}


/* 7. About strip + stats ------------------------------------------------- */
.about-strip {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 0;
}

.about-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-strip h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.about-strip p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.about-strip video {
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  border-left: 3px solid var(--accent-rust);
  padding-left: 20px;
}
.stat-item .num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.stat-item .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* 8. Used-truck card grid ------------------------------------------------ */
.used-bg { background: var(--bg-soft); }

.used-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

.used-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.used-card-link { display: flex; color: inherit; text-decoration: none; height: 100%; }
.used-card {
  background: #fff;
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.used-card:hover {
  border-color: var(--accent-rust);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.used-card .img-wrap {
  display: block;
  width: 100%;
  height: 200px;
  min-height: 200px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: #f3f1ec url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c9c2b3" stroke-width="1.5"><rect x="3" y="5" width="18" height="14" rx="2"/><circle cx="8" cy="11" r="1.6"/><path d="M3 17l5-5 4 4 3-3 6 5"/></svg>') center / 56px no-repeat;
  flex-shrink: 0;
}
.used-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.used-card:hover .img-wrap img { transform: scale(1.05); }

.brand-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: var(--accent-gold);
  color: var(--text-primary);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.stock-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  background: var(--text-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.used-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }

.used-card .body h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.used-card .body .spec {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.used-card .body .spec span {
  display: inline-block;
  min-width: 80px;
  font-weight: 600;
  color: var(--text-primary);
}

.used-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }

.btn-sm {
  flex: 1;
  padding: 9px 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-video {
  background: transparent;
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
}
.btn-video:hover { background: var(--text-primary); color: #fff; }

.btn-ask {
  background: var(--accent-gold);
  color: var(--text-primary);
}
.btn-ask:hover { background: var(--accent-gold-dark); }


/* 9. Product category grid ---------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--border-light);
  max-width: var(--max-w);
  margin: 0 auto;
}

.product-card {
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}
.product-card:hover { background: #f5f2ee; }

.product-card a { display: block; }

.product-card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 240px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .thumb { transform: scale(1.04); }

.product-card .body { padding: 24px 28px 32px; }

.cat-tag {
  display: inline-block;
  background: var(--accent-olive);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  margin-bottom: 12px;
}

.product-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card .desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-rust);
}


/* 10. Advantages (dark) -------------------------------------------------- */
.adv-bg { background: var(--text-primary); color: #fff; }
.adv-bg .section-sub { color: rgba(255, 255, 255, 0.6); }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}

.adv-item { display: flex; gap: 24px; }

.adv-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 82, 42, 0.2);
}
.adv-icon i { font-size: 1.3rem; color: var(--accent-rust-soft); }

.adv-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.adv-item p  { font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); line-height: 1.6; }


/* 11. Blog grid ---------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.blog-card-link { display: flex; color: inherit; text-decoration: none; height: 100%; }
.blog-card-link .blog-card { width: 100%; }

.blog-card {
  background: #fff;
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover {
  border-color: var(--accent-rust);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.blog-card .thumb-wrap {
  display: block;
  width: 100%;
  height: 200px;
  min-height: 200px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #f3f1ec url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c9c2b3" stroke-width="1.5"><rect x="3" y="5" width="18" height="14" rx="2"/><circle cx="8" cy="11" r="1.6"/><path d="M3 17l5-5 4 4 3-3 6 5"/></svg>') center / 56px no-repeat;
  flex-shrink: 0;
}
.blog-card .thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.blog-card:hover .thumb-wrap img { transform: scale(1.05); }

.blog-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.blog-card .date {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.blog-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-rust);
}


/* 12. Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.7; max-width: 320px; }

.footer-col h5 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s var(--ease-out);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 16px;
}


/* 13. WhatsApp floating CTA --------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 24px;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.3s var(--ease-out);
}
.wa-float:hover {
  background: #1da851;
  color: #fff;
  transform: translateY(-2px);
}
.wa-float i { font-size: 1.2rem; }


/* 13b. Utility helpers ---------------------------------------------------- */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

.adv-heading { color: #fff; }

.footer-address {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  margin-top: 16px;
  line-height: 1.6;
}

/* 14. Reveal-on-scroll --------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* 15. Responsive breakpoints -------------------------------------------- */
@media (max-width: 1024px) {
  .about-strip-grid { grid-template-columns: 1fr; gap: 48px; }
  .blog-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { height: 72px; }
  .site-logo img { height: 42px; }
  .site-nav { display: none; }
  .site-nav.open,
  .site-nav.search-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px; left: 0; right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: rgba(26, 23, 20, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px 22px;
    gap: 4px;
  }
  .site-nav.search-open > a,
  .site-nav.search-open > .nav-item { display: none; }
  .site-nav.open .nav-search { display: none; }
  .site-nav > a,
  .site-nav > .nav-item > a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
  }
  .site-nav .nav-item { width: 100%; }
  .menu-toggle,
  .search-toggle { display: inline-flex; }
  .nav-search {
    display: flex;
    width: 100%;
    margin: 12px 0 0;
    padding-left: 14px;
  }
  .nav-search-input {
    width: auto;
    min-width: 0;
    flex: 1;
  }
  .nav-search-btn { width: 44px; height: 42px; }

  /* Mobile dropdown: no hover, force visible when item has .open */
  .nav-item > .dropdown-menu {
    position: static;
    min-width: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-top: 0;
    box-shadow: none;
    padding: 4px 0 4px 16px;
    transform: none;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out), visibility 0.3s;
  }
  .nav-item.open > .dropdown-menu {
    visibility: visible;
    max-height: 600px;
  }
  .dropdown-menu a {
    padding: 8px 16px !important;
    font-size: 0.78rem !important;
    border-left: 0 !important;
  }
  .dropdown-menu a:hover,
  .dropdown-menu a:focus-visible {
    background: transparent;
    border-left: 0 !important;
    color: var(--accent-rust-soft) !important;
  }

  .hero-title      { font-size: 2.2rem; }
  .section         { padding: 64px 0; }
  .section-label   { font-size: 2rem; }
  .used-card-grid  { grid-template-columns: 1fr; gap: 16px; }
  .adv-grid        { grid-template-columns: 1fr; gap: 32px; }
  .product-grid    { grid-template-columns: 1fr 1fr; }
  .blog-grid       { grid-template-columns: 1fr; }
  .stats-row       { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions    { flex-direction: column; }
  .wa-float        { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* === Product detail gallery compatibility ===
   The redesign's global img{display:block} makes the legacy thumbnail anchors
   form separate lines. Keep product thumbnails in a horizontal wrapping row. */
#product #pic-page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
#product #pic-page a {
  display: block;
  flex: 0 0 auto;
  margin: 0;
}
#product #pic-page a img {
  display: block;
  width: 48px;
  height: 40px;
  object-fit: cover;
  margin: 0;
  padding: 2px;
}

/* === Override Bootstrap interference (file.html loads bootstrap.css in secondary pages) === */
html { font-size: 16px; }            /* reset root font-size so 1rem ≈ 16px on list/product/etc pages */
.dropdown-menu { display: block !important; }   /* Bootstrap's .dropdown-menu{display:none} would otherwise kill the redesign dropdown */
