/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE.CSS — Professional tablet & phone system
   
   Desktop (> 1100px) is never modified here.
   Philosophy: same brand, mobile-native proportions — not shrunk desktop.
   ═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   0. RESPONSIVE DESIGN TOKENS
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root {
    --container-padding: 24px;
    --section-space: 64px;
    --section-space-sm: 48px;
    --heading-xl: 28px;
    --heading-lg: 26px;
    --heading-md: 22px;
    --body-lg: 16px;
    --body-md: 15px;
    --eyebrow-size: 12px;
    --grid-gap: 16px;
    --touch-target: 48px;
    --btn-height-mobile: 48px;
    --input-height-mobile: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --section-space: 56px;
    --section-space-sm: 40px;
    --heading-xl: 26px;
    --heading-lg: 24px;
    --heading-md: 20px;
    --grid-gap: 14px;
  }
}

@media (max-width: 640px) {
  :root {
    --container-padding: 20px;
    --section-space: 48px;
    --section-space-sm: 36px;
    --heading-xl: 24px;
    --heading-lg: 22px;
    --heading-md: 18px;
    --body-md: 14px;
    --eyebrow-size: 11px;
    --grid-gap: 12px;
  }
}


/* ──────────────────────────────────────────────────────────────
   1. GLOBAL — containers, touch, forms, buttons
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .home-page .container,
  .shop-page .container,
  .about-page .container,
  .contact-page .container,
  .cart-page .container,
  .checkout-page .container,
  .product-page .container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .product-rec__head,
  .product-rec__grid {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  body {
    overflow-x: hidden;
  }

  /* Touch-friendly interactive elements */
  .btn:not(.btn--link):not(.btn--icon),
  .nav__toggle,
  .nav__cart,
  .product-card__cta,
  .nav__links a,
  .nav-dropdown__trigger {
    min-height: var(--touch-target);
  }

  .product-card__cta {
    height: var(--touch-target);
    font-size: 13px;
  }

  .select,
  .input {
    min-height: var(--input-height-mobile);
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .nav__links a,
  .nav-dropdown__trigger {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}


/* ──────────────────────────────────────────────────────────────
   2. TYPOGRAPHY & SECTION RHYTHM
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .section-eyebrow,
  .home-page .section-eyebrow {
    font-size: var(--eyebrow-size);
    letter-spacing: 1px;
    margin-bottom: 6px;
  }

  .section__title,
  .home-page .section__title--left,
  .home-page .section__title--center {
    font-size: var(--heading-lg);
    line-height: 1.25;
    letter-spacing: -0.5px;
  }

  .section {
    padding: var(--section-space) 0;
  }

  .section--garage,
  .home-page .section--garage,
  .section--products,
  .home-page .section--products,
  .trust-section,
  .home-page .trust-section,
  .home-page .section--blog {
    padding: var(--section-space) 0;
  }

  .section__head-center,
  .home-page .section__head-center {
    margin-bottom: 36px;
  }

  .section__header,
  .home-page .section__header {
    margin-bottom: 28px;
  }
}

@media (max-width: 768px) {
  .section__header,
  .home-page .section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section__link,
  .home-page .section__link {
    font-size: 15px;
    padding-bottom: 0;
  }
}


/* ──────────────────────────────────────────────────────────────
   3. HERO
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero__title-line {
    white-space: normal;
  }

  .hero__content {
    width: 100%;
    max-width: 540px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: min(72vh, 520px);
  }

  .hero__inner {
    padding-top: clamp(48px, 12vw, 80px);
    padding-bottom: clamp(40px, 10vw, 56px);
    align-items: center;
  }

  .hero__title {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero__text {
    font-size: var(--body-lg);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 36em;
  }

  .hero__text br {
    display: none;
  }

  .hero__actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero__actions .btn--primary,
  .hero__actions .btn--outline-white {
    width: auto;
    min-width: 0;
    flex: 1 1 160px;
    height: var(--btn-height-mobile);
    min-height: var(--btn-height-mobile);
    padding: 0 20px;
    font-size: 14px;
    letter-spacing: 0.6px;
  }

  .home-page .hero--hardware,
  .home-page .hero--integrated {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: min(68vh, 460px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn--primary,
  .hero__actions .btn--outline-white {
    flex: none;
    width: 100%;
  }
}


/* ──────────────────────────────────────────────────────────────
   4. VEHICLE FILTER — SELECT YOUR VEHICLE
   One row: Year | Make | Model | Search (all breakpoints below desktop)
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .home-page .vehicle-filter__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1.5vw, 20px);
    align-items: end;
    justify-content: stretch;
    width: 100%;
  }

  .home-page .vehicle-filter__grid .field {
    min-width: 0;
  }

  .home-page .vehicle-filter__grid .field:nth-child(3) {
    grid-column: auto;
  }

  .home-page .vehicle-filter__grid > .btn--dark {
    grid-column: auto;
    width: 100%;
    align-self: end;
    margin-top: 0;
  }

  .home-page .vehicle-filter__grid .select {
    width: 100%;
    height: 50px;
    min-height: 50px;
  }
}

@media (max-width: 768px) {
  .home-page .vehicle-filter {
    padding: 32px 0;
  }

  .home-page .vehicle-filter__title {
    font-size: 17px;
    letter-spacing: 0.12em;
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .home-page .vehicle-filter__grid .select {
    height: 46px;
    min-height: 46px;
    font-size: 14px;
    padding-left: 10px;
    padding-right: 28px;
  }

  .home-page .vehicle-filter__grid > .btn--dark {
    height: 46px;
    min-height: 46px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 640px) {
  /* Mobile component: card with Year|Make row, Model, full-width CTA */
  .home-page .vehicle-filter {
    padding: 24px 0;
    background: #f7f9fb;
  }

  .home-page .vehicle-filter > .container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .home-page .vehicle-filter__panel {
    max-width: none;
    margin: 0;
    padding: 24px 20px 28px;
    background: #ffffff;
    border: 1px solid var(--color-border-accent, #e4beba);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.06);
  }

  .home-page .vehicle-filter__title {
    margin: 0 0 20px;
    padding-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.14em;
    color: var(--color-navy, #2c3e50);
    border-bottom: 1px solid #eceef0;
  }

  .home-page .vehicle-filter__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    align-items: end;
  }

  .home-page .vehicle-filter__grid .field {
    min-width: 0;
  }

  .home-page .vehicle-filter__grid .field:nth-child(1) {
    grid-column: 1;
  }

  .home-page .vehicle-filter__grid .field:nth-child(2) {
    grid-column: 2;
  }

  .home-page .vehicle-filter__grid .field:nth-child(3) {
    grid-column: 1 / -1;
  }

  .home-page .vehicle-filter__grid .field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
  }

  .home-page .vehicle-filter__grid .select {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 36px 0 14px;
    font-size: 16px;
    color: #191c1e;
    background: #ffffff;
    border-color: var(--color-border-accent, #e4beba);
  }

  .home-page .vehicle-filter__grid > .btn--dark {
    grid-column: 1 / -1;
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin-top: 6px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-align: center;
    background: var(--color-navy, #2c3e50);
  }

  .home-page .vehicle-filter__grid > .btn--dark:active {
    background: #243447;
  }
}


/* ──────────────────────────────────────────────────────────────
   5. BENTO GRID — same mosaic layout, mobile-native sizing
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .home-page .bento-grid {
    container-type: inline-size;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(8px, 2vw, 20px);
    --bento-r1: calc(100cqw * 400 / 1200);
    --bento-r2: calc(100cqw * 300 / 1200);
  }

  .home-page .bento-grid .vehicle-card--large {
    grid-column: span 8;
    height: max(var(--bento-r1), 200px);
  }

  .home-page .bento-grid .vehicle-card--top {
    grid-column: span 4;
    height: max(var(--bento-r1), 200px);
  }

  .home-page .bento-grid .vehicle-card--bottom {
    grid-column: span 4;
    height: max(var(--bento-r2), 150px);
  }
}

@media (max-width: 768px) {
  .home-page .bento-grid .vehicle-card--large,
  .home-page .bento-grid .vehicle-card--top {
    height: max(var(--bento-r1), 170px);
  }

  .home-page .bento-grid .vehicle-card--bottom {
    height: max(var(--bento-r2), 128px);
  }

  .home-page .bento-grid .vehicle-card__overlay {
    padding: 14px 12px;
  }

  .home-page .bento-grid .vehicle-card--large .vehicle-card__name {
    font-size: 17px;
    line-height: 1.25;
  }

  .home-page .bento-grid .vehicle-card--top .vehicle-card__name {
    font-size: 13px;
    line-height: 1.25;
  }

  .home-page .bento-grid .vehicle-card--bottom .vehicle-card__name {
    font-size: 11px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .home-page .bento-grid {
    gap: 6px;
  }

  .home-page .bento-grid .vehicle-card--large,
  .home-page .bento-grid .vehicle-card--top {
    height: max(var(--bento-r1), 148px);
  }

  .home-page .bento-grid .vehicle-card--bottom {
    height: max(var(--bento-r2), 112px);
  }

  .home-page .bento-grid .vehicle-card__overlay {
    padding: 10px 8px;
  }

  .home-page .bento-grid .vehicle-card--large .vehicle-card__name {
    font-size: 15px;
  }

  .home-page .bento-grid .vehicle-card--top .vehicle-card__name {
    font-size: 12px;
  }

  .home-page .bento-grid .vehicle-card--bottom .vehicle-card__name {
    font-size: 10px;
    -webkit-line-clamp: 2;
  }
}


/* ──────────────────────────────────────────────────────────────
   6. CATEGORY CAROUSEL
   ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .home-page .garage-categories {
    margin-top: 40px;
  }

  .home-page .garage-categories__title {
    font-size: var(--heading-md);
    margin-bottom: 20px;
    line-height: 1.3;
  }

  .home-page .category-carousel {
    margin: 0 calc(var(--container-padding) * -1);
    padding: 0 var(--container-padding);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-page .category-carousel::-webkit-scrollbar {
    display: none;
  }

  .home-page .category-carousel__track {
    gap: 12px;
    padding-bottom: 4px;
  }

  .home-page .category-card {
    flex: 0 0 108px;
  }

  .home-page .category-card__media {
    padding: 18px;
  }

  .home-page .category-card__media img {
    max-width: 52px;
    max-height: 52px;
  }

  .home-page .category-card__title {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.35;
  }
}


/* ──────────────────────────────────────────────────────────────
   7. PRODUCT CARDS — 2-col mobile catalog pattern
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .home-page .product-grid,
  .shop-page .product-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    justify-content: stretch;
  }

  .home-page .product-card__body {
    padding-top: 14px;
  }

  .home-page .product-card__title,
  .product-card__title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .home-page .product-card__price,
  .product-card__price {
    font-size: 15px;
    line-height: 1.4;
  }

  .home-page .product-card__row {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .home-page .product-grid,
  .shop-page .product-grid {
    gap: 10px;
  }

  .home-page .product-card__title {
    font-size: 13px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-page .product-card__price {
    font-size: 14px;
  }

  .product-card__cta {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}


/* ──────────────────────────────────────────────────────────────
   8. TRUST SECTION — compact horizontal cards on phone
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .home-page .trust-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: stretch;
  }

  .home-page .trust-card__text,
  .trust-card__text {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .home-page .trust-card__title,
  .trust-card__title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
}

@media (max-width: 640px) {
  .home-page .trust-card,
  .trust-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .home-page .trust-card:last-child,
  .trust-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .home-page .trust-card__icon,
  .trust-card__icon {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
  }

  .home-page .trust-card__icon img,
  .trust-card__icon img {
    max-height: 36px;
  }

  .home-page .trust-card__title {
    font-size: 14px;
    letter-spacing: 0.4px;
  }

  .home-page .trust-card__text {
    font-size: 13px;
    line-height: 1.5;
  }

  .home-page .trust-card__text br {
    display: none;
  }
}


/* ──────────────────────────────────────────────────────────────
   9. BLOG CARDS
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .home-page .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
    justify-content: stretch;
  }

  .home-page .blog-card {
    height: auto;
    flex-direction: row;
    min-height: 0;
  }

  .home-page .blog-card__image {
    width: 36%;
    min-width: 120px;
    max-width: 160px;
    height: auto;
    min-height: 100%;
    align-self: stretch;
    object-fit: cover;
  }

  .home-page .blog-card__body {
    flex: 1;
    padding: 16px;
    min-width: 0;
  }

  .home-page .blog-card__title {
    font-size: 15px;
    line-height: 1.4;
  }

  .home-page .blog-card__excerpt {
    font-size: 13px;
    line-height: 1.45;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-page .blog-card__read-more {
    padding-top: 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .home-page .blog-card {
    flex-direction: column;
  }

  .home-page .blog-card__image {
    width: 100%;
    max-width: none;
    height: 160px;
    min-height: 0; /* the row layout's min-height: 100% would swallow the whole card */
    flex: none;
  }

  .home-page .blog-card__body {
    flex: none;
    padding: 16px;
  }
}


/* ──────────────────────────────────────────────────────────────
   10. SHOP / CATEGORY
   ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .shop-page .shop-main {
    padding: 20px 0 40px;
  }

  .shop-header__title {
    font-size: var(--heading-lg);
    line-height: 1.2;
  }

  .shop-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .shop-sidebar {
    margin-bottom: 4px;
    padding-bottom: 16px;
  }

  .shop-sidebar__title {
    font-size: 11px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .shop-sidebar__link {
    padding: 12px 0;
    font-size: 15px;
    min-height: var(--touch-target);
    align-items: center;
  }
}

@media (max-width: 640px) {
  .shop-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .shop-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .shop-toolbar__select {
    flex: 1;
    min-width: 0;
    min-height: var(--touch-target);
  }

  .shop-bc {
    font-size: 10px;
    gap: 6px;
    margin-bottom: 16px;
  }
}


/* ──────────────────────────────────────────────────────────────
   11. PRODUCT PAGE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-main__inner {
    padding: 20px 0 40px;
  }

  .product-gallery__main-wrap {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }

  .product-gallery__thumbs {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    gap: 10px;
  }

  .product-gallery__thumb {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: auto;
    aspect-ratio: 1;
  }

  .product-details__title {
    font-size: var(--heading-lg);
    line-height: 1.2;
  }

  .product-details__config {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-details__config-option {
    min-height: 64px;
    padding: 12px;
  }

  .product-details__atc {
    height: var(--btn-height-mobile);
    font-size: 15px;
  }

  .product-rec__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .product-rec__title {
    font-size: var(--heading-lg);
  }

  .product-rec__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .rec-card__media {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .rec-card__title {
    font-size: 14px;
    min-height: 0;
    line-height: 1.35;
  }
}

@media (max-width: 640px) {
  .product-bc {
    font-size: 10px;
    margin-bottom: 20px;
  }

  .product-details__config {
    grid-template-columns: 1fr;
  }

  .product-details__purchase {
    flex-direction: column;
    gap: 12px;
  }

  .product-details__qty {
    width: 100%;
    height: var(--btn-height-mobile);
  }

  .product-details__atc {
    width: 100%;
  }

  .product-details__price-box {
    padding: 16px;
    margin-bottom: 20px;
  }

  .product-rec__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ──────────────────────────────────────────────────────────────
   12. CART
   ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-main__title {
    font-size: var(--heading-lg);
    line-height: 1.2;
  }

  .cart-main__head {
    height: auto;
    min-height: 48px;
    margin-bottom: 20px;
    align-items: center;
  }

  .order-summary {
    padding: 20px;
  }

  .order-summary__title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .order-summary .btn--checkout,
  .order-summary .btn--continue {
    min-height: var(--btn-height-mobile);
    height: var(--btn-height-mobile);
  }
}

@media (max-width: 640px) {
  .page-cart {
    padding: 20px 0 40px;
  }

  .cart-item {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .cart-item__img {
    width: 88px;
    height: 88px;
  }

  .cart-item--primary .cart-item__title {
    font-size: 16px;
    line-height: 1.35;
  }

  .cart-item--compact .cart-item__title {
    font-size: 14px;
  }

  .cart-item__price {
    font-size: 17px;
  }

  .cart-item__top {
    flex-direction: column;
    gap: 4px;
  }

  .cart-item__price {
    align-self: flex-start;
  }

  .cart-item__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
  }

  .cart-item__controls {
    justify-content: space-between;
    width: 100%;
  }

  .cart-item .qty {
    height: var(--touch-target);
  }

  .cart-item .qty__btn {
    min-width: var(--touch-target);
    height: 100%;
  }

  .cart-item__remove {
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
  }

  .addon-grid {
    grid-template-columns: 1fr;
  }

  .engineering-note {
    padding: 16px 16px 16px 40px;
    margin-top: 20px;
    min-height: auto;
  }

  .engineering-note::before {
    left: 14px;
    top: 16px;
    height: calc(100% - 32px);
  }
}


/* ──────────────────────────────────────────────────────────────
   13. CHECKOUT & ORDER REVIEW
   ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .checkout-layout,
  .order-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .checkout-form-panel,
  .checkout-summary {
    padding: 20px;
  }

  .checkout-form__title,
  .checkout-summary__title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .checkout-summary .btn--payment {
    height: var(--btn-height-mobile);
    font-size: 17px;
  }

  .order-header__title {
    font-size: var(--heading-xl);
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  .checkout-form__grid,
  .checkout-form__address-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .checkout-trust-strip {
    padding: 16px 16px 16px 56px;
    min-height: auto;
  }

  .checkout-trust-strip__title {
    font-size: 18px;
    line-height: 1.3;
  }

  .checkout-trust-strip__text {
    font-size: 14px;
    line-height: 1.5;
  }

  .checkout-summary__badges {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-checkout {
    padding: 20px 0 40px;
  }

  .checkout-stepper {
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .checkout-step {
    font-size: 10px;
    gap: 8px;
  }

  .checkout-step__num {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .order-panel {
    padding: 16px;
  }
}


/* ──────────────────────────────────────────────────────────────
   14. ABOUT & CONTACT
   ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-hero,
  .about-intro,
  .about-values,
  .about-mission,
  .about-story,
  .about-cta {
    padding: var(--section-space) 0;
  }

  .about-hero {
    min-height: 320px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .about-hero__title {
    font-size: var(--heading-xl);
  }

  .about-intro__grid,
  .about-story__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-intro__lead {
    font-size: var(--heading-md);
    line-height: 1.35;
  }

  .about-values__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-value-card {
    padding: 20px;
  }

  .about-value-card--wide {
    max-width: none;
  }

  .about-mission__panel {
    padding: 20px;
  }

  .about-cta__title,
  .contact-cta__title {
    font-size: var(--heading-md);
    letter-spacing: 0.06em;
  }

  .contact-section {
    padding: var(--section-space) 0;
  }

  .contact-section__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-info__heading,
  .contact-page-head__title {
    font-size: var(--heading-lg);
  }

  .contact-form-panel {
    padding: 20px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-form__submit .btn--primary {
    min-height: var(--btn-height-mobile);
  }

  .contact-links__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-link-card {
    padding: 20px;
  }

  .contact-links,
  .contact-cta {
    padding: var(--section-space) 0;
  }
}


/* ──────────────────────────────────────────────────────────────
   15. FOOTER — mobile-first component polish
   ────────────────────────────────────────────────────────────── */

/* Desktop: accordions always expanded, no toggle UI */
@media (min-width: 769px) {
  .footer__details > summary {
    pointer-events: none;
    cursor: default;
  }

  .footer__details > summary::after {
    display: none;
  }

  .footer__details > summary.footer__heading {
    margin-bottom: 16px;
  }

  .footer__phone-cta {
    margin-bottom: 4px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .footer {
    padding-top: 32px;
  }

  .footer .footer__container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  .footer__top,
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 8px;
  }

  /* Brand block */
  .footer__brand {
    gap: 10px;
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-border-accent);
  }

  .footer__logo img {
    width: 112px;
    height: auto;
  }

  .footer__desc {
    max-width: none;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-muted);
  }

  .footer__tagline {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .footer__brand .footer__follow {
    margin-top: 16px;
  }

  .footer__social-label {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .footer__social a {
    width: 44px;
    height: 44px;
  }

  /* Accordion link groups */
  .footer__menus {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer__menu {
    border-bottom: 1px solid var(--color-border-accent);
  }

  .footer__details > summary.footer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    margin: 0;
    padding: 14px 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .footer__details > summary.footer__heading::after {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-navy);
    border-bottom: 2px solid var(--color-navy);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.7;
  }

  .footer__details[open] > summary.footer__heading::after {
    transform: rotate(-135deg);
  }

  .footer__details .footer__links,
  .footer__details .footer__contact-body {
    padding-bottom: 16px;
  }

  .footer__links li {
    margin-bottom: 0;
  }

  .footer__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--color-text-muted);
  }

  .footer__links a:hover,
  .footer__links a:focus-visible {
    color: var(--color-primary);
  }

  /* Contact: tap-to-call CTA */
  .footer__phone-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    margin-bottom: 4px;
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 0;
    transition: background 0.2s ease;
  }

  .footer__phone-cta:hover,
  .footer__phone-cta:focus-visible {
    background: #243447;
    color: var(--color-white);
  }

  .footer__links--contact span {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-muted);
  }

  /* Legal bar */
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding: 20px 0 28px;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
  }

  .footer__bottom > span {
    max-width: 280px;
  }

  .footer__legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
  }

  .footer__legal a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 480px) {
  .footer {
    padding-top: 28px;
  }

  .footer__bottom {
    padding-bottom: 24px;
  }

  .footer__legal {
    flex-direction: column;
    gap: 4px;
  }
}


/* ──────────────────────────────────────────────────────────────
   16. AUTH PAGES
   ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  html:has(body.login-page),
  html:has(body.signup-page) {
    height: auto;
    overflow: auto;
  }

  body.login-page,
  body.signup-page {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  .login-main,
  .signup-main {
    overflow: visible;
  }

  .login-main__center,
  .signup-main__center {
    height: auto;
    padding: 24px var(--container-padding) 40px;
    align-items: flex-start;
  }

  .login-card,
  .signup-card {
    padding: 28px 20px;
    width: 100%;
    max-width: 440px;
  }

  .login-card__title,
  .signup-card__title {
    font-size: var(--heading-lg);
    line-height: 1.25;
  }

  .login-form input,
  .signup-form input {
    min-height: var(--input-height-mobile);
    font-size: 16px;
  }
}


/* ──────────────────────────────────────────────────────────────
   17. NAV & ANNOUNCEMENT
   ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root {
    --announcement-height: 32px;
    --nav-bar-height: 64px;
    --site-topbar-height: calc(var(--announcement-height) + var(--nav-bar-height));
  }

  .announcement {
    position: sticky;
    top: 0;
    z-index: 101;
  }

  .header {
    top: var(--announcement-height);
  }

  .nav {
    min-height: var(--nav-bar-height);
    height: var(--nav-bar-height);
  }

  .nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .nav__logo img {
    width: 104px;
    height: 37px;
  }

  .nav__toggle {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }

  .nav__cart {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav__links a,
  .nav-dropdown__trigger {
    border-radius: var(--radius-sm);
  }

  .nav__links a.is-active,
  .nav-dropdown.is-active-nav .nav-dropdown__trigger {
    background: rgba(192, 57, 43, 0.06);
  }
}

/* Mobile mega menu — accordion pattern (Vehicles / Categories) */
.nav-mega__mobile {
  display: none;
}

@media (max-width: 1100px) {
  .nav-mega__inner {
    display: none !important;
  }

  .nav-mega__mobile {
    display: block;
    margin-top: 8px;
    padding: 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    animation: navMobileSubIn 0.22s ease;
  }

  @keyframes navMobileSubIn {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-dropdown.is-open .nav-dropdown__trigger {
    color: var(--color-primary-dark);
    font-weight: 700;
    background: rgba(192, 57, 43, 0.06);
    border-bottom-color: transparent;
  }

  .nav-dropdown.is-open .nav-dropdown__chevron {
    transform: rotate(180deg);
    opacity: 1;
  }

  .nav-mega__mobile-eyebrow {
    margin: 0 0 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-navy-muted);
  }

  .nav-mega__mobile-groups {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .nav-mega__mobile-group {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .nav-mega__mobile-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-mega__mobile-summary::-webkit-details-marker {
    display: none;
  }

  .nav-mega__mobile-summary-label {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy);
    text-align: left;
  }

  .nav-mega__mobile-summary-meta {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }

  .nav-mega__mobile-summary::after {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-navy);
    border-bottom: 2px solid var(--color-navy);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    opacity: 0.65;
  }

  .nav-mega__mobile-group[open] > .nav-mega__mobile-summary {
    background: rgba(44, 62, 80, 0.04);
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-mega__mobile-group[open] > .nav-mega__mobile-summary::after {
    transform: rotate(-135deg);
  }

  .nav-mega__mobile-panel {
    padding: 6px 0 8px;
    background: var(--color-bg);
  }

  .nav-mega__mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-slate);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }

  .nav-mega__mobile-link-label {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
  }

  .nav-mega__mobile-link:hover,
  .nav-mega__mobile-link:focus-visible {
    background: var(--color-white);
    color: var(--color-navy);
    border-left-color: var(--color-primary);
  }

  .nav-mega__mobile-count {
    flex-shrink: 0;
    min-width: 24px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: var(--color-navy-muted);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 999px;
  }

  .nav-mega__mobile-shop-all {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 4px 14px 6px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    text-decoration: none;
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-sm);
    background: rgba(192, 57, 43, 0.04);
  }

  .nav-mega__mobile-shop-all:hover {
    background: rgba(192, 57, 43, 0.08);
  }

  .nav-mega__mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    background: var(--color-navy);
    border-radius: var(--radius-sm);
    transition: background 0.15s;
  }

  .nav-mega__mobile-cta:hover {
    background: #243447;
    color: var(--color-white);
  }
}

@media (max-width: 480px) {
  .announcement {
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  .nav__logo img {
    width: 96px;
    height: 34px;
  }
}
