:root {
    --sidebar-w: 252px;
    --ink: #17324d;
    --muted: #5d6e80;
    --blue: #0b63b6;
    --blue-deep: #084f92;
    --navy: #163a63;
    --sidebar: #243746;
    --sidebar-head: #1c3042;
    --red: #e10600;
    --red-dark: #c10500;
    --yellow: #ffd60a;
    --line: #e3ebf2;
    --bg: #f4f7fb;
    --card: #ffffff;
    --shadow: 0 10px 28px rgba(18, 42, 74, 0.08);
    --font: "Manrope", "Segoe UI", sans-serif;
    --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
}

img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select { font-family: inherit; }

button { cursor: pointer; }

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 14px;
    clip: auto;
    background: #fff;
    color: var(--ink);
}

.topbar {
    background: #f7f9fb;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.topbar-inner,
.masthead-inner {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.footer-grid,
.newsletter,
.footer-bottom {
    width: min(1440px, calc(100% - 28px));
    margin: 0 auto;
}

.topbar-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px 0 16px;
}

.topbar-note { margin: 0; }

.topbar-tools,
.topbar-link,
.country-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-link {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 2px;
}

.topbar-link svg,
.tool-icon svg,
.example-toggle svg,
.sidebar-burger svg,
.sidebar-toggle svg,
.benefit-row svg,
.cat-tile-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.country-picker { position: relative; }

.caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.country-menu,
.example-pop,
.garage-panel,
.mini-cart,
.suggest {
    position: absolute;
    z-index: 50;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.country-menu {
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    margin: 0;
    padding: 6px;
    list-style: none;
}

.country-menu button {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 700;
    color: var(--ink);
}

.country-menu button:hover,
.country-menu button:focus-visible { background: var(--bg); }

.masthead {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.masthead-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(220px, 1fr) auto auto;
    align-items: center;
    column-gap: 14px;
    padding: 12px 18px 12px 8px;
    position: relative;
}

.logo-slot {
    width: var(--sidebar-w);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    overflow: hidden;
}

.logo,
.logo-slot .custom-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 0;
}

.logo-mark {
    width: 44px;
    height: 32px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
}

.logo-mark svg {
    width: 44px;
    height: 32px;
    display: block;
}

.logo-words {
    display: flex;
    flex-direction: column;
    line-height: .92;
    min-width: 0;
}

.logo-justat {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #111;
}

.logo-carpart {
    font-family: var(--display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
}

.custom-logo-link img,
.logo .custom-logo,
.logo-slot .custom-logo {
    display: block;
    max-height: 48px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 50px;
    border-radius: 999px;
    border: 1px solid #d5dee8;
    background: #fff;
    padding: 0 20px;
    font-size: 15px;
    color: var(--ink);
    outline: none;
}

.search-form input[type="search"]:focus { border-color: var(--blue); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.btn-navy {
    height: 50px;
    padding: 0 28px;
    background: var(--navy);
    color: #fff;
}

.btn-navy:hover { background: #0f2c4e; }

.btn-red {
    height: 42px;
    padding: 0 22px;
    background: var(--red);
    color: #fff;
}

.btn-red:hover { background: var(--red-dark); }

.btn-outline {
    height: 36px;
    padding: 0 16px;
    border: 2px solid var(--red);
    color: var(--red);
    background: #fff;
    font-size: 13px;
}

.btn-outline:hover { background: var(--red); color: #fff; }

.btn-cart,
.btn-block { width: 100%; }

.btn-cart {
    height: 40px;
    background: var(--red);
    color: #fff;
    font-size: 13px;
}

.btn-cart:hover { background: var(--red-dark); color: #fff; }

.example-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #607086;
    font-weight: 700;
}

.example-pop {
    top: 74px;
    left: calc(var(--sidebar-w) + 18px);
    width: min(280px, 70vw);
    padding: 14px;
}

.example-pop p { margin: 0 0 8px; font-weight: 800; }

.example-pop a {
    display: block;
    padding: 6px 0;
    color: var(--blue);
    font-weight: 700;
}

.suggest {
    top: calc(100% + 8px);
    left: 0;
    right: 86px;
    padding: 6px;
}

.suggest a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 700;
}

.suggest a small { color: var(--muted); font-weight: 600; }

.suggest a:hover { background: var(--bg); }

.header-tools {
    display: flex;
    align-items: stretch;
}

.tool,
.header-cart-link,
.garage-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 14px;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    text-align: left;
}

.tool-icon { position: relative; color: var(--navy); }

.count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.tool-copy { display: flex; flex-direction: column; line-height: 1.15; }

.tool-copy strong { font-size: 14px; }

.tool-copy small,
.part-sku,
.result-count { color: var(--muted); font-size: 12px; }

.garage,
.header-cart { position: relative; }

.garage-panel,
.mini-cart {
    top: calc(100% + 6px);
    right: 0;
    width: 280px;
    padding: 12px;
}

.garage-panel ul,
.mini-cart ul { list-style: none; margin: 0 0 10px; padding: 0; }

.garage-panel li,
.mini-cart li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.garage-panel button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
}

.site-body { display: block; }

.justat-catalog .site-body {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    align-items: start;
    width: min(1440px, 100%);
    margin: 0 auto;
}

.sidebar {
    background: var(--sidebar);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 100%;
}

.sidebar-kicker {
    margin: 0;
    padding: 16px 16px 0;
    color: rgba(255, 255, 255, .45);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cat-nav {
    min-height: min(460px, calc(100vh - 130px));
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

.cat-menu { list-style: none; margin: 0; padding: 6px 0 18px; }

.cat-menu > li {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.cat-menu > li > a {
    flex: 1;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 8px 4px 8px 16px;
    color: #f3f7fb;
    font-weight: 650;
    font-weight: 600;
    font-size: 14.5px;
}

.cat-menu > li:hover,
.cat-menu > li.is-active { background: rgba(255, 255, 255, .06); }

.cat-menu > li.is-active { box-shadow: inset 3px 0 0 var(--red); }

.flyout-toggle {
    width: 40px;
    height: 46px;
    border: 0;
    background: transparent;
    color: #fff;
}

.flyout-toggle svg { width: 16px; height: 16px; }

.flyout {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 250px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    z-index: 60;
}

.cat-menu > li:hover > .flyout,
.cat-menu > li:focus-within > .flyout,
.cat-menu > li.is-open > .flyout { display: block; }

.flyout a {
    display: block;
    padding: 9px 16px;
    font-weight: 700;
    color: var(--ink);
}

.flyout a:hover,
.flyout .is-active a { background: #f3f7fb; color: var(--blue); }

.sidebar-toggle,
.finder-toggle,
.catalog-bar { display: none; }

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 24, 38, .45);
    z-index: 35;
    border: 0;
}

.site-main { min-width: 0; }

.justat-catalog .site-main {
    background: var(--bg);
    padding-bottom: 28px;
}

.finder {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
    gap: 8px 18px;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(180deg, #0c6ec7 0%, var(--blue) 100%);
    color: #fff;
}

.finder-label {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
}

.finder-controls,
.reg-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.finder-controls select,
.reg-box {
    min-width: 0;
}

.finder-controls select {
    flex: 1;
    height: 36px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
}

.finder-reg { border-left: 1px solid rgba(255, 255, 255, .28); padding-left: 16px; }

.reg-box { align-items: stretch; }

.reg-cc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px 0 0 10px;
    background: #10283f;
    color: #fff;
    font-weight: 800;
}

.reg-cc svg { width: 20px; height: 12px; }

.finder-reg input {
    width: 128px;
    height: 36px;
    border: 0;
    background: var(--yellow);
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 0 10px;
}

.finder-reg input::placeholder { color: #1a1a1a; opacity: .7; }

.finder .btn-red { border-radius: 10px; height: 36px; padding: 0 16px; }

.promo {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 210px;
    gap: 10px;
    padding: 10px 16px 4px;
    align-items: stretch;
}

.finder-controls select:disabled {
    background: #fff;
    color: #8aa0b5;
    opacity: 1;
}

.promo-stack {
    display: grid;
    gap: 10px;
    height: 100%;
    grid-template-rows: 1fr 1fr;
}

.promo-card,
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(20, 40, 70, .04);
    min-height: 0;
}

.promo-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px 8px;
    color: var(--ink);
    min-height: 108px;
}

.promo-tall { min-height: 0; height: 100%; }

.promo-kicker,
.hero-title,
.promo-price,
.footer-brand {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: .92;
}

.promo-kicker { margin: 0; font-size: 18px; }

.promo-from {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.promo-price {
    margin: 0 0 6px;
    font-size: 24px;
}

.promo-price-small { font-size: 20px; margin-top: 6px; }

.promo-price .amount,
.promo-price .woocommerce-Price-amount,
.promo-price bdi { font: inherit; color: inherit; }

.promo-art { display: block; margin-top: auto; }

.promo-art svg,
.hero-art svg { width: 100%; height: auto; display: block; }

.promo-card.is-live .promo-brand {
    margin: 0 0 4px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.promo-card.is-live {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px;
    align-items: center;
    column-gap: 8px;
    padding: 8px 10px;
}

.promo-card.is-live .promo-copy { min-width: 0; }

.promo-card.is-live .promo-art { margin: 0; }

.promo-card.is-live .btn {
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
}

.promo-card.is-live .promo-kicker {
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-card.is-live .promo-price { font-size: 18px; margin: 2px 0 6px; }

.promo-photo,
.hero-photo {
    width: 100%;
    max-height: 64px;
    object-fit: contain;
    display: block;
}

.hero-slide.is-live .hero-title {
    max-width: none;
    font-size: 20px;
    line-height: 1.1;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo.is-slider-only { grid-template-columns: 1fr; }

.hero-price {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
}

.hero-price .amount,
.hero-price .woocommerce-Price-amount,
.hero-price bdi { font: inherit; color: inherit; }

.hero-photo { max-height: 96px; width: auto; margin-inline: auto; }

.brand-row a { color: inherit; }

.hero-slider {
    min-height: 0;
    height: 100%;
    padding: 12px 14px 28px;
    display: flex;
    flex-direction: column;
}

.hero-slides { flex: 1; min-height: 0; }

.hero-slide { display: none; }

.hero-slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.hero-kicker {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 8px;
    max-width: none;
    color: var(--blue);
    font-size: clamp(22px, 2.1vw, 30px);
}

.hero-art svg { max-height: 96px; width: auto; margin-inline: auto; }

.hero-art { margin: 0; }

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background: #d5dee8;
}

.hero-dots button.is-active { background: var(--blue); }

.catalog-block,
.home-section { padding: 6px 16px 18px; }

.admin-banner,
.vehicle-banner {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
}

.admin-banner a,
.vehicle-banner a { color: var(--blue); margin-left: 8px; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.section-head h1,
.section-head h2,
.plain-page h1,
.plain-page h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.03em;
}

.result-count { margin: 2px 0 0; }

.sort-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
}

.sort-form select,
.prose input,
.prose select,
.prose textarea,
.woocommerce form .input-text,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select {
    height: 40px;
    border: 1px solid #d5dee8;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    color: var(--ink);
    font-weight: 700;
}

.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.filter-chips a {
    flex: 0 0 auto;
    border: 1px solid #d7e1ea;
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.filter-chips a.is-active,
.filter-chips a:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.part-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.part-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6eef5;
    border-radius: 12px;
    overflow: hidden;
    min-height: 100%;
}

.part-card:hover {
    border-color: #b9d4ee;
    box-shadow: var(--shadow);
}

.part-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 180px;
    background: linear-gradient(180deg, #fbfcfe, #f3f6f9);
    padding: 12px;
}

.part-photo,
.part-media img { width: 100%; height: 160px; object-fit: contain; }

.part-art svg { width: min(180px, 100%); height: 140px; }

.sale-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: #fff;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.part-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 12px 14px;
    flex: 1;
}

.part-cat,
.part-cat a {
    margin: 0;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.part-title { margin: 0; font-size: 16px; line-height: 1.3; min-height: 2.6em; }

.part-title a:hover { color: var(--blue); }

.part-sku { margin: 0; }

.part-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 10px;
}

.part-price,
.part-price .amount,
.summary .price,
.summary .price .amount {
    color: var(--ink);
    font-weight: 800;
    font-size: 20px;
}

.part-price del,
.part-price del .amount { color: var(--muted); font-size: 14px; font-weight: 700; }

.part-price ins { text-decoration: none; }

.stock { font-size: 12px; font-weight: 800; }

.stock.in { color: #0d8a45; }

.stock.out { color: var(--red); }

.part-body .added_to_cart {
    display: block;
    margin-top: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--blue);
}

.add_to_cart_button.loading { opacity: .65; }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}

.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-weight: 800;
    text-align: center;
    font-size: 13px;
}

.cat-tile:hover { border-color: var(--blue); color: var(--blue); }

.cat-tile-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf3fb;
    color: var(--blue);
}

.brand-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-row li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 110px;
    text-align: center;
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.benefit-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 8px 16px 28px;
}

.benefit-row article {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--line);
}

.benefit-row span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf3fb;
    color: var(--blue);
    margin-bottom: 8px;
}

.benefit-row h3 { margin: 0 0 4px; font-size: 16px; }

.benefit-row p { margin: 0; color: var(--muted); }

.empty-catalog,
.plain-page {
    padding: 28px 20px 64px;
}

.justat-catalog .plain-page,
.product-shell,
.catalog-block .empty-catalog { padding: 16px; }

.plain-page {
    width: min(980px, 100%);
    margin: 0 auto;
}

.prose { font-size: 16px; }

.prose > *:first-child { margin-top: 0; }

.pager,
.woocommerce-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.pager-meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    font-weight: 800;
}

.pager-of { color: var(--muted); font-weight: 700; }

.pager ul,
.woocommerce-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.pager a,
.pager span,
.woocommerce-pagination a,
.woocommerce-pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 800;
}

.pager a:hover,
.woocommerce-pagination a:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.pager .current,
.woocommerce-pagination .current {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.pager .prev,
.pager .next,
.woocommerce-pagination .prev,
.woocommerce-pagination .next {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    font-size: 18px;
}

.pager .dots,
.woocommerce-pagination .dots {
    border: 0;
    background: transparent;
    min-width: 20px;
    color: var(--muted);
}

.site-footer { background: #163044; color: #d5e1ec; }

.newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 28px 18px;
}

.newsletter h2 { margin: 0 0 4px; color: #fff; font-size: 28px; }

.newsletter p { margin: 0; }

.newsletter-form { display: flex; gap: 8px; }

.newsletter-form input {
    height: 46px;
    min-width: min(280px, 60vw);
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
}

.form-note { margin: 0; padding: 0 18px 10px; font-weight: 800; }

.form-note.success { color: #b6f3cf; }

.form-note.error { color: #ffd0d0; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr .9fr;
    gap: 24px;
    padding: 10px 18px 28px;
}

.footer-brand { margin: 0 0 8px; font-size: 32px; color: #fff; }

.footer-brand span { color: #8ec4ff; }

.footer-grid h3 { margin: 0 0 10px; color: #fff; font-size: 16px; }

.footer-grid ul,
.footer-menu { list-style: none; margin: 0; padding: 0; }

.footer-grid li { margin: 6px 0; }

.footer-grid a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #9fb0c0;
    font-size: 13px;
}

.toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    max-width: min(360px, calc(100% - 32px));
    background: var(--ink);
    color: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.product-shell { padding: 18px 16px 36px; }

.product-shell .woocommerce-breadcrumb,
.catalog-block .woocommerce-breadcrumb { margin: 0 0 12px; color: var(--muted); font-size: 13px; }

.single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: 12px 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}

.woocommerce-product-gallery { grid-column: 1; grid-row: 1; }

.summary { grid-column: 2; grid-row: 1; }

.woocommerce-tabs,
.related,
.upsells { grid-column: 1 / -1; }

.single-product .single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: var(--red);
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    padding: 12px 22px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--red-dark); color: #fff; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #f4f8fc;
    border-top: 3px solid var(--blue);
    padding: 12px 14px;
    margin: 0 0 14px;
    list-style: none;
}

.woocommerce-error { background: #fff6f6; border-top-color: var(--red); }

.woocommerce table.shop_table { border-collapse: collapse; width: 100%; background: #fff; }

.woocommerce table.shop_table th,
.woocommerce table.shop_table td { border: 1px solid var(--line); padding: 10px; }

@media (max-width: 1180px) {
    .promo { grid-template-columns: 1fr 1fr; }
    .promo-tall { grid-column: 1 / -1; min-height: 120px; }
    .part-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .benefit-row,
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
    .topbar-note { display: none; }

    .masthead-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo tools"
            "search search";
        align-items: center;
        padding: 8px 12px 10px;
        gap: 8px 10px;
        min-height: 0;
    }

    .logo-slot {
        grid-area: logo;
        width: auto;
        height: 44px;
        padding: 0;
        min-width: 0;
    }

    .header-tools { grid-area: tools; margin-left: 0; }

    .search-form {
        grid-area: search;
        order: unset;
        flex: unset;
        width: 100%;
    }

    .custom-logo-link img,
    .logo .custom-logo,
    .logo-slot .custom-logo {
        max-height: 40px;
        max-width: min(190px, 52vw);
    }

    .example-toggle { display: none; }

    .justat-catalog .site-body { display: block; }

    .catalog-bar {
        display: flex;
        gap: 8px;
        padding: 8px 12px 0;
    }

    .sidebar-toggle,
    .finder-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
        height: 42px;
        padding: 0 10px;
        border: 0;
        border-radius: 999px;
        background: var(--sidebar);
        color: #fff;
        font-weight: 800;
        font-size: 12px;
        letter-spacing: 0;
        text-transform: none;
        white-space: nowrap;
        line-height: 1;
    }

    .sidebar-toggle svg,
    .finder-toggle svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }

    .finder-toggle { background: var(--blue); }

    .finder-toggle.is-open { background: var(--blue-deep); }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(84vw, 320px);
        transform: translateX(-105%);
        transition: transform .2s ease;
        overflow: auto;
        z-index: 45;
    }

    .sidebar-open .sidebar { transform: none; }

    .justat-catalog .site-main {
        display: flex;
        flex-direction: column;
    }

    .catalog-bar { order: 1; }
    .finder { order: 2; }
    .catalog-block { order: 3; }
    .promo { order: 4; }
    .home-section { order: 5; }
    .benefit-row { order: 6; }

    .finder {
        display: none;
        grid-template-columns: 1fr;
        margin: 8px 12px 0;
        padding: 12px;
        min-height: 0;
        border-radius: 14px;
    }

    .finder.is-open { display: grid; }

    .finder-reg { border-left: 0; padding-left: 0; }

    .flyout {
        position: static;
        width: 100%;
        display: none;
        background: #1b2e3e;
        box-shadow: none;
    }

    .cat-menu > li:hover > .flyout,
    .cat-menu > li:focus-within > .flyout { display: none; }

    .cat-menu > li.is-open > .flyout { display: block; }

    .flyout a { color: #e7eef5; }

    .suggest { right: 0; }
}

@media (max-width: 720px) {
    .topbar-inner {
        min-height: 32px;
        padding: 0 12px;
    }

    .topbar-link { font-size: 12px; padding: 4px 2px; }

    .masthead-inner { padding: 6px 12px 8px; gap: 6px 8px; }

    .logo-slot { height: 38px; }

    .custom-logo-link img,
    .logo .custom-logo,
    .logo-slot .custom-logo {
        max-height: 34px;
        max-width: min(154px, 46vw);
    }

    .logo-justat { font-size: 18px; }
    .logo-carpart { font-size: 13px; }

    .search-form { gap: 6px; }

    .search-form input[type="search"] {
        height: 42px;
        padding: 0 14px;
        font-size: 16px;
    }

    .btn-navy {
        height: 42px;
        padding: 0 14px;
        font-size: 12px;
    }

    .header-tools { margin-left: 0; }

    .tool-copy { display: none; }

    .header-tools { gap: 2px; }

    .tool,
    .header-cart-link,
    .garage-toggle {
        min-height: 38px;
        padding: 0 8px;
        border-left: 0;
        gap: 0;
    }

    .tool-icon {
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
    }

    .tool-icon svg { width: 22px; height: 22px; }

    .catalog-bar { padding: 6px 12px 0; }

    .finder { padding: 10px 12px 12px; }

    .finder-label { font-size: 12px; margin-bottom: 6px; }

    .finder-controls { flex-wrap: wrap; gap: 6px; }

    .finder-controls select {
        flex: 1 1 100%;
        height: 40px;
        font-size: 16px;
    }

    .finder .btn-red { width: 100%; height: 40px; }

    .finder-reg { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); }

    .promo { display: none; }

    .hero-slider {
        min-height: 120px;
        padding: 12px 12px 24px;
    }

    .hero-title { font-size: 18px; margin: 0 0 6px; }

    .hero-price { font-size: 16px; margin: 0 0 6px; }

    .hero-slide.is-active { grid-template-columns: minmax(0, 1fr) 72px; gap: 8px; }

    .hero-photo,
    .hero-art svg { max-height: 64px; }

    .catalog-block { padding: 10px 12px 20px; }

    .section-head { margin-bottom: 8px; }

    .section-head h2 { font-size: 20px; }

    .filter-chips { margin-bottom: 10px; padding-bottom: 4px; }

    .filter-chips a { padding: 6px 10px; font-size: 12px; }

    .part-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .part-card { border-radius: 10px; }

    .part-media {
        min-height: 112px;
        padding: 8px;
    }

    .part-photo,
    .part-media img { height: 96px; }

    .part-art svg { height: 88px; }

    .part-body { padding: 8px 8px 10px; gap: 2px; }

    .part-cat { font-size: 10px; }

    .part-title { font-size: 13px; min-height: 2.4em; line-height: 1.25; }

    .part-sku { display: none; }

    .part-row { margin: 4px 0 8px; }

    .part-price,
    .part-price .amount { font-size: 15px; }

    .stock { font-size: 10px; }

    .btn-cart { height: 34px; font-size: 11px; }

    .pager,
    .woocommerce-pagination {
        justify-content: center;
        padding: 10px;
        gap: 8px;
    }

    .pager ul,
    .woocommerce-pagination ul { margin-left: 0; justify-content: center; }

    .cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .benefit-row,
    .footer-grid,
    .newsletter,
    .single-product div.product { grid-template-columns: 1fr; }

    .newsletter { padding: 20px 14px; }

    .newsletter h2 { font-size: 22px; }

    .newsletter-form { flex-direction: column; width: 100%; }

    .newsletter-form input { min-width: 0; width: 100%; }

    .footer-bottom { flex-direction: column; }

    .home-section { padding: 4px 12px 16px; }

    .brand-row li { padding: 10px 12px; min-width: 90px; font-size: 16px; }

    .summary,
    .woocommerce-product-gallery { grid-column: auto; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sidebar { transition: none; }
}
