/*
Theme Name: AxiVoxy
Theme URI: https://axivoxy.com
Description: A modern WooCommerce theme purpose-built for AxiVoxy — specialists in genuine and 3rd-party Toyota parts (Axio, Voxy, Noah, Esquire). Features a search-as-hero homepage, generation browser, OEM badge system, and full WooCommerce integration.
Version: 1.0.0
Author: AxiVoxy
Author URI: https://axivoxy.com
Text Domain: axivoxy
Domain Path: /languages
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.1
WC requires at least: 8.0
WC tested up to: 9.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, woocommerce, auto-parts, custom-colors, custom-menu, featured-images, full-width-template, translation-ready
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    --ax-red:          #C0392B;
    --ax-red-dark:     #962d22;
    --ax-red-light:    #fdf0ee;
    --ax-amber:        #D4870A;
    --ax-amber-bg:     #FEF3DC;
    --ax-amber-border: #F5C76A;
    --ax-charcoal:     #1C1C1E;
    --ax-charcoal-2:   #2C2C2E;
    --ax-charcoal-3:   #3A3A3C;
    --ax-mid:          #636366;
    --ax-border:       #E5E5EA;
    --ax-light:        #F2F2F7;
    --ax-warm-white:   #FAFAF9;
    --ax-white:        #ffffff;
    --ax-green:        #1A7F4E;
    --ax-green-bg:     #EAFAF1;
    --ax-blue:         #1A56DB;

    --ax-font:         'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ax-font-mono:    'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    --ax-radius-sm:    4px;
    --ax-radius-md:    8px;
    --ax-radius-lg:    12px;
    --ax-radius-xl:    16px;

    --ax-shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
    --ax-shadow-md:    0 4px 16px rgba(0,0,0,0.10);
    --ax-shadow-lg:    0 8px 32px rgba(0,0,0,0.14);

    --ax-transition:   0.15s ease;
    --ax-container:    1280px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--ax-font);
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ax-charcoal);
    background: var(--ax-warm-white);
}

a { color: var(--ax-red); text-decoration: none; transition: color var(--ax-transition); }
a:hover { color: var(--ax-red-dark); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

input, button, select, textarea {
    font-family: var(--ax-font);
    font-size: inherit;
}
button { cursor: pointer; }

/* =============================================
   LAYOUT
   ============================================= */
.ax-container {
    width: 100%;
    max-width: var(--ax-container);
    margin-inline: auto;
    padding-inline: 24px;
}

/* =============================================
   TOPBAR
   ============================================= */
.ax-topbar {
    background: #111111;
    color: #888;
    font-size: 0.71rem;
    padding-block: 7px;
    border-bottom: 1px solid #222;
}

.ax-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ax-topbar__left,
.ax-topbar__right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ax-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ax-topbar__badge {
    background: var(--ax-amber);
    color: #fff;
    border-radius: 100px;
    padding: 2px 9px;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* =============================================
   HEADER — 3-ROW STICKY CHARCOAL
   ============================================= */
.ax-header {
    background: var(--ax-charcoal);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

/* Row 1: Logo + Search + Actions */
.ax-header__main {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}

/* Brand / Logo */
.ax-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    text-decoration: none;
}
.ax-brand:hover { text-decoration: none; }

.ax-brand__icon {
    width: 32px;
    height: 32px;
    background: var(--ax-red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ax-brand__icon svg { fill: #fff; }

.ax-brand__text { line-height: 1; }
.ax-brand__name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    display: block;
}
.ax-brand__sub {
    font-size: 0.6rem;
    color: #555;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-top: 1px;
    display: block;
}

/* Search bar */
.ax-header-search {
    flex: 1;
    max-width: 680px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--ax-radius-md);
    overflow: hidden;
}

.ax-header-search__vehicle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 44px;
    background: var(--ax-light);
    border-right: 1px solid #ddd;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ax-charcoal);
    white-space: nowrap;
    flex-shrink: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
    cursor: pointer;
    transition: background var(--ax-transition);
}
.ax-header-search__vehicle:hover { background: #e8e8ed; }
.ax-header-search__vehicle svg { fill: var(--ax-red); }

.ax-header-search__input {
    flex: 1;
    height: 44px;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 0.88rem;
    color: var(--ax-charcoal);
    background: #fff;
    min-width: 0;
}
.ax-header-search__input::placeholder { color: #aaa; }

.ax-header-search__btn {
    height: 44px;
    padding: 0 18px;
    background: var(--ax-red);
    color: #fff;
    font-size: 0.83rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: background var(--ax-transition);
    white-space: nowrap;
}
.ax-header-search__btn:hover { background: var(--ax-red-dark); }
.ax-header-search__btn svg { stroke: #fff; }

/* Search results dropdown */
.ax-header-search__results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-md);
    box-shadow: var(--ax-shadow-lg);
    max-height: 340px;
    overflow-y: auto;
    z-index: 200;
}
.ax-header-search__results.is-open { display: block; }

.ax-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--ax-border);
    text-decoration: none;
    transition: background var(--ax-transition);
}
.ax-search-result:hover { background: var(--ax-light); }
.ax-search-result:last-child { border-bottom: none; }
.ax-search-result__img {
    width: 48px;
    height: 40px;
    background: var(--ax-light);
    border-radius: var(--ax-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ax-search-result__img img { width: 100%; height: 100%; object-fit: cover; }
.ax-search-result__name { font-size: 0.83rem; font-weight: 600; color: var(--ax-charcoal); margin-bottom: 2px; }
.ax-search-result__meta { font-size: 0.7rem; color: var(--ax-mid); }
.ax-search-result__price { font-size: 0.9rem; font-weight: 700; color: var(--ax-red); margin-left: auto; white-space: nowrap; }

/* Header actions */
.ax-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.ax-header__action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: var(--ax-radius-md);
    transition: background var(--ax-transition), color var(--ax-transition);
    position: relative;
    text-decoration: none;
}
.ax-header__action:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}
.ax-header__action svg { stroke: currentColor; fill: none; }

.ax-header__action--primary {
    background: #fff;
    color: var(--ax-charcoal);
    font-weight: 600;
}
.ax-header__action--primary:hover {
    background: var(--ax-light);
    color: var(--ax-charcoal);
}
.ax-header__action--primary svg { fill: var(--ax-charcoal); stroke: none; }

.ax-cart-count {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--ax-red);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile hamburger */
.ax-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding: 7px 10px;
    border-radius: var(--ax-radius-sm);
    cursor: pointer;
}

/* Row 2: Category nav */
.ax-header__nav-row {
    border-top: 1px solid #2a2a2a;
}

.ax-header__nav-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 40px;
    overflow: hidden;
}

.ax-nav__link {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    padding: 5px 11px;
    border-radius: var(--ax-radius-sm);
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--ax-transition), color var(--ax-transition);
}
.ax-nav__link:hover,
.ax-nav__link.current-menu-item {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}

/* Dropdown */
.ax-nav .menu-item-has-children { position: relative; }
.ax-nav .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: var(--ax-charcoal-2);
    border-radius: var(--ax-radius-md);
    box-shadow: var(--ax-shadow-md);
    padding: 6px 0;
    z-index: 200;
}
.ax-nav .menu-item-has-children:hover .sub-menu { display: block; }
.ax-nav .sub-menu a {
    display: block;
    padding: 8px 16px;
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    text-decoration: none;
    transition: background var(--ax-transition);
}
.ax-nav .sub-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }

.ax-nav__divider {
    width: 1px;
    height: 20px;
    background: #333;
    margin: 0 6px;
    flex-shrink: 0;
}

.ax-nav__gen-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--ax-radius-sm);
    background: var(--ax-red);
    white-space: nowrap;
    margin-left: auto;
    text-decoration: none;
    transition: background var(--ax-transition);
    border: none;
    cursor: pointer;
}
.ax-nav__gen-btn:hover { background: var(--ax-red-dark); color: #fff; text-decoration: none; }
.ax-nav__gen-btn svg { fill: currentColor; }

/* =============================================
   HERO — SEARCH IS THE HERO
   ============================================= */
.ax-hero {
    background: var(--ax-charcoal);
    padding: 56px 24px 48px;
    position: relative;
    overflow: hidden;
}

.ax-hero__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(192,57,43,0.10) 0%, transparent 60%);
    pointer-events: none;
}

.ax-hero__inner {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.ax-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(212,135,10,0.15);
    border: 1px solid rgba(212,135,10,0.3);
    border-radius: 100px;
    padding: 4px 14px;
    margin-bottom: 20px;
}
.ax-hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ax-amber);
    display: inline-block;
    flex-shrink: 0;
}
.ax-hero__eyebrow-text {
    font-size: 0.71rem;
    font-weight: 600;
    color: var(--ax-amber);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.ax-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}
.ax-hero__title span { color: var(--ax-red); }

.ax-hero__sub {
    font-size: 1rem;
    color: #888;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Big search bar */
.ax-hero-search {
    background: #fff;
    border-radius: var(--ax-radius-lg);
    display: flex;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    position: relative;
}

.ax-hero-search__vehicle {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    background: var(--ax-light);
    border-right: 1px solid #ddd;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    border-right: 1px solid #ddd;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--ax-charcoal);
}
.ax-hero-search__vehicle svg { fill: var(--ax-red); }

.ax-hero-search__input {
    flex: 1;
    height: 54px;
    border: none;
    outline: none;
    padding: 0 20px;
    font-size: 0.9rem;
    color: var(--ax-charcoal);
    background: #fff;
    min-width: 0;
}
.ax-hero-search__input::placeholder { color: #bbb; }

.ax-hero-search__btn {
    height: 54px;
    padding: 0 28px;
    background: var(--ax-red);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: background var(--ax-transition);
}
.ax-hero-search__btn:hover { background: var(--ax-red-dark); }
.ax-hero-search__btn svg { stroke: #fff; fill: none; }

/* Dropdown results */
.ax-hero-search__results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--ax-border);
    border-top: none;
    border-radius: 0 0 var(--ax-radius-lg) var(--ax-radius-lg);
    box-shadow: var(--ax-shadow-lg);
    max-height: 320px;
    overflow-y: auto;
    z-index: 200;
}
.ax-hero-search__results.is-open { display: block; }

/* Quick chips */
.ax-hero__chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.ax-hero__chip-label { font-size: 0.73rem; color: #666; }
.ax-hero__chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    padding: 5px 13px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--ax-transition), border-color var(--ax-transition);
    font-family: var(--ax-font);
}
.ax-hero__chip:hover {
    background: rgba(192,57,43,0.25);
    border-color: rgba(192,57,43,0.5);
}

/* Year/Make/Model cascade */
.ax-hero__cascade {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--ax-radius-md);
    padding: 16px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ax-hero__cascade-label {
    font-size: 0.73rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ax-cascade-select {
    flex: 1;
    min-width: 110px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--ax-radius-sm);
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0 10px;
    font-size: 0.82rem;
    font-family: var(--ax-font);
    outline: none;
    cursor: pointer;
    transition: border-color var(--ax-transition);
}
.ax-cascade-select:focus { border-color: rgba(255,255,255,0.4); }
.ax-cascade-select option { color: var(--ax-charcoal); background: #fff; }

.ax-cascade-btn {
    height: 38px;
    padding: 0 20px;
    background: var(--ax-red);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--ax-radius-sm);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--ax-transition);
    font-family: var(--ax-font);
}
.ax-cascade-btn:hover { background: var(--ax-red-dark); }

/* =============================================
   SECTION HEADERS
   ============================================= */
.ax-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.ax-section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ax-red);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
}

.ax-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ax-charcoal);
    letter-spacing: -0.4px;
    line-height: 1.15;
}

.ax-section-sub {
    font-size: 0.84rem;
    color: var(--ax-mid);
    margin-top: 3px;
}

.ax-section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--ax-red);
    padding: 7px 14px;
    border: 1px solid rgba(192,57,43,0.25);
    border-radius: var(--ax-radius-sm);
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--ax-transition), border-color var(--ax-transition);
    flex-shrink: 0;
}
.ax-section-link:hover { background: var(--ax-red-light); border-color: var(--ax-red); text-decoration: none; }

/* =============================================
   GENERATION BROWSER
   ============================================= */
.ax-gen-section {
    padding: 52px 0;
    background: var(--ax-warm-white);
}

/* Model tabs */
.ax-gen-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--ax-border);
    margin-bottom: 24px;
}

.ax-gen-tab {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ax-mid);
    padding: 8px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color var(--ax-transition), border-color var(--ax-transition);
    font-family: var(--ax-font);
}
.ax-gen-tab:hover { color: var(--ax-charcoal); }
.ax-gen-tab.is-active {
    color: var(--ax-red);
    font-weight: 600;
    border-bottom-color: var(--ax-red);
}

/* Generation cards */
.ax-gen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.ax-gen-card {
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: box-shadow var(--ax-transition), transform var(--ax-transition), border-color var(--ax-transition);
}
.ax-gen-card:hover {
    box-shadow: var(--ax-shadow-md);
    transform: translateY(-2px);
    border-color: rgba(192,57,43,0.3);
    text-decoration: none;
}

.ax-gen-card__img {
    height: 130px;
    background: var(--ax-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.ax-gen-card__img img {
    max-height: 110px;
    width: auto;
    object-fit: contain;
}

.ax-gen-card__code {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ax-charcoal);
    color: #fff;
    font-size: 0.63rem;
    font-weight: 700;
    border-radius: var(--ax-radius-sm);
    padding: 3px 7px;
    letter-spacing: 0.3px;
}

.ax-gen-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ax-amber);
    color: #fff;
    font-size: 0.63rem;
    font-weight: 700;
    border-radius: var(--ax-radius-sm);
    padding: 3px 7px;
}

.ax-gen-card__body { padding: 14px 16px 16px; }

.ax-gen-card__years {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ax-charcoal);
    margin-bottom: 2px;
}

.ax-gen-card__chassis {
    font-size: 0.71rem;
    color: var(--ax-mid);
    margin-bottom: 8px;
    font-family: var(--ax-font-mono);
}

.ax-gen-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ax-gen-card__label {
    font-size: 0.68rem;
    font-weight: 600;
    background: var(--ax-light);
    color: var(--ax-mid);
    border-radius: 100px;
    padding: 3px 9px;
}
.ax-gen-card__label--amber {
    background: var(--ax-amber-bg);
    color: var(--ax-amber);
}

.ax-gen-card__cta {
    font-size: 0.73rem;
    color: var(--ax-red);
    font-weight: 600;
}

/* =============================================
   CATEGORY CHIPS
   ============================================= */
.ax-cat-section {
    padding: 0 0 44px;
    background: var(--ax-warm-white);
}

.ax-cat-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ax-cat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-md);
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ax-charcoal);
    text-decoration: none;
    transition: border-color var(--ax-transition), box-shadow var(--ax-transition);
}
.ax-cat-chip:hover {
    border-color: var(--ax-red);
    box-shadow: 0 2px 8px rgba(192,57,43,0.12);
    text-decoration: none;
    color: var(--ax-charcoal);
}
.ax-cat-chip svg { fill: var(--ax-red); flex-shrink: 0; }

/* =============================================
   PRODUCT CARDS
   ============================================= */
.ax-products-section {
    padding: 0 0 52px;
    background: var(--ax-warm-white);
}

.ax-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.ax-product-card {
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--ax-transition);
}
.ax-product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.09); }

.ax-product-card__img {
    height: 160px;
    background: var(--ax-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.ax-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.ax-product-card:hover .ax-product-card__img img { transform: scale(1.04); }

.ax-product-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 0.7rem;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        var(--ax-light),
        var(--ax-light) 8px,
        #eaeaef 8px,
        #eaeaef 16px
    );
    justify-content: center;
}
.ax-product-card__placeholder svg { fill: #ccc; }

/* Badges */
.ax-product-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ax-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--ax-radius-sm);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.4;
}
.ax-badge--genuine {
    background: var(--ax-amber);
    color: #fff;
}
.ax-badge--third-party {
    background: var(--ax-charcoal-2);
    color: #ccc;
}
.ax-badge--used {
    background: var(--ax-charcoal-2);
    color: #ccc;
}
.ax-badge--sale {
    background: var(--ax-red);
    color: #fff;
}
.ax-badge--grade-a {
    background: var(--ax-green);
    color: #fff;
}
.ax-badge--in-stock {
    background: var(--ax-green-bg);
    color: var(--ax-green);
    border: 1px solid #A9DFBF;
}
.ax-badge--out-of-stock {
    background: var(--ax-red-light);
    color: var(--ax-red-dark);
    border: 1px solid rgba(192,57,43,0.3);
}

/* Wishlist */
.ax-product-card__wishlist {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ax-mid);
    transition: color var(--ax-transition);
}
.ax-product-card__wishlist:hover { color: var(--ax-red); }
.ax-product-card__wishlist.is-wished { color: var(--ax-red); }

/* Card body */
.ax-product-card__body {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ax-product-card__name {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--ax-charcoal);
    line-height: 1.3;
    text-decoration: none;
}
.ax-product-card__name:hover { color: var(--ax-red); text-decoration: none; }

.ax-product-card__oem {
    font-size: 0.7rem;
    color: var(--ax-mid);
    font-family: var(--ax-font-mono);
    background: var(--ax-light);
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
}

.ax-product-card__meta {
    font-size: 0.7rem;
    color: var(--ax-mid);
    line-height: 1.4;
}

.ax-product-card__compat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--ax-green);
}
.ax-product-card__compat svg { fill: var(--ax-green); flex-shrink: 0; }

.ax-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--ax-border);
    gap: 8px;
}

.ax-price { font-size: 1rem; font-weight: 700; color: var(--ax-charcoal); }
.ax-price-was { font-size: 0.75rem; color: #bbb; text-decoration: line-through; margin-left: 5px; font-weight: 400; }

.ax-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--ax-charcoal);
    color: #fff;
    border: none;
    border-radius: var(--ax-radius-sm);
    padding: 7px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: var(--ax-font);
    cursor: pointer;
    transition: background var(--ax-transition);
    text-decoration: none;
    white-space: nowrap;
}
.ax-add-to-cart:hover { background: var(--ax-red); color: #fff; text-decoration: none; }
.ax-add-to-cart.loading { opacity: 0.7; cursor: wait; }
.ax-add-to-cart.added { background: var(--ax-green); }
.ax-add-to-cart svg { stroke: #fff; fill: none; }

/* =============================================
   SINGLE PRODUCT PAGE
   ============================================= */
.ax-single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.ax-product-gallery {
    background: var(--ax-light);
    border-radius: var(--ax-radius-xl);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ax-product-gallery__main {
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.ax-product-gallery__main img { width: 100%; height: 100%; object-fit: contain; }

.ax-product-gallery__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }

.ax-product-gallery__thumb {
    width: 64px;
    height: 52px;
    background: #fff;
    border: 2px solid var(--ax-border);
    border-radius: var(--ax-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--ax-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ax-product-gallery__thumb:hover,
.ax-product-gallery__thumb.is-active { border-color: var(--ax-red); }
.ax-product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.ax-part-diagram {
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-md);
    padding: 12px;
    text-align: center;
}
.ax-part-diagram__label { font-size: 0.72rem; color: var(--ax-mid); margin-bottom: 8px; }

/* Product info */
.ax-product-info {}

.ax-product-info__compat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--ax-green-bg);
    border: 1px solid #A9DFBF;
    color: var(--ax-green);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--ax-radius-sm);
    margin-bottom: 12px;
}

.ax-product-info__title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ax-charcoal);
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.ax-product-info__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    align-items: center;
}

.ax-product-info__price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}
.ax-product-info__price { font-size: 1.8rem; font-weight: 800; color: var(--ax-charcoal); letter-spacing: -0.5px; }
.ax-product-info__was { font-size: 1rem; color: var(--ax-mid); text-decoration: line-through; }
.ax-product-info__save {
    background: var(--ax-green-bg);
    border: 1px solid #A9DFBF;
    color: var(--ax-green);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--ax-radius-sm);
}

/* Spec table */
.ax-spec-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.83rem; }
.ax-spec-table td { padding: 7px 0; border-bottom: 1px solid var(--ax-border); vertical-align: top; }
.ax-spec-table td:first-child { color: var(--ax-mid); width: 42%; }
.ax-spec-table td:last-child { font-weight: 600; color: var(--ax-charcoal); }
.ax-spec-table__oem { font-family: var(--ax-font-mono); font-size: 0.8rem; }

/* Buttons */
.ax-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: var(--ax-radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: var(--ax-font);
    transition: background var(--ax-transition), color var(--ax-transition);
    text-decoration: none;
    white-space: nowrap;
}
.ax-btn--primary { background: var(--ax-red); color: #fff; }
.ax-btn--primary:hover { background: var(--ax-red-dark); color: #fff; text-decoration: none; }
.ax-btn--secondary { background: #fff; color: var(--ax-charcoal); border: 1px solid var(--ax-border); }
.ax-btn--secondary:hover { background: var(--ax-light); text-decoration: none; }
.ax-btn--charcoal { background: var(--ax-charcoal); color: #fff; }
.ax-btn--charcoal:hover { background: var(--ax-charcoal-2); color: #fff; text-decoration: none; }

.ax-product-info__actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ax-product-info__actions .ax-btn--primary { flex: 2; justify-content: center; }
.ax-product-info__actions .ax-btn--secondary { flex: 1; justify-content: center; }

/* Notice */
.ax-product-info__notice {
    background: #FEF9E7;
    border: 1px solid #F9E79F;
    border-radius: var(--ax-radius-sm);
    padding: 10px 14px;
    font-size: 0.78rem;
    color: #7D6608;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Perks */
.ax-product-info__perks {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--ax-mid);
    flex-wrap: wrap;
}
.ax-product-info__perk { display: inline-flex; align-items: center; gap: 5px; }
.ax-product-info__perk svg { fill: var(--ax-red); }

/* =============================================
   SHOP ARCHIVE
   ============================================= */
.ax-shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

.ax-sidebar {
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-lg);
    padding: 20px;
    position: sticky;
    top: 120px;
}

.ax-sidebar__title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ax-charcoal);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ax-red);
    display: inline-block;
}

.ax-sidebar__widget { margin-bottom: 24px; }
.ax-sidebar__widget:last-child { margin-bottom: 0; }

.ax-sidebar__list { display: flex; flex-direction: column; gap: 2px; }
.ax-sidebar__list-item a {
    font-size: 0.82rem;
    color: var(--ax-charcoal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    text-decoration: none;
    transition: color var(--ax-transition);
}
.ax-sidebar__list-item a:hover { color: var(--ax-red); }
.ax-sidebar__list-item .count {
    font-size: 0.68rem;
    background: var(--ax-light);
    color: var(--ax-mid);
    padding: 1px 6px;
    border-radius: 100px;
}

.ax-condition-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.ax-condition-chip {
    background: var(--ax-light);
    border: 1px solid var(--ax-border);
    color: var(--ax-charcoal);
    padding: 5px 11px;
    border-radius: 100px;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ax-transition);
    display: inline-block;
}
.ax-condition-chip.is-active,
.ax-condition-chip:hover {
    background: var(--ax-red-light);
    border-color: var(--ax-red);
    color: var(--ax-red-dark);
    text-decoration: none;
}

.ax-price-filter input[type="range"] { width: 100%; accent-color: var(--ax-red); cursor: pointer; }
.ax-price-filter__values { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ax-mid); margin-top: 6px; }

.ax-archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-md);
    padding: 10px 16px;
}
.ax-archive-toolbar__count { font-size: 0.82rem; color: var(--ax-mid); }
.ax-archive-toolbar__sort select {
    background: var(--ax-light);
    border: 1px solid var(--ax-border);
    color: var(--ax-charcoal);
    padding: 5px 10px;
    border-radius: var(--ax-radius-sm);
    font-size: 0.8rem;
    font-family: var(--ax-font);
    cursor: pointer;
}

.ax-view-toggle { display: flex; gap: 4px; }
.ax-view-btn {
    width: 30px; height: 30px;
    border: 1px solid var(--ax-border);
    background: var(--ax-light);
    border-radius: var(--ax-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ax-mid);
    transition: all var(--ax-transition);
}
.ax-view-btn.is-active,
.ax-view-btn:hover { background: var(--ax-red); border-color: var(--ax-red); color: #fff; }

/* =============================================
   TRUST STRIP
   ============================================= */
.ax-trust-strip {
    background: var(--ax-charcoal);
    padding: 36px 0;
}

.ax-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.ax-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ax-trust-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ax-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ax-trust-icon svg { fill: currentColor; }

.ax-trust-item__title { font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.ax-trust-item__sub { font-size: 0.76rem; color: #666; line-height: 1.5; }

/* =============================================
   FOOTER
   ============================================= */
.ax-footer {
    background: #111111;
    color: #555;
    padding: 48px 0 0;
}

.ax-footer__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #222;
}

.ax-footer__brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ax-footer__brand-icon {
    width: 28px; height: 28px;
    background: var(--ax-red);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ax-footer__brand-icon svg { fill: #fff; }

.ax-footer__tagline { font-size: 0.8rem; line-height: 1.65; color: #555; margin-bottom: 16px; }

.ax-payment-icons { display: flex; gap: 7px; flex-wrap: wrap; }
.ax-payment-icon {
    border: 1px solid #333;
    border-radius: var(--ax-radius-sm);
    padding: 4px 9px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #555;
}

.ax-footer__col-title {
    font-size: 0.73rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.ax-footer__links { display: flex; flex-direction: column; gap: 9px; }
.ax-footer__links a { font-size: 0.8rem; color: #555; text-decoration: none; transition: color var(--ax-transition); }
.ax-footer__links a:hover { color: #fff; }

.ax-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 12px;
    flex-wrap: wrap;
}
.ax-footer__copyright { font-size: 0.75rem; color: #444; }
.ax-footer__legal { display: flex; gap: 16px; }
.ax-footer__legal a { font-size: 0.75rem; color: #444; text-decoration: none; transition: color var(--ax-transition); }
.ax-footer__legal a:hover { color: #fff; }

/* =============================================
   CART & CHECKOUT
   ============================================= */
.ax-cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

.ax-cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ax-border); align-items: flex-start; }
.ax-cart-item__img {
    width: 80px; height: 64px;
    background: var(--ax-light);
    border-radius: var(--ax-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ax-cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.ax-cart-item__name { font-size: 0.88rem; font-weight: 600; color: var(--ax-charcoal); margin-bottom: 3px; }
.ax-cart-item__meta { font-size: 0.72rem; color: var(--ax-mid); margin-bottom: 8px; }

.ax-order-summary {
    background: var(--ax-light);
    border-radius: var(--ax-radius-lg);
    padding: 20px;
    position: sticky;
    top: 120px;
}
.ax-order-summary__title { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.ax-summary-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 5px 0; color: var(--ax-mid); }
.ax-summary-row--total { border-top: 1px solid var(--ax-border); padding-top: 12px; margin-top: 6px; font-weight: 700; font-size: 1rem; color: var(--ax-charcoal); }

/* =============================================
   BREADCRUMB
   ============================================= */
.ax-breadcrumb {
    font-size: 0.78rem;
    color: var(--ax-mid);
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}
.ax-breadcrumb a { color: var(--ax-mid); text-decoration: none; }
.ax-breadcrumb a:hover { color: var(--ax-charcoal); }
.ax-breadcrumb__sep { color: #ccc; }
.ax-breadcrumb__current { color: var(--ax-charcoal); font-weight: 500; }

/* =============================================
   UTILITY
   ============================================= */
.ax-section-spacer { padding: 32px 0; }
.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .ax-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .ax-shop-layout { grid-template-columns: 1fr; }
    .ax-sidebar { display: none; }
    .ax-single-product { grid-template-columns: 1fr; }
    .ax-cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --ax-container: 100%; }
    .ax-container { padding-inline: 16px; }
    .ax-header__main { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
    .ax-header-search { max-width: 100%; order: 3; width: 100%; }
    .ax-header__nav-row { display: none; }
    .ax-menu-toggle { display: flex; }
    .ax-hero { padding: 36px 16px 32px; }
    .ax-hero__title { font-size: 1.7rem; }
    .ax-hero-search { flex-direction: column; border-radius: var(--ax-radius-md); }
    .ax-hero-search__vehicle { border-right: none; border-bottom: 1px solid var(--ax-border); height: 40px; }
    .ax-hero-search__input { height: 46px; }
    .ax-hero-search__btn { height: 44px; border-radius: 0; }
    .ax-hero__cascade { flex-direction: column; align-items: stretch; }
    .ax-gen-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .ax-products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .ax-footer__grid { grid-template-columns: 1fr; gap: 20px; }
    .ax-topbar { display: none; }
    .ax-trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .ax-gen-grid { grid-template-columns: 1fr 1fr; }
    .ax-products-grid { grid-template-columns: 1fr 1fr; }
    .ax-trust-grid { grid-template-columns: 1fr; }
    .ax-hero__title { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
