/*
 * RedFoxAuto Shop visual refresh — 04.09.2026.
 * Presentation only: existing markup, copy, IDs, forms, search and catalog logic stay intact.
 */

:root {
    --rf-red: #ff3347;
    --rf-red-deep: #c80f27;
    --rf-cyan: #72d6ff;
    --rf-radius-xl: 34px;
    --rf-radius-lg: 24px;
    --rf-radius-md: 17px;
    --rf-ease: cubic-bezier(.2, .75, .2, 1);
    --rf-grid: rgba(255, 255, 255, .035);
    --rf-surface: rgba(15, 19, 25, .82);
    --rf-line: rgba(255, 255, 255, .13);
    --rf-line-strong: rgba(255, 255, 255, .24);
    --rf-copy: #f7f8fa;
    --rf-copy-soft: rgba(242, 245, 249, .7);
    --rf-copy-muted: rgba(242, 245, 249, .46);
    --rf-shadow: 0 34px 90px rgba(0, 0, 0, .3);
    --rf-shadow-soft: 0 18px 44px rgba(0, 0, 0, .2);
    --rf-pattern-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='480' viewBox='0 0 720 480'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.64' stroke-width='1.15'%3E%3Ccircle cx='108' cy='108' r='76'/%3E%3Ccircle cx='108' cy='108' r='54'/%3E%3Ccircle cx='108' cy='108' r='15'/%3E%3Ccircle cx='108' cy='67' r='5'/%3E%3Ccircle cx='149' cy='108' r='5'/%3E%3Ccircle cx='108' cy='149' r='5'/%3E%3Ccircle cx='67' cy='108' r='5'/%3E%3Cpath d='M108 32v20m0 112v20M32 108h20m112 0h20M54 54l15 15m78 78l15 15m0-108l-15 15m-78 78l-15 15M32 230h152m-152-11v22m152-22v22'/%3E%3Cg transform='translate(270 42) rotate(-9 78 128)'%3E%3Crect x='34' y='0' width='88' height='34' rx='9'/%3E%3Cpath d='M45 34v42h66V34M55 54h46M78 76v74M56 150h44M66 150l-20 76m44-76l20 76M38 226h80'/%3E%3Ccircle cx='78' cy='150' r='13'/%3E%3C/g%3E%3Ccircle cx='596' cy='352' r='72'/%3E%3Ccircle cx='596' cy='352' r='49'/%3E%3Ccircle cx='596' cy='352' r='11'/%3E%3Cpath d='M596 280v24m0 96v24M524 352h24m96 0h24M545 301l18 18m66 66l18 18m0-102l-18 18m-66 66l-18 18M506 246h180m-180-10v20m180-20v20'/%3E%3Cpath d='M208 354h112m-98-26h84m-72-26h60M452 102h146m-130-24h104m-83-24h62' stroke-dasharray='4 8'/%3E%3Cpath d='M42 392h18m-9-9v18M366 350h18m-9-9v18M664 94h18m-9-9v18'/%3E%3C/g%3E%3C/svg%3E");
    --rf-pattern-tread: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='260' viewBox='0 0 620 260'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.58' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M-72 238L72 94l64 64L280 14M46 274l144-144 64 64L398 50M164 310l144-144 64 64L516 86M282 346l144-144 64 64L634 122' stroke-width='13'/%3E%3Cpath d='M-72 238L72 94l64 64L280 14M46 274l144-144 64 64L398 50M164 310l144-144 64 64L516 86M282 346l144-144 64 64L634 122' stroke-width='1.4'/%3E%3Cpath d='M20 44h76m114 0h76m114 0h76M92 220h76m114 0h76m114 0h76' stroke-width='1' stroke-dasharray='5 10'/%3E%3C/g%3E%3C/svg%3E");
    --rf-pattern-schematic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='920' height='430' viewBox='0 0 920 430'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1.2'%3E%3Cg transform='translate(72 38)'%3E%3Cpath d='M72 0v48m-30 0h60l-8 34H50l-8-34ZM56 82v34l-18 22 68 28-68 28 68 28-68 28 68 28-34 24v46m-32 0h64m-74 18h84'/%3E%3Cpath d='M16 48h112M12 366h120' stroke-dasharray='5 7'/%3E%3C/g%3E%3Cg transform='translate(355 95)'%3E%3Cpath d='M0 148c22-76 54-122 116-136 55-12 109 6 144 50l-38 34c-22-24-48-35-78-33-44 3-73 34-91 92L0 148Z'/%3E%3Cpath d='M64 132c18-39 43-59 78-63 28-3 52 5 72 25l-24 22c-14-11-28-15-45-12-22 4-36 17-48 40l-33-12Z'/%3E%3Ccircle cx='206' cy='56' r='15'/%3E%3C/g%3E%3Cg transform='translate(742 45) rotate(12 46 145)'%3E%3Cpath d='M30 0h32l8 42-14 22 20 32-18 24 16 31-20 22v90l-8 29h-8l-8-29v-90l-20-22 16-31-18-24 20-32-14-22L30 0Z'/%3E%3Cpath d='M18 292h56m-50 18h44m-38 18h32'/%3E%3C/g%3E%3Cpath d='M238 60h76m-62-22h48M274 342h114m340-20h104M32 394h856' stroke-dasharray='4 9'/%3E%3Cpath d='M304 54h18m-9-9v18M682 116h18m-9-9v18M650 346h18m-9-9v18'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-theme="dark"] {
    color-scheme: dark;
    background: #080b0f !important;
}

html[data-theme="dark"] body {
    color: var(--rf-copy) !important;
    background:
        radial-gradient(circle at 14% 4%, rgba(255, 51, 71, .14), transparent 28rem),
        radial-gradient(circle at 92% 16%, rgba(114, 214, 255, .09), transparent 32rem),
        linear-gradient(180deg, #090c11 0%, #0b1016 44%, #070a0e 100%) !important;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
}

body::before {
    inset: 0;
    opacity: .27;
    background-image:
        var(--rf-pattern-schematic),
        linear-gradient(var(--rf-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--rf-grid) 1px, transparent 1px);
    background-size: min(920px, 78vw) auto, 56px 56px, 56px 56px;
    background-position: calc(100% + 180px) 9vh, 0 0, 0 0;
    background-repeat: no-repeat, repeat, repeat;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .7) 52%, #000 100%);
}

body::after {
    right: -10rem;
    bottom: -10rem;
    width: 43rem;
    height: 32rem;
    opacity: .085;
    background: var(--rf-pattern-art) center / contain no-repeat;
    transform: rotate(8deg);
}

::selection {
    color: #fff;
    background: rgba(255, 51, 71, .75);
}

.header {
    top: 12px !important;
    width: min(96%, 1340px) !important;
    margin: 0 auto !important;
    padding: .7rem .85rem !important;
    background: rgba(9, 12, 17, .76) !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .24) !important;
    backdrop-filter: blur(22px) saturate(1.28) !important;
}

.header::after {
    content: "";
    position: absolute;
    right: 16%;
    bottom: -1px;
    left: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rf-red), transparent);
    opacity: .72;
}

.header-inner {
    max-width: none !important;
    gap: 1rem;
}

.header-left,
.header-right {
    gap: .7rem !important;
}

.logo-name {
    color: var(--rf-copy) !important;
    font-size: clamp(1.05rem, 2vw, 1.28rem) !important;
    letter-spacing: -.055em !important;
}

.logo-name span {
    color: var(--rf-red) !important;
}

.header-badge,
.header-auth-btn,
.header-cart-btn,
.back-btn {
    min-height: 38px;
    border: 1px solid var(--rf-line) !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, .045) !important;
    color: var(--rf-copy-soft) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .055) !important;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    padding: .5rem .75rem !important;
}

.header-phone {
    color: var(--rf-copy) !important;
}

.header-auth-btn:hover,
.header-cart-btn:hover,
.back-btn:hover {
    border-color: rgba(255, 51, 71, .5) !important;
    background: rgba(255, 51, 71, .1) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.theme-switch {
    min-height: 40px !important;
    border-color: var(--rf-line) !important;
    background: rgba(255, 255, 255, .045) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .055) !important;
}

.main {
    z-index: 1 !important;
    max-width: 1260px !important;
    padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 3vw, 2rem) 5rem !important;
    overflow: visible !important;
}

.shop-status-notice {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    max-width: 1040px;
    margin: 0 auto clamp(1rem, 2vw, 1.4rem);
    padding: 1rem 1.1rem;
    overflow: hidden;
    color: var(--rf-copy);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 181, 71, .14), transparent 17rem),
        linear-gradient(112deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
    border: 1px solid rgba(255, 181, 71, .25);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .06);
    backdrop-filter: blur(16px) saturate(1.15);
    animation: rf-rise .6s .03s var(--rf-ease) both;
}

.shop-status-notice::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, #ffb547 22%, #ff8a3d 78%, transparent);
}

.shop-status-notice::after {
    content: "";
    position: absolute;
    top: -70px;
    right: 115px;
    width: 210px;
    height: 180px;
    pointer-events: none;
    opacity: .08;
    background: var(--rf-pattern-art) center / 270px auto no-repeat;
    transform: rotate(7deg);
}

.shop-status-indicator {
    position: relative;
    z-index: 1;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 181, 71, .3);
    border-radius: 13px;
    background: rgba(255, 181, 71, .09);
}

.shop-status-indicator > span {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffb547;
    box-shadow: 0 0 16px rgba(255, 181, 71, .72);
}

.shop-status-indicator > span::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(255, 181, 71, .38);
    border-radius: 50%;
    animation: rf-status-pulse 2.6s ease-out infinite;
}

.shop-status-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.shop-status-eyebrow {
    display: block;
    margin-bottom: .2rem;
    color: #ffbd5b;
    font-size: .66rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.shop-status-copy h2 {
    margin: 0 !important;
    color: var(--rf-copy) !important;
    font-family: 'Onest', sans-serif !important;
    font-size: clamp(.98rem, 1.7vw, 1.12rem) !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    letter-spacing: -.015em !important;
}

.shop-status-copy p {
    margin: .22rem 0 0 !important;
    color: var(--rf-copy-soft) !important;
    font-size: .82rem !important;
    line-height: 1.5 !important;
}

.shop-status-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .65rem .85rem;
    color: var(--rf-copy) !important;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, .055);
    border: 1px solid var(--rf-line);
    border-radius: 12px;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s var(--rf-ease);
}

.shop-status-link svg {
    width: 16px;
    height: 16px;
}

.shop-status-link:hover {
    color: #fff !important;
    background: rgba(255, 181, 71, .12);
    border-color: rgba(255, 181, 71, .34);
    transform: translateX(2px);
}

.shop-status-link:focus-visible {
    outline: 2px solid #ffb547;
    outline-offset: 3px;
}

.search-hero {
    position: relative;
    max-width: 1040px;
    margin: 0 auto clamp(2rem, 4vw, 3rem) !important;
    padding: clamp(2rem, 4.4vw, 3.6rem) clamp(1.5rem, 4vw, 3.3rem) !important;
    text-align: left !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)) !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: var(--rf-radius-xl) !important;
    box-shadow: var(--rf-shadow-soft) !important;
    overflow: hidden !important;
    opacity: 1 !important;
    transform: none !important;
    animation: rf-rise .7s var(--rf-ease) both !important;
}

.search-hero::after {
    content: "" !important;
    position: absolute !important;
    top: -3.5rem !important;
    right: -2.5rem !important;
    width: 19rem !important;
    height: 19rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--rf-pattern-art) center / contain no-repeat !important;
    box-shadow: none !important;
    opacity: .14 !important;
    transform: rotate(8deg);
    pointer-events: none;
}

.search-hero::before {
    content: none !important;
}

.search-hero h1 {
    max-width: 850px;
    margin: 0 0 1.15rem !important;
    color: var(--rf-copy) !important;
    font-family: 'Onest', sans-serif !important;
    font-size: clamp(2.25rem, 4.8vw, 4.25rem) !important;
    font-weight: 600 !important;
    line-height: 1.05 !important;
    letter-spacing: -.04em !important;
    text-wrap: balance;
    text-shadow: none !important;
}

.search-hero p {
    max-width: 790px;
    margin: 0 !important;
    color: var(--rf-copy-soft) !important;
    font-size: clamp(1rem, 2vw, 1.18rem) !important;
    line-height: 1.7 !important;
}

.search-mode-switcher {
    position: relative;
    z-index: 2;
    max-width: 1040px !important;
    margin: 0 auto .8rem !important;
    padding: .45rem !important;
    gap: .45rem !important;
    background: rgba(13, 17, 23, .78) !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: 22px !important;
    box-shadow: var(--rf-shadow-soft) !important;
    backdrop-filter: blur(16px);
    animation: rf-rise .7s .08s var(--rf-ease) both;
}

.search-mode-button {
    position: relative;
    min-height: 86px !important;
    padding: 1rem 1.2rem !important;
    border-radius: 17px !important;
    overflow: hidden;
    transition: transform .25s var(--rf-ease), background .25s ease, border-color .25s ease !important;
}

.search-mode-button span {
    color: var(--rf-copy) !important;
    font-size: 1rem !important;
}

.search-mode-button small {
    color: var(--rf-copy-muted) !important;
}

.search-mode-button.active {
    border-color: rgba(255, 93, 110, .42) !important;
    background:
        linear-gradient(105deg, rgba(255, 51, 71, .22), rgba(255, 51, 71, .055) 66%),
        rgba(255, 255, 255, .05) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .13), 0 12px 34px rgba(145, 9, 27, .16) !important;
}

.search-mode-button.active::after {
    content: "";
    position: absolute;
    top: -70%;
    left: -35%;
    width: 28%;
    height: 240%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transform: rotate(18deg);
    animation: rf-sheen 5.5s ease-in-out infinite;
}

.search-bar-wrapper {
    display: block !important;
    visibility: visible !important;
    max-width: 1040px !important;
    margin: 0 auto 1.2rem !important;
    opacity: 1 !important;
    transform: none !important;
    animation: rf-rise .7s .16s var(--rf-ease) both !important;
}

.search-bar {
    min-height: 82px !important;
    padding: .55rem !important;
    background: rgba(248, 250, 252, .97) !important;
    border: 1px solid rgba(255, 255, 255, .84) !important;
    border-radius: 23px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3), 0 0 0 8px rgba(255, 255, 255, .025) !important;
}

.search-bar:focus-within {
    border-color: rgba(255, 51, 71, .6) !important;
    box-shadow: 0 26px 74px rgba(0, 0, 0, .34), 0 0 0 7px rgba(255, 51, 71, .09) !important;
}

.search-input {
    min-width: 0;
    padding: 0 1.25rem !important;
    background: transparent !important;
    border: 0 !important;
    color: #11151b !important;
    font-size: clamp(1rem, 2vw, 1.18rem) !important;
    box-shadow: none !important;
}

.search-input::placeholder {
    color: #7c858f !important;
}

.search-btn,
.vehicle-part-search button,
.vin-form-submit,
.reg-submit,
.catalog-more-button,
.catalog-cart-button,
.cart-add-btn {
    position: relative;
    overflow: hidden;
    color: #fff !important;
    background: linear-gradient(135deg, #ff4357, #c80f27) !important;
    border: 1px solid rgba(255, 120, 134, .54) !important;
    box-shadow: 0 12px 28px rgba(200, 15, 39, .25) !important;
    transition: transform .22s var(--rf-ease), box-shadow .22s ease, filter .22s ease !important;
}

.search-btn {
    min-width: 158px !important;
    min-height: 68px !important;
    border-radius: 17px !important;
    font-size: 1rem !important;
}

.search-btn:hover,
.vehicle-part-search button:hover,
.vin-form-submit:hover,
.reg-submit:hover,
.catalog-more-button:hover,
.catalog-cart-button:hover,
.cart-add-btn:hover {
    color: #fff !important;
    filter: brightness(1.08);
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 34px rgba(200, 15, 39, .32) !important;
}

.search-hint {
    padding: .8rem .4rem 0 !important;
    color: var(--rf-copy-muted) !important;
    text-align: left !important;
}

.search-hint code {
    color: var(--rf-copy) !important;
    background: rgba(255, 255, 255, .065) !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: 7px !important;
}

.info-notice {
    max-width: 1040px !important;
    margin: 0 auto clamp(3rem, 7vw, 6rem) !important;
    padding: 1.15rem 1.35rem !important;
    color: var(--rf-copy-soft) !important;
    background: linear-gradient(110deg, rgba(114, 214, 255, .075), rgba(255, 255, 255, .025)) !important;
    border: 1px solid rgba(114, 214, 255, .17) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    animation: rf-rise .7s .22s var(--rf-ease) both;
}

.info-notice-title,
.info-notice a {
    color: var(--rf-copy) !important;
}

.info-notice-title svg {
    color: var(--rf-cyan) !important;
}

.parts-catalog,
.catalog-directory,
.vin-block,
.contact-block,
.seo-local-section {
    position: relative;
    isolation: isolate;
    margin-bottom: clamp(2rem, 5vw, 4rem) !important;
    padding: clamp(1.25rem, 3.5vw, 2.7rem) !important;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(21, 27, 35, .92), rgba(11, 15, 21, .88)) !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: var(--rf-radius-xl) !important;
    box-shadow: var(--rf-shadow) !important;
}

.parts-catalog::before,
.catalog-directory::before,
.vin-block::before,
.seo-local-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -13rem;
    right: -11rem;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 51, 71, .13), transparent 68%);
    pointer-events: none;
}

.parts-catalog::after,
.catalog-directory::after,
.vin-block::after,
.seo-local-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.parts-catalog::after,
.seo-local-section::after {
    right: -10rem;
    bottom: -6rem;
    width: 42rem;
    height: 25rem;
    opacity: .095;
    background: var(--rf-pattern-schematic) center / contain no-repeat;
    transform: rotate(-4deg);
}

.catalog-directory::after {
    right: -7rem;
    bottom: -8rem;
    width: 31rem;
    height: 23rem;
    opacity: .105;
    background: var(--rf-pattern-art) center / contain no-repeat;
    transform: rotate(-9deg);
}

.vin-block::after {
    right: -8rem;
    bottom: -5rem;
    width: 34rem;
    height: 15rem;
    opacity: .035;
    background: var(--rf-pattern-tread) center / contain no-repeat;
    transform: rotate(-5deg);
}

.catalog-head {
    align-items: flex-start !important;
    margin-bottom: 1.8rem !important;
}

.catalog-kicker {
    color: rgba(255, 120, 134, .9) !important;
    background: transparent !important;
    border: 0 !important;
}

.catalog-kicker::before {
    width: 28px !important;
    height: 3px !important;
    border-radius: 99px;
    background: var(--rf-red) !important;
}

.catalog-head h2,
.vin-block-header h3,
.contact-block h3,
.seo-local-intro h2,
.seo-local-contact h3,
.seo-faq > h3 {
    color: var(--rf-copy) !important;
    font-family: 'Unbounded', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.16 !important;
    letter-spacing: -.04em !important;
    text-wrap: balance;
}

.catalog-head h2,
.seo-local-intro h2 {
    font-size: clamp(1.65rem, 4vw, 3.15rem) !important;
}

.catalog-directory-grid {
    gap: 1rem !important;
}

.catalog-directory-grid article,
.seo-benefit-grid article,
.seo-faq-grid article {
    position: relative;
    padding: 1.35rem !important;
    overflow: hidden;
    background: rgba(255, 255, 255, .045) !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: var(--rf-radius-md) !important;
    box-shadow: none !important;
    transition: transform .28s var(--rf-ease), border-color .28s ease, background .28s ease !important;
}

.catalog-directory-grid article::before,
.seo-benefit-grid article::before,
.seo-faq-grid article::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rf-red), transparent 72%);
    opacity: .7;
}

.catalog-directory-grid article:hover,
.seo-benefit-grid article:hover,
.seo-faq-grid article:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(255, 85, 104, .4) !important;
    background: rgba(255, 255, 255, .07) !important;
}

.catalog-directory-grid h3,
.seo-benefit-grid h3,
.seo-faq-grid h4 {
    color: var(--rf-copy) !important;
}

.catalog-directory-grid a {
    color: var(--rf-copy-soft) !important;
    border-color: var(--rf-line) !important;
    background: rgba(255, 255, 255, .035) !important;
}

.catalog-directory-grid a:hover {
    color: #fff !important;
    border-color: rgba(255, 51, 71, .48) !important;
    background: rgba(255, 51, 71, .11) !important;
    transform: translateX(3px);
}

.parts-catalog {
    border-color: rgba(114, 214, 255, .17) !important;
}

.catalog-controls,
.vehicle-part-search {
    gap: .75rem !important;
}

.catalog-select,
.vehicle-part-search input,
.vin-form-input,
.vin-form-textarea {
    color: var(--rf-copy) !important;
    background: rgba(5, 8, 12, .48) !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: 13px !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .035) !important;
}

.catalog-select:focus,
.vehicle-part-search input:focus,
.vin-form-input:focus,
.vin-form-textarea:focus {
    border-color: rgba(255, 51, 71, .55) !important;
    box-shadow: 0 0 0 4px rgba(255, 51, 71, .08) !important;
}

.catalog-card {
    background: linear-gradient(155deg, rgba(29, 36, 47, .98), rgba(14, 19, 27, .98)) !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: 21px !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .2) !important;
    transition: transform .28s var(--rf-ease), border-color .28s ease, box-shadow .28s ease !important;
}

.catalog-card:hover {
    transform: translateY(-7px) !important;
    border-color: rgba(255, 75, 95, .48) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .32) !important;
}

.catalog-card-media {
    background: #f6f7f8 !important;
}

.catalog-card-media img {
    transition: transform .55s var(--rf-ease), filter .4s ease !important;
}

.catalog-card:hover .catalog-card-media img {
    transform: scale(1.045);
}

.catalog-card-brand,
.catalog-price,
.catalog-modal-price {
    color: var(--rf-red) !important;
}

.catalog-card-title,
.catalog-card-code,
.catalog-modal-code,
.catalog-detail-button {
    color: var(--rf-copy) !important;
}

.catalog-card-meta,
.catalog-summary,
.catalog-search-context,
.catalog-fitments,
.catalog-detail-list,
.seo-local-section p,
.vin-block-header p,
.contact-block p {
    color: var(--rf-copy-soft) !important;
}

.offer-group {
    background: linear-gradient(145deg, rgba(25, 32, 42, .94), rgba(12, 17, 24, .92)) !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: 25px !important;
    box-shadow: var(--rf-shadow-soft) !important;
}

.offers-table-wrap,
.brand-table-wrap {
    border-color: var(--rf-line) !important;
    border-radius: 18px !important;
    background: rgba(8, 11, 16, .38) !important;
}

.offers-table,
.brand-table {
    color: var(--rf-copy) !important;
}

.offers-table tr,
.brand-table tr {
    border-color: var(--rf-line) !important;
}

.offers-table tr:hover,
.brand-table tr:hover {
    background: rgba(255, 255, 255, .045) !important;
}

.section-title {
    color: var(--rf-copy) !important;
}

.results-section,
.loading-bar {
    max-width: 1120px;
    margin-right: auto !important;
    margin-left: auto !important;
}

.state-box {
    background: var(--rf-surface) !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: var(--rf-radius-lg) !important;
}

.vin-block {
    display: grid !important;
    grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
    gap: clamp(1.5rem, 5vw, 4rem) !important;
    align-items: start;
    border-color: rgba(255, 73, 93, .22) !important;
}

.vin-block-header {
    position: sticky;
    top: 110px;
    padding: .35rem 0 !important;
    text-align: left !important;
}

.vin-block-header::before {
    content: "";
    display: block;
    width: 46px;
    height: 4px;
    margin-bottom: 1.2rem;
    border-radius: 99px;
    background: var(--rf-red);
}

.vin-block-header h3 {
    font-size: clamp(1.65rem, 3.5vw, 2.65rem) !important;
}

.vin-form {
    padding: 0 !important;
    gap: .85rem !important;
}

.vin-form-group {
    gap: .45rem !important;
}

.vin-form-label,
.catalog-field span,
.vehicle-part-search label {
    color: var(--rf-copy-soft) !important;
}

.vin-form-submit {
    min-height: 52px;
    padding: .85rem 1.35rem !important;
    border-radius: 13px !important;
}

.contact-block {
    padding: clamp(1.5rem, 4vw, 3rem) !important;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 51, 71, .11), transparent 24rem),
        linear-gradient(145deg, rgba(25, 31, 39, .96), rgba(12, 16, 22, .94)) !important;
    border-color: var(--rf-line) !important;
    box-shadow: var(--rf-shadow-soft) !important;
}

.contact-block::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -7rem;
    right: -4rem;
    width: 22rem;
    height: 22rem;
    opacity: .12;
    background: var(--rf-pattern-art) center / contain no-repeat;
    transform: rotate(12deg);
    pointer-events: none;
}

.contact-block::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(14rem, 42%);
    height: 3px;
    border-radius: 0 0 99px 99px;
    background: linear-gradient(90deg, transparent, var(--rf-red), transparent);
    transform: translateX(-50%);
}

.contact-block h3,
.contact-block p {
    color: #fff !important;
}

.contact-block h3 {
    font-family: 'Onest', sans-serif !important;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem) !important;
    font-weight: 700 !important;
    letter-spacing: -.025em !important;
}

.contact-btns {
    gap: .7rem !important;
}

.cta-btn {
    min-height: 48px !important;
    color: #fff !important;
    background: rgba(8, 10, 14, .24) !important;
    border: 1px solid rgba(255, 255, 255, .27) !important;
    border-radius: 13px !important;
    backdrop-filter: blur(8px);
    transition: transform .22s var(--rf-ease), background .22s ease !important;
}

.contact-block .cta-btn {
    color: rgba(255, 255, 255, .86) !important;
    background: rgba(255, 255, 255, .045) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    box-shadow: none !important;
}

.contact-block .cta-btn:hover {
    color: #fff !important;
    background: rgba(255, 51, 71, .12) !important;
    border-color: rgba(255, 82, 101, .42) !important;
    transform: translateY(-3px) !important;
}

.seo-local-section {
    padding: clamp(1.5rem, 4vw, 3.5rem) !important;
}

.seo-local-intro {
    max-width: 920px !important;
}

.seo-benefit-grid,
.seo-faq-grid {
    gap: 1rem !important;
}

.seo-local-contact {
    padding: clamp(1.25rem, 3vw, 2rem) !important;
    background: linear-gradient(120deg, rgba(114, 214, 255, .07), rgba(255, 255, 255, .025)) !important;
    border: 1px solid rgba(114, 214, 255, .16) !important;
    border-radius: var(--rf-radius-lg) !important;
}

.seo-local-contact address {
    background: rgba(255, 255, 255, .045) !important;
    border-color: var(--rf-line) !important;
    border-radius: 16px !important;
}

.seo-local-contact a,
.seo-local-contact strong {
    color: var(--rf-copy) !important;
}

.catalog-modal {
    background: rgba(2, 4, 7, .82) !important;
    backdrop-filter: blur(18px) !important;
}

.catalog-modal-panel,
.reg-modal {
    background: linear-gradient(145deg, #171e28, #0e131a) !important;
    border: 1px solid var(--rf-line-strong) !important;
    border-radius: 28px !important;
    box-shadow: var(--rf-shadow) !important;
}

.site-legal-footer {
    position: relative;
    z-index: 1;
    color: var(--rf-copy-muted) !important;
    background: rgba(5, 7, 10, .88) !important;
    border-color: var(--rf-line) !important;
}

/* Light theme: the same precision aesthetic on a clean, warm canvas. */
html[data-theme="light"] {
    --rf-grid: rgba(25, 35, 46, .05);
    --rf-surface: rgba(255, 255, 255, .78);
    --rf-line: rgba(23, 34, 46, .13);
    --rf-line-strong: rgba(23, 34, 46, .23);
    --rf-copy: #141a22;
    --rf-copy-soft: rgba(20, 26, 34, .68);
    --rf-copy-muted: rgba(20, 26, 34, .47);
    --rf-shadow: 0 32px 80px rgba(34, 45, 58, .12);
    --rf-shadow-soft: 0 16px 40px rgba(34, 45, 58, .09);
    --rf-pattern-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='480' viewBox='0 0 720 480'%3E%3Cg fill='none' stroke='%2317222d' stroke-opacity='.6' stroke-width='1.15'%3E%3Ccircle cx='108' cy='108' r='76'/%3E%3Ccircle cx='108' cy='108' r='54'/%3E%3Ccircle cx='108' cy='108' r='15'/%3E%3Ccircle cx='108' cy='67' r='5'/%3E%3Ccircle cx='149' cy='108' r='5'/%3E%3Ccircle cx='108' cy='149' r='5'/%3E%3Ccircle cx='67' cy='108' r='5'/%3E%3Cpath d='M108 32v20m0 112v20M32 108h20m112 0h20M54 54l15 15m78 78l15 15m0-108l-15 15m-78 78l-15 15M32 230h152m-152-11v22m152-22v22'/%3E%3Cg transform='translate(270 42) rotate(-9 78 128)'%3E%3Crect x='34' y='0' width='88' height='34' rx='9'/%3E%3Cpath d='M45 34v42h66V34M55 54h46M78 76v74M56 150h44M66 150l-20 76m44-76l20 76M38 226h80'/%3E%3Ccircle cx='78' cy='150' r='13'/%3E%3C/g%3E%3Ccircle cx='596' cy='352' r='72'/%3E%3Ccircle cx='596' cy='352' r='49'/%3E%3Ccircle cx='596' cy='352' r='11'/%3E%3Cpath d='M596 280v24m0 96v24M524 352h24m96 0h24M545 301l18 18m66 66l18 18m0-102l-18 18m-66 66l-18 18M506 246h180m-180-10v20m180-20v20'/%3E%3Cpath d='M208 354h112m-98-26h84m-72-26h60M452 102h146m-130-24h104m-83-24h62' stroke-dasharray='4 8'/%3E%3Cpath d='M42 392h18m-9-9v18M366 350h18m-9-9v18M664 94h18m-9-9v18'/%3E%3C/g%3E%3C/svg%3E");
    --rf-pattern-tread: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='260' viewBox='0 0 620 260'%3E%3Cg fill='none' stroke='%2317222d' stroke-opacity='.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M-72 238L72 94l64 64L280 14M46 274l144-144 64 64L398 50M164 310l144-144 64 64L516 86M282 346l144-144 64 64L634 122' stroke-width='13'/%3E%3Cpath d='M-72 238L72 94l64 64L280 14M46 274l144-144 64 64L398 50M164 310l144-144 64 64L516 86M282 346l144-144 64 64L634 122' stroke-width='1.4'/%3E%3Cpath d='M20 44h76m114 0h76m114 0h76M92 220h76m114 0h76m114 0h76' stroke-width='1' stroke-dasharray='5 10'/%3E%3C/g%3E%3C/svg%3E");
    --rf-pattern-schematic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='920' height='430' viewBox='0 0 920 430'%3E%3Cg fill='none' stroke='%2317222d' stroke-opacity='.57' stroke-width='1.2'%3E%3Cg transform='translate(72 38)'%3E%3Cpath d='M72 0v48m-30 0h60l-8 34H50l-8-34ZM56 82v34l-18 22 68 28-68 28 68 28-68 28 68 28-34 24v46m-32 0h64m-74 18h84'/%3E%3Cpath d='M16 48h112M12 366h120' stroke-dasharray='5 7'/%3E%3C/g%3E%3Cg transform='translate(355 95)'%3E%3Cpath d='M0 148c22-76 54-122 116-136 55-12 109 6 144 50l-38 34c-22-24-48-35-78-33-44 3-73 34-91 92L0 148Z'/%3E%3Cpath d='M64 132c18-39 43-59 78-63 28-3 52 5 72 25l-24 22c-14-11-28-15-45-12-22 4-36 17-48 40l-33-12Z'/%3E%3Ccircle cx='206' cy='56' r='15'/%3E%3C/g%3E%3Cg transform='translate(742 45) rotate(12 46 145)'%3E%3Cpath d='M30 0h32l8 42-14 22 20 32-18 24 16 31-20 22v90l-8 29h-8l-8-29v-90l-20-22 16-31-18-24 20-32-14-22L30 0Z'/%3E%3Cpath d='M18 292h56m-50 18h44m-38 18h32'/%3E%3C/g%3E%3Cpath d='M238 60h76m-62-22h48M274 342h114m340-20h104M32 394h856' stroke-dasharray='4 9'/%3E%3Cpath d='M304 54h18m-9-9v18M682 116h18m-9-9v18M650 346h18m-9-9v18'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: light;
    background: #f2f4f6 !important;
}

html[data-theme="light"] body {
    color: var(--rf-copy) !important;
    background:
        radial-gradient(circle at 12% 2%, rgba(255, 51, 71, .12), transparent 30rem),
        radial-gradient(circle at 90% 15%, rgba(58, 155, 202, .12), transparent 34rem),
        linear-gradient(180deg, #f8f9fb 0%, #eef2f5 58%, #f7f8f9 100%) !important;
}

html[data-theme="light"] .header {
    background: rgba(255, 255, 255, .78) !important;
    border-color: rgba(23, 34, 46, .13) !important;
    box-shadow: 0 12px 36px rgba(42, 54, 68, .1) !important;
}

html[data-theme="light"] .header-badge,
html[data-theme="light"] .header-auth-btn,
html[data-theme="light"] .header-cart-btn,
html[data-theme="light"] .back-btn,
html[data-theme="light"] .theme-switch {
    color: var(--rf-copy-soft) !important;
    background: rgba(20, 29, 39, .035) !important;
    border-color: var(--rf-line) !important;
}

html[data-theme="light"] .search-mode-switcher {
    background: rgba(255, 255, 255, .72) !important;
    border-color: var(--rf-line) !important;
}

html[data-theme="light"] .shop-status-notice {
    color: var(--rf-copy);
    background:
        radial-gradient(circle at 8% 0%, rgba(229, 145, 30, .13), transparent 17rem),
        linear-gradient(112deg, rgba(255, 255, 255, .95), rgba(248, 244, 236, .86));
    border-color: rgba(204, 126, 17, .23);
    box-shadow: 0 14px 38px rgba(42, 54, 68, .09), inset 0 1px rgba(255, 255, 255, .72);
}

html[data-theme="light"] .shop-status-eyebrow {
    color: #a85f00;
}

html[data-theme="light"] .shop-status-indicator {
    background: rgba(220, 132, 16, .075);
    border-color: rgba(190, 109, 4, .22);
}

html[data-theme="light"] .shop-status-link {
    color: #303944 !important;
    background: rgba(255, 255, 255, .68);
    border-color: rgba(23, 34, 46, .14);
}

html[data-theme="light"] .shop-status-link:hover {
    color: #8c4e00 !important;
    background: rgba(229, 145, 30, .075);
    border-color: rgba(190, 109, 4, .24);
}

html[data-theme="light"] .search-hero {
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(239, 244, 247, .88)) !important;
    border-color: var(--rf-line) !important;
}

html[data-theme="light"] .search-mode-button.active {
    background:
        linear-gradient(105deg, rgba(255, 51, 71, .16), rgba(255, 51, 71, .035) 68%),
        rgba(255, 255, 255, .82) !important;
    border-color: rgba(223, 34, 57, .32) !important;
}

html[data-theme="light"] .search-bar {
    background: rgba(255, 255, 255, .96) !important;
    border-color: rgba(20, 30, 42, .12) !important;
    box-shadow: 0 24px 65px rgba(34, 45, 58, .15), 0 0 0 8px rgba(255, 255, 255, .5) !important;
}

html[data-theme="light"] .info-notice {
    background: linear-gradient(110deg, rgba(58, 155, 202, .1), rgba(255, 255, 255, .55)) !important;
    border-color: rgba(58, 155, 202, .18) !important;
}

html[data-theme="light"] .parts-catalog,
html[data-theme="light"] .catalog-directory,
html[data-theme="light"] .vin-block,
html[data-theme="light"] .seo-local-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(242, 246, 249, .9)) !important;
    border-color: var(--rf-line) !important;
}

html[data-theme="light"] .contact-block {
    background:
        radial-gradient(circle at 92% 16%, rgba(255, 51, 71, .065), transparent 22rem),
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(239, 244, 247, .9)) !important;
    border-color: var(--rf-line) !important;
    box-shadow: var(--rf-shadow-soft) !important;
}

html[data-theme="light"] .contact-block h3 {
    color: var(--rf-copy) !important;
}

html[data-theme="light"] .contact-block p {
    color: var(--rf-copy-soft) !important;
}

html[data-theme="light"] .contact-block .cta-btn {
    color: #303944 !important;
    background: rgba(255, 255, 255, .72) !important;
    border-color: rgba(23, 34, 46, .14) !important;
}

html[data-theme="light"] .contact-block .cta-btn:hover {
    color: var(--rf-red-deep) !important;
    background: rgba(255, 51, 71, .055) !important;
    border-color: rgba(223, 34, 57, .28) !important;
}

html[data-theme="light"] .catalog-directory-grid article,
html[data-theme="light"] .seo-benefit-grid article,
html[data-theme="light"] .seo-faq-grid article,
html[data-theme="light"] .seo-local-contact,
html[data-theme="light"] .seo-local-contact address {
    background: rgba(255, 255, 255, .72) !important;
    border-color: var(--rf-line) !important;
}

html[data-theme="light"] .catalog-directory-grid a {
    background: rgba(20, 29, 39, .035) !important;
    border-color: var(--rf-line) !important;
}

html[data-theme="light"] .catalog-select,
html[data-theme="light"] .vehicle-part-search input,
html[data-theme="light"] .vin-form-input,
html[data-theme="light"] .vin-form-textarea {
    color: var(--rf-copy) !important;
    background: rgba(255, 255, 255, .9) !important;
    border-color: var(--rf-line) !important;
}

html[data-theme="light"] .catalog-card,
html[data-theme="light"] .offer-group,
html[data-theme="light"] .catalog-modal-panel,
html[data-theme="light"] .reg-modal {
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(239, 244, 247, .96)) !important;
    border-color: var(--rf-line) !important;
    box-shadow: var(--rf-shadow-soft) !important;
}

html[data-theme="light"] .offers-table-wrap,
html[data-theme="light"] .brand-table-wrap,
html[data-theme="light"] .state-box {
    color: var(--rf-copy) !important;
    background: rgba(255, 255, 255, .78) !important;
    border-color: var(--rf-line) !important;
}

html[data-theme="light"] .offers-table tr:hover,
html[data-theme="light"] .brand-table tr:hover {
    background: rgba(17, 29, 41, .035) !important;
}

html[data-theme="light"] .site-legal-footer {
    color: var(--rf-copy-muted) !important;
    background: rgba(247, 249, 250, .92) !important;
    border-color: var(--rf-line) !important;
}

@keyframes rf-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rf-sheen {
    0%, 68% { transform: translateX(-260%) rotate(18deg); }
    88%, 100% { transform: translateX(720%) rotate(18deg); }
}

@keyframes rf-status-pulse {
    0% { opacity: .75; transform: scale(.78); }
    58%, 100% { opacity: 0; transform: scale(1.55); }
}

@media (max-width: 980px) {
    .main { padding-top: 5.25rem !important; }
    .vin-block { grid-template-columns: 1fr; }
    .vin-block-header { position: static; }
}

@media (max-width: 760px) {
    body::before {
        opacity: .22;
        background-size: 640px auto, 44px 44px, 44px 44px;
        background-position: 32% 11vh, 0 0, 0 0;
    }

    body::after {
        right: -13rem;
        bottom: -7rem;
        width: 32rem;
        height: 24rem;
        opacity: .065;
    }

    .header {
        top: 6px !important;
        width: calc(100% - 12px) !important;
        padding: .55rem .65rem !important;
        border-radius: 15px !important;
    }

    .header-left,
    .header-right { gap: .4rem !important; }

    .header-badge,
    .header-phone { display: none !important; }

    .header-auth-btn {
        min-height: 34px;
        padding: .4rem .55rem !important;
        font-size: .72rem !important;
    }

    .theme-switch {
        min-width: 38px !important;
        min-height: 36px !important;
        padding: .35rem !important;
    }

    .theme-switch-label { display: none !important; }
    .main { padding: 4.8rem .8rem 3rem !important; }
    .shop-status-notice {
        grid-template-columns: auto minmax(0, 1fr);
        gap: .8rem;
        padding: .9rem;
        border-radius: 16px;
    }

    .shop-status-notice::after {
        right: -85px;
        opacity: .055;
    }

    .shop-status-indicator {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .shop-status-copy h2 {
        font-size: .94rem !important;
    }

    .shop-status-copy p {
        font-size: .78rem !important;
    }

    .shop-status-link {
        grid-column: 1 / -1;
        width: 100%;
    }

    .search-hero { margin-bottom: 1.6rem !important; }

    .search-hero h1 {
        font-size: clamp(2rem, 9.2vw, 2.85rem) !important;
        letter-spacing: -.055em !important;
    }

    .search-hero p {
        font-size: .95rem !important;
        line-height: 1.6 !important;
    }

    .search-mode-switcher {
        grid-template-columns: 1fr !important;
        border-radius: 18px !important;
    }

    .search-mode-button {
        min-height: 68px !important;
        padding: .8rem .9rem !important;
        border-radius: 14px !important;
    }

    .search-bar {
        min-height: 64px !important;
        padding: .38rem !important;
        border-radius: 17px !important;
    }

    .search-input {
        padding: 0 .8rem !important;
        font-size: 16px !important;
    }

    .search-btn {
        min-width: 52px !important;
        min-height: 54px !important;
        padding: 0 1rem !important;
        border-radius: 13px !important;
    }

    .search-btn span { display: none; }

    .search-hint {
        font-size: .73rem !important;
        line-height: 1.7;
    }

    .info-notice {
        margin-bottom: 3rem !important;
        padding: 1rem !important;
    }

    .parts-catalog,
    .catalog-directory,
    .vin-block,
    .contact-block,
    .seo-local-section {
        padding: 1rem !important;
        border-radius: 22px !important;
    }

    .parts-catalog::after,
    .catalog-directory::after,
    .vin-block::after,
    .seo-local-section::after,
    .contact-block::before {
        right: -13rem;
        opacity: .065;
    }

    .parts-catalog::after,
    .seo-local-section::after {
        width: 34rem;
        height: 21rem;
    }

    .vin-block::after {
        width: 31rem;
        height: 14rem;
        opacity: .03;
    }

    .catalog-head { gap: 1rem !important; }

    .catalog-directory-grid,
    .seo-benefit-grid,
    .seo-faq-grid { grid-template-columns: 1fr !important; }

    .contact-btns {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-btn {
        justify-content: center;
        padding: .75rem !important;
    }
}

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