:root {
    color-scheme: light;
    --ink: #191b1f;
    --muted: #595d65;
    --amber: #f9ad2c;
    --paper: #f7f6f2;
    --line: #e4e2db;
    --shell: 1260px;
    font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 156px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #ad6214; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(var(--shell), calc(100% - 72px)); margin-inline: auto; }

.site-head { position: sticky; top: 0; z-index: 5; }
.topline { color: white; background: var(--ink); }
.top-inner { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: inline-flex; gap: 10px; align-items: center; width: max-content; font-size: 26px; font-weight: 700; letter-spacing: -.08em; }
.logo strong { color: var(--amber); }
.top-inner nav { display: flex; gap: clamp(18px, 4vw, 40px); color: #e9e8eb; font-size: .9rem; font-weight: 650; }
.top-inner nav a:hover { color: var(--amber); }
.bar { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px #1112; }
.vehicle-form { display: grid; grid-template-columns: 1fr 1fr minmax(10rem, 1.45fr) auto; align-items: end; gap: 10px; padding-block: 10px 12px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 4px; color: #464950; font-weight: 690; font-size: .74rem; }
.field input, .field select, .refine select { width: 100%; min-width: 0; padding: 0 12px; height: 41px; border: 1px solid #d8d8d5; border-radius: 7px; color: var(--ink); background: #fff; }
.field select:disabled { color: #64666c; background: #f4f4f1; cursor: default; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 41px; padding: 0 16px; border: 1px solid #d6d2c6; border-radius: 7px; background: #fff; font-size: .88rem; font-weight: 760; color: var(--ink); }
.button:hover { background: #f8efd9; }
.primary { border-color: var(--amber); background: var(--amber); color: #191b1f; white-space: nowrap; }
.primary:hover { background: #ffbd54; }

.hero { display: grid; align-items: center; min-height: clamp(330px, 34vw, 520px); color: #fff; background: linear-gradient(90deg, #131315 0%, #141416e0 23%, #14141645 57%, transparent 80%), #19191c url('/assets/garage.webp') center 57% / cover no-repeat; }
.hero-content { padding-block: 45px 48px; }
.hero-kicker { margin-bottom: 12px; color: #ffbb4b; font-weight: 800; letter-spacing: .035em; }
.hero h1 { max-width: 780px; font-size: clamp(3.25rem, 7vw, 7.15rem); font-weight: 870; letter-spacing: -.095em; line-height: .93; }
.hero h1 span { color: var(--amber); }
.hero-note { margin-top: 24px; max-width: 28ch; color: #eeece9; font-size: clamp(.95rem, 1.5vw, 1.2rem); }
.hero-button { margin-top: 22px; color: #fff; border-color: #fff8; background: #1115; }
.hero-button:hover { background: #362c1e; }
.popular { display: flex; align-items: center; gap: 18px; min-height: 67px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.popular strong { flex: 0 0 auto; font-size: .9rem; }
.popular-links { display: flex; gap: 7px; flex-wrap: wrap; }
.popular a { display: inline-block; padding: 5px 11px; border: 1px solid #dad7cf; border-radius: 999px; background: #fff; white-space: nowrap; font-size: .8rem; font-weight: 600; }
.popular a:hover { border-color: #ad6214; }

.catalog { padding-block: clamp(26px, 4vw, 56px); }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.catalog h1, .catalog h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); font-weight: 850; letter-spacing: -.072em; line-height: 1.05; }
.catalog-head p { margin-top: 7px; color: var(--muted); }
.reset { text-decoration: underline; color: var(--muted); font-size: .82rem; font-weight: 680; }
.categories { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.categories a { padding: 8px 11px; border: 1px solid #d8d5cd; border-radius: 7px; background: #fff; font-size: .83rem; font-weight: 700; }
.categories a.current { color: white; border-color: var(--ink); background: var(--ink); }
.categories a:not(.current):hover { border-color: #ba7621; }
.refine { display: flex; align-items: end; gap: 10px; margin-block: 16px; }
.refine label { font-size: .75rem; font-weight: 660; color: var(--muted); }
.refine select { display: block; height: 37px; margin-top: 3px; font-size: .86rem; }
.refine .button { min-height: 37px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.product { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.product-media { position: relative; display: grid; place-items: center; height: 158px; overflow: hidden; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(135deg,#f4f3ec,#f4f3ec 13px,#efeee6 13px,#efeee6 14px); }
.product-media .placeholder { opacity: .45; filter: saturate(.27); }
.product-media .photo { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px; object-fit: contain; background: #fff; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 13px; }
.meta { display: flex; gap: 6px 8px; flex-wrap: wrap; align-items: center; margin-bottom: 7px; color: var(--muted); font-size: .71rem; }
.stock { color: #62636a; font-weight: 690; white-space: nowrap; }
.stock::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 5px 1px 0; border-radius: 100%; background: #777982; }
.stock.yes { color: #266641; }
.stock.yes::before { background: #359457; }
.product h3 { margin-bottom: 7px; font-size: 1rem; line-height: 1.28; overflow-wrap: anywhere; }
.product h3 a:hover { text-decoration: underline; }
.fitment, .sku { margin-bottom: 3px; font-size: .77rem; color: var(--muted); overflow-wrap: anywhere; }
.offer-bottom { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 13px; }
.offer-bottom strong { display: block; font-size: 1.1rem; letter-spacing: -.04em; }
.pager { display: flex; justify-content: center; align-items: center; gap: 15px; padding-top: 25px; font-size: .9rem; }
.pager a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: white; font-weight: 650; }
.empty { padding: 32px; border-radius: 10px; border: 1px solid var(--line); background: white; }
.empty p { margin-block: 7px 15px; color: var(--muted); }
.footer { padding-block: 24px; color: #ddd; background: var(--ink); }
.footer .shell { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 22px; font-size: .78rem; }
.footer .logo { color: white; }

@media (max-width: 1050px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    html { scroll-padding-top: 197px; }
    .shell { width: calc(100% - 32px); }
    .top-inner { height: 52px; }
    .logo { font-size: 23px; }
    .logo img { width: 32px; height: 32px; }
    .vehicle-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 8px; padding-block: 7px 9px; }
    .field label { margin-bottom: 2px; }
    .field input, .field select { height: 36px; }
    .vehicle-form .primary { min-height: 36px; align-self: end; }
    .hero { min-height: 355px; background-image: linear-gradient(90deg, #131315ed, #131315c2 50%, #13131559), url("/assets/garage.webp"); background-position: center, 65% center; }
    .hero-content { padding-block: 32px; }
    .hero-note { margin-top: 14px; }
    .popular { align-items: start; flex-direction: column; gap: 7px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .product-media { height: 130px; }
}
@media (max-width: 400px) {
    .shell { width: calc(100% - 20px); }
    .top-inner nav { gap: 10px; font-size: .75rem; }
    .hero h1 { font-size: 3.05rem; }
    .product-body { padding: 9px; }
    .product h3 { font-size: .93rem; }
    .refine { flex-wrap: wrap; gap: 6px; }
    .refine .button { min-height: 30px; }
    .refine label { flex: 1 1 46%; min-width: 0; }
}

.cart-nav { display: inline-flex; align-items: center; gap: 6px; }
.cart-nav span { display: inline-grid; min-width: 21px; height: 21px; padding: 0 5px; align-content: center; text-align: center; border-radius: 20px; background: var(--amber); color: var(--ink); font-size: .72rem; }
.cart-nav[aria-current] { color: var(--amber); }

.notice { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-block: 14px 0; padding: 11px 15px; border: 1px solid #d8dfb7; border-radius: 8px; background: #f2f7df; font-size: .9rem; }
.notice a { font-weight: 780; text-decoration: underline; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 11px; margin-bottom: 18px; color: var(--muted); font-size: .83rem; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: .17em; }
.breadcrumbs a:hover { color: var(--ink); }
.vehicle-directory { margin-top: 22px; }
.vehicle-directory h2 { margin-bottom: 10px; font-size: 1.2rem; letter-spacing: -.03em; }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.directory-grid a { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 69px; padding: 8px 29px 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.directory-grid a:hover { border-color: #ba7621; }
.directory-grid small { color: var(--muted); font-size: .72rem; }
.directory-grid span { position: absolute; top: 10px; right: 11px; color: #96540b; font-weight: 850; }

.product-media .placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; opacity: 1; filter: none; }
.product-media .image-note { position: absolute; right: 7px; bottom: 7px; z-index: 1; padding: 2px 6px; color: #3f3e38; border-radius: 4px; background: #fcfbf3ef; font-size: .66rem; }
.product-media.with-photo .image-note { display: none; }
.product-media .photo { padding: 6px; }
.offer-bottom .button { min-height: 34px; padding-inline: 9px; gap: 5px; font-size: .77rem; }
.offer-bottom .unbuyable { color: var(--muted); font-size: .75rem; }
.product h3 a:focus-visible { outline-offset: 0; }
.add-form { margin: 0; }

.catalogue-page { min-height: 56vh; padding-block: clamp(24px, 3.5vw, 52px); }
.catalogue-page h1 { font-size: clamp(2rem, 4.2vw, 3.45rem); font-weight: 850; line-height: 1.06; letter-spacing: -.055em; overflow-wrap: anywhere; }
.catalogue-page > h1 + .button { margin-top: 16px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 3.25vw, 45px); }
.detail-gallery .product-media { height: clamp(280px, 38vw, 500px); border: 1px solid var(--line); border-radius: 12px; }
.detail-gallery .product-media .photo { padding: 12px; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.gallery-thumbs button { padding: 3px; width: 70px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.gallery-thumbs button[aria-pressed=true] { border-color: #9a6116; }
.gallery-thumbs img { object-fit: contain; }
.detail-heading h1 { margin-block: 7px 12px; font-size: clamp(1.95rem, 3.9vw, 3.2rem); }
.detail-heading .meta { font-size: .86rem; gap: 8px 13px; }
.detail-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.detail-buy > strong, .cart-summary > strong { font-size: 1.95rem; letter-spacing: -.04em; }
.detail-buy .unbuyable { color: var(--muted); font-size: .82rem; }
.fitment-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.fitment-badges a { padding: 4px 8px; border: 1px solid #e2d9c5; border-radius: 6px; background: #fffaf0; font-size: .77rem; }
.fitment-badges a:hover { border-color: #a8722d; }
.detail-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 29px; }
.detail-info section, .cart-summary { padding: 17px 20px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.detail-info h2, .cart-summary h2, .cart-empty h2 { margin-bottom: 7px; font-size: 1.28rem; font-weight: 840; letter-spacing: -.02em; }
.detail-info p { margin-block: 8px; color: #494c51; }
.specs { margin: 0; font-size: .88rem; }
.specs > div { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; padding-block: 8px; border-bottom: 1px solid #efede7; }
.specs > div:last-child { border: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 640; overflow-wrap: anywhere; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 270px); gap: 18px; align-items: start; margin-top: 18px; }
.cart-empty { margin-top: 18px; }
.cart-items { display: grid; gap: 9px; }
.cart-item { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.cart-item .product-media { height: 80px; border: 1px solid var(--line); border-radius: 6px; }
.cart-item .product-media .image-note { display: none; }
.cart-item-title h2 { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.cart-item-title h2 a:hover { text-decoration: underline; }
.cart-item-title .sku { display: block; margin-top: 4px; }
.cart-adjust { display: grid; grid-template-columns: auto auto; gap: 4px 6px; align-items: end; }
.cart-adjust label { font-size: .7rem; color: var(--muted); font-weight: 690; }
.cart-adjust input { display: block; width: 65px; min-height: 30px; margin-top: 4px; padding-inline: 6px; border: 1px solid var(--line); border-radius: 5px; }
.cart-adjust .button { min-height: 30px; padding-inline: 7px; font-size: .74rem; }
.remove { width: max-content; padding: 0; border: 0; background: none; color: #7c3026; font-size: .73rem; text-decoration: underline; }
.line-price { white-space: nowrap; }
.cart-summary > strong { display: block; }
.cart-summary .button { margin-top: 12px; }

@media (max-width: 820px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
    .directory-grid { grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); }
    .detail-layout, .detail-info { grid-template-columns: minmax(0, 1fr); }
    .detail-info { gap: 10px; margin-top: 19px; }
    .detail-gallery .product-media { height: 275px; }
    .cart-item { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 8px; padding: 8px; }
    .cart-item .product-media { height: 59px; }
    .cart-adjust { grid-column: 2; grid-row: 2; }
    .cart-item .line-price { grid-column: 3; grid-row: 1 / 3; }
    .cart-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; }
    .cart-summary h2 { margin-bottom: 0; }
    .cart-summary .button { grid-column: 1 / 3; }
}

.breadcrumbs [aria-current] { color: var(--ink); overflow-wrap: anywhere; }
.catalog-intro { max-width: 72ch; margin-top: 13px; color: #494c51; }
.catalog-copy { max-width: 76ch; margin-top: 32px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.catalog-copy h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); letter-spacing: -.04em; }
.catalog-copy p { margin-top: 9px; color: #494c51; }
.catalog-copy a { display: inline-block; margin-top: 11px; color: #783f08; font-weight: 720; text-decoration: underline; }
.cart-layout { grid-template-columns: minmax(0, 1fr) minmax(235px, 345px); }
.cart-summary { display: block; }
.cart-totals { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.cart-totals > strong { font-size: 1.7rem; letter-spacing: -.04em; white-space: nowrap; }
.checkout { margin-top: 15px; }
.checkout > p { margin-bottom: 10px; color: var(--muted); font-size: .85rem; }
.checkout form { display: grid; gap: 4px; }
.checkout form > label { margin-top: 6px; color: #3a3d43; font-size: .8rem; font-weight: 680; }
.checkout form > input:not([type=hidden]) { width: 100%; min-height: 40px; padding-inline: 10px; border: 1px solid #d8d8d5; border-radius: 6px; }
.checkout form > input[aria-invalid=true] { border-color: #9b3426; }
.checkout .checkout-footnote { margin-top: 7px; font-size: .76rem; }
.checkout-footnote a, .cart-continue { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.checkout .field-error { color: #8a2519; font-size: .78rem; }
.cart-continue { display: inline-block; margin-top: 14px; font-size: .82rem; }
.receipt { width: min(100%, 620px); padding: clamp(18px, 4vw, 34px); background: white; border: 1px solid var(--line); border-radius: 12px; }
.receipt-state { margin-bottom: 8px; color: #266641; font-weight: 800; }
.receipt p:not(.receipt-state), .privacy p { max-width: 58ch; margin-block: 13px; color: #494c51; }
.receipt .button { margin-top: 6px; }
.privacy { max-width: 76ch; }

@media (max-width: 820px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr); }
}

.footer-contacts { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 13px; }
.footer-contacts a { overflow-wrap: anywhere; max-width: 100%; }
.footer-contacts a, .privacy a:not(.button), .receipt-help { text-decoration: underline; text-underline-offset: .18em; }
.seller-public .seller-name { font-weight: 750; color: var(--ink); }
.seller-public h2 { margin-top: 14px; font-size: 1.2rem; }
.seller-public-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-block: 4px 11px; color: #784108; }
.seller-public-links a { overflow-wrap: anywhere; }
@media (max-width: 430px) {
    .top-inner .contacts-nav { display: none; }
}
