/*
Theme Name: Hema Digital
Theme URI: https://hemadigital.hr
Author: Hema Digital
Author URI: https://hemadigital.hr
Description: Cobra Moto Europe Parts Portal — custom high-performance WooCommerce theme
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
Text Domain: hema-digital
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand */
    --c-red:           #D72323;
    --c-red-dark:      #B01C1C;
    --c-yellow:        #F5C400;
    --c-yellow-dark:   #C99E00;
    --c-black:         #111111;
    --c-black-soft:    #1A1A1A;

    /* Neutral scale */
    --c-white:         #FFFFFF;
    --c-grey-50:       #F8F8F8;
    --c-grey-100:      #F2F2F2;
    --c-grey-200:      #E5E5E5;
    --c-grey-300:      #CCCCCC;
    --c-grey-400:      #999999;
    --c-grey-500:      #666666;
    --c-grey-600:      #444444;
    --c-grey-700:      #333333;

    /* Semantic */
    --c-bg:            var(--c-grey-50);
    --c-bg-card:       var(--c-white);
    --c-bg-dark:       #1E1E1E;
    --c-border:        var(--c-grey-200);
    --c-border-strong: var(--c-grey-300);
    --c-text:          var(--c-black);
    --c-text-muted:    var(--c-grey-500);
    --c-text-light:    var(--c-grey-400);

    /* Status */
    --c-success:       #1A9E5A;
    --c-warning:       #E07B00;
    --c-error:         var(--c-red);
    --c-info:          #1A6BB5;

    /* Typography */
    --font-display:    'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body:       'Barlow', 'Helvetica Neue', sans-serif;
    --font-mono:       'JetBrains Mono', 'Courier New', monospace;

    --fs-xs:           0.75rem;
    --fs-sm:           0.8125rem;
    --fs-base:         0.9375rem;
    --fs-md:           1rem;
    --fs-lg:           1.125rem;
    --fs-xl:           1.375rem;
    --fs-2xl:          1.75rem;
    --fs-3xl:          2.25rem;
    --fs-4xl:          3rem;

    --fw-regular:      400;
    --fw-medium:       500;
    --fw-semibold:     600;
    --fw-bold:         700;
    --fw-black:        800;

    --lh-tight:        1.1;
    --lh-snug:         1.3;
    --lh-normal:       1.5;
    --lh-relaxed:      1.7;

    /* Spacing */
    --sp-1:   0.25rem;
    --sp-2:   0.5rem;
    --sp-3:   0.75rem;
    --sp-4:   1rem;
    --sp-5:   1.25rem;
    --sp-6:   1.5rem;
    --sp-8:   2rem;
    --sp-10:  2.5rem;
    --sp-12:  3rem;
    --sp-16:  4rem;
    --sp-20:  5rem;
    --sp-24:  6rem;

    /* Layout */
    --sidebar-width:      320px;
    --header-height:      72px;
    --nav-height:         48px;
    --container-max:      1440px;
    --content-max:        1120px;
    --radius-sm:          4px;
    --radius-md:          8px;
    --radius-lg:          12px;
    --radius-xl:          16px;
    --radius-full:        9999px;

    /* Shadows */
    --shadow-xs:   0 1px 2px rgba(0,0,0,0.06);
    --shadow-sm:   0 2px 6px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl:   0 16px 48px rgba(0,0,0,0.16);

    /* Transitions */
    --transition-fast:   120ms ease;
    --transition-base:   200ms ease;
    --transition-slow:   320ms ease;

    /* Breakpoints (reference only, use in media queries) */
    --bp-sm:   576px;
    --bp-md:   768px;
    --bp-lg:   1024px;
    --bp-xl:   1280px;
    --bp-2xl:  1440px;

    /* Z-index scale */
    --z-below:    -1;
    --z-base:      0;
    --z-raised:    10;
    --z-dropdown:  100;
    --z-sticky:    200;
    --z-overlay:   300;
    --z-modal:     400;
    --z-toast:     500;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--c-text);
    background-color: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.portal-layout {
    display: grid;
    grid-template-rows: var(--header-height) var(--nav-height) 1fr auto;
    grid-template-columns: 1fr var(--sidebar-width);
    grid-template-areas:
        "header  header"
        "subnav  subnav"
        "main    sidebar"
        "footer  sidebar";
    min-height: 100vh;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p { line-height: var(--lh-relaxed); }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-header {
    grid-area: header;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--c-black);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 var(--sp-6);
    gap: var(--sp-6);
    border-bottom: 2px solid var(--c-red);
}

.site-subnav {
    grid-area: subnav;
    background: var(--c-black-soft);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 var(--sp-6);
    gap: var(--sp-6);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: var(--header-height);
    z-index: calc(var(--z-sticky) - 1);
}

.site-main {
    grid-area: main;
    min-width: 0;
    padding: var(--sp-8) var(--sp-6);
}

.site-footer {
    grid-area: footer;
    background: var(--c-black);
    color: var(--c-grey-400);
}

.cart-sidebar {
    grid-area: sidebar;
    width: var(--sidebar-width);
    background: var(--c-white);
    border-left: 1px solid var(--c-border);
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height));
    height: calc(100vh - var(--header-height) - var(--nav-height));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: var(--z-raised);
}

.container {
    max-width: var(--content-max);
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 44px;
    width: auto;
}

.header-logo .logo-placeholder {
    height: 44px;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: var(--fw-black);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-logo .logo-placeholder span {
    color: var(--c-red);
}

.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.header-search input {
    width: 100%;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: var(--c-white);
    padding: 0 var(--sp-4) 0 var(--sp-10);
    font-size: var(--fs-sm);
    transition: border-color var(--transition-base), background var(--transition-base);
    outline: none;
}

.header-search input::placeholder { color: rgba(255,255,255,0.4); }
.header-search input:focus {
    border-color: var(--c-red);
    background: rgba(255,255,255,0.12);
}

.header-search .search-icon {
    position: absolute;
    left: var(--sp-3);
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    pointer-events: none;
    display: flex;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-dropdown);
    max-height: 420px;
    overflow-y: auto;
    display: none;
}

.search-results-dropdown.is-open { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    cursor: pointer;
    border-bottom: 1px solid var(--c-grey-100);
    transition: background var(--transition-fast);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--c-grey-50); }

.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--c-grey-100);
    flex-shrink: 0;
}

.search-result-item .result-info { flex: 1; min-width: 0; }
.search-result-item .result-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .result-code {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    font-family: var(--font-mono);
}

.search-result-item .result-price {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--c-red);
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-left: auto;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    height: 38px;
    padding: 0 var(--sp-3);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: var(--c-white);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.header-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.header-btn svg { width: 18px; height: 18px; }

.header-btn .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--c-red);
    color: var(--c-white);
    font-size: 10px;
    font-weight: var(--fw-bold);
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.account-dropdown {
    position: relative;
}

.account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    z-index: var(--z-dropdown);
    overflow: hidden;
    display: none;
}

.account-menu.is-open { display: block; }
.account-menu a {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--c-text);
    border-bottom: 1px solid var(--c-grey-100);
    transition: background var(--transition-fast);
}
.account-menu a:last-child { border-bottom: none; }
.account-menu a:hover { background: var(--c-grey-50); }
.account-menu a svg { width: 16px; height: 16px; color: var(--c-grey-400); }

/* ============================================================
   SUBNAV
   ============================================================ */
.subnav-list {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.subnav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.subnav-link {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    height: 100%;
    padding: 0 var(--sp-4);
    color: rgba(255,255,255,0.7);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    border-bottom: 2px solid transparent;
    position: relative;
    top: 1px;
}

.subnav-link:hover,
.subnav-link.active {
    color: var(--c-white);
    border-bottom-color: var(--c-red);
}

.subnav-link svg { width: 15px; height: 15px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    height: 42px;
    padding: 0 var(--sp-5);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-transform: uppercase;
}

.btn-sm {
    height: 34px;
    padding: 0 var(--sp-4);
    font-size: var(--fs-xs);
}

.btn-lg {
    height: 50px;
    padding: 0 var(--sp-8);
    font-size: var(--fs-md);
}

.btn-primary {
    background: var(--c-red);
    color: var(--c-white);
    border-color: var(--c-red);
}
.btn-primary:hover {
    background: var(--c-red-dark);
    border-color: var(--c-red-dark);
}

.btn-dark {
    background: var(--c-black);
    color: var(--c-white);
    border-color: var(--c-black);
}
.btn-dark:hover {
    background: var(--c-grey-700);
    border-color: var(--c-grey-700);
}

.btn-outline {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border-strong);
}
.btn-outline:hover {
    border-color: var(--c-text);
    background: var(--c-grey-50);
}

.btn-ghost {
    background: transparent;
    color: var(--c-text-muted);
    border-color: transparent;
}
.btn-ghost:hover {
    background: var(--c-grey-100);
    color: var(--c-text);
}

.btn-cart {
    background: var(--c-black);
    color: var(--c-white);
    border: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}
.btn-cart:hover { background: var(--c-red); }
.btn-cart svg { width: 16px; height: 16px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.form-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--c-grey-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    height: 42px;
    padding: 0 var(--sp-3);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-white);
    color: var(--c-text);
    font-size: var(--fs-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
    width: 100%;
}

.form-textarea {
    height: auto;
    padding: var(--sp-3);
    resize: vertical;
    min-height: 100px;
}

.form-select { appearance: none; cursor: pointer; padding-right: var(--sp-8); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--sp-3) center; }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--c-red);
    box-shadow: 0 0 0 3px rgba(215,35,35,0.1);
}

.form-input.is-error,
.form-select.is-error { border-color: var(--c-error); }

/* Bike finder selects */
.bike-finder {
    background: var(--c-black);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-8);
    display: flex;
    align-items: flex-end;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.bike-finder-title {
    width: 100%;
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-black);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bike-finder-title span { color: var(--c-red); }

.bike-finder .form-field { flex: 1; min-width: 180px; }
.bike-finder .form-label { color: rgba(255,255,255,0.6); }
.bike-finder .form-select {
    background-color: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: var(--c-white);
    height: 46px;
}
.bike-finder .form-select:focus { border-color: var(--c-red); }
.bike-finder .form-select option { background: var(--c-black); color: var(--c-white); }

.bike-finder-btn {
    height: 46px;
    padding: 0 var(--sp-8);
    background: var(--c-red);
    color: var(--c-white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}
.bike-finder-btn:hover { background: var(--c-red-dark); }
.bike-finder-btn svg { width: 20px; height: 20px; }

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* Welcome */
.portal-welcome {
    background: linear-gradient(135deg, var(--c-black) 0%, #2a1010 100%);
    border-radius: var(--radius-lg);
    padding: var(--sp-8) var(--sp-10);
    margin-bottom: var(--sp-8);
    position: relative;
    overflow: hidden;
}

.portal-welcome::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 400px; height: 100%;
    background: url('/wp-content/themes/hema-digital/assets/images/cobra-bg-pattern.png') no-repeat right center / contain;
    opacity: 0.08;
}

.welcome-greeting {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-red);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--sp-2);
}

.welcome-heading {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-black);
    color: var(--c-white);
    text-transform: uppercase;
    line-height: 1.0;
    margin-bottom: var(--sp-1);
}

.welcome-heading .user-name { color: var(--c-yellow); }
.welcome-heading .exclamation { color: var(--c-red); }

.welcome-sub {
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--sp-6);
}

/* My Bikes */
.my-bikes-grid {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.bike-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-5);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    cursor: pointer;
    transition: all var(--transition-base);
    min-width: 200px;
    text-decoration: none;
}

.bike-card:hover {
    background: rgba(215,35,35,0.15);
    border-color: var(--c-red);
    transform: translateY(-1px);
}

.bike-card-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    padding: var(--sp-2);
    flex-shrink: 0;
}

.bike-card-info { min-width: 0; }
.bike-card-model {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: var(--fw-black);
    color: var(--c-white);
    text-transform: uppercase;
    line-height: 1;
}
.bike-card-year {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.5);
    margin-top: var(--sp-1);
}
.bike-card-cta {
    font-size: var(--fs-xs);
    color: var(--c-red);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: var(--sp-2);
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

/* Section headers */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--sp-5);
    gap: var(--sp-4);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-black);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-text);
    position: relative;
    padding-left: var(--sp-4);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 3px;
    background: var(--c-red);
    border-radius: 2px;
}

/* Accessories promo grid */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--sp-4);
    margin-bottom: var(--sp-8);
}

.promo-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.promo-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--c-red);
}

.promo-card-img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    background: var(--c-grey-100);
}

.promo-card-body {
    padding: var(--sp-3) var(--sp-4);
    border-top: 1px solid var(--c-border);
}

.promo-card-label {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    color: var(--c-text);
    display: block;
}

.promo-card-link {
    font-size: var(--fs-xs);
    color: var(--c-red);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--sp-1);
    display: block;
}

/* User Manuals */
.manuals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--sp-4);
    margin-bottom: var(--sp-8);
}

.manual-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--sp-5);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    text-decoration: none;
    transition: all var(--transition-base);
}

.manual-card:hover {
    border-color: var(--c-red);
    box-shadow: var(--shadow-sm);
}

.manual-icon {
    width: 48px;
    height: 48px;
    background: rgba(215,35,35,0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--c-red);
}

.manual-icon svg { width: 24px; height: 24px; }
.manual-info { min-width: 0; }
.manual-model {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    color: var(--c-text);
}
.manual-year {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    margin-top: 2px;
}

/* ============================================================
   SHOP — PARTS LIST
   ============================================================ */

/* Assembly diagram image */
.assembly-diagram {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--sp-4);
    margin-bottom: var(--sp-6);
    text-align: center;
    position: relative;
}

.assembly-diagram img {
    max-height: 360px;
    margin: 0 auto;
    object-fit: contain;
}

.assembly-diagram-title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-top: var(--sp-3);
    letter-spacing: 0.05em;
}

/* Breadcrumb */
.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    margin-bottom: var(--sp-4);
    flex-wrap: wrap;
}

.shop-breadcrumb a { color: var(--c-text-muted); transition: color var(--transition-fast); }
.shop-breadcrumb a:hover { color: var(--c-red); }
.shop-breadcrumb .separator { color: var(--c-grey-300); }
.shop-breadcrumb .current { color: var(--c-text); font-weight: var(--fw-medium); }

/* Shop layout */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--sp-6);
    align-items: start;
}

/* Filters sidebar */
.shop-filters {
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + var(--sp-4));
}

.filters-header {
    background: #111111;
    padding: var(--sp-5) var(--sp-5) var(--sp-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.filters-header-title {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--c-white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.filters-body { padding: var(--sp-5); }

/* ── Finder Dropdown Widget ─────────────────────────────────── */
.finder-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.finder-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finder-label {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: var(--fw-bold);
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.finder-select-wrap {
    position: relative;
}

.finder-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #2a2a2a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--c-white);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    padding: 11px 38px 11px 14px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    outline: none;
    line-height: 1.4;
}

.finder-select:hover:not(:disabled) {
    border-color: rgba(255,255,255,0.25);
    background-color: #313131;
}

.finder-select:focus {
    border-color: var(--c-red);
    box-shadow: 0 0 0 2px rgba(215,35,35,0.2);
}

.finder-select:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.finder-select option {
    background: #2a2a2a;
    color: var(--c-white);
}

/* Arrow now handled via background-image — hide the inline SVG */
.finder-chevron { display: none; }

.finder-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--c-red);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 13px 16px;
    cursor: pointer;
    margin-top: var(--sp-1);
    transition: background 0.15s, transform 0.1s;
}

.finder-submit-btn:hover {
    background: var(--c-red-dark);
    transform: translateY(-1px);
}

.finder-submit-btn:active {
    transform: translateY(0);
}

.filter-group {
    margin-bottom: var(--sp-5);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--c-grey-100);
}

.filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.filter-group-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--c-grey-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-3);
}

.filter-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--c-grey-50);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: var(--sp-2) var(--sp-3);
    margin-bottom: var(--sp-2);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--c-text);
}

.filter-selection .filter-val { font-weight: var(--fw-bold); color: var(--c-red); }
.filter-change {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
}
.filter-change:hover { color: var(--c-red); }

.filter-list { display: flex; flex-direction: column; gap: var(--sp-1); }

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--c-text);
    transition: background var(--transition-fast);
    text-decoration: none;
}

.filter-item:hover { background: var(--c-grey-50); }
.filter-item.active { background: rgba(215,35,35,0.08); color: var(--c-red); font-weight: var(--fw-semibold); }
.filter-item .count { font-size: var(--fs-xs); color: var(--c-text-muted); }

/* Product list */
.parts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.parts-list-header {
    display: grid;
    grid-template-columns: 52px 72px 1fr 120px 80px 60px;
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-5);
    background: var(--c-black);
    align-items: center;
}

.parts-list-header span {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
}

.part-row {
    display: grid;
    grid-template-columns: 52px 72px 1fr 120px 80px 60px;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    align-items: center;
    border-bottom: 1px solid var(--c-grey-100);
    transition: background var(--transition-fast);
}

.part-row:last-child { border-bottom: none; }
.part-row:hover { background: var(--c-grey-50); }

.part-number-badge {
    width: 36px;
    height: 36px;
    background: var(--c-black);
    color: var(--c-white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: var(--fw-black);
    flex-shrink: 0;
}

.part-image {
    width: 64px;
    height: 52px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--c-grey-50);
    border: 1px solid var(--c-border);
    padding: 2px;
}

.part-info { min-width: 0; }
.part-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-text);
    line-height: var(--lh-snug);
    margin-bottom: 2px;
}

.part-code {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

.part-price {
    text-align: right;
}

.part-price .sale-price {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    text-decoration: line-through;
    display: block;
    line-height: 1;
}

.part-price .your-price {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--c-text);
}

.part-required {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

.part-required span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--c-grey-100);
    border-radius: var(--radius-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-text);
    font-size: var(--fs-sm);
}

.part-action { display: flex; justify-content: center; }

/* Out of stock */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px var(--sp-2);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.04em;
}

.stock-badge.in-stock { background: rgba(26,158,90,0.1); color: var(--c-success); }
.stock-badge.out-of-stock { background: rgba(215,35,35,0.1); color: var(--c-error); }
.stock-badge.on-request { background: rgba(224,123,0,0.1); color: var(--c-warning); }

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-sidebar-header {
    background: var(--c-black);
    padding: var(--sp-4) var(--sp-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 2px solid var(--c-red);
}

.cart-sidebar-title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--c-white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.cart-item-count {
    background: var(--c-red);
    color: var(--c-white);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    line-height: 1.4;
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-3) 0;
}

.cart-sidebar-body::-webkit-scrollbar { width: 4px; }
.cart-sidebar-body::-webkit-scrollbar-track { background: transparent; }
.cart-sidebar-body::-webkit-scrollbar-thumb { background: var(--c-grey-200); border-radius: 2px; }

.cart-line-item {
    display: flex;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--c-grey-100);
    align-items: flex-start;
    transition: background var(--transition-fast);
}

.cart-line-item:last-child { border-bottom: none; }
.cart-line-item:hover { background: var(--c-grey-50); }

.cart-item-img {
    width: 52px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--c-grey-100);
    border: 1px solid var(--c-border);
    flex-shrink: 0;
    padding: 2px;
}

.cart-item-details { flex: 1; min-width: 0; }

.cart-item-name {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--c-text);
    line-height: var(--lh-snug);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-2);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    justify-content: space-between;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 26px;
    height: 26px;
    background: var(--c-grey-50);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text);
    font-size: var(--fs-md);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.qty-btn:hover { background: var(--c-grey-200); }

.qty-value {
    width: 34px;
    height: 26px;
    border: none;
    border-left: 1px solid var(--c-border);
    border-right: 1px solid var(--c-border);
    text-align: center;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-text);
    background: var(--c-white);
    outline: none;
}

.cart-item-price {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--c-text);
    white-space: nowrap;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--c-grey-300);
    cursor: pointer;
    padding: var(--sp-1);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    display: flex;
    align-items: center;
    margin-left: auto;
}

.cart-item-remove:hover { color: var(--c-red); background: rgba(215,35,35,0.08); }
.cart-item-remove svg { width: 14px; height: 14px; }

.cart-sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--c-border);
    background: var(--c-white);
}

.cart-totals {
    padding: var(--sp-4) var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

.cart-total-row.total {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--c-text);
    padding-top: var(--sp-2);
    border-top: 1px solid var(--c-border);
    margin-top: var(--sp-1);
}

.cart-total-row.total .amount { color: var(--c-red); font-size: var(--fs-lg); }

.cart-checkout-btn {
    margin: 0 var(--sp-5) var(--sp-5);
    width: calc(100% - var(--sp-10));
    height: 48px;
    background: var(--c-red);
    color: var(--c-white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.cart-checkout-btn:hover { background: var(--c-red-dark); }
.cart-checkout-btn svg { width: 20px; height: 20px; }

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-12) var(--sp-8);
    text-align: center;
    color: var(--c-text-muted);
    gap: var(--sp-3);
}

.cart-empty-state svg { width: 48px; height: 48px; opacity: 0.3; }
.cart-empty-state p { font-size: var(--fs-sm); }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--sp-8);
    align-items: start;
    max-width: var(--content-max);
}

.checkout-section {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--sp-5);
}

.checkout-section-header {
    background: var(--c-grey-50);
    padding: var(--sp-4) var(--sp-6);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.checkout-section-number {
    width: 28px;
    height: 28px;
    background: var(--c-black);
    color: var(--c-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    flex-shrink: 0;
}

.checkout-section-title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.checkout-section-body {
    padding: var(--sp-6);
}

.checkout-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

.form-row.full { grid-template-columns: 1fr; }

/* Checkout summary */
.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--c-grey-100);
}

.checkout-summary-item:last-child { border-bottom: none; }

.checkout-summary-img {
    width: 52px;
    height: 44px;
    object-fit: contain;
    background: var(--c-grey-50);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.checkout-item-meta { font-size: var(--fs-xs); color: var(--c-text-muted); }
.checkout-item-price { font-weight: var(--fw-bold); font-size: var(--fs-sm); }

/* Payment options */
.payment-option {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--sp-3);
}

.payment-option:hover { border-color: var(--c-grey-400); }
.payment-option.selected { border-color: var(--c-red); background: rgba(215,35,35,0.04); }

.payment-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--c-border);
    border-radius: var(--radius-full);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast);
}

.payment-option.selected .payment-radio {
    border-color: var(--c-red);
}

.payment-option.selected .payment-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--c-red);
    border-radius: var(--radius-full);
}

/* ============================================================
   MY ACCOUNT
   ============================================================ */
.account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--sp-6);
    align-items: start;
}

.account-sidebar {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + var(--sp-4));
}

.account-nav-section {
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--c-grey-100);
}

.account-nav-section:last-child { border-bottom: none; }

.account-nav-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--sp-2) var(--sp-5);
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-5);
    font-size: var(--fs-sm);
    color: var(--c-text);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.account-nav-link:hover { background: var(--c-grey-50); }
.account-nav-link.active { background: rgba(215,35,35,0.06); color: var(--c-red); font-weight: var(--fw-semibold); border-left: 3px solid var(--c-red); }
.account-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-inner {
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr 1fr;
    gap: var(--sp-8);
    padding: var(--sp-12) var(--sp-8);
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-brand {}
.footer-brand .logo-placeholder { color: var(--c-white); margin-bottom: var(--sp-4); }
.footer-tagline {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    color: var(--c-grey-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: var(--lh-snug);
}

.footer-col-title {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-grey-400);
    margin-bottom: var(--sp-4);
}

.footer-col-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col-list a {
    font-size: var(--fs-sm);
    color: var(--c-grey-500);
    transition: color var(--transition-fast);
}
.footer-col-list a:hover { color: var(--c-white); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--c-grey-500);
    margin-bottom: var(--sp-2);
}

.footer-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--sp-5) var(--sp-8);
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}

.footer-copyright { font-size: var(--fs-xs); color: var(--c-grey-600); }
.footer-legal { display: flex; gap: var(--sp-4); }
.footer-legal a { font-size: var(--fs-xs); color: var(--c-grey-600); transition: color var(--transition-fast); }
.footer-legal a:hover { color: var(--c-grey-300); }

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card-header {
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}

.card-body { padding: var(--sp-5); }

/* ============================================================
   NOTICES / ALERTS
   ============================================================ */
.notice {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    border: 1px solid transparent;
}

.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.notice-success { background: rgba(26,158,90,0.08); color: var(--c-success); border-color: rgba(26,158,90,0.2); }
.notice-error { background: rgba(215,35,35,0.08); color: var(--c-error); border-color: rgba(215,35,35,0.2); }
.notice-warning { background: rgba(224,123,0,0.08); color: var(--c-warning); border-color: rgba(224,123,0,0.2); }
.notice-info { background: rgba(26,107,181,0.08); color: var(--c-info); border-color: rgba(26,107,181,0.2); }

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.skeleton {
    background: var(--c-grey-200);
    border-radius: var(--radius-sm);
    animation: skeleton-pulse 1.5s ease infinite;
}

/* ============================================================
   TABLET CART DRAWER
   ============================================================ */
.cart-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: calc(var(--z-overlay) - 1);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.cart-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    background: var(--c-white);
    z-index: var(--z-overlay);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

/* Mobile bottom bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--c-black);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: var(--z-sticky);
    align-items: center;
    justify-content: space-around;
}

.mobile-bottom-btn {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: var(--fw-semibold);
    transition: color var(--transition-fast);
    position: relative;
}

.mobile-bottom-btn:hover,
.mobile-bottom-btn.active { color: var(--c-white); }
.mobile-bottom-btn svg { width: 22px; height: 22px; }

.mobile-bottom-btn .badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 20px);
    background: var(--c-red);
    color: var(--c-white);
    font-size: 9px;
    font-weight: var(--fw-bold);
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile nav drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85vw;
    max-width: 340px;
    background: var(--c-black);
    z-index: var(--z-modal);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    flex-direction: column;
    overflow-y: auto;
}

/* Cart bottom sheet (mobile) */
.cart-bottom-sheet {
    display: none;
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 75vh;
    background: var(--c-white);
    z-index: var(--z-modal);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    flex-direction: column;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 768px - 1199px */
@media (max-width: 1199px) {
    :root {
        --sidebar-width: 0px;
    }

    body.portal-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "subnav"
            "main"
            "footer";
    }

    .cart-sidebar { display: none; }

    .cart-drawer,
    .cart-drawer-overlay {
        display: flex;
    }

    .cart-drawer.is-open {
        transform: translateX(0);
    }

    .cart-drawer-overlay.is-open {
        opacity: 1;
    }

    .shop-layout {
        grid-template-columns: 220px 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--sp-6);
    }
}

/* Large mobile / small tablet: 576px - 767px */
@media (max-width: 767px) {
    :root {
        --header-height: 60px;
        --nav-height: 0px;
    }

    body.portal-layout {
        grid-template-rows: var(--header-height) 0px 1fr auto;
        padding-bottom: 60px;
    }

    .site-subnav { display: none; }

    .mobile-bottom-bar { display: flex; }
    .cart-drawer { display: none !important; }
    .cart-bottom-sheet { display: flex; }
    .mobile-nav-drawer { display: flex; }

    .header-search { max-width: none; }
    .header-actions .account-dropdown { display: none; }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-filters {
        display: none;
        position: fixed;
        inset: 0;
        z-index: var(--z-modal);
        border-radius: 0;
    }

    .shop-filters.is-open { display: block; }

    .parts-list-header {
        grid-template-columns: 40px 56px 1fr 90px 0px 44px;
    }

    .parts-list-header span:nth-child(5) { display: none; }

    .part-row {
        grid-template-columns: 40px 56px 1fr 90px 0px 44px;
    }

    .part-required { display: none; }

    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-6);
        padding: var(--sp-8) var(--sp-6);
    }

    .footer-brand { grid-column: 1 / -1; }

    .site-main { padding: var(--sp-5) var(--sp-4); }

    .portal-welcome { padding: var(--sp-6) var(--sp-5); }
    .welcome-heading { font-size: var(--fs-3xl); }

    .bike-finder {
        flex-direction: column;
        gap: var(--sp-3);
        padding: var(--sp-5);
    }

    .bike-finder .form-field { min-width: unset; width: 100%; }
    .bike-finder-btn { width: 100%; justify-content: center; }

    .promo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .checkout-address-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
    .form-row { grid-template-columns: 1fr; }
}

/* Small mobile: < 480px */
@media (max-width: 479px) {
    :root {
        --header-height: 56px;
    }

    .header-logo .logo-placeholder { font-size: var(--fs-lg); }
    .header-search input { font-size: var(--fs-sm); }

    .promo-grid { grid-template-columns: repeat(2, 1fr); }

    .manuals-grid { grid-template-columns: 1fr; }

    .parts-list-header {
        grid-template-columns: 36px 48px 1fr 80px 44px;
    }

    .part-row {
        grid-template-columns: 36px 48px 1fr 80px 44px;
    }

    .part-price .sale-price { display: none; }

    .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-notices-wrapper { margin-bottom: var(--sp-4); }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-success);
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-3);
}

.woocommerce-error { border-left-color: var(--c-error); }
.woocommerce-info { border-left-color: var(--c-info); }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .site-header,
    .site-subnav,
    .cart-sidebar,
    .mobile-bottom-bar { display: none !important; }

    body.portal-layout {
        display: block;
    }
}

/* ============================================================
   COLLAPSIBLE FILTER GROUPS
   ============================================================ */
.filter-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-4);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: var(--sp-2);
}

.filter-group-toggle .filter-group-label {
    margin-bottom: 0;
    padding: 0;
}

.filter-group--collapsible .filter-list {
    display: none;
    padding-bottom: var(--sp-2);
}

.filter-group--collapsible.is-open .filter-list {
    display: flex;
}

.toggle-icon {
    flex-shrink: 0;
    color: var(--c-grey-400);
    transition: transform var(--transition-base);
}

.filter-group--collapsible.is-open .toggle-icon {
    transform: rotate(180deg);
}