:root {
    --oev-lime: #D2E056;
    --oev-black: #111111;
    --bg-body: #f4f4f5;
    --bg-white: #ffffff;
    --text-dark: #111111;
    --text-muted: #6e6e73;
    --border: #eaeaea;
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg-body); color: var(--text-dark); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
body.modal-open { overflow: hidden; }

.container { width: min(1300px, 100%); margin: 0 auto; padding: 0 20px; }

.top-nav-shell { padding: 20px 0 16px; }
.top-nav {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: #111111;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}
.top-nav .logo { justify-self: start; }
.logo { font-weight: 800; font-size: 24px; display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; letter-spacing: -1px; }
.logo-icon { background: var(--oev-lime); color: var(--oev-black); width: 36px; height: 36px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; font-size: 18px; }
.nav-links { display: flex; gap: 32px; list-style: none; justify-self: center; }
.nav-links a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 14px; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--oev-lime); }
.nav-links a.active { color: var(--oev-lime); font-weight: 700; }
.nav-icons {
    display: flex;
    gap: 10px;
    color: #fff;
    align-items: center;
    justify-self: end;
}
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
    padding: 0 12px;
}
.lang-switcher i {
    font-size: 14px;
    color: rgba(255,255,255,0.92);
}
.lang-switcher select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 0 18px 0 0;
    cursor: pointer;
}
.lang-switcher select option {
    color: #111;
    background: #fff;
}
.lang-switcher::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: rgba(255,255,255,0.92);
    pointer-events: none;
}
.nav-icon-btn {
    color: inherit;
    text-decoration: none;
    width: 36px;
    height: 36px;
    position: relative;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.nav-icon-btn i { font-size: 14px; }
.nav-icon-btn:hover {
    background: var(--oev-lime);
    color: var(--oev-black);
    border-color: transparent;
}
.nav-icon-btn.has-items {
    background: var(--oev-lime);
    color: var(--oev-black);
    border-color: transparent;
}
.nav-icon-btn.has-items:hover { background: #bccf4a; }
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.85);
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
}
.cart-count.is-empty { display: none; }
.catalog-floating-actions {
    position: fixed;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 32px);
    min-height: 56px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(18,22,28,0.34);
    border: 1px solid rgba(255,255,255,0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1100;
    box-shadow: 0 14px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.catalog-floating-actions.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
}
.catalog-floating-filter,
.sticky-cart {
    position: relative;
    width: auto;
    height: 44px;
    min-width: 44px;
    padding: 0 14px;
    gap: 8px;
    border-radius: 999px;
    border: 0;
    color: #fff;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.catalog-floating-filter:hover,
.catalog-floating-filter:focus-visible,
.sticky-cart:hover,
.sticky-cart:focus-visible {
    background: rgba(255,255,255,0.12);
    color: var(--oev-lime);
    outline: none;
}
.catalog-floating-filter:focus-visible,
.sticky-cart:focus-visible {
    box-shadow: 0 0 0 3px rgba(210,224,86,0.28);
}
.catalog-floating-filter i,
.sticky-cart i { font-size: 14px; }
.catalog-floating-label,
.sticky-cart-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;
}
.catalog-floating-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--oev-lime);
    color: var(--oev-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}
.sticky-cart .cart-count {
    top: -9px;
    right: -9px;
    min-width: 23px;
    height: 23px;
    border-width: 3px;
    border-color: rgba(255,255,255,0.62);
    font-size: 12px;
}
.cart-count.is-empty { display: none; }

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    justify-self: end;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu-inner { height: 100%; display: flex; flex-direction: column; padding: 20px 20px 28px; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
}
.mobile-menu-links { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: auto 0; }
.mobile-menu-links a { color: #f3f3f3; text-decoration: none; font-size: clamp(1.5rem, 7vw, 2.2rem); font-weight: 800; line-height: 1.15; }
.mobile-menu-links a:hover { color: var(--oev-lime); }
.mobile-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
    padding: 8px 14px;
    color: #fff;
    margin-bottom: 14px;
}
.mobile-lang-switcher i { font-size: 14px; }
.mobile-lang-switcher select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding-right: 14px;
}
.mobile-lang-switcher select option {
    color: #111;
    background: #fff;
}
.mobile-menu-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.mobile-menu-controls .mobile-lang-switcher {
    margin-bottom: 0;
    min-height: 42px;
    padding: 0 14px;
}
.mobile-menu-controls .nav-icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    flex-shrink: 0;
}
.mobile-menu-controls .nav-icon-btn i { font-size: 14px; }
.mobile-menu-controls .nav-icon-btn:hover {
    background: var(--oev-lime);
    color: var(--oev-black);
    border-color: transparent;
}
.mobile-menu-controls .nav-icon-btn.has-label {
    width: auto;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    gap: 8px;
}
.mobile-menu-controls .nav-icon-btn.has-label .nav-icon-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.mobile-menu-foot {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.45;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 14px;
    margin-top: 16px;
}
.mobile-menu-foot a {
    color: #fff;
    text-decoration: none;
}

main { padding: 16px 20px 72px; }
.catalog-head {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    margin-bottom: 18px;
}
.catalog-head h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    letter-spacing: -1px;
    margin-bottom: 10px;
}
.catalog-head p { color: var(--text-muted); line-height: 1.55; max-width: 860px; }
.catalog-head p a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.catalog-head p a:hover {
    color: var(--oev-lime);
}
.debug-panel {
    margin-bottom: 18px;
    padding: 18px 20px;
    background: #111111;
    color: #f5f5f5;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.debug-panel h2 {
    font-size: 18px;
    margin-bottom: 8px;
}
.debug-panel p {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    margin-bottom: 12px;
}
.debug-panel pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.5;
    color: #d7f5b1;
}
.catalog-search-form {
    margin-top: 16px;
    width: min(1160px, 100%);
    background: #f6f7f9;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.catalog-search-form.is-loading {
    background: #fff;
    border-color: rgba(210,224,86,0.95);
    box-shadow: 0 0 0 4px rgba(210,224,86,0.18);
}
.catalog-search-form:focus {
    outline: none;
    border-color: rgba(210,224,86,0.95);
    box-shadow: 0 0 0 4px rgba(210,224,86,0.18);
    background: #fff;
}
.catalog-category-select-wrap,
.catalog-brand-select-wrap,
.catalog-model-select-wrap,
.catalog-part-search-wrap {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
}
.catalog-category-select-wrap,
.catalog-brand-select-wrap,
.catalog-model-select-wrap {
    position: relative;
    gap: 8px;
    padding: 0 10px;
    border-right: 1px solid #dfe2e7;
    color: #505762;
}
.catalog-category-select-wrap {
    flex: 0 0 310px;
}
.catalog-brand-select-wrap {
    flex: 0 0 210px;
}
.catalog-model-select-wrap {
    flex: 0 0 250px;
}
.catalog-category-select-wrap i,
.catalog-brand-select-wrap i,
.catalog-model-select-wrap i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--oev-black);
    color: var(--oev-lime);
    font-size: 14px;
}
.catalog-category-select-wrap select,
.catalog-brand-select-wrap select,
.catalog-model-select-wrap select {
    width: 100%;
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding-right: 28px;
}
.catalog-category-select-wrap select:disabled,
.catalog-brand-select-wrap select:disabled,
.catalog-model-select-wrap select:disabled {
    color: #8a9099;
    cursor: default;
}
.catalog-category-select-wrap select option,
.catalog-brand-select-wrap select option,
.catalog-model-select-wrap select option {
    color: #111;
    background: #fff;
}
.catalog-category-select-wrap::after,
.catalog-brand-select-wrap::after,
.catalog-model-select-wrap::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #505762;
    pointer-events: none;
}
.catalog-category-select-wrap:has(select:disabled),
.catalog-model-select-wrap:has(select:disabled) {
    color: #8a9099;
}
.catalog-category-select-wrap:has(select:disabled) i,
.catalog-category-select-wrap:has(select:disabled)::after,
.catalog-model-select-wrap:has(select:disabled) i,
.catalog-model-select-wrap:has(select:disabled)::after {
    color: #8a9099;
}
.catalog-category-select-wrap:has(select:disabled) i,
.catalog-model-select-wrap:has(select:disabled) i {
    background: #e2e5ea;
}
.catalog-part-search-wrap {
    flex: 1;
    gap: 6px;
    min-width: 220px;
}
.catalog-search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}
.catalog-search-form input[type="search"]::-webkit-search-cancel-button,
.catalog-search-form input[type="search"]::-webkit-search-decoration,
.catalog-search-form input[type="search"]::-webkit-search-results-button,
.catalog-search-form input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.catalog-search-form input::placeholder {
    color: #60656f;
    opacity: 1;
}
.catalog-search-clear {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(17,17,17,0.68);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
}
.catalog-search-clear i {
    font-size: 18px;
    line-height: 1;
}
.catalog-search-clear[hidden] {
    display: none;
}
.catalog-search-clear:hover {
    background: rgba(17,17,17,0.08);
    color: var(--oev-black);
}
.catalog-search-clear:active {
    transform: scale(0.94);
}
.catalog-search-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--oev-black);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.catalog-search-btn:disabled {
    cursor: wait;
    opacity: 1;
}
.catalog-search-btn:hover {
    background: var(--oev-lime);
    color: var(--oev-black);
}
.catalog-search-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    animation: catalogSpin 0.72s linear infinite;
}
.catalog-search-form.is-loading .catalog-search-icon {
    display: none;
}
.catalog-search-form.is-loading .catalog-search-spinner {
    display: block;
}
.catalog-search-form.is-loading .catalog-search-btn:hover {
    background: var(--oev-black);
    color: #fff;
}
@keyframes catalogSpin {
    to { transform: rotate(360deg); }
}
.catalog-search-feedback {
    font-size: 13px;
    font-weight: 600;
    color: #505762;
    margin-top: 8px;
    min-height: 18px;
}
.catalog-ai-search {
    margin-top: 18px;
    width: min(1160px, 100%);
    position: relative;
    isolation: isolate;
    padding: 8px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.catalog-ai-search-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.catalog-ai-search-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--oev-black);
    box-shadow: none;
}
.catalog-ai-search-icon i {
    color: var(--oev-lime);
    font-size: 20px;
    line-height: 1;
}
.catalog-ai-search-head h2 {
    margin: 2px 0 4px;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0;
}
.catalog-ai-search-head p {
    max-width: 720px;
    font-size: 14px;
    line-height: 1.5;
}
.catalog-ai-search-form {
    position: relative;
    isolation: isolate;
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 7px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dfe3e8;
    box-shadow: 0 8px 18px rgba(17,17,17,0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.catalog-ai-search-form input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    padding: 0 18px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 750;
    outline: none;
}
.catalog-ai-search-form input:focus {
    box-shadow: none;
}
.catalog-ai-search-form input::placeholder {
    color: #737b86;
    font-weight: 650;
    opacity: 1;
}
.catalog-ai-search-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.catalog-ai-search-form:focus-within {
    border-color: rgba(210,224,86,0.82);
    box-shadow:
        0 8px 18px rgba(17,17,17,0.05),
        0 0 0 3px rgba(210,224,86,0.16);
}
.catalog-ai-search-image-btn {
    width: 50px;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: #eef1f4;
    color: #343a42;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.catalog-ai-search-image-btn:hover,
.catalog-ai-search-image-btn:focus-visible {
    background: #e2e6eb;
    color: var(--oev-black);
    outline: none;
}
.catalog-ai-search-image-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}
.catalog-ai-search-btn {
    min-width: 142px;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--oev-lime);
    color: var(--oev-black);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(17,17,17,0.1);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.catalog-ai-search-btn-content,
.catalog-ai-search-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.catalog-ai-search-btn-content {
    gap: 8px;
}
.catalog-ai-search-loader {
    display: none;
    gap: 6px;
    min-width: 54px;
}
.catalog-ai-search-loader span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--oev-black);
    box-shadow: none;
    animation: aiDotWave 0.9s ease-in-out infinite;
}
.catalog-ai-search-loader span:nth-child(2) {
    animation-delay: 0.12s;
}
.catalog-ai-search-loader span:nth-child(3) {
    animation-delay: 0.24s;
}
.catalog-ai-search-btn:hover,
.catalog-ai-search-btn:focus-visible {
    color: var(--oev-black);
    background: #ddea43;
    box-shadow: 0 8px 16px rgba(17,17,17,0.12);
    outline: none;
}
.catalog-ai-search-btn:disabled {
    cursor: wait;
    opacity: 1;
}
.catalog-ai-search-form.is-loading .catalog-ai-search-btn-content {
    display: none;
}
.catalog-ai-search-form.is-loading .catalog-ai-search-loader {
    display: inline-flex;
}
.catalog-ai-search-status {
    min-height: 21px;
    margin-top: 10px;
    color: #626a75;
    font-size: 14px;
    line-height: 1.5;
}
.catalog-ai-search-status.is-error {
    color: #b3261e;
}
.catalog-ai-search-status strong {
    color: var(--text-dark);
    font-weight: 850;
}
.catalog-ai-search-results {
    margin-top: 12px;
}
.catalog-ai-search-note {
    margin: 0;
    color: #3f4650;
    font-size: 14px;
    line-height: 1.45;
}
.catalog-ai-search-note {
    color: #747b86;
}
@keyframes aiDotWave {
    0%, 80%, 100% {
        opacity: 0.42;
        transform: translateY(0) scale(0.82);
    }
    40% {
        opacity: 1;
        transform: translateY(-5px) scale(1);
    }
}
.catalog-active-filters {
    width: min(1160px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: #555c66;
}
.catalog-active-filter-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.catalog-active-filter-chip {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(100%, 320px);
    padding: 6px 10px 6px 12px;
    border-radius: 999px;
    background: #eef1f5;
    color: #1f242b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.catalog-active-filter-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.catalog-active-filter-chip i {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17,17,17,0.08);
    color: #4d535c;
    font-size: 10px;
    transition: color 0.18s ease, background 0.18s ease;
}
.catalog-active-filter-chip:hover,
.catalog-active-filter-chip:focus-visible {
    background: #e5e9ef;
    color: var(--oev-black);
    box-shadow: 0 0 0 3px rgba(210,224,86,0.22);
    outline: none;
}
.catalog-active-filter-chip:hover i,
.catalog-active-filter-chip:focus-visible i {
    background: var(--oev-black);
    color: #fff;
}
.catalog-active-filters-clear:hover,
.catalog-active-filters-clear:focus-visible {
    background: #f5e9ea;
    color: #9f1d28;
    box-shadow: 0 0 0 3px rgba(215,38,61,0.22);
}
.catalog-active-filters-clear:hover i,
.catalog-active-filters-clear:focus-visible i {
    background: #9f1d28;
    color: #fff;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.catalog-toolbar {
    margin: 0 0 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.result-count {
    font-size: 14px;
    color: #3a3f47;
    font-weight: 600;
}
.sort-select {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #3a3f47;
    outline: none;
}

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--bg-white); border-radius: var(--radius-md); padding: 20px; transition: var(--transition); position: relative; cursor: pointer; border: 1px solid rgba(17,17,17,0.05); }
.product-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.06); transform: scale(1.02); }
#products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 120px;
}
#products-grid .product-card {
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff !important;
    color: #111111 !important;
}
#products-grid .product-card * {
    visibility: visible !important;
    opacity: 1 !important;
}
.product-card-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 5;
    border-radius: inherit;
}
.product-card-link:focus-visible {
    outline: 2px solid var(--oev-lime);
    outline-offset: -2px;
}
.product-img { width: 100%; height: 220px; background: #f0f0f1; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; position: relative; }
.product-img:not(.is-placeholder)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, #eceef1 0%, #f8f8f9 46%, #e4e7ea 100%);
    background-size: 220% 100%;
    animation: productImageLoading 1.15s ease-in-out infinite;
    opacity: 1;
    transition: opacity 180ms ease;
}
.product-img.is-loaded::before {
    opacity: 0;
    pointer-events: none;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; position: relative; z-index: 2; }
.product-img img:not(.product-placeholder-logo) {
    opacity: 0;
    transition: opacity 180ms ease;
}
.product-img.is-loaded img:not(.product-placeholder-logo) {
    opacity: 1;
}
#products-grid .product-card .product-img:not(.is-loaded) img:not(.product-placeholder-logo) {
    opacity: 0 !important;
}
#products-grid .product-card .product-img.is-loaded img:not(.product-placeholder-logo) {
    opacity: 1 !important;
}
@keyframes productImageLoading {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}
.product-img.is-placeholder,
.product-modal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f2f2f3 0%, #e7e7e9 100%);
}
.product-img .product-placeholder-logo,
.product-modal-placeholder .product-placeholder-logo {
    width: min(42%, 150px);
    max-width: 150px;
    height: auto;
    max-height: 44px;
    filter: grayscale(1) brightness(0.72) contrast(0.9);
    opacity: 0.42;
    object-fit: contain;
}
.badge-tag { position: absolute; top: 28px; left: 28px; z-index: 3; background: var(--oev-lime); color: var(--oev-black); padding: 6px 14px; border-radius: 50px; font-size: 11px; font-weight: 800; box-shadow: 0 8px 18px rgba(17,17,17,0.14); }
.badge-tag.out-of-stock { background: var(--oev-black); color: #fff; }
.product-info h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: calc(1.18em * 2);
    margin-bottom: 8px;
}
.part-number-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4f5662;
}
.part-number-line span {
    flex: 0 0 auto;
    white-space: nowrap;
}
.part-number-line strong {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 22px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef1f5;
    color: #1a1d23;
    font-size: 12px;
    line-height: 1.08;
    letter-spacing: 0.4px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
}
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 800;
    line-height: 1.08;
    white-space: nowrap;
}
.add-btn { flex: 0 0 auto; background: var(--text-dark); color: #fff; width: 45px; height: 45px; border-radius: 50%; border: none; cursor: pointer; transition: var(--transition); font-size: 16px; position: relative; z-index: 6; }
.add-btn.product-detail-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.add-btn:hover { background: var(--oev-lime); color: var(--oev-black); transform: scale(1.05); }
.add-btn:disabled,
.add-btn.is-disabled { background: #eef1f5; color: #7b838f; cursor: not-allowed; }
.add-btn:disabled:hover,
.add-btn.is-disabled:hover { background: #eef1f5; color: #7b838f; transform: none; }

.pagination-wrap {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}
.pagination {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px;
}
#pagination-pages {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.page-btn {
    min-width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #3b3f47;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.page-btn:hover { background: #eceef2; }
.page-btn.active {
    background: var(--oev-lime);
    color: var(--oev-black);
}
.page-btn:disabled,
.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
}
.product-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 10, 14, 0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}
.product-modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.product-modal {
    width: min(520px, 100%);
    background: var(--bg-white);
    border: 1px solid rgba(17,17,17,0.08);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0,0,0,0.26);
    padding: 18px 18px 20px;
    position: relative;
    max-height: calc(100dvh - 40px);
    overflow: auto;
}
.product-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #f3f4f7;
    color: #1b1d22;
    cursor: pointer;
    transition: var(--transition);
}
.product-modal-close:hover {
    background: var(--oev-black);
    color: #fff;
    border-color: var(--oev-black);
}
.product-modal-content { padding: 8px 8px 0; }
.product-modal-title {
    font-size: clamp(1.7rem, 3.8vw, 2.25rem);
    letter-spacing: -1px;
    line-height: 1.06;
    margin: 4px 34px 8px 0;
}
.product-modal-part-number {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef1f5;
    color: #1a1d23;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.product-modal-manufacturer-part-number {
    margin-left: 6px;
    background: rgba(210,224,86,0.28);
}
.product-modal-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 14px;
}
.product-modal-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    background: #f5f6f8;
    border: 1px solid rgba(17,17,17,0.06);
    margin-bottom: 14px;
    aspect-ratio: 4 / 3;
}
.product-modal-image-wrap.has-image {
    cursor: zoom-in;
}
.product-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f6f8;
    display: block;
}
.product-modal-placeholder {
    width: 100%;
    height: 100%;
}
.product-modal-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.product-modal-thumb {
    border: 1px solid rgba(17,17,17,0.1);
    border-radius: 12px;
    background: #fff;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4 / 3;
}
.product-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-modal-thumb:hover {
    border-color: rgba(17,17,17,0.24);
}
.product-modal-thumb.is-active {
    border-color: var(--oev-lime);
    box-shadow: 0 0 0 2px rgba(210,224,86,0.35);
}
.product-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.product-modal-price {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.product-modal-add-btn {
    border: 0;
    border-radius: 999px;
    background: var(--oev-black);
    color: #fff;
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.product-modal-add-btn:hover {
    background: var(--oev-lime);
    color: var(--oev-black);
}
.product-modal-add-btn i { font-size: 13px; }
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(12,12,14,0.92);
    padding: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.gallery-lightbox.open {
    display: flex;
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: rgba(255,255,255,0.24);
}
.gallery-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
}
.gallery-lightbox-stage {
    width: min(1100px, calc(100vw - 176px));
    max-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.gallery-lightbox-image {
    width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    display: block;
}
.gallery-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    min-width: 68px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17,17,17,0.62);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.cart-toast {
    position: fixed;
    left: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 1600;
    max-width: min(520px, calc(100vw - 40px));
    min-height: 44px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 16px 36px rgba(0,0,0,0.28);
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.cart-toast i { color: var(--oev-lime); font-size: 14px; }
.cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

footer { padding: 60px 20px 40px; }
.footer-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.footer-logo-col p { color: var(--text-muted); font-size: 14px; margin-top: 15px; max-width: 250px; line-height: 1.5; }
.footer-links { display: flex; gap: 80px; }
.footer-col h5 { font-size: 16px; font-weight: 800; margin-bottom: 20px; color: var(--text-dark); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-col ul a:hover { color: var(--oev-lime); }
.footer-bottom { text-align: center; margin-top: 40px; color: #aaa; font-size: 13px; font-weight: 500; }

@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    #products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 1180px) {
    .catalog-search-form {
        border-radius: 30px;
        flex-wrap: wrap;
    }
    .catalog-category-select-wrap {
        flex: 1 1 300px;
    }
    .catalog-brand-select-wrap {
        flex: 1 1 210px;
    }
    .catalog-model-select-wrap {
        flex: 1 1 250px;
    }
    .catalog-part-search-wrap {
        flex: 1 1 320px;
    }
}
@media (max-width: 900px) {
    .top-nav-shell { padding: 0 0 10px; margin-bottom: 0; }
    .top-nav {
        width: calc(100% - 20px);
        margin: 12px auto 0;
        padding: 10px 14px;
        border-radius: 40px;
        display: flex;
        justify-content: space-between;
    }
    .logo { font-size: 20px; }
    .logo-icon { width: 32px; height: 32px; font-size: 16px; }
    .nav-links, .nav-icons { display: none; }
    .mobile-menu-btn { display: inline-flex; justify-self: auto; }
    .catalog-search-form {
        width: 100%;
        border-radius: 24px;
        flex-wrap: wrap;
        padding: 10px;
    }
    .catalog-category-select-wrap,
    .catalog-brand-select-wrap,
    .catalog-model-select-wrap {
        flex: 1 1 100%;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #dfe2e7;
        padding: 2px 8px 10px;
    }
    .catalog-part-search-wrap {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 8px;
    }
    .catalog-search-form input { font-size: 16px; }
    .catalog-category-select-wrap select,
    .catalog-brand-select-wrap select,
    .catalog-model-select-wrap select { font-size: 14px; }
    .catalog-search-form input::placeholder { font-size: 14px; }
    .catalog-ai-search {
        width: 100%;
        padding: 8px 0 0;
    }
    .catalog-ai-search-form {
        grid-template-columns: 50px minmax(0, 1fr);
        border-radius: 28px;
    }
    .catalog-ai-search-form input {
        grid-column: 1 / -1;
        font-size: 16px;
    }
    .catalog-ai-search-image-btn {
        width: 50px;
    }
    .catalog-ai-search-btn {
        width: 100%;
    }
    .catalog-active-filters {
        width: 100%;
        align-items: flex-start;
        gap: 8px;
    }
    .catalog-active-filter-list {
        flex: 1 1 100%;
    }
    .catalog-active-filter-chip {
        max-width: 100%;
    }
    .catalog-floating-actions {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        min-height: 52px;
        max-width: calc(100% - 24px);
        padding: 5px;
    }
    .catalog-floating-filter,
    .sticky-cart {
        height: 42px;
        min-width: 42px;
        padding: 0 12px;
    }
    .catalog-floating-label,
    .sticky-cart-label {
        font-size: 12px;
    }
    .catalog-floating-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }
    .sticky-cart .cart-count {
        top: -6px;
        right: -6px;
        min-width: 19px;
        height: 19px;
        border-width: 2px;
        border-color: rgba(255,255,255,0.58);
        font-size: 10px;
    }

    main { padding: 8px 20px 60px; }
    .catalog-head { padding: 20px 18px; border-radius: 24px; }
    .catalog-head p { font-size: 15px; }
    .catalog-toolbar { margin: 0 0 12px; }
    .product-grid { grid-template-columns: 1fr; gap: 12px; }
    #products-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .product-card {
        padding: 12px;
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
        align-items: stretch;
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    #products-grid .product-card {
        display: grid !important;
        grid-template-columns: 104px minmax(0, 1fr) !important;
        gap: 12px !important;
        min-height: 0 !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .product-card:hover { transform: none; }
    .product-img {
        width: 104px;
        height: 104px;
        margin-bottom: 0;
        border-radius: 14px;
    }
    .product-img.is-placeholder {
        padding: 14px;
    }
    .product-img.is-placeholder .product-placeholder-logo {
        width: 100%;
        max-width: 72px;
    }
    .badge-tag {
        top: 10px;
        left: 10px;
        font-size: 10px;
        padding: 5px 10px;
    }
    .product-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 104px;
        justify-content: space-between;
    }
    .product-info h3 {
        font-size: 16px;
        line-height: 1.18;
        min-height: calc(1.18em * 2);
        margin-bottom: 6px;
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .part-number-line {
        margin-bottom: 8px;
        font-size: 10px;
        gap: 6px;
        min-width: 0;
        max-width: 100%;
    }
    .part-number-line strong {
        min-height: 20px;
        padding: 4px 8px;
        font-size: 11px;
        line-height: 1.1;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .product-footer {
        margin-top: auto;
        min-width: 0;
        max-width: 100%;
    }
    .price {
        min-width: 0;
        font-size: 18px;
        overflow-wrap: anywhere;
    }
    .add-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .product-modal-overlay { padding: 12px; }
    .product-modal { border-radius: 24px; }
    .product-modal-price { font-size: 21px; }
    .gallery-lightbox {
        padding: 12px;
        gap: 8px;
    }
    .gallery-lightbox-stage {
        width: min(100%, calc(100vw - 88px));
        max-height: calc(100vh - 120px);
    }
    .gallery-lightbox-image {
        max-height: calc(100vh - 120px);
    }
    .gallery-lightbox-close,
    .gallery-lightbox-nav {
        width: 42px;
        height: 42px;
    }
    .cart-toast {
        left: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100vw - 24px);
    }

    .footer-card { flex-direction: column; gap: 26px; padding: 36px 22px; }
    .footer-logo-col p { max-width: none; }
    .footer-links { flex-direction: column; gap: 40px; margin-top: 40px; }
}
@media (max-width: 560px) {
    .product-modal-title { font-size: 1.55rem; }
    .product-modal-part-number { min-height: 26px; font-size: 11px; }
    .product-modal-desc { font-size: 14px; }
    .product-modal-row { align-items: stretch; flex-direction: column; }
    .product-modal-add-btn { width: 100%; justify-content: center; }
}
