html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f1e8;
  --panel: rgba(255,252,246,.92);
  --line: rgba(89,72,49,.16);
  --line-strong: rgba(89,72,49,.28);
  --text: #241f19;
  --muted: #756a5b;
  --soft: #4d453b;
  --red: #c71927;
  --red-dark: #9f111d;
}

html[data-theme="light"] body {
  color: var(--text);
  background: radial-gradient(circle at 78% 6%, rgba(199,25,39,.12), transparent 28%), linear-gradient(180deg,#fffaf1,#f0e5d5 58%,#e7dac8);
}

html[data-theme="light"] header {
  border-color: rgba(89,72,49,.14);
  background: rgba(255,250,241,.94);
}

html[data-theme="light"] nav {
  border-color: rgba(89,72,49,.14);
  color: #2a2219;
  background: linear-gradient(90deg,#f4e8d8,#e7d3bc);
}

html[data-theme="light"] .search,
html[data-theme="light"] .account-link,
html[data-theme="light"] .cart,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .outline {
  border-color: rgba(89,72,49,.18);
  color: #241f19;
  background: rgba(255,255,255,.68);
}

.mobile-theme-toggle {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.mobile-theme-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-theme-toggle .icon-sun,
html[data-theme="light"] .mobile-theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .mobile-theme-toggle .icon-sun {
  display: block;
}

.catalog-mobile-filter-toggle {
  display: none;
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .wrap,
  main > section,
  .catalog-shell,
  .product-page-shell,
  .footer-grid,
  .footer-credit {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .topbar .wrap {
    gap: 3px;
    padding: 7px 0;
    font-size: 11px;
    line-height: 1.35;
  }

  header {
    position: relative;
  }

  header .wrap {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 11px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 150px;
    max-width: 55vw;
  }

  header .search,
  .search {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search input {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }

  .search button {
    min-width: 88px;
    padding: 11px 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .header-actions .theme-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .header-actions .account-link,
  .header-actions .cart {
    display: inline-flex !important;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    font-size: 13px;
  }

  .header-actions > .account-link:last-child {
    display: none !important;
  }

  .header-actions .account-link + .account-link {
    display: none !important;
  }

  .main-nav {
    width: 100%;
    overflow: hidden;
  }

  .main-nav .wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav .wrap::-webkit-scrollbar {
    display: none;
  }

  .main-nav .wrap > a,
  .main-nav .nav-dropdown > button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 9px;
    scroll-snap-align: start;
    font-size: 12px;
  }

  .main-nav .nav-dropdown {
    flex: 0 0 auto;
  }

  .main-nav .nav-dropdown-menu {
    display: none !important;
  }

  .drawer-overlay {
    width: 100vw;
    max-width: 100vw;
  }

  .drawer {
    right: 0;
    width: min(372px, 100vw);
    max-width: 100vw;
  }

  .tool-strip {
    padding-top: 10px;
  }

  .tool-strip-card,
  .page-hero-card {
    width: calc(100% - 24px);
    padding: 14px;
  }

  .tool-strip-form,
  .vehicle-map {
    grid-template-columns: 1fr;
  }

  .hero .inner {
    min-height: 360px;
    padding: 34px 12px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.05;
  }

  .quick-trust {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .trust-item {
    min-height: 0;
    padding: 13px;
  }

  .aztec-feature {
    width: calc(100% - 24px);
    margin-bottom: 12px;
  }

  .aztec-feature-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .aztec-visual {
    order: -1;
    min-height: 126px;
    transform: scale(.78);
    margin: -12px 0;
  }

  .aztec-feature h2 {
    font-size: 25px;
  }

  .aztec-feature p {
    font-size: 14px;
  }

  .aztec-scan-button {
    width: 100%;
  }

  .shipping-benefit-home {
    width: calc(100% - 24px);
  }

  .catalog-mobile-filter-toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--text);
    background: var(--panel);
    font-weight: 900;
    cursor: pointer;
  }

  .catalog-mobile-filter-toggle::after {
    content: "+";
    font-size: 22px;
  }

  .catalog-layout.filters-open .catalog-mobile-filter-toggle::after {
    content: "−";
  }

  .catalog-layout .catalog-filters {
    display: none;
  }

  .catalog-layout.filters-open .catalog-filters {
    display: grid;
  }

  .catalog-layout {
    display: flex;
    flex-direction: column;
  }

  .catalog-mobile-filter-toggle {
    order: -2;
  }

  .catalog-filters {
    order: -1;
    margin-bottom: 12px;
  }

  .catalog-panel,
  .catalog-card,
  .catalog-card-main,
  .catalog-card-side {
    min-width: 0;
  }

  .catalog-card {
    border-radius: 8px;
  }

  .catalog-card-media {
    min-height: 210px;
  }

  .catalog-card-main,
  .catalog-card-side {
    padding: 14px;
  }

  .catalog-card-actions,
  .product-buy-box,
  .product-page-actions {
    grid-template-columns: 1fr;
  }

  .catalog-card-actions > *,
  .product-buy-box button,
  .product-page-actions > * {
    width: 100%;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-pagination,
  .catalog-pagination-pages {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .product-page-shell {
    margin-top: 12px;
  }

  .product-page-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 8px;
  }

  .product-page-image {
    min-height: 250px;
    padding: 10px;
  }

  .product-page-title {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .product-buy-box {
    padding: 14px;
  }

  .product-page-related,
  .catalog-related,
  .catalog-specs,
  .product-oe-list {
    grid-template-columns: 1fr;
  }

  .product-fitment,
  .product-description,
  .product-specifications,
  .product-replacements,
  .product-oe-numbers {
    padding: 14px;
  }

  .scan-modal {
    width: 100vw;
    max-width: 100vw;
    padding: 8px;
  }

  .scan-dialog {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .scan-head {
    padding: 14px;
  }

  .scan-head h2 {
    padding-right: 6px;
    font-size: 21px;
  }

  .scan-head p {
    font-size: 13px;
  }

  .scan-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .scan-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .scan-camera,
  .scan-camera video {
    min-height: 220px;
    max-height: 42dvh;
  }

  .scan-frame {
    inset: 12%;
  }

  .scan-actions,
  .scan-tools {
    grid-template-columns: 1fr;
  }

  .scan-file,
  .scan-input input,
  .scan-device,
  [data-apply-scan] {
    width: 100%;
  }

  .expert-chat {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .chat-toggle {
    right: 12px;
    bottom: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

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

  .header-actions .account-link,
  .header-actions .cart {
    flex: 1 1 auto;
  }
}

html[data-theme="light"] .catalog-mobile-filter-toggle {
  border-color: rgba(89,72,49,.18);
  color: #241f19;
  background: rgba(255,252,246,.94);
}

html[data-theme="light"] .eyebrow {
  color: #3a3027;
}
