:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --text: #15191d;
    --muted: #5f6870;
    --line: #d9dee3;
    --brand: #e02b25;
    --brand-dark: #b71918;
    --accent: #ff3b34;
    --accent-soft: rgba(224, 43, 37, 0.14);
    --dark: #15191d;
    --success-bg: #e8f7ef;
    --success-text: #1f6a3f;
    --error-bg: #fdeceb;
    --error-text: #932b23;
    --radius: 24px;
    --radius-sm: 14px;
    --shadow: 0 22px 58px rgba(21, 25, 29, 0.10);
    --shadow-soft: 0 12px 30px rgba(21, 25, 29, 0.08);
    --max-width: 1180px;
    --header-bg: rgba(255, 255, 255, 0.88);
    --footer-bg: #0b0d10;
    --nav-button-bg: rgba(255, 255, 255, 0.92);
    --nav-button-border: rgba(21, 25, 29, 0.12);
    --hero-panel: rgba(12, 17, 21, 0.74);
    --input-bg: #ffffff;
    --input-text: #15191d;
    --surface-tint: rgba(224, 43, 37, 0.05);
    --footer-link: rgba(255, 255, 255, 0.82);
    --footer-muted: rgba(255, 255, 255, 0.66);
    --footer-icon-bg: rgba(255, 255, 255, 0.12);
    --footer-divider: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] {
    --bg: #07090b;
    --surface: #101418;
    --surface-strong: #151b20;
    --text: #edf2f5;
    --muted: #a9b7bf;
    --line: #314149;
    --brand: #f0342d;
    --brand-dark: #c91f1d;
    --accent: #ff453f;
    --accent-soft: rgba(240, 52, 45, 0.16);
    --dark: #edf2f5;
    --success-bg: rgba(31, 106, 63, 0.22);
    --success-text: #9ce0b3;
    --error-bg: rgba(147, 43, 35, 0.22);
    --error-text: #ffb5ae;
    --shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
    --header-bg: rgba(5, 7, 9, 0.90);
    --footer-bg: #030405;
    --nav-button-bg: rgba(21, 27, 32, 0.92);
    --nav-button-border: rgba(237, 242, 245, 0.1);
    --hero-panel: rgba(8, 12, 15, 0.8);
    --input-bg: #141c21;
    --input-text: #edf2f5;
    --surface-tint: rgba(240, 52, 45, 0.09);
    --footer-link: rgba(237, 242, 245, 0.84);
    --footer-muted: rgba(237, 242, 245, 0.66);
    --footer-icon-bg: rgba(237, 242, 245, 0.12);
    --footer-divider: rgba(237, 242, 245, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(224, 43, 37, 0.08), transparent 24rem),
        radial-gradient(circle at top right, rgba(21, 25, 29, 0.05), transparent 22rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(216, 106, 53, 0.16), transparent 24rem),
        radial-gradient(circle at top right, rgba(121, 195, 203, 0.10), transparent 22rem),
        linear-gradient(180deg, #10161a 0%, var(--bg) 100%);
}

a {
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    touch-action: manipulation;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    touch-action: manipulation;
}

picture,
svg,
video,
canvas,
iframe {
    display: block;
    max-width: 100%;
}

.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;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--brand);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 100;
}

.skip-link:focus {
    top: 1rem;
}

.shell {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.public-page main {
    display: grid;
    gap: 0.2rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(21, 25, 29, 0.08);
    backdrop-filter: blur(18px);
}

.site-footer {
    margin-top: 3rem;
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.92);
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    gap: 1rem;
    background:
        radial-gradient(circle at top left, rgba(224, 43, 37, 0.12), transparent 25rem),
        radial-gradient(circle at bottom right, rgba(21, 25, 29, 0.06), transparent 24rem),
        linear-gradient(180deg, var(--surface-strong) 0%, var(--bg) 100%);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.site-loader-mark {
    display: inline-grid;
    place-items: center;
    width: clamp(7.8rem, 17vw, 9.6rem);
    height: clamp(7.8rem, 17vw, 9.6rem);
    animation: loaderPulse 1.35s ease-in-out infinite;
}

.site-loader-copy {
    text-align: center;
}

.site-loader-copy strong,
.site-loader-copy span {
    display: block;
}

.site-loader-copy span {
    color: var(--muted);
}

body.is-loading {
    overflow: hidden;
}

.nav-shell,
.footer-shell,
.intro-strip,
.cta-banner,
.location-grid,
.contact-layout,
.vehicle-layout {
    display: flex;
    gap: 1.5rem;
}

.nav-shell,
.footer-shell {
    align-items: center;
    justify-content: space-between;
}

.nav-shell {
    padding: 0.85rem 0;
    min-height: 5.25rem;
}

.footer-shell {
    padding: 2.2rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    min-width: 0;
}

.brand-navbar {
    gap: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 0.82rem;
}

.site-logo {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

.site-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
}

.site-logo-fallback {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), #df6d2d);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.site-logo.is-fallback .site-logo-image {
    display: none;
}

.site-logo.is-fallback .site-logo-fallback {
    display: grid;
}

.site-logo-header {
    width: clamp(7.8rem, 13vw, 9.8rem);
    max-width: 9.8rem;
    height: clamp(2.75rem, 4.5vw, 3.25rem);
}

.site-logo-header .site-logo-fallback {
    border-radius: 14px;
    font-size: 1rem;
}

.site-logo-loader {
    width: 100%;
    height: 100%;
}

.site-logo-loader .site-logo-fallback {
    border-radius: 1.6rem;
    font-size: 2rem;
}

.site-logo-footer {
    width: 3rem;
    height: 3rem;
}

.site-logo-footer .site-logo-fallback {
    border-radius: 16px;
    font-size: 1.05rem;
}

.footer-brand-link {
    margin-bottom: 0.9rem;
}

.brand > span:last-child {
    min-width: 0;
}

.menu-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    padding: 0.7rem;
    border: 1px solid rgba(24, 32, 38, 0.12);
    border-radius: 16px;
    background: var(--surface-strong);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--dark);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    transition: opacity 0.25s ease, transform 0.25s ease;
    will-change: transform, opacity;
}

.nav-utility {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: 0.35rem;
}

.nav-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    text-decoration: none;
    background: var(--nav-button-bg);
    border: 1px solid var(--nav-button-border);
    color: var(--text);
    cursor: pointer;
    border-radius: 999px;
    position: relative;
}

.theme-toggle .theme-icon-moon,
:root[data-theme="dark"] .theme-toggle .theme-icon-sun {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .theme-icon-moon {
    display: block;
}

.nav-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
}

.nav-icon svg,
.social-links svg {
    width: 100%;
    height: 100%;
}

.cart-badge {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    position: absolute;
    top: -0.2rem;
    right: -0.15rem;
    box-shadow: 0 0 0 3px var(--header-bg);
}

.nav-profile {
    position: relative;
}

.nav-search {
    position: relative;
}

.nav-search summary {
    list-style: none;
}

.nav-search summary::-webkit-details-marker {
    display: none;
}

.nav-search-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    width: min(24rem, calc(100vw - 2rem));
    padding: 0.75rem;
    display: grid;
    gap: 0.7rem;
    border-radius: 18px;
    background: var(--surface-strong);
    border: 1px solid var(--nav-button-border);
    box-shadow: var(--shadow);
    z-index: 30;
}

.nav-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.nav-search-form .button-primary {
    min-height: 2.8rem;
    padding: 0.75rem 1rem;
}

.nav-search-results {
    display: grid;
    gap: 0.45rem;
    max-height: 21rem;
    overflow: auto;
}

.site-nav .nav-search-result {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
}

.site-nav .nav-search-result:hover,
.site-nav .nav-search-result:focus-visible {
    background: rgba(224, 43, 37, 0.10);
}

.nav-search-result img {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(21, 25, 29, 0.05);
}

.nav-search-result span,
.nav-search-result strong,
.nav-search-result small {
    min-width: 0;
}

.nav-search-result strong,
.nav-search-result small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-search-result small {
    margin-top: 0.15rem;
    color: var(--muted);
}

.nav-profile summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-profile summary {
    list-style: none;
}

.nav-profile summary::-webkit-details-marker {
    display: none;
}

.nav-profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    min-width: 13rem;
    padding: 0.5rem;
    display: grid;
    gap: 0.35rem;
    border-radius: 18px;
    background: var(--surface-strong);
    border: 1px solid rgba(21, 25, 29, 0.10);
    box-shadow: var(--shadow);
    contain: layout paint;
}

.nav-profile-menu a,
.nav-dropdown-button {
    display: block;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    text-align: left;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}

.nav-profile-menu a:hover,
.nav-dropdown-button:hover {
    background: rgba(224, 43, 37, 0.12);
}

.site-nav a,
.button-link,
.button-primary,
.button-secondary,
.nav-button,
.hero-control,
.hero-dot,
.nav-icon-button {
    border-radius: 999px;
}

.site-nav a,
.button-link,
.nav-button {
    text-decoration: none;
    padding: 0.72rem 1rem;
}

.site-nav a[aria-current="page"] {
    background: rgba(224, 43, 37, 0.14);
    color: #fff;
    font-weight: 700;
}

.subnav {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.subnav a {
    text-decoration: none;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--nav-button-border);
    box-shadow: var(--shadow-soft);
}

.subnav a[aria-current="page"] {
    background: rgba(224, 43, 37, 0.14);
    color: #fff;
    font-weight: 700;
}

.inline-form {
    margin: 0;
}

.button-link,
.button-primary,
.button-secondary,
.nav-button,
.hero-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    padding: 0.92rem 1.3rem;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
    background: linear-gradient(135deg, var(--brand), #981816);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(224, 43, 37, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-link:hover,
.button-link:focus-visible {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
}

.button-link {
    background: var(--dark);
    color: #fff;
}

.button-secondary,
.nav-button,
.hero-control {
    background: rgba(21, 25, 29, 0.03);
    color: var(--text);
    border: 1px solid var(--nav-button-border);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.nav-button:hover,
.nav-button:focus-visible,
.hero-control:hover,
.hero-control:focus-visible {
    background: rgba(224, 43, 37, 0.12);
    border-color: rgba(224, 43, 37, 0.45);
    transform: translateY(-1px);
}

.nav-button {
    padding-block: 0.72rem;
}

.full-width {
    width: 100%;
}

.flash {
    margin: 1rem auto 0;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    will-change: opacity, transform;
}

.flash-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: rgba(31, 106, 63, 0.18);
}

.flash-error {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: rgba(147, 43, 35, 0.15);
}

.flash p {
    margin: 0.2rem 0;
}

.flash.is-dismissing {
    opacity: 0;
    transform: translateY(-0.35rem);
}

.flash.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.hero,
.page-hero {
    padding: 2.8rem 0 1.4rem;
}

.hero-home {
    padding: 0;
}

.hero-layout,
.category-grid,
.product-grid,
.trust-grid,
.story-grid,
.mini-category-grid,
.logo-grid,
.field-grid,
.auth-card,
.section-grid,
.stats-grid,
.order-detail-layout {
    display: grid;
    gap: 1.5rem;
}

.hero-layout {
    align-items: center;
}

.hero-scene,
.info-card,
.category-card,
.product-card,
.map-card,
.filter-card,
.mini-card,
.auth-card,
.empty-state,
.aside-card,
.vehicle-form,
.contact-form,
.page-hero-shell,
.cta-banner {
    background-color: var(--surface-strong);
    border: 1px solid rgba(21, 25, 29, 0.10);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-scene {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 82px);
    contain: layout paint;
    isolation: isolate;
    display: grid;
    align-items: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.66) 37%, rgba(255, 255, 255, 0.12) 72%, rgba(255, 255, 255, 0.28) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.34)),
        url("../images/home-hero-autoparts-light.png") center / cover no-repeat,
        #ffffff;
}

.hero-home .hero-scene::before,
.hero-home .hero-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-home .hero-scene::before {
    z-index: 1;
    background:
        linear-gradient(90deg, transparent 0 12%, rgba(224, 43, 37, 0.10) 12.1% 12.3%, transparent 12.4% 100%),
        linear-gradient(rgba(21, 25, 29, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 25, 29, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 76px 76px, 76px 76px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.18));
}

.hero-home .hero-scene::after {
    z-index: 1;
    background:
        radial-gradient(circle at 78% 48%, rgba(214, 42, 35, 0.10), transparent 22rem);
}

.hero-home .hero-layout {
    min-height: calc(100vh - 82px);
    position: relative;
    z-index: 2;
}

.hero-depth {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    perspective: 1400px;
    overflow: hidden;
}

.hero-depth-grid,
.hero-part {
    position: absolute;
    display: block;
    will-change: transform;
}

.hero-depth-grid {
    inset: 8% 3% 10% 46%;
    border-radius: 32px;
    background:
        linear-gradient(rgba(18, 95, 102, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 95, 102, 0.10) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.92) 26%, rgba(0, 0, 0, 0.18) 100%);
    opacity: 0.34;
    transform: rotateY(-18deg) rotateX(10deg) translateZ(5px);
}

.hero-part {
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 86px rgba(0, 0, 0, 0.58);
    transform-style: preserve-3d;
    opacity: 0.95;
}

.hero-part::before,
.hero-part::after {
    content: "";
    position: absolute;
}

.hero-gear {
    width: clamp(8rem, 14vw, 13rem);
    aspect-ratio: 1;
    right: 38%;
    bottom: 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 28%, #11181b 29% 40%, transparent 41%),
        repeating-conic-gradient(from 8deg, #d9dedb 0 7deg, #273034 7deg 14deg),
        radial-gradient(circle at 34% 30%, #f6f0e7, #7b766f 58%, #191e20);
    clip-path: polygon(50% 0%, 58% 12%, 72% 7%, 75% 22%, 91% 22%, 88% 39%, 100% 50%, 88% 61%, 91% 78%, 75% 78%, 72% 93%, 58% 88%, 50% 100%, 42% 88%, 28% 93%, 25% 78%, 9% 78%, 12% 61%, 0% 50%, 12% 39%, 9% 22%, 25% 22%, 28% 7%, 42% 12%);
    transform: rotateY(-22deg) rotateX(12deg) rotateZ(12deg) translateZ(64px);
}

.hero-wheel {
    width: clamp(17rem, 34vw, 34rem);
    aspect-ratio: 1;
    right: -4%;
    top: 12%;
    border-radius: 50%;
    background:
        radial-gradient(circle, #020304 0 10%, #9f9990 11% 13%, transparent 14%),
        repeating-conic-gradient(from 6deg, transparent 0 10deg, rgba(226, 217, 204, 0.92) 10deg 13deg, transparent 13deg 30deg),
        radial-gradient(circle, transparent 0 48%, #1a1d1e 49% 59%, #07090a 60% 73%, #26282a 74% 80%, #050607 81%);
    transform: rotateY(-24deg) rotateX(7deg) rotateZ(6deg) translateZ(12px);
}

.hero-brake-disc {
    width: clamp(14rem, 25vw, 24rem);
    aspect-ratio: 1;
    right: 14%;
    bottom: 16%;
    border-radius: 50%;
    background:
        radial-gradient(circle, #111719 0 9%, #d9d1c5 10% 19%, transparent 20%),
        radial-gradient(circle at 50% 18%, rgba(24, 32, 38, 0.50) 0 2.4%, transparent 2.6%),
        radial-gradient(circle at 82% 50%, rgba(24, 32, 38, 0.50) 0 2.4%, transparent 2.6%),
        radial-gradient(circle at 50% 82%, rgba(24, 32, 38, 0.50) 0 2.4%, transparent 2.6%),
        radial-gradient(circle at 18% 50%, rgba(24, 32, 38, 0.50) 0 2.4%, transparent 2.6%),
        repeating-conic-gradient(from 12deg, rgba(15, 17, 18, 0.55) 0 2deg, transparent 2deg 12deg),
        conic-gradient(from 24deg, #f1e7d7, #8e8275, #fbf7ee, #605a55, #eee4d4);
    transform: rotateY(-24deg) rotateX(10deg) rotateZ(-9deg) translateZ(34px);
}

.hero-brake-disc::after {
    width: 36%;
    height: 58%;
    right: -6%;
    top: 20%;
    border-radius: 28px;
    background: linear-gradient(145deg, #ef332e, #7d0808);
    box-shadow: inset 0 10px 18px rgba(255, 255, 255, 0.18);
}

.hero-coil {
    width: clamp(7rem, 11vw, 10rem);
    height: clamp(15rem, 24vw, 24rem);
    right: -1%;
    bottom: 2%;
    border: 0;
    border-radius: 999px;
    background:
        repeating-linear-gradient(180deg, transparent 0 9%, #d82f2b 9% 13%, transparent 13% 22%),
        linear-gradient(90deg, transparent 0 42%, #171b1d 43% 57%, transparent 58%);
    filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.62));
    transform: rotateY(-20deg) rotateX(5deg) rotateZ(-9deg) translateZ(40px);
}

.hero-piston {
    width: clamp(5.8rem, 9vw, 8.5rem);
    height: clamp(8.8rem, 14vw, 12.6rem);
    right: 48%;
    top: 23%;
    border-radius: 18px 18px 28px 28px;
    background:
        linear-gradient(90deg, transparent 42%, rgba(5, 7, 8, 0.58) 43% 57%, transparent 58%),
        repeating-linear-gradient(180deg, #756f67 0 12px, #d8d0c4 12px 22px);
    transform: rotateY(-18deg) rotateX(14deg) rotateZ(-12deg) translateZ(46px);
}

.hero-piston::after {
    width: 46%;
    height: 56%;
    left: 27%;
    bottom: -46%;
    border-radius: 999px;
    border: 10px solid #a9b5b4;
}

.hero-spark-plug {
    width: clamp(3.5rem, 6vw, 5rem);
    height: clamp(9rem, 15vw, 13rem);
    right: 6%;
    bottom: 26%;
    border-radius: 999px 999px 18px 18px;
    background:
        linear-gradient(180deg, #f7efe4 0 18%, #89847d 18% 28%, #f7efe4 28% 42%, #8b847b 42% 50%, #171d20 50% 100%);
    transform: rotateY(-20deg) rotateX(8deg) rotateZ(20deg) translateZ(52px);
}

.hero-spark-plug::after {
    width: 92%;
    height: 8%;
    left: 4%;
    bottom: -7%;
    border-radius: 999px;
    background: #d3622f;
}

.hero-filter {
    width: clamp(9rem, 16vw, 14rem);
    height: clamp(4.8rem, 8vw, 6.8rem);
    left: 18%;
    bottom: 12%;
    border-radius: 28px;
    background:
        repeating-linear-gradient(90deg, rgba(214, 42, 35, 0.28) 0 9px, rgba(225, 218, 205, 0.82) 9px 18px),
        linear-gradient(145deg, rgba(232, 226, 214, 0.96), rgba(93, 99, 98, 0.86));
    transform: rotateY(18deg) rotateX(10deg) rotateZ(3deg) translateZ(26px);
}

.hero-filter::before,
.hero-filter::after {
    width: 17%;
    inset-block: -8%;
    border-radius: 999px;
    background: linear-gradient(180deg, #e9efec, #9ca9a7);
}

.hero-filter::before {
    left: -5%;
}

.hero-filter::after {
    right: -5%;
}

.hero-bolt {
    width: clamp(4.2rem, 7vw, 6.6rem);
    aspect-ratio: 1;
    left: 24%;
    top: 20%;
    clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
    background:
        radial-gradient(circle, transparent 0 28%, #181d1f 29% 40%, transparent 41%),
        linear-gradient(145deg, #d7d0c5, #696a67);
    transform: rotateY(20deg) rotateX(12deg) rotateZ(-18deg) translateZ(42px);
}

.hero-depth-chip {
    position: absolute;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(18, 95, 102, 0.16);
    background: rgba(7, 9, 10, 0.58);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(12px);
}

.hero-depth-chip {
    min-width: 7.4rem;
    padding: 0.82rem 1rem;
    border-radius: 999px;
    color: #f23a34;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-depth-chip-brakes {
    right: 8%;
    top: 7%;
    transform: rotateZ(-4deg) translateZ(60px);
}

.hero-depth-chip-engine {
    right: 35%;
    top: 24%;
    transform: rotateZ(3deg) translateZ(45px);
}

.hero-depth-chip-stock {
    right: 10%;
    bottom: 18%;
    color: var(--brand);
    transform: rotateZ(2deg) translateZ(55px);
}


.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    will-change: opacity;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 0;
    max-width: 42rem;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    backdrop-filter: none;
    text-shadow: 0 18px 38px rgba(255, 255, 255, 0.72);
    will-change: transform, opacity;
}

.hero-overlay .eyebrow {
    color: var(--brand);
}

.hero-overlay p {
    color: var(--muted);
}

.hero-overlay h1,
.hero-overlay h2 {
    margin: 0 0 0.8rem;
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.hero-overlay h1 {
    font-size: clamp(2.3rem, 4.8vw, 4.4rem);
    max-width: 12ch;
}

.hero-overlay h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    max-width: 18ch;
}

.hero-controls {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    z-index: 2;
}

.hero-dots {
    display: flex;
    gap: 0.45rem;
}

.hero-dot {
    width: 0.9rem;
    height: 0.9rem;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fff;
    transform: scale(1.1);
}

.hero-aside {
    display: grid;
    gap: 1rem;
    align-content: start;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-gear {
        animation: hero-spin-gear 18s linear infinite;
    }

    .hero-wheel {
        animation: hero-spin-wheel 30s linear infinite;
    }

    .hero-brake-disc {
        animation: hero-float-brake 15s ease-in-out infinite;
    }

    .hero-piston,
    .hero-coil,
    .hero-spark-plug,
    .hero-filter,
    .hero-bolt {
        animation: hero-float-part 16s ease-in-out infinite;
    }

    .hero-depth-chip {
        animation: hero-float-soft 18s ease-in-out infinite;
    }
}

@keyframes hero-spin-gear {
    0% { transform: rotateY(-22deg) rotateX(12deg) rotateZ(12deg) translateZ(64px); }
    100% { transform: rotateY(-22deg) rotateX(12deg) rotateZ(372deg) translateZ(64px); }
}

@keyframes hero-spin-wheel {
    0% { transform: rotateY(-24deg) rotateX(7deg) rotateZ(6deg) translateZ(12px); }
    100% { transform: rotateY(-24deg) rotateX(7deg) rotateZ(366deg) translateZ(12px); }
}

@keyframes hero-float-brake {
    0%, 100% { transform: rotateY(-24deg) rotateX(10deg) rotateZ(-9deg) translate3d(0, 0, 34px); }
    50% { transform: rotateY(-20deg) rotateX(12deg) rotateZ(-5deg) translate3d(-12px, -8px, 44px); }
}

@keyframes hero-float-part {
    0%, 100% { translate: 0 0; }
    50% { translate: 8px -12px; }
}

@keyframes hero-float-soft {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

.trust-chip {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    text-align: center;
}

.aside-card,
.info-card,
.category-card,
.product-card,
.empty-state,
.page-hero-shell,
.filter-card,
.mini-card,
.vehicle-form,
.contact-form,
.map-card {
    padding: 1.5rem;
}

.page-hero-shell h1,
.section-heading h2,
.intro-strip h2,
.cta-banner h2,
.location-copy h2 {
    margin: 0 0 0.7rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.page-hero-shell h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    max-width: 14ch;
}

.page-hero-shell {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.9fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    min-height: 220px;
}

.page-hero-copy,
.page-hero-art {
    position: relative;
    z-index: 1;
}

.page-hero-copy {
    min-width: 0;
}

.page-hero-shell::before {
    content: "";
    position: absolute;
    display: block;
    pointer-events: none;
}

.page-hero-shell::before {
    inset: auto -2rem -3rem auto;
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(121, 195, 203, 0.16), rgba(121, 195, 203, 0));
    z-index: 0;
}

.page-hero-art {
    width: min(100%, 18.5rem);
    height: clamp(10rem, 24vw, 13.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    justify-self: end;
    align-self: center;
    opacity: 0.96;
}

.page-hero-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: calc(var(--radius) - 8px);
}

.page-hero .page-hero-shell {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    min-height: clamp(22rem, 44vw, 34rem);
    padding: clamp(2rem, 5vw, 4rem);
    background: #10161b;
    --hero-overlay-left: rgba(5, 8, 12, 0.26);
    --hero-overlay-mid: rgba(5, 8, 12, 0.10);
    --hero-overlay-right: rgba(5, 8, 12, 0.02);
    --hero-overlay-bottom: rgba(5, 8, 12, 0.18);
    --hero-panel-bg: rgba(50, 58, 58, 0.80);
    --hero-panel-border: rgba(255, 255, 255, 0.18);
    --hero-panel-shadow: rgba(0, 0, 0, 0.34);
    --hero-copy: #fff;
    --hero-muted-copy: rgba(255, 255, 255, 0.86);
}

.page-hero .page-hero-shell::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
    background:
        linear-gradient(90deg, var(--hero-overlay-left), var(--hero-overlay-mid) 48%, var(--hero-overlay-right)),
        linear-gradient(180deg, rgba(5, 8, 12, 0.08), var(--hero-overlay-bottom));
    z-index: 1;
}

.page-hero .page-hero-copy {
    max-width: min(100%, 52rem);
    padding: clamp(1.35rem, 3vw, 2rem);
    color: var(--hero-copy);
    border: 1px solid var(--hero-panel-border);
    border-radius: calc(var(--radius) - 8px);
    background: var(--hero-panel-bg);
    box-shadow: 0 22px 70px var(--hero-panel-shadow);
    backdrop-filter: blur(14px) saturate(120%);
    z-index: 2;
}

.page-hero .page-hero-copy h1 {
    color: var(--hero-copy);
    max-width: 14ch;
}

.page-hero .page-hero-copy p:not(.eyebrow) {
    color: var(--hero-muted-copy);
    max-width: 58rem;
}

.page-hero .page-hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 0;
}

.page-hero .page-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.page-category .category-hero .page-hero-art {
    background: #f5f7f7;
}

.page-category .category-hero .page-hero-art img {
    object-fit: cover;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
}

.page-section {
    padding: 1.4rem 0;
}

.page-section-tint {
    background:
        radial-gradient(circle at 12% 0%, rgba(224, 43, 37, 0.10), transparent 20rem),
        linear-gradient(180deg, var(--surface-tint), rgba(0, 0, 0, 0));
}

.eyebrow {
    margin: 0 0 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 800;
}

.intro-strip,
.cta-banner,
.location-grid,
.contact-layout,
.vehicle-layout {
    align-items: center;
    justify-content: space-between;
}

.intro-strip,
.cta-banner {
    padding: 1.7rem;
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 246, 248, 0.86)),
        var(--surface-strong);
    border: 1px solid rgba(21, 25, 29, 0.10);
    box-shadow: var(--shadow-soft);
}

.intro-strip > * {
    flex: 1 1 0;
}

.section-heading {
    margin-bottom: 1.5rem;
    max-width: 46rem;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card,
.shop-product-card {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    overflow: hidden;
}

.category-link-card {
    text-decoration: none;
    color: inherit;
}

.category-card img,
.product-card img,
.map-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: calc(var(--radius) - 10px);
}

.category-media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: calc(var(--radius) - 10px);
    background: #10161b;
}

.category-media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
    border-radius: 0;
}

.category-media img[src*="lubricants"],
.category-media img[src*="coolant"] {
    padding: 0;
}

.map-card iframe {
    width: 100%;
    height: min(450px, 56vw);
    min-height: 320px;
    border: 0;
    border-radius: calc(var(--radius) - 10px);
}

.map-card-embed {
    padding: 0;
    overflow: hidden;
    min-height: clamp(320px, 52vw, 520px);
}

.map-card-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border-radius: inherit;
}

.category-card h3,
.product-card h3,
.mini-card h3,
.info-card h2,
.info-card h3 {
    margin: 1rem 0 0.45rem;
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-body {
    padding-top: 0.4rem;
}

.product-tag {
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(224, 43, 37, 0.14);
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
}

.trust-grid,
.story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.stack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.stack-actions-inline {
    margin-top: 0;
}

.location-grid,
.contact-layout,
.vehicle-layout {
    align-items: stretch;
}

.location-grid > *,
.contact-layout > *,
.vehicle-layout > * {
    flex: 1 1 0;
}

.filter-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

.shop-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(2, minmax(180px, 1fr)) auto;
    gap: 1rem;
    align-items: end;
}

.filter-card-search {
    min-width: 0;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.catalog-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.page-section-tight {
    padding-top: 0.2rem;
    padding-bottom: 0.4rem;
}

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.shop-product-card {
    height: 100%;
}

.shop-product-card h2 {
    font-size: 1.18rem;
}

.product-media {
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: calc(var(--radius) - 10px);
    background: linear-gradient(180deg, #ffffff, #eef1f4);
}

.product-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.product-price {
    font-size: 1.15rem;
    color: var(--dark);
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.stock-in {
    background: rgba(31, 106, 63, 0.1);
    color: var(--success-text);
}

.stock-low {
    background: rgba(224, 43, 37, 0.14);
    color: var(--brand);
}

.stock-out {
    background: rgba(147, 43, 35, 0.1);
    color: var(--error-text);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.pagination-label {
    color: var(--muted);
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
}

.product-actions form {
    margin: 0;
}

.fitment-text-link {
    align-self: flex-start;
    display: inline;
    margin: 0.45rem 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.fitment-text-link:hover,
.fitment-text-link:focus-visible {
    color: var(--brand-dark);
}

.fitment-text-link:focus-visible {
    outline: 3px solid rgba(224, 43, 37, 0.28);
    outline-offset: 4px;
    border-radius: 4px;
}

.fitment-modal-open {
    overflow: hidden;
}

.fitment-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(8, 11, 14, 0.62);
    backdrop-filter: blur(5px);
}

.fitment-modal-overlay[hidden] {
    display: none;
}

.fitment-modal {
    width: min(860px, 100%);
    max-height: min(78vh, 720px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--surface-strong);
    color: var(--text);
    border: 1px solid rgba(21, 25, 29, 0.14);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
}

.fitment-modal:focus {
    outline: none;
}

.fitment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

.fitment-modal-header h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.25;
}

.fitment-modal-close {
    flex: 0 0 auto;
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(21, 25, 29, 0.12);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.fitment-modal-close:hover,
.fitment-modal-close:focus-visible {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.fitment-modal-body {
    min-height: 0;
    padding: 1rem 1.25rem 1.25rem;
}

.fitment-table-wrap {
    max-height: min(56vh, 520px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.fitment-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: var(--surface-strong);
}

.fitment-table th,
.fitment-table td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.fitment-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface);
    color: var(--dark);
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fitment-table tr:last-child td {
    border-bottom: 0;
}

.product-detail-layout,
.cart-layout,
.track-layout,
.admin-grid,
.admin-links,
.order-detail-layout {
    display: grid;
    gap: 1.5rem;
}

.product-detail-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: start;
}

.product-detail-media,
.product-detail-copy,
.cart-items-card,
.cart-summary-card,
.admin-table-card,
.track-form {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--surface-strong);
    border: 1px solid rgba(21, 25, 29, 0.10);
    box-shadow: var(--shadow);
}

.product-detail-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: calc(var(--radius) - 10px);
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr));
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.product-gallery-thumb {
    padding: 0.25rem;
    border: 1px solid rgba(21, 25, 29, 0.12);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.product-gallery-thumb.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(224, 43, 37, 0.12);
}

.product-gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.product-detail-price {
    margin: 0.3rem 0 1rem;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--brand);
}

.product-purchase-form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.order-items-list,
.admin-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.order-card h2 {
    margin-top: 0;
}

.cart-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    align-items: start;
}

.order-detail-layout {
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
}

.cart-items-card,
.cart-summary-card {
    display: grid;
    gap: 1rem;
}

.payment-method-form {
    display: grid;
    gap: 0.85rem;
}

.cart-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 110px 90px;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
}

.cart-copy h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.cart-qty {
    display: grid;
    gap: 0.35rem;
}

.cart-price {
    font-weight: 800;
}

.summary-line,
.order-card-top,
.order-meta-grid {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-list {
    display: grid;
    gap: 1rem;
}

.order-item-summary {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.timeline {
    display: grid;
    gap: 0.85rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: var(--surface-strong);
    border: 1px solid rgba(21, 25, 29, 0.10);
    box-shadow: var(--shadow);
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
}

.timeline-step span {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.timeline-step.is-active {
    color: var(--text);
}

.timeline-step.is-active span {
    background: var(--brand);
}

.track-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.admin-grid {
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.admin-actions-cell,
.admin-status-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-actions-cell form,
.admin-status-form {
    margin: 0;
}

.admin-actions-cell button,
.admin-status-form button {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(21, 25, 29, 0.03);
    color: var(--text);
    cursor: pointer;
}

.filter-card label,
.vehicle-form label,
.contact-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

.mini-category-grid,
.logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logo-grid span,
.mini-card {
    text-align: center;
}

.admin-image-preview {
    display: grid;
    gap: 0.6rem;
}

.admin-image-preview img {
    width: min(100%, 14rem);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(21, 25, 29, 0.10);
    background: var(--surface-strong);
}

.admin-product-images {
    display: grid;
    gap: 0.8rem;
}

.admin-image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.85rem;
}

.admin-product-image-preview {
    display: grid;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid rgba(21, 25, 29, 0.10);
    border-radius: var(--radius-sm);
    background: rgba(21, 25, 29, 0.03);
}

.admin-product-image-preview.is-main {
    border-color: rgba(224, 43, 37, 0.55);
    box-shadow: 0 0 0 3px rgba(224, 43, 37, 0.12);
}

.admin-product-image-preview img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    background: var(--surface-strong);
}

.admin-product-image-preview label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
}

.admin-image-remove {
    width: 100%;
}

.admin-fitment-sections {
    display: grid;
    gap: 1rem;
}

.admin-fitment-manager,
.admin-fitment-workspace {
    display: grid;
    gap: 1rem;
}

.admin-fitment-manager.is-loading {
    cursor: progress;
}

.admin-fitment-search-panel {
    position: relative;
}

.admin-fitment-results {
    display: grid;
    gap: 0.65rem;
}

.admin-fitment-result {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.7rem;
    border: 1px solid rgba(21, 25, 29, 0.10);
    border-radius: 8px;
    background: var(--surface-strong);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.admin-fitment-result:hover,
.admin-fitment-result:focus-visible {
    border-color: rgba(224, 43, 37, 0.45);
    box-shadow: 0 0 0 3px rgba(224, 43, 37, 0.10);
}

.admin-fitment-result img,
.admin-fitment-summary img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(21, 25, 29, 0.06);
}

.admin-fitment-result span {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.admin-fitment-result strong,
.admin-fitment-result small {
    overflow-wrap: anywhere;
}

.admin-fitment-result small,
.admin-fitment-result em {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: normal;
}

.admin-fitment-result mark {
    padding: 0 0.1rem;
    border-radius: 4px;
    background: rgba(255, 211, 77, 0.55);
    color: inherit;
}

.admin-fitment-summary {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(21, 25, 29, 0.10);
    border-radius: 8px;
    background: rgba(21, 25, 29, 0.03);
}

.admin-fitment-summary img {
    width: 72px;
    height: 72px;
}

.admin-fitment-summary h2,
.admin-fitment-summary p {
    margin: 0;
}

.admin-fitment-summary h2 {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}

.admin-fitment-summary p:not(.eyebrow) {
    color: var(--muted);
}

.admin-fitment-mode,
.admin-fitment-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.admin-fitment-mode .is-active {
    background: var(--ink);
    color: var(--surface);
}

.admin-fitment-section {
    padding: 1rem;
    border: 1px solid rgba(21, 25, 29, 0.10);
    border-radius: 8px;
    background: rgba(21, 25, 29, 0.03);
}

.admin-fitment-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.admin-fitment-section-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.admin-fitment-group {
    display: grid;
    gap: 0.75rem;
}

.admin-fitment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-fitment-copy {
    display: grid;
    gap: 0.2rem;
}

.admin-fitment-copy strong {
    font-size: 0.98rem;
}

.admin-fitment-copy span {
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-fitment-bulk,
.admin-fitment-rows {
    display: grid;
    gap: 1rem;
}

.admin-fitment-bulk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-fitment-bulk-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.admin-fitment-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(21, 25, 29, 0.025);
    border: 1px solid rgba(21, 25, 29, 0.10);
}

.admin-fitment-quick textarea {
    min-height: 10rem;
    resize: vertical;
}

.admin-fitment-selected-card {
    display: grid;
    gap: 1rem;
}

.admin-fitment-remove {
    align-self: end;
    justify-self: start;
}

.admin-toast-tray {
    position: fixed;
    z-index: 80;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    gap: 0.6rem;
    max-width: min(420px, calc(100vw - 2rem));
}

.admin-toast {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #123d2a;
    color: #fff;
    box-shadow: 0 16px 40px rgba(21, 25, 29, 0.18);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-toast-error {
    background: #7f1d1d;
}

.admin-toast.is-hiding {
    opacity: 0;
    transform: translateY(8px);
}

.logo-grid span {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(21, 25, 29, 0.04);
    border: 1px solid rgba(21, 25, 29, 0.10);
    font-weight: 700;
}

.field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.vehicle-form,
.contact-form {
    display: grid;
    gap: 1rem;
}

.admin-page .contact-form {
    align-self: start;
    align-content: start;
}

.admin-page .contact-form label,
.admin-page .admin-fitment-row {
    align-content: start;
}

.admin-page .contact-form input:not([type="checkbox"]):not([type="file"]),
.admin-page .contact-form select {
    min-height: 3rem;
    height: auto;
    padding: 0.82rem 1rem;
    border-radius: 12px;
}

.admin-page .contact-form .button-primary,
.admin-page .contact-form .button-secondary {
    align-self: start;
    min-height: 3rem;
    height: auto;
    width: fit-content;
    padding: 0.82rem 1.2rem;
}

.empty-state {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.footer-brand,
.footer-meta {
    max-width: 21rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--footer-link);
}

.footer-brand p,
.footer-meta p,
.footer-contact {
    color: var(--footer-muted);
}

.social-links {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.social-links a {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    text-decoration: none;
    background: var(--footer-icon-bg);
    color: #fff;
}

.info-card:hover,
.category-card:hover,
.product-card:hover,
.mini-card:hover,
.map-card:hover,
.filter-card:hover,
.aside-card:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
    border-color: rgba(224, 43, 37, 0.34);
}

.social-links a:hover,
.social-links a:focus-visible {
    transform: translate3d(0, -2px, 0);
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid var(--footer-divider);
}

.footer-bottom p {
    margin: 0;
    padding: 0.9rem 0;
    font-size: 0.88rem;
    color: var(--footer-muted);
    text-align: center;
}

.auth-shell,
.dashboard-shell {
    padding: 3rem 0 4rem;
}

.auth-card {
    grid-template-columns: 1fr 1.1fr;
    overflow: hidden;
}

.auth-copy,
.auth-form {
    padding: 2rem;
}

.auth-copy {
    background:
        linear-gradient(160deg, rgba(224, 43, 37, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.auth-form {
    display: grid;
    gap: 0.85rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.92rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--input-bg);
    color: var(--input-text);
}

::placeholder {
    color: var(--muted);
    opacity: 1;
}

textarea {
    min-height: 9rem;
    resize: vertical;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(224, 43, 37, 0.28);
    outline-offset: 2px;
}

.field-help,
.form-meta,
.page-hero-shell p,
.section-heading p,
.intro-strip p,
.location-copy p,
.contact-list,
.info-card p,
.product-card p,
.category-card p,
.feature-list,
.info-list dd {
    color: var(--muted);
}

.contact-list,
.feature-list,
.info-list {
    margin: 0;
    padding-left: 1.15rem;
}

.info-list div {
    margin-bottom: 1rem;
}

.info-list dt {
    font-weight: 700;
}

.info-list dd {
    margin: 0.2rem 0 0;
}

.page-intro {
    margin-bottom: 1.5rem;
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .hero-slideshow,
:root[data-theme="dark"] .hero-scene,
:root[data-theme="dark"] .info-card,
:root[data-theme="dark"] .category-card,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .map-card,
:root[data-theme="dark"] .filter-card,
:root[data-theme="dark"] .mini-card,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .aside-card,
:root[data-theme="dark"] .vehicle-form,
:root[data-theme="dark"] .contact-form,
:root[data-theme="dark"] .page-hero-shell,
:root[data-theme="dark"] .cta-banner,
:root[data-theme="dark"] .product-detail-media,
:root[data-theme="dark"] .product-detail-copy,
:root[data-theme="dark"] .cart-items-card,
:root[data-theme="dark"] .cart-summary-card,
:root[data-theme="dark"] .admin-table-card,
:root[data-theme="dark"] .track-form,
:root[data-theme="dark"] .timeline,
:root[data-theme="dark"] .intro-strip {
    border-color: rgba(237, 242, 245, 0.08);
}

:root[data-theme="dark"] .flash-success {
    border-color: rgba(156, 224, 179, 0.18);
}

:root[data-theme="dark"] .flash-error {
    border-color: rgba(255, 181, 174, 0.18);
}

:root[data-theme="dark"] .page-hero-shell::before {
    background: radial-gradient(circle, rgba(121, 195, 203, 0.12), rgba(121, 195, 203, 0));
}

:root[data-theme="dark"] .page-hero-art {
    opacity: 0.84;
}

:root[data-theme="dark"] .page-hero .page-hero-shell {
    --hero-overlay-left: rgba(3, 6, 10, 0.88);
    --hero-overlay-mid: rgba(3, 6, 10, 0.58);
    --hero-overlay-right: rgba(3, 6, 10, 0.18);
    --hero-overlay-bottom: rgba(3, 6, 10, 0.76);
    --hero-panel-bg: rgba(8, 13, 19, 0.72);
    --hero-panel-border: rgba(255, 255, 255, 0.15);
    --hero-panel-shadow: rgba(0, 0, 0, 0.34);
    --hero-copy: #fff;
    --hero-muted-copy: rgba(255, 255, 255, 0.86);
}

:root[data-theme="dark"] .page-hero .page-hero-shell::before {
    background:
        linear-gradient(90deg, var(--hero-overlay-left), var(--hero-overlay-mid) 48%, var(--hero-overlay-right)),
        linear-gradient(180deg, rgba(5, 8, 12, 0.08), var(--hero-overlay-bottom));
}

:root[data-theme="dark"] .page-hero .page-hero-copy {
    backdrop-filter: blur(6px) saturate(110%);
}

:root[data-theme="dark"] .page-hero .page-hero-art {
    opacity: 1;
}

:root[data-theme="dark"] .page-category .category-hero .page-hero-art,
:root[data-theme="dark"] .page-category .category-hero .page-hero-art img {
    background: #10161b;
}

:root[data-theme="dark"] .hero-scene {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.36) 38%, rgba(0, 0, 0, 0.06) 72%, rgba(0, 0, 0, 0.20) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34)),
        url("../images/home-hero-autoparts-3d.png") center / cover no-repeat,
        #050709;
}

:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .nav-button,
:root[data-theme="dark"] .hero-control,
:root[data-theme="dark"] .admin-actions-cell button,
:root[data-theme="dark"] .admin-status-form button,
:root[data-theme="dark"] .admin-fitment-section,
:root[data-theme="dark"] .admin-fitment-row,
:root[data-theme="dark"] .logo-grid span {
    background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .product-media {
    background: linear-gradient(180deg, #1f262a, #0b0e11);
}

:root[data-theme="dark"] .fitment-modal {
    border-color: rgba(237, 242, 245, 0.10);
}

:root[data-theme="dark"] .fitment-modal-close {
    border-color: rgba(237, 242, 245, 0.12);
}

:root[data-theme="dark"] .fitment-table th {
    background: #101418;
}

:root[data-theme="dark"] .admin-product-image-preview,
:root[data-theme="dark"] .product-gallery-thumb {
    border-color: rgba(237, 242, 245, 0.10);
}

:root[data-theme="dark"] .intro-strip,
:root[data-theme="dark"] .cta-banner {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        var(--surface-strong);
}

:root[data-theme="dark"] .site-nav {
    border-top-color: rgba(255, 255, 255, 0.09);
}

:root[data-theme="dark"] .hero-home .hero-scene::before {
    background:
        linear-gradient(rgba(121, 195, 203, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(121, 195, 203, 0.055) 1px, transparent 1px);
    background-size: 68px 68px;
}

:root[data-theme="dark"] .hero-home .hero-scene::after {
    background:
        radial-gradient(circle at 78% 48%, rgba(214, 42, 35, 0.10), transparent 22rem);
}

:root[data-theme="dark"] .hero-part,
:root[data-theme="dark"] .hero-depth-chip {
    border-color: rgba(237, 242, 245, 0.10);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .hero-overlay {
    color: var(--text);
    text-shadow: 0 18px 38px rgba(0, 0, 0, 0.46);
}

:root[data-theme="dark"] .hero-overlay p {
    color: rgba(237, 242, 245, 0.78);
}

:root[data-theme="dark"] .menu-toggle span,
:root[data-theme="dark"] .nav-icon-button,
:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .nav-button,
:root[data-theme="dark"] .hero-control,
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    color: var(--text);
}

@keyframes loaderPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: var(--shadow);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 24px 60px rgba(24, 32, 38, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body,
    a,
    .site-loader,
    .site-loader-mark,
    .hero-slide,
    .button-link,
    .button-primary,
    .button-secondary,
    .nav-button,
    .hero-control,
    .site-nav,
    .menu-toggle,
    .hero-dot,
    .info-card,
    .category-card,
    .product-card,
    .mini-card,
    .map-card,
    .filter-card,
    .aside-card,
    .social-links a {
        transition: none;
    }

    .site-loader-mark {
        animation: none;
    }
}

@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(11.5rem, 14rem));
        justify-content: center;
        gap: 0.9rem;
    }

    .shop-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(13rem, 15.5rem));
        justify-content: center;
        gap: 0.9rem;
    }

    .category-card,
    .shop-product-card {
        max-width: 14rem;
    }

    .category-card,
    .shop-product-card,
    .product-body {
        font-size: 0.94rem;
    }

    .category-card,
    .shop-product-card {
        padding: 1.1rem;
    }

    .category-media,
    .category-card img {
        aspect-ratio: 16 / 9;
    }

    .product-media {
        aspect-ratio: 16 / 9;
    }

    .product-media img {
        height: 100%;
    }

    .category-card h3,
    .shop-product-card h2 {
        margin-top: 0.75rem;
        font-size: 0.98rem;
        line-height: 1.25;
    }

    .product-meta,
    .product-actions {
        margin-top: 0.75rem;
    }
}

@media (max-width: 980px) {
    .hero-layout,
    .category-grid,
    .product-grid,
    .trust-grid,
    .story-grid,
    .order-items-list,
    .admin-links,
    .mini-category-grid,
    .logo-grid,
    .auth-card,
    .section-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar,
    .shop-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(10.75rem, 13rem));
        gap: 0.85rem;
    }

    .shop-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(12rem, 14rem));
        gap: 0.85rem;
    }

    .category-card,
    .shop-product-card {
        max-width: 13rem;
        padding: 1rem;
    }

    .category-media,
    .category-card img {
        aspect-ratio: 16 / 9;
    }

    .product-media {
        aspect-ratio: 16 / 9;
    }

    .product-media img {
        height: 100%;
    }

    .shop-product-card h2,
    .category-card h3 {
        font-size: 0.95rem;
    }

    .footer-shell,
    .location-grid,
    .contact-layout,
    .vehicle-layout,
    .cta-banner,
    .intro-strip,
    .section-heading-row,
    .summary-line,
    .order-card-top,
    .order-meta-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-detail-layout,
    .cart-layout,
    .admin-grid,
    .track-form,
    .order-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(10.5rem, 12.5rem));
    }

    .shop-product-grid {
        grid-template-columns: repeat(auto-fit, minmax(11.5rem, 13.5rem));
    }

    .category-card,
    .shop-product-card {
        max-width: 12.5rem;
    }

    .category-media,
    .category-card img {
        aspect-ratio: 16 / 9;
    }

    .product-media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 920px) {
.menu-toggle {
        display: inline-block;
    }

    .nav-shell {
        flex-wrap: wrap;
    }

    .site-logo-header {
        width: clamp(6.8rem, 19vw, 8.6rem);
        height: clamp(2.45rem, 6.5vw, 3rem);
    }

    .site-nav {
        display: none;
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(21, 25, 29, 0.10);
        transform: translate3d(0, -0.25rem, 0);
        opacity: 0;
    }

    .site-nav.is-open {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

    .site-nav a,
    .button-link,
    .nav-button {
        justify-content: center;
    }

    .nav-utility {
        display: flex;
        width: auto;
        margin-left: 0;
        justify-content: center;
    }

    .nav-search {
        width: auto;
    }

    .nav-search-panel {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: 5.75rem;
        width: auto;
    }

    .nav-search-form {
        grid-template-columns: 1fr;
    }

    .nav-profile {
        width: auto;
    }

    .nav-profile summary {
        width: 3rem;
    }

    .nav-profile-menu {
        position: static;
        min-width: 0;
        box-shadow: none;
        border-radius: 14px;
    }
}

@media (max-width: 760px) {
    .hero-layout,
    .category-grid,
    .product-grid,
    .shop-product-grid,
    .trust-grid,
    .story-grid,
    .order-items-list,
    .admin-links,
    .mini-category-grid,
    .logo-grid,
    .shop-toolbar,
    .field-grid,
    .admin-fitment-row,
    .admin-fitment-summary,
    .auth-card,
    .section-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-fitment-result {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .admin-fitment-result em {
        grid-column: 2;
    }

    .admin-fitment-summary .product-tag {
        justify-self: start;
    }

    .admin-fitment-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-scene,
    .hero-home .hero-layout {
        min-height: calc(100vh - 76px);
    }

    .hero-gear {
        width: clamp(7rem, 22vw, 11rem);
        right: 34%;
        bottom: 8%;
    }

    .hero-wheel {
        width: clamp(15rem, 40vw, 25rem);
        right: -10%;
        top: 17%;
    }

    .hero-brake-disc {
        width: clamp(10rem, 28vw, 16rem);
        right: 16%;
        bottom: 19%;
    }

    .hero-coil {
        width: clamp(5.8rem, 12vw, 8rem);
        height: clamp(12rem, 28vw, 19rem);
        right: -2%;
        bottom: 7%;
    }

    .hero-piston {
        right: 43%;
        top: 11%;
    }

    .hero-spark-plug {
        right: 4%;
        bottom: 29%;
    }

    .hero-filter {
        left: 7%;
    }

    .hero-depth-grid {
        inset: 10% 2% 14% 40%;
    }

    .hero-depth-chip {
        min-width: 6.2rem;
        padding: 0.68rem 0.78rem;
        font-size: 0.68rem;
    }

    .hero-depth-chip-engine {
        right: 31%;
        top: 29%;
    }

    .hero-overlay {
        inset: auto;
    }

    .hero-overlay h1 {
        max-width: 10ch;
    }

    .cart-row {
        grid-template-columns: 1fr;
    }

    .category-card,
    .shop-product-card {
        max-width: none;
    }

    .subnav {
        gap: 0.65rem;
    }

    .subnav a {
        flex: 1 1 100%;
        text-align: center;
    }

    .category-media,
    .category-card img,
    .product-media img {
        aspect-ratio: 4 / 3;
    }

    .fitment-modal-overlay {
        align-items: flex-end;
        padding: 0.75rem;
    }

    .fitment-modal {
        max-height: 86vh;
        border-radius: var(--radius-sm);
    }

    .fitment-modal-header,
    .fitment-modal-body {
        padding-inline: 1rem;
    }

    .fitment-table {
        min-width: 560px;
    }
}

@media (max-width: 600px) {
    .shell {
        width: min(calc(100% - 1.25rem), var(--max-width));
    }

    .nav-shell {
        min-height: 4.75rem;
        padding: 0.75rem 0;
    }

    .brand {
        gap: 0.7rem;
    }

    .site-logo-header {
        width: clamp(6rem, 30vw, 7.3rem);
        height: clamp(2.2rem, 10vw, 2.7rem);
    }

    .hero,
    .page-hero {
        padding-top: 2rem;
    }

    .page-hero-shell h1,
    .section-heading h2,
    .intro-strip h2,
    .cta-banner h2,
    .location-copy h2 {
        font-size: clamp(1.7rem, 7vw, 2.3rem);
    }

    .page-hero-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-bottom: 1.25rem;
    }

    .page-hero-shell::before {
        width: 11rem;
        height: 11rem;
        inset: auto -1.5rem -2.5rem auto;
    }

    .page-hero-art {
        width: min(9rem, 42vw);
        height: auto;
        justify-self: start;
        opacity: 0.75;
    }

    .page-hero-art img {
        height: auto;
    }

    .hero-scene,
    .hero-home .hero-layout {
        min-height: calc(100vh - 76px);
    }

    .hero-home .hero-scene::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0.20) 38%, rgba(255, 255, 255, 0.82) 100%);
    }

    .hero-gear {
        width: 8rem;
        right: 27%;
        bottom: 27%;
        opacity: 0.72;
    }

    .hero-wheel {
        width: 15rem;
        right: -6.5rem;
        top: 16%;
        opacity: 0.78;
    }

    .hero-brake-disc {
        width: 10rem;
        right: 7%;
        bottom: 31%;
        opacity: 0.62;
    }

    .hero-coil {
        width: 5rem;
        height: 12rem;
        right: -1.2rem;
        bottom: 10%;
        opacity: 0.62;
    }

    .hero-piston {
        width: 4.6rem;
        height: 7rem;
        right: 44%;
        top: 13%;
        opacity: 0.58;
    }

    .hero-spark-plug {
        width: 3rem;
        height: 8rem;
        right: 3%;
        bottom: 36%;
        opacity: 0.6;
    }

    .hero-filter {
        width: 7.8rem;
        height: 4.2rem;
        left: 5%;
        bottom: 31%;
        opacity: 0.64;
    }

    .hero-bolt {
        width: 4rem;
        left: 13%;
        top: 13%;
        opacity: 0.58;
    }

    .hero-depth-grid {
        inset: 8% -6% 34% 28%;
        opacity: 0.2;
    }

    .hero-depth-chip {
        min-width: 5.6rem;
        padding: 0.58rem 0.65rem;
        opacity: 0.78;
    }

    .hero-depth-chip-brakes {
        right: 5%;
        top: 8%;
    }

    .hero-depth-chip-engine {
        right: 34%;
        top: 21%;
    }

    .hero-depth-chip-stock {
        right: 7%;
        bottom: 29%;
    }

    .site-loader-mark {
        width: clamp(6.9rem, 25vw, 7.9rem);
        height: clamp(6.9rem, 25vw, 7.9rem);
    }

    .aside-card,
    .info-card,
    .category-card,
    .product-card,
    .map-card,
    .filter-card,
    .mini-card,
    .auth-copy,
    .auth-form,
    .vehicle-form,
    .contact-form,
    .page-hero-shell,
    .empty-state,
    .cta-banner,
    .intro-strip {
        padding: 1.25rem;
    }

    .hero-actions,
    .cta-actions,
    .hero-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .button-primary,
    .button-secondary,
    .button-link,
    .nav-button,
    .hero-control {
        width: 100%;
    }

    .admin-page .contact-form .button-primary,
    .admin-page .contact-form .button-secondary {
        width: 100%;
        min-height: 3rem;
        height: auto;
    }

    .nav-icon-button,
    .nav-profile summary {
        width: 2.9rem;
        height: 2.9rem;
    }

    .filter-actions,
    .product-meta,
    .catalog-summary,
    .pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-overlay {
        padding: 0;
    }

    .hero-overlay p {
        font-size: 0.95rem;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    :root[data-theme="dark"] .hero-home .hero-scene::after {
        background: linear-gradient(180deg, rgba(8, 13, 17, 0.54) 0%, rgba(8, 13, 17, 0.22) 38%, rgba(8, 13, 17, 0.72) 100%);
    }
}
