/* =====================================================
   Turbo Drive — Responsive Stylesheet
   Mobile-first refinements
   ===================================================== */

/* Large desktop */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop */
@media (max-width: 1199px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 56px 0 48px; }
}

/* Tablet */
@media (max-width: 991px) {
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero .row { grid-template-columns: 1fr; text-align: start; gap: 28px; }
  .hero .visual { aspect-ratio: 16/10; }
  .hero .stats { max-width: 100%; }
  .quick-search .grid { grid-template-columns: 1fr 1fr 1fr; }
  .filters { position: relative; top: 0; }
}

/* Mobile */
@media (max-width: 767px) {
  body { padding-bottom: 60px; } /* room for mobile cta bar */
  .container { padding-inline: 14px; }
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 24px; }
  .cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero .actions .btn { flex: 1 1 calc(50% - 5px); }
  .hero .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero .stats strong { font-size: 1.25rem; }
  .quick-search { margin-top: -22px; padding: 14px; }
  .quick-search .grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .car-card .actions { grid-template-columns: 1fr 1fr; }
  .car-card .actions .wa-btn { grid-column: 1 / -1; }
  .car-card h3.title { min-height: auto; }

  /* Card layout becomes horizontal-friendly */
  .car-card .body { padding: 14px; gap: 8px; }
  .car-card .actions { padding: 0 14px 14px; gap: 6px; }
  .car-card h3.title { font-size: 1rem; }

  .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-card { padding: 18px; }

  .timeline { grid-template-columns: 1fr 1fr; gap: 12px; }
  .timeline .step { padding: 18px 14px; }

  .cta-banner { border-radius: var(--r-lg); }
  .cta-banner-home { padding: 28px 18px; }
  .cta-banner-home__grid { grid-template-columns: 1fr; gap: 18px; }
  .cta-banner-home__content { text-align: center; }
  .cta-banner-home h2 { font-size: 1.55rem; }
  .cta-banner-home p { font-size: .95rem; margin-inline: auto; }
  .cta-banner-home__points { justify-content: center; }
  .cta-banner-home__side { gap: 12px; }
  .cta-banner-home__mini-card { border-radius: 18px; text-align: center; }
  .cta-banner-home .actions .btn { width: 100%; }

  .footer { padding: 40px 0 16px; }

  .chat-window {
    bottom: 80px;
    inset-inline-end: 10px;
    width: calc(100% - 20px);
    height: calc(100vh - 110px);
    max-height: none;
    border-radius: var(--r-md);
  }
  .chat-fab { bottom: 14px; inset-inline-end: 14px; gap: 10px; }
  .chat-fab.with-cta { bottom: 70px; }

  .fab-btn { width: 52px; height: 52px; }
}


@media (max-width: 480px) {
  .section-head h2 { font-size: 1.42rem; }
  .section-head p { font-size: .94rem; }
  .quick-search .grid { grid-template-columns: 1fr; }
  .price-row { align-items: flex-start; }
  .brands-h-track .brand-pill { width: 118px; height: 92px; }
  .reviews-h-track .review-card { flex-basis: min(292px, 88vw); padding: 18px; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero .stats { grid-template-columns: 1fr 1fr; }
  .hero .stats div:last-child { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .quick-search .grid { grid-template-columns: 1fr; }
}

/* iOS notch handling */
@supports (padding: max(0px)) {
  .footer, .mobile-cta-bar {
    padding-bottom: max(env(safe-area-inset-bottom), 12px);
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .desktop-header, .mobile-header, .footer, .chat-fab, .chat-window, .mobile-cta-bar { display: none !important; }
  .car-card { break-inside: avoid; }
}

@media (max-width: 1190px) {
  .offers-spotlight-wrap {
    max-width: 1060px;
  }
  .offers-spotlight-track {
    --offer-card: 320px;
    --offer-gap: 18px;
  }
}

@media (max-width: 991px) {
  .offers-spotlight-wrap {
    max-width: 100%;
    padding: 24px 0 34px;
  }
  .offers-spotlight-track {
    --offer-card: 300px;
    --offer-gap: 14px;
  }
  .brands-h-track .brand-pill {
    width: 132px;
    height: 96px;
  }
}

@media (max-width: 640px) {
  .offers-spotlight-wrap {
    padding-inline: 0;
  }
  .offers-spotlight-track {
    --offer-card: clamp(260px, 82vw, 300px);
    --offer-gap: 12px;
  }

  .h-scroll-nav {
    margin-top: 16px;
    padding: 7px;
    gap: 8px;
  }
  .h-scroll-btn {
    width: 44px;
    height: 44px;
  }
  .chat-fab {
    flex-direction: row;
    gap: 8px;
  }
  .fab-btn {
    width: 52px;
    height: 52px;
  }
  .footer-logo-bubble {
    padding: 12px 14px;
    border-radius: 18px;
  }
}


@media (max-width: 991px) {
  .home-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 292px));
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .home-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 10px;
  }
  .home-blog-card {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(16, 22, 18, .06);
  }
  .home-blog-media {
    aspect-ratio: 4 / 3;
  }
  .home-blog-body {
    padding: 9px 9px 10px;
    gap: 5px;
  }
  .home-blog-meta {
    min-height: auto;
    font-size: .63rem;
    gap: 4px;
    flex-wrap: wrap;
  }
  .home-blog-card h3 {
    font-size: .78rem;
    line-height: 1.35;
    min-height: 2.7em;
    -webkit-line-clamp: 2;
  }
  .home-blog-card p {
    display: none;
  }
  .home-blog-link {
    font-size: .72rem;
    margin-top: 0;
  }
}

/* =====================================================
   Mobile homepage cleanup — remove side translucent edges
   and force blog cards into two compact columns.
   ===================================================== */
@media (max-width: 767px) {
  .page-home .home-brands-section,
  .page-home .home-blog-section,
  .page-home .home-reviews-section {
    background: #fff !important;
  }

  .page-home .home-brands-section::before,
  .page-home .home-brands-section::after,
  .page-home .home-blog-section::before,
  .page-home .home-blog-section::after,
  .page-home .home-reviews-section::before,
  .page-home .home-reviews-section::after,
  .page-home .home-brands-section .h-scroll-wrap::before,
  .page-home .home-brands-section .h-scroll-wrap::after,
  .page-home .home-reviews-section .h-scroll-wrap::before,
  .page-home .home-reviews-section .h-scroll-wrap::after,
  .page-home .home-brands-section .h-scroll-track::before,
  .page-home .home-brands-section .h-scroll-track::after,
  .page-home .home-reviews-section .h-scroll-track::before,
  .page-home .home-reviews-section .h-scroll-track::after,
  .page-home .home-blog-grid::before,
  .page-home .home-blog-grid::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .page-home .home-brands-section .h-scroll-wrap,
  .page-home .home-reviews-section .h-scroll-wrap,
  .page-home .home-blog-grid {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .page-home .home-brands-section .h-scroll-track,
  .page-home .home-reviews-section .h-scroll-track {
    padding-inline: 0 !important;
    margin-inline: 0 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  /* On phones the user can swipe; hide decorative arrow capsules that look like translucent side controls. */
  .page-home .home-brands-section .h-scroll-nav,
  .page-home .home-reviews-section .h-scroll-nav {
    display: none !important;
  }

  .page-home .home-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .page-home .home-blog-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    border-radius: 14px !important;
  }

  .page-home .home-blog-card .home-blog-media {
    aspect-ratio: 4 / 3 !important;
  }

  .page-home .home-blog-card .home-blog-body {
    padding: 9px !important;
  }

  .page-home .home-blog-card h3 {
    font-size: .78rem !important;
    line-height: 1.35 !important;
    min-height: 2.7em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .page-home .home-blog-card p {
    display: none !important;
  }

  .page-home .home-blog-meta {
    font-size: .63rem !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }

  .page-home .home-blog-link {
    font-size: .72rem !important;
  }

  .page-blog .cards-grid.blog-list-grid,
  .cards-grid.blog-list-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .page-blog .blog-card,
  .blog-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    border-radius: 14px !important;
  }

  .page-blog .blog-card .media,
  .blog-card .media {
    aspect-ratio: 4 / 3 !important;
  }

  .page-blog .blog-card .body,
  .blog-card .body {
    padding: 9px !important;
  }

  .page-blog .blog-card h3,
  .blog-card h3 {
    font-size: .78rem !important;
    line-height: 1.35 !important;
    margin: 5px 0 !important;
    min-height: 2.7em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .page-blog .blog-card .excerpt,
  .blog-card .excerpt {
    display: none !important;
  }

  .page-blog .blog-card .category,
  .blog-card .category {
    font-size: .62rem !important;
    line-height: 1.2 !important;
  }

  .page-blog .blog-card .meta,
  .blog-card .meta {
    font-size: .66rem !important;
    gap: 5px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

@media (max-width: 360px) {
  .page-home .home-blog-grid,
  .page-blog .cards-grid.blog-list-grid,
  .cards-grid.blog-list-grid {
    gap: 8px !important;
  }

  .page-home .home-blog-card h3,
  .page-blog .blog-card h3,
  .blog-card h3 {
    font-size: .74rem !important;
  }
}

/* Wider mobile/tablet safety net: keep blog cards two per row up to 991px. */
@media (max-width: 991px) {
  .page-home .home-blog-grid,
  .page-blog .cards-grid.blog-list-grid,
  .cards-grid.blog-list-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: 10px !important;
  }

  .page-home .home-blog-card,
  .page-blog .blog-card,
  .blog-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}


/* =====================================================
   Restore section arrows on mobile without bringing back
   translucent side fades. Blog keeps two visible cards.
   ===================================================== */
@media (max-width: 767px) {
  .page-home .home-brands-section .h-scroll-nav,
  .page-home .home-reviews-section .h-scroll-nav,
  .page-home .home-blog-section .h-scroll-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 12px !important;
    padding: 5px !important;
    gap: 7px !important;
    background: #fff !important;
    border: 1px solid rgba(155, 17, 30, .14) !important;
    box-shadow: 0 10px 24px rgba(155, 17, 30, .10) !important;
  }

  .page-home .home-brands-section .h-scroll-btn,
  .page-home .home-reviews-section .h-scroll-btn,
  .page-home .home-blog-section .h-scroll-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    background: #fff !important;
    color: var(--color-primary) !important;
    border: 1px solid rgba(11, 11, 13, .30) !important;
    box-shadow: 0 6px 16px rgba(155, 17, 30, .10) !important;
  }

  .page-home .home-brands-section .h-scroll-btn svg,
  .page-home .home-reviews-section .h-scroll-btn svg,
  .page-home .home-blog-section .h-scroll-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .page-home .home-brands-section .h-scroll-btn:hover,
  .page-home .home-reviews-section .h-scroll-btn:hover,
  .page-home .home-blog-section .h-scroll-btn:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-color: rgba(11, 11, 13, .70) !important;
  }

  .page-home .home-blog-grid.home-blog-scroll-track {
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 2px 1px 8px !important;
    direction: ltr !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .page-home .home-blog-grid.home-blog-scroll-track::-webkit-scrollbar {
    display: none !important;
  }

  .page-home .home-blog-grid.home-blog-scroll-track .home-blog-card {
    flex: 0 0 calc(50% - 5px) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    scroll-snap-align: start !important;
  }

  html[dir="rtl"] .page-home .home-blog-grid.home-blog-scroll-track > * {
    direction: rtl !important;
  }

  html[dir="ltr"] .page-home .home-blog-grid.home-blog-scroll-track > * {
    direction: ltr !important;
  }
}


/* ===== Home Quick Search — compact, homepage-scoped, no iOS zoom ===== */
.page-home .quick-search {
  max-width: 100%;
}
.page-home .quick-search .grid {
  display: grid;
  align-items: end;
}
.page-home .quick-search .grid > div {
  min-width: 0;
}
.page-home .quick-search label {
  font-size: .72rem;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-home .quick-search input,
.page-home .quick-search select {
  min-height: 38px;
  height: 38px;
  font-size: 16px !important; /* Prevents iPhone/Safari zoom on focus */
  padding-block: 0;
}
.page-home .quick-search .btn {
  min-height: 38px;
  height: 38px;
  padding-block: 0;
}

@media (max-width: 767px) {
  .page-home .quick-search {
    margin-top: -14px;
    padding: 10px;
    border-radius: 14px;
  }
  .page-home .quick-search .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  .page-home .quick-search .grid > .submit {
    grid-column: 1 / -1 !important;
  }
  .page-home .quick-search label {
    font-size: .68rem;
    line-height: 1.1;
  }
  .page-home .quick-search input,
  .page-home .quick-search select {
    height: 36px;
    min-height: 36px;
    border-radius: 10px;
    padding-inline: 8px;
    font-size: 16px !important;
  }
  .page-home .quick-search select {
    padding-inline-end: 25px;
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  }
  [dir="rtl"] .page-home .quick-search select {
    padding-inline-start: 25px;
    padding-inline-end: 8px;
    background-position: 16px 50%, 11px 50%;
  }
}

@media (max-width: 480px) {
  .page-home .quick-search .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 380px) {
  .page-home .quick-search .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* =====================================================
   Mobile horizontal alignment fix — offers and reviews
   ===================================================== */
@media (max-width: 640px) {
  .page-home .offers-spotlight-wrap {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    overflow: hidden;
  }

  .page-home .offers-spotlight-track {
    --offer-card: clamp(260px, 82vw, 300px) !important;
    --offer-gap: 12px !important;
    align-items: stretch !important;
    padding-inline: 4px !important;
    scroll-padding-inline: 4px !important;
    justify-content: flex-start !important;
  }

  .page-home .offer-spotlight-item {
    flex: 0 0 var(--offer-card) !important;
    width: var(--offer-card) !important;
    min-width: var(--offer-card) !important;
    max-width: var(--offer-card) !important;
    display: flex !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  .page-home .offer-spotlight-item .car-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    margin-inline: 0 !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .page-home .offer-spotlight-item .car-card:hover {
    transform: translateY(-3px) !important;
  }

  .page-home .offers-spotlight-track .car-card .body {
    padding: 13px !important;
    gap: 8px !important;
  }

  .page-home .offers-spotlight-track .car-card .actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    padding: 0 13px 13px !important;
    gap: 7px !important;
  }

  .page-home .offers-spotlight-track .car-card .actions .wa-btn {
    grid-column: 1 / -1 !important;
  }

  .page-home .offers-spotlight-track .car-card .actions .btn {
    min-height: 36px !important;
    padding: .46rem .56rem !important;
    font-size: .78rem !important;
  }

  .page-home .offers-spotlight-track .car-card .badge-row {
    top: 9px !important;
    inset-inline-start: 9px !important;
  }

  .page-home .offers-spotlight-track .car-card .tag {
    font-size: .66rem !important;
    padding: 3px 8px !important;
  }

  .page-home .offers-spotlight-track .car-card .fav-btn {
    top: 9px !important;
    inset-inline-end: 9px !important;
    width: 34px !important;
    height: 34px !important;
  }

  .page-home .reviews-h-track {
    --review-card-width: min(86vw, 292px);
    padding-inline: calc((100% - var(--review-card-width)) / 2) !important;
    scroll-padding-inline: calc((100% - var(--review-card-width)) / 2) !important;
  }

  .page-home .reviews-h-track .review-card {
    flex: 0 0 var(--review-card-width) !important;
    width: var(--review-card-width) !important;
    min-width: var(--review-card-width) !important;
    max-width: var(--review-card-width) !important;
    scroll-snap-align: center !important;
  }
}

@media (max-width: 380px) {
  .page-home .offers-spotlight-track {
    --offer-card: clamp(244px, 82vw, 276px) !important;
    --offer-gap: 10px !important;
  }
}

/* =====================================================
   Small desktop / laptop safety pass
   Targets 992px–1190px screens where the full desktop
   header and oversized cards can become cramped.
   ===================================================== */
@media (min-width: 992px) and (max-width: 1190px) {
  :root {
    --header-h-desktop: 66px;
    --header-h-desktop-sticky: 58px;
  }

  .container {
    padding-inline: 16px;
  }

  .topbar {
    font-size: .76rem;
    padding-block: 6px;
  }

  /* Use the compact drawer header on small laptops instead of squeezing 9 links. */
  .desktop-header {
    display: none !important;
  }
  .mobile-header {
    display: flex !important;
    height: 62px;
    padding-inline: 18px;
  }
  .mobile-header .logo-mark-shell {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    padding: 6px;
  }
  .mobile-header .logo img,
  .mobile-header .logo svg,
  .mobile-header .logo-img,
  .mobile-header .logo-img-1 {
    height: 42px;
    width: 42px;
    max-width: 42px;
  }
  .mobile-header .icon-btn {
    width: 38px;
    height: 38px;
  }
  .mobile-drawer {
    display: block !important;
  }
  .mobile-drawer .panel {
    width: min(390px, 42vw);
  }

  /* Shorter hero prevents the first fold from feeling oversized on 1024/1180 laptops. */
  .hero-carousel {
    height: 64vh;
    min-height: 420px;
    max-height: 560px;
  }
  .hero-content {
    padding-bottom: 42px;
  }

  .quick-search {
    margin-top: -30px;
    padding: 14px;
    border-radius: 16px;
  }
  .quick-search .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .quick-search .grid > .submit {
    grid-column: 1 / -1;
  }
  .quick-search label {
    font-size: .72rem;
    margin-bottom: 3px;
  }
  .quick-search input,
  .quick-search select,
  .quick-search .btn {
    height: 38px;
    min-height: 38px;
  }

  .section {
    padding-block: 48px;
  }
  .section-sm {
    padding-block: 30px;
  }
  .section-head {
    margin-bottom: 24px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .car-card .media {
    aspect-ratio: 16 / 9.6;
  }
  .car-card .body {
    padding: 13px;
    gap: 8px;
  }
  .car-card h3.title {
    font-size: .98rem;
  }
  .specs-mini {
    gap: 8px;
    font-size: .76rem;
  }
  .price-row {
    gap: 6px;
    padding-top: 8px;
  }
  .price {
    font-size: 1.12rem;
  }
  .car-card .actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
    gap: 6px;
    padding: 0 13px 13px;
  }
  .car-card .actions .btn {
    min-height: 36px;
    padding: .46rem .55rem;
    font-size: .76rem;
  }

  .offers-spotlight-wrap {
    max-width: 100%;
    padding-block: 24px 34px;
  }
  .offers-spotlight-track {
    --offer-card: 306px;
    --offer-gap: 14px;
    padding-inline: 4px;
    scroll-padding-inline: 4px;
  }
  .offer-spotlight-item .car-card .actions .btn-sm {
    min-height: 34px;
    padding-inline: 8px;
  }

  .brands-h-track .brand-pill {
    width: 124px;
    height: 90px;
    font-size: .78rem;
  }
  .brands-h-track .brand-pill img {
    height: 30px;
  }
  .reviews-h-track .review-card {
    flex-basis: 286px;
    padding: 18px;
  }
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .cta-banner-home {
    padding: 36px 28px;
  }
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 22px;
  }
}

@media (min-width: 992px) and (max-width: 1040px) {
  .cards-grid {
    gap: 14px;
  }
  .car-card .actions {
    grid-template-columns: 1fr 40px;
  }
  .car-card .actions .btn-ghost {
    display: none;
  }
  .quick-search .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) and (max-width: 1190px) {
  .mobile-header {
    justify-content: space-between;
  }
  .mobile-header-logo {
    flex: 0 1 auto;
    margin-inline: 0 !important;
    min-width: 0;
  }
  .mobile-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-inline-start: auto;
  }
  .mobile-menu-toggle {
    flex: 0 0 38px;
    margin-inline-start: 6px;
  }

  .mobile-drawer .panel {
    left: auto;
    right: -100%;
    box-shadow: -12px 0 50px rgba(16,22,18,0.18);
  }
  .mobile-drawer.is-open .panel {
    left: auto;
    right: 0;
  }
  html[dir="rtl"] .mobile-drawer .panel {
    right: auto;
    left: -100%;
    box-shadow: 12px 0 50px rgba(16,22,18,0.18);
  }
  html[dir="rtl"] .mobile-drawer.is-open .panel {
    right: auto;
    left: 0;
  }
}

/* ===== Home offers responsiveness — all offers visible, mobile swipe ===== */
@media (max-width: 1199px) {
  .home-offers-section .offers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .home-offers-section .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .home-offers-section .offers-grid.offers-scroll-track {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 2px 1px 12px !important;
    margin-inline: -14px !important;
    padding-inline: 14px !important;
    direction: ltr !important;
    overscroll-behavior-inline: contain;
  }
  .home-offers-section .offers-grid.offers-scroll-track::-webkit-scrollbar {
    display: none !important;
  }
  .home-offers-section .offers-grid.offers-scroll-track > .car-card {
    flex: 0 0 min(82vw, 315px) !important;
    width: min(82vw, 315px) !important;
    min-width: min(82vw, 315px) !important;
    max-width: min(82vw, 315px) !important;
    scroll-snap-align: start !important;
  }
  html[dir="rtl"] .home-offers-section .offers-grid.offers-scroll-track > .car-card {
    direction: rtl !important;
  }
  html[dir="ltr"] .home-offers-section .offers-grid.offers-scroll-track > .car-card {
    direction: ltr !important;
  }
}
