/*
Theme Name: KOCMNK Automotive
Theme URI: https://www.xingying1982.com/
Author: KOCMNK
Description: Русскоязычная тема для продажи китайских автомобилей и оригинальных запчастей с поддержкой WooCommerce.
Version: 1.4.3
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: kocmnk
*/

/* Elementor Free keeps the theme's visual system while making every home
   section independently selectable, movable and editable in the canvas. */
.km-elementor-home .elementor,
.km-elementor-home .elementor > .e-con,
.km-elementor-home .elementor-widget-kocmnk-home-section,
.km-elementor-home .elementor-widget-kocmnk-home-section > .elementor-widget-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.km-elementor-home .elementor > .e-con {
  --padding-top: 0;
  --padding-right: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --gap: 0;
}

.km-elementor-home .elementor-element + .elementor-element {
  margin-top: 0;
}

.km-elementor-empty {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed var(--km-line);
  background: #fafaf7;
  color: var(--km-muted);
  text-align: center;
}

:root {
  --km-ink: #1e2421;
  --km-muted: #66706b;
  --km-petrol: #071f1c;
  --km-petrol-2: #0c3029;
  --km-porcelain: #f5f4ef;
  --km-paper: #fff;
  --km-line: #dfe3df;
  --km-brass: #c9a86a;
  --km-brass-light: #e2c78f;
  --km-serif: Georgia, "Times New Roman", serif;
  --km-sans: "Segoe UI", Arial, Helvetica, sans-serif;
  --km-shadow: 0 22px 55px rgba(13, 31, 27, .12);
  --km-content-width: 1560px;
  --km-hero-height: 450px;
  --km-hero-mobile-height: 710px;
  --km-section-space: 30px;
  --km-product-ratio: 1.4;
  --km-parts-height: 430px;
  --km-story-height: 290px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--km-ink); font-family: var(--km-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.km-container { width: min(var(--km-content-width), calc(100% - 120px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.km-header { position: relative; z-index: 50; min-height: 44px; background: linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px) 0 0/56px 100%,var(--km-petrol); color: #fff; }
.km-header .km-container { width: min(1180px, calc(100% - 40px)); }
.km-header-row { min-height: 44px; display: flex; align-items: center; gap: 18px; }
.km-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.km-brand strong { font-family: var(--km-serif); font-size: 18px; letter-spacing: -.6px; }
.km-custom-logo img { width: auto; max-width: 138px; max-height: 30px; object-fit: contain; }
.km-brand small { max-width: 112px; padding-left: 9px; border-left: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.62); font-size: 6px; line-height: 1.35; text-transform: uppercase; letter-spacing: .45px; }
.km-nav { display: flex; height: 44px; align-items: stretch; justify-content: center; gap: 16px; margin-left: auto; }
.km-nav ul, .km-nav li { display: contents; margin: 0; padding: 0; list-style: none; }
.km-nav a { position: relative; display: flex; align-items: center; color: rgba(255,255,255,.72); font-size: 9px; white-space: nowrap; }
.km-nav a:hover { color: #fff; }
.km-nav .current-menu-item > a::after, .home .km-nav li:first-child > a::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 1px; background: var(--km-brass); content: ""; }
.km-header-actions { display: flex; align-items: center; gap: 6px; }
.km-header-actions a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 5px; color: rgba(255,255,255,.8); font-size: 10px; }
.km-cart-count { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--km-brass); color: var(--km-petrol); font-size: 9px; font-weight: 700; }
.km-menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; color: #fff; cursor: pointer; }

.km-hero { position: relative; min-height: var(--km-hero-height); overflow: hidden; background: var(--km-porcelain); }
.km-hero::before { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg,rgba(248,246,240,.28),transparent 52%); content: ""; }
.km-hero-background { position: absolute; inset: 0; }
.km-hero-background img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.km-hero-grid { position: relative; z-index: 2; min-height: var(--km-hero-height); }
.km-hero-copy { position: relative; z-index: 3; width: 49%; padding: 28px 0 58px; }
.km-eyebrow, .km-kicker { display: none; }
.km-hero h1 { margin: 0; font-family: var(--km-serif); font-size: clamp(34px,4vw,46px); font-weight: 500; line-height: .98; letter-spacing: -1.5px; }
.km-hero-copy > p:not(.km-eyebrow) { max-width: 430px; margin: 13px 0 14px; color: #56605b; font-size: 9px; line-height: 1.55; }
.km-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.km-button, .button, button.button, input.button { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid transparent; border-radius: 4px; background: var(--km-petrol); color: #fff; font-size: 9px; font-weight: 600; cursor: pointer; }
.km-button-light { border-color: #d5d9d5; background: rgba(255,255,255,.92); color: var(--km-ink); }
.km-button-gold { background: var(--km-brass-light); color: var(--km-petrol); }
.km-hero-visual { position: relative; min-width: 0; }
.km-hero-visual::before { position: absolute; top: 44px; right: -80px; width: 510px; height: 510px; border: 1px solid rgba(7,31,28,.11); border-radius: 50%; box-shadow: inset 0 0 0 42px rgba(255,255,255,.14),inset 0 0 0 43px rgba(7,31,28,.05),inset 0 0 0 95px rgba(255,255,255,.1); content: ""; }
.km-hero-visual img { position: absolute; z-index: 2; right: -3%; bottom: 72px; width: min(690px,105%); filter: saturate(.6) contrast(1.08) drop-shadow(0 30px 18px rgba(17,30,27,.22)); mix-blend-mode: multiply; }
.km-hero-stamp { position: absolute; z-index: 3; right: 40px; bottom: 74px; padding: 8px 16px; border: 1px solid rgba(7,31,28,.35); background: rgba(245,244,239,.82); font-family: var(--km-serif); font-weight: 700; backdrop-filter: blur(8px); }

.km-search-dock { position: relative; z-index: 10; margin-top: -35px; padding: 15px 16px 13px; border-radius: 7px; background: var(--km-petrol); color: #fff; box-shadow: var(--km-shadow); }
.km-search-dock form { display: grid; grid-template-columns: 165px 1fr 110px; align-items: center; gap: 10px; }
.km-search-dock label { font-family: var(--km-serif); font-size: 10px; line-height: 1.25; }
.km-search-dock input[type="search"] { width: 100%; height: 34px; padding: 0 12px; border: 1px solid #cfd5d1; border-radius: 4px; background: #fff; color: var(--km-ink); outline: 0; font-size: 10px; }
.km-search-examples { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 0 175px; color: rgba(255,255,255,.58); font-size: 7px; }

.km-section { padding: var(--km-section-space) 0; }
.km-section#catalog, .km-section#cars { padding: var(--km-section-space) 0; }
.km-section-alt { background: linear-gradient(180deg,#fff,#f8f8f5); border-top: 1px solid #eceeeb; }
.km-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 12px; }
.km-section-heading h2, .km-parts-copy h2, .km-story h2 { margin: 0; font-family: var(--km-serif); font-size: clamp(21px,2.55vw,28px); font-weight: 500; line-height: 1.1; letter-spacing: -1px; }
.km-section-heading > a { color: #5f6964; font-size: 10px; font-weight: 600; }
.km-brand-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.km-brand-card { display: flex; min-height: 72px; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--km-line); border-radius: 4px; background: #fff; text-align: left; transition: .2s ease; }
.km-brand-card:hover { border-color: var(--km-brass); transform: translateY(-2px); box-shadow: 0 9px 25px rgba(7,31,28,.08); }
.km-brand-card strong { min-width: 0; color: var(--km-petrol); font-size: 12px; font-weight: 600; letter-spacing: .15px; }
.km-brand-card span { color: #606965; font-size: 8px; }
.km-brand-logo { display: block; width: 48px; height: 32px; flex: 0 0 48px; object-fit: contain; }

.km-product-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.km-product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--km-line); border-radius: 5px; background: #fff; transition: .25s ease; }
.km-product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,37,32,.11); }
.km-product-image { position: relative; display: grid; height: auto; aspect-ratio: var(--km-product-ratio)/1; place-items: center; overflow: hidden; padding: 8px; background: #f4f5f3; cursor: pointer; }
.km-product-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.km-product-image .onsale, .km-product-image > span { position: absolute; top: 10px; left: 10px; min-width: auto; min-height: auto; margin: 0; padding: 4px 7px; border-radius: 2px; background: rgba(7,31,28,.9); color: #fff; font-size: 8px; line-height: 1.4; text-transform: uppercase; opacity: 0; pointer-events: none; transform: translateY(-5px); transition: opacity .2s ease, transform .2s ease; }
.km-product-image.is-active .onsale, .km-product-image.is-active > span { opacity: 1; transform: translateY(0); }
.km-favorite-button { position: absolute; z-index: 3; top: 9px; right: 9px; display: grid; width: 31px; height: 31px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 3px; background: rgba(255,255,255,.84); color: var(--km-petrol); font-size: 20px; line-height: 1; opacity: 0; pointer-events: none; transform: translateY(-5px); transition: opacity .2s ease, transform .2s ease, background .2s ease; }
.km-product-image.is-active + .km-favorite-button { opacity: 1; pointer-events: auto; transform: translateY(0); }
.km-favorite-button:hover, .km-favorite-button.is-selected { background: #fff; color: #8f6b2a; }
.km-product-body { display: flex; flex: 1; flex-direction: column; padding: 8px; }
.km-product-body h3 { min-height: 0; margin: 0; font-family: var(--km-serif); font-size: 11px; line-height: 1.2; }
.km-product-body p { margin: 2px 0 5px; color: #7a847f; font-size: 8px; }
.km-specs { display: flex; flex-wrap: nowrap; gap: 3px; padding: 5px 0; border-top: 1px solid #eceeec; border-bottom: 1px solid #eceeec; color: #69736e; font-size: 6px; }
.km-product-price { display: block; margin: auto 0 7px; padding-top: 7px; font-size: 12px; font-weight: 700; }
.km-product-card .km-button { width: 100%; min-height: 28px; padding: 0 8px; font-size: 8px; }
.km-parts-products { grid-template-columns: repeat(4,minmax(0,1fr)); }
.km-contain-image img { object-fit: contain; padding: 12px; }
.km-oem { margin-bottom: 8px !important; color: #8b6c36 !important; font-size: 9px !important; font-weight: 700; letter-spacing: .7px; }
.km-availability { margin-top: 13px; color: #5f6964; font-size: 9px; }

.km-parts-atlas { --km-parts-image-height: var(--km-parts-height); min-height: calc(var(--km-parts-image-height) + 93px); padding: 13px 0 11px; overflow: hidden; border-block: 1px solid #e8e6e0; background: #f4f1eb var(--km-parts-image,url("assets/images/parts-banner.webp")) center top/100% auto no-repeat; }
.km-parts-grid { display: grid; min-height: var(--km-parts-image-height); grid-template-columns: .82fr 1.18fr; align-items: center; }
.km-parts-copy { position: relative; z-index: 3; }
.km-parts-copy > p:not(.km-kicker) { max-width: 470px; margin: 10px 0 13px; color: #5f6964; font-size: 8px; line-height: 1.7; }
.km-parts-visual { position: relative; min-height: var(--km-parts-image-height); }
.km-parts-visual .diagram { position: absolute; top: 20px; right: -20px; width: 390px; opacity: .28; mix-blend-mode: multiply; }
.km-parts-visual .headlight { position: absolute; z-index: 2; bottom: 65px; left: 70px; width: 320px; filter: drop-shadow(0 18px 16px rgba(7,31,28,.16)); }
.km-parts-visual .bumper { position: absolute; z-index: 2; right: 0; bottom: 35px; width: 285px; filter: drop-shadow(0 18px 16px rgba(7,31,28,.16)); }
.km-category-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(95px,1fr)); gap: 5px; }
.km-category-grid a { display: grid; min-height: 69px; place-items: center; padding: 9px 5px; border: 1px solid #e1e3df; border-radius: 3px; background: rgba(255,255,255,.96); color: var(--km-petrol); font-size: 6.4px; text-align: center; }
.km-category-grid b { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #bac4be; border-radius: 50%; font-size: 6px; letter-spacing: .3px; }

.km-category-grid a:hover { background: var(--km-petrol); color: #fff; }

.km-loyalty { background: radial-gradient(circle at 20% 10%,rgba(201,168,106,.12),transparent 30%),linear-gradient(90deg,#061a18,#0b2924); color: #fff; }
.km-loyalty-grid { display: grid; min-height: 100px; grid-template-columns: 1.5fr .38fr .38fr .38fr .7fr; align-items: center; gap: 8px; }
.km-loyalty-intro { display: flex; align-items: center; gap: 12px; }
.km-laurel { display: grid; width: 54px; height: 54px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(201,168,106,.65); border-radius: 50%; color: var(--km-brass-light); font-family: var(--km-serif); font-size: 27px; }
.km-loyalty h2 { margin: 0 0 6px; font-family: var(--km-serif); font-size: 16px; font-weight: 500; }
.km-loyalty p { margin: 0; color: rgba(255,255,255,.6); font-size: 7px; }
.km-tier { display: grid; min-height: 58px; place-items: center; border-left: 1px solid rgba(201,168,106,.45); text-align: center; }
.km-tier small, .km-tier span { color: rgba(255,255,255,.62); font-size: 8px; }
.km-tier strong { color: var(--km-brass-light); font-family: var(--km-serif); font-size: 27px; font-weight: 500; line-height: 1; }

.km-trust { border-bottom: 1px solid #e6e8e5; }
.km-trust-grid { display: grid; min-height: 70px; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); align-items: center; }
.km-trust-grid div { display: grid; min-height: 55px; place-items: center; padding: 6px 8px; border-right: 1px solid #eceeeb; color: #4f5954; font-size: 7px; line-height: 1.4; text-align: center; }
.km-trust-grid b { color: var(--km-petrol); font-size: 11px; letter-spacing: 1px; }

.km-story-grid { display: grid; grid-template-columns: 1.45fr .75fr 1fr; gap: 7px; padding-block: 12px; }
.km-story { position: relative; height: var(--km-story-height); min-height: var(--km-story-height); overflow: hidden; border: 1px solid #e1e4e0; border-radius: 4px; background: linear-gradient(145deg,#f6f7f5,#e6ebe8); }
.km-story-content { position: relative; z-index: 2; height: 100%; padding: 14px; }
.km-story h2 { font-size: 18px; }
.km-story p:not(.km-kicker), .km-story li { color: #59645e; font-size: 7px; line-height: 1.65; }
.km-story ul { display: grid; gap: 5px; margin: 10px 0 13px; padding: 0; list-style: none; }
.km-story a:not(.km-button) { font-size: 7px; font-weight: 600; }
.km-about .km-story-content { width: 61%; background: linear-gradient(90deg,rgba(246,247,245,1) 80%,rgba(246,247,245,0)); }
.km-about > img { position: absolute; top: 0; right: 0; width: 58%; height: 100%; object-fit: cover; }
.km-story-background { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.km-story:not(.km-about) .km-story-content { background: linear-gradient(90deg,rgba(246,247,245,.98),rgba(246,247,245,.94) 55%,rgba(246,247,245,.2)); }
.km-contact-line { display: block; margin: 7px 0; font-size: 8px; font-weight: 600; }

.km-main { min-height: 55vh; padding: 55px 0; }
.km-content { max-width: 840px; }
.km-content h1 { font-family: var(--km-serif); font-size: clamp(38px,6vw,62px); font-weight: 500; }
.km-content h2 { margin-top: 35px; font-family: var(--km-serif); font-weight: 500; }
.km-page-title { padding-bottom: 24px; }
.km-block-content { overflow: clip; }
.km-block-content > :where(*:not(.alignwide):not(.alignfull)) { width: min(840px,calc(100% - 30px)); margin-right: auto; margin-left: auto; }
.km-block-content > .alignwide { width: min(var(--km-content-width),calc(100% - 30px)); margin-right: auto; margin-left: auto; }
.km-block-content > .alignfull { width: 100%; max-width: none; margin-right: 0; margin-left: 0; }
.km-landing-content, .km-canvas-content { min-height: 55vh; overflow: clip; }
.km-front-content { padding: var(--km-section-space) 0; overflow: clip; }
.kocmnk-canvas-page { margin: 0; }
.is-style-kocmnk-panel { border: 1px solid var(--km-line); border-radius: 5px; background: var(--km-porcelain); box-shadow: 0 18px 45px rgba(13,31,27,.08); }
.wp-block-button.is-style-kocmnk-outline .wp-block-button__link { border: 1px solid var(--km-petrol); background: transparent; color: var(--km-petrol); }
.has-petrol-background-color .wp-block-button.is-style-kocmnk-outline .wp-block-button__link { border-color: #fff; color: #fff; }
.is-style-kocmnk-frame img { padding: 7px; border: 1px solid var(--km-line); background: #fff; }

.km-footer { padding: 10px 0; background: linear-gradient(120deg,#071a18,#162422); color: #fff; }
.km-footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3,.75fr) 1.15fr; gap: 20px; }
.km-footer-brand strong { font-family: var(--km-serif); font-size: 27px; }
.km-footer p, .km-footer a { color: rgba(255,255,255,.58); font-size: 7px; }
.km-footer h3 { margin: 4px 0 9px; font-size: 8px; }
.km-footer-col a { display: block; margin: 5px 0; }
.km-footer-col ul, .km-footer-col li { margin: 0; padding: 0; list-style: none; }
.km-payments { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.km-payments span { display: grid; min-height: 26px; place-items: center; border-radius: 3px; background: #fff; color: var(--km-petrol); font-size: 10px; font-weight: 800; }
.km-footer-bottom { display: flex; gap: 24px; margin-top: 14px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.34); font-size: 6px; }
.km-footer-bottom span { margin-right: auto; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { color: var(--km-muted); font-size: 10px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin: 25px 0 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; padding: 12px 12px 16px; border: 1px solid var(--km-line); border-radius: 5px; background: #fff; }
.woocommerce ul.products li.product a img { height: 210px; object-fit: contain; background: #f6f7f5; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 45px; padding: 8px 0 3px; font-family: var(--km-serif); font-size: 17px; color: var(--km-ink); }
.woocommerce ul.products li.product .price { color: var(--km-ink); font-size: 15px; font-weight: 700; }
.woocommerce div.product div.images img { background: #f4f5f3; }
.woocommerce div.product .product_title { font-family: var(--km-serif); font-size: clamp(32px,4vw,52px); font-weight: 500; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--km-petrol); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--km-brass); }
.woocommerce-message::before, .woocommerce-info::before { color: #9d7f47; }
.woocommerce table.shop_table { border-color: var(--km-line); border-radius: 4px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; padding: 10px 12px; border: 1px solid #cfd5d1; border-radius: 3px; }

:focus-visible { outline: 2px solid var(--km-brass); outline-offset: 3px; }

@media (max-width: 1050px) {
  .km-nav { gap: 12px; }
  .km-nav a { font-size: 9px; }
  .km-brand-grid { grid-template-columns: repeat(4,1fr); }
  .km-parts-products { grid-template-columns: repeat(3,1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 920px) {
  .km-brand small, .km-header-actions .km-login-label { display: none; }
}

@media (max-width: 820px) {
  .km-container { width: min(100% - 30px,680px); }
  .km-header, .km-header-row { min-height: 64px; }
  .km-menu-toggle { display: grid; place-items: center; }
  .km-nav { position: absolute; top: 64px; right: 15px; left: 15px; display: none; height: auto; margin: 0; padding: 12px; border-radius: 0 0 5px 5px; background: var(--km-petrol); box-shadow: 0 20px 40px rgba(5,20,18,.26); }
  .km-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; }
  .km-nav a { min-height: 42px; padding: 0 8px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 11px; }
  .km-nav a:first-child::after { display: none; }
  .km-header-actions { margin-left: auto; }
  .km-hero, .km-hero-grid { min-height: var(--km-hero-mobile-height); }
  .km-hero-grid { display: block; }
  .km-hero-copy { width: 100%; max-width: 620px; padding: 50px 0 0; }
  .km-hero-visual { position: absolute; right: -70px; bottom: 0; left: 0; height: 330px; }
  .km-hero-visual img { right: 0; bottom: 35px; width: 610px; }
  .km-search-dock { margin-top: -34px; }
  .km-search-dock form { grid-template-columns: 1fr 120px; }
  .km-search-dock label { grid-column: 1/-1; }
  .km-search-examples { margin-left: 0; }
  .km-brand-grid { grid-template-columns: repeat(4,1fr); }
  .km-product-grid { grid-template-columns: 1fr 1fr; }
  .km-parts-products { grid-template-columns: 1fr 1fr; }
  .km-parts-atlas { min-height: 0; background: #f4f1eb; }
  .km-parts-grid { min-height: 0; grid-template-columns: 1fr; }
  .km-parts-visual { min-height: 260px; background: var(--km-parts-image,url("assets/images/parts-banner.webp")) 74% center/auto 235px no-repeat; }
  .km-loyalty-grid { grid-template-columns: 1fr 1fr; padding: 25px 0; }
  .km-loyalty-intro { grid-column: 1/-1; }
  .km-trust-grid { grid-template-columns: repeat(3,1fr); padding: 18px 0; }
  .km-story-grid { grid-template-columns: 1fr; }
  .km-about { grid-column: auto; }
  .km-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
  .km-container { width: calc(100% - 24px); }
  .km-header-actions .km-login, .km-header-actions .km-search-link { display: none; }
  .km-hero, .km-hero-grid { min-height: var(--km-hero-mobile-height); }
  .km-hero h1 { font-size: 42px; letter-spacing: -1.8px; }
  .km-hero-copy > p:not(.km-eyebrow) { font-size: 13px; }
  .km-actions .km-button { width: 100%; }
  .km-hero-visual { right: -110px; height: 260px; }
  .km-hero-visual img { right: 34px; width: 480px; }
  .km-hero-visual::before { display: none; }
  .km-search-dock form { grid-template-columns: 1fr; }
  .km-search-dock .km-button { width: 100%; }
  .km-section { padding: 54px 0; }
  .km-section-heading { display: block; }
  .km-section-heading > a { display: inline-block; margin-top: 12px; }
  .km-brand-grid { grid-template-columns: repeat(2,1fr); }
  .km-brand-card { min-height: 64px; gap: 9px; padding: 8px 10px; }
  .km-brand-logo { width: 40px; height: 28px; flex-basis: 40px; }
  .km-product-grid { grid-template-columns: 1fr; }
  .km-parts-products { grid-template-columns: 1fr; }
  .km-product-image { height: auto; }
  .km-parts-atlas { padding-top: 42px; }
  .km-parts-visual { min-height: 210px; background-position: 74% center; background-size: auto 190px; }
  .km-category-grid { grid-template-columns: repeat(2,1fr); }
  .km-trust-grid { grid-template-columns: 1fr 1fr; padding: 0; }
  .km-about .km-story-content { width: 100%; background: linear-gradient(180deg,#f6f7f5 68%,rgba(246,247,245,.3)); }
  .km-about > img { top: auto; bottom: 0; width: 100%; height: 42%; }
  .km-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .km-footer-brand, .km-footer-payments { grid-column: 1/-1; }
  .km-footer-bottom { display: grid; gap: 8px; }
  .km-footer-bottom span { margin: 0; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 1.4.3 desktop proportion pass.
   The supplied art direction is a broad automotive catalogue, so wide
   screens use their space instead of shrinking the whole page into a narrow
   column. Mobile rules above remain unchanged. */
@media (min-width: 821px) {
  .km-container { width: min(var(--km-content-width),calc(100% - 80px)); }

  .km-header,
  .km-header-row { min-height: 64px; }
  .km-header .km-container { width: min(var(--km-content-width),calc(100% - 80px)); }
  .km-header-row { gap: 28px; }
  .km-brand { gap: 13px; }
  .km-brand strong { font-size: 24px; }
  .km-custom-logo img { max-width: 185px; max-height: 42px; }
  .km-brand small { max-width: 150px; padding-left: 13px; font-size: 9px; }
  .km-nav { height: 64px; gap: 24px; }
  .km-nav a { font-size: 13px; }
  .km-nav .current-menu-item > a::after,
  .home .km-nav li:first-child > a::after { bottom: 11px; }
  .km-header-actions { gap: 9px; }
  .km-header-actions a { padding: 10px 6px; font-size: 13px; }

  .km-hero-copy { width: 47%; padding: 52px 0 105px; }
  .km-hero h1 { font-size: clamp(52px,4.2vw,72px); line-height: 1.01; letter-spacing: -2.2px; }
  .km-hero-copy > p:not(.km-eyebrow) { max-width: 610px; margin: 20px 0 22px; font-size: 14px; line-height: 1.55; }
  .km-actions { gap: 14px; }
  .km-button,
  .button,
  button.button,
  input.button { min-height: 46px; padding: 0 23px; border-radius: 5px; font-size: 13px; }

  .km-search-dock { margin-top: -50px; padding: 21px 24px 18px; border-radius: 10px; }
  .km-search-dock form { grid-template-columns: 220px 1fr 150px; gap: 15px; }
  .km-search-dock label { font-size: 14px; }
  .km-search-dock input[type="search"] { height: 46px; padding: 0 16px; font-size: 13px; }
  .km-search-examples { gap: 12px; margin: 8px 0 0 235px; font-size: 10px; }

  .km-section { padding: var(--km-section-space) 0; }
  .km-section-heading { margin-bottom: 20px; }
  .km-section-heading h2,
  .km-parts-copy h2,
  .km-story h2 { font-size: clamp(30px,2.25vw,40px); line-height: 1.12; letter-spacing: -1.25px; }
  .km-section-heading > a { font-size: 13px; }

  .km-brand-grid { gap: 13px; }
  .km-brand-card { min-height: 98px; gap: 17px; padding: 15px 20px; border-radius: 6px; }
  .km-brand-logo { width: 72px; height: 44px; flex-basis: 72px; }
  .km-brand-card strong { font-size: 15px; }
  .km-brand-card span { font-size: 11px; }

  .km-product-grid { gap: 16px; }
  .km-product-card { border-radius: 7px; }
  .km-product-image { aspect-ratio: var(--km-product-ratio)/1; padding: 12px; }
  .km-product-body { padding: 14px; }
  .km-product-body h3 { font-size: 17px; line-height: 1.25; }
  .km-product-body p { margin: 5px 0 8px; font-size: 12px; }
  .km-specs { flex-wrap: wrap; gap: 6px 10px; padding: 9px 0; font-size: 10px; }
  .km-product-price { margin-bottom: 11px; padding-top: 11px; font-size: 19px; }
  .km-product-card .km-button { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .km-oem { margin-bottom: 11px !important; font-size: 12px !important; }
  .km-availability { margin-top: 15px; font-size: 12px; }

  .km-parts-atlas { min-height: calc(var(--km-parts-height) + 132px); padding: 25px 0 20px; }
  .km-parts-grid { grid-template-columns: .78fr 1.22fr; }
  .km-parts-copy > p:not(.km-kicker) { max-width: 620px; margin: 16px 0 20px; font-size: 13px; line-height: 1.65; }
  .km-category-grid { grid-template-columns: repeat(10,minmax(0,1fr)); gap: 8px; margin-top: 15px; }
  .km-category-grid a { min-height: 92px; padding: 12px 7px; border-radius: 5px; font-size: 10px; }
  .km-category-grid b { width: 31px; height: 31px; font-size: 9px; }

  .km-loyalty-grid { min-height: 142px; gap: 14px; }
  .km-laurel { width: 72px; height: 72px; font-size: 35px; }
  .km-loyalty h2 { font-size: 23px; }
  .km-loyalty p { font-size: 11px; }
  .km-tier { min-height: 78px; }
  .km-tier small,
  .km-tier span { font-size: 11px; }
  .km-tier strong { font-size: 37px; }

  .km-trust-grid { min-height: 96px; }
  .km-trust-grid div { min-height: 76px; padding: 9px 12px; font-size: 11px; }
  .km-trust-grid b { font-size: 15px; }

  .km-story-grid { gap: 13px; padding-block: 22px; }
  .km-story-content { padding: 22px; }
  .km-story h2 { font-size: 26px; }
  .km-story p:not(.km-kicker),
  .km-story li { font-size: 11px; }
  .km-story a:not(.km-button),
  .km-contact-line { font-size: 11px; }

  .km-footer { padding: 30px 0 20px; }
  .km-footer-grid { gap: 30px; }
  .km-footer-brand strong { font-size: 34px; }
  .km-footer p,
  .km-footer a { font-size: 11px; }
  .km-footer h3 { font-size: 13px; }
  .km-payments span { min-height: 38px; font-size: 13px; }
  .km-footer-bottom { margin-top: 22px; padding-top: 14px; font-size: 10px; }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .km-container,
  .km-header .km-container { width: calc(100% - 40px); }
  .km-header-row { gap: 16px; }
  .km-nav { gap: 13px; }
  .km-nav a { font-size: 11px; }
  .km-hero-copy { width: 53%; }
  .km-hero h1 { font-size: 50px; }
  .km-search-dock form { grid-template-columns: 180px 1fr 125px; }
  .km-search-examples { margin-left: 195px; }
  .km-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .km-brand-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .km-parts-products { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .km-category-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
