/* ============================================================
   TRAILFORGE OFF-ROAD - Main Stylesheet
   Design: Industrial Rugged / Dark Performance
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --color-primary: #D4A017;
    --color-primary-dark: #B8860B;
    --color-primary-light: #F0C850;
    --color-secondary: #1A1A1A;
    --color-accent: #C0392B;
    --color-success: #27AE60;
    --color-warning: #F39C12;
    --color-danger: #E74C3C;
    --color-info: #3498DB;
    
    --bg-dark: #0D0D0D;
    --bg-body: #F5F3EF;
    --bg-card: #FFFFFF;
    --bg-muted: #E8E4DD;
    --bg-overlay: rgba(0,0,0,0.85);
    
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #888888;
    --text-light: #FFFFFF;
    --text-on-primary: #0D0D0D;
    
    --border-color: #D5D0C8;
    --border-dark: #333333;
    
    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Barlow', sans-serif;
    --font-condensed: 'Barlow Condensed', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --header-height: 64px;
    --container-width: 1320px;
    --sidebar-width: 280px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ---- Container ---- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-primary { color: var(--color-primary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.hidden { display: none !important; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
    background: var(--color-accent);
    color: var(--text-light);
    text-align: center;
    padding: 8px 20px;
    font-family: var(--font-condensed);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}
.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer { 100% { left: 200%; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-top {
    border-bottom: 1px solid var(--border-dark);
    padding: 6px 0;
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}
.header-top a { color: #999; }
.header-top a:hover { color: var(--color-primary); }

.header-main {
    padding: 12px 0;
}
.header-main .container {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
}
.logo-icon i { color: var(--bg-dark); font-size: 20px; }
.logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}
.logo-text span { color: var(--color-primary); }
.logo-tagline {
    font-family: var(--font-condensed);
    font-size: 11px;
    color: #666;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Vehicle Selector */
.vehicle-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    padding: 4px;
    flex-shrink: 0;
}
.vehicle-selector select {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 6px 10px;
    font-size: 13px;
    font-family: var(--font-condensed);
    cursor: pointer;
    outline: none;
    appearance: none;
    min-width: 70px;
}
.vehicle-selector select option { background: #1A1A1A; }
.vehicle-selector .btn-find {
    background: var(--color-primary);
    color: var(--bg-dark);
    border: none;
    padding: 6px 14px;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    transition: all 0.2s;
}
.vehicle-selector .btn-find:hover { background: var(--color-primary-light); }

/* Search Bar */
.search-bar {
    flex: 1;
    position: relative;
    max-width: 500px;
}
.search-bar input {
    width: 100%;
    background: #1A1A1A;
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    padding: 10px 44px 10px 16px;
    color: var(--text-light);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.search-bar input::placeholder { color: #666; }
.search-bar input:focus { border-color: var(--color-primary); }
.search-bar button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    border: none;
    color: var(--bg-dark);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.search-bar button:hover { background: var(--color-primary-light); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #999;
    font-size: 12px;
    font-family: var(--font-condensed);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.header-action:hover { color: var(--color-primary); }
.header-action i { font-size: 20px; }
.header-action .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-accent);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.main-nav {
    background: #111;
    border-top: 1px solid var(--border-dark);
}
.main-nav .container {
    display: flex;
    align-items: stretch;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: #CCC;
    font-family: var(--font-condensed);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    position: relative;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
    background: rgba(212,160,23,0.05);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
.nav-link i { font-size: 12px; }

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1A1A1A;
    border: 1px solid #333;
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s;
    z-index: 100;
    box-shadow: var(--shadow-xl);
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #CCC;
    font-family: var(--font-body);
    font-size: 14px;
}
.nav-dropdown-menu a:hover {
    background: rgba(212,160,23,0.1);
    color: var(--color-primary);
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero-banner {
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
}
.hero-slide {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 40px;
}
.hero-tag {
    font-family: var(--font-condensed);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.hero-desc {
    color: #CCC;
    font-size: 16px;
    margin-bottom: 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-primary);
    color: var(--bg-dark);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212,160,23,0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}
.btn-secondary:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}
.btn-dark {
    background: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--bg-dark);
}
.btn-dark:hover { background: #333; border-color: #333; }
.btn-danger { background: var(--color-danger); color: white; border-color: var(--color-danger); }
.btn-success { background: var(--color-success); color: white; border-color: var(--color-success); }
.btn-success:hover { background: #219a52; }
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    border: 1px solid var(--border-color);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.product-badge {
    display: inline-block;
    padding: 3px 10px;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}
.product-badge.sale { background: var(--color-accent); color: white; }
.product-badge.new { background: var(--color-success); color: white; }
.product-badge.hot { background: var(--color-warning); color: white; }
.product-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}
.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateY(0);
}
.product-card-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}
.product-card-actions button:hover {
    background: var(--color-primary);
    color: var(--bg-dark);
}
.product-card-body {
    padding: 16px;
}
.product-card-brand {
    font-family: var(--font-condensed);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.product-card-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-title a:hover { color: var(--color-primary); }
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.star-rating { color: var(--color-primary); font-size: 13px; display: flex; gap: 1px; }
.rating-count { font-size: 12px; color: var(--text-muted); }
.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price-current {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.price-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.price-save {
    font-family: var(--font-condensed);
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 600;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
    padding: 32px 0;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
/* Gallery */
.product-gallery { position: relative; }
.product-gallery-main {
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-gallery-thumbs {
    display: flex;
    gap: 8px;
}
.product-gallery-thumb {
    width: 80px;
    height: 60px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.2s;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.active { border-color: var(--color-primary); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.product-info {}
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.product-breadcrumb a:hover { color: var(--color-primary); }
.product-breadcrumb .separator { color: #CCC; }
.product-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}
.product-sku {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.product-rating-summary .star-rating { font-size: 16px; }
.product-rating-summary span { font-size: 14px; color: var(--text-secondary); }
.product-rating-summary a { color: var(--color-primary); font-weight: 500; }
.product-pricing {
    margin-bottom: 20px;
}
.product-pricing .price-current {
    font-size: 36px;
    color: var(--text-primary);
}
.product-pricing .price-original {
    font-size: 18px;
}
.product-pricing .save-amount {
    display: inline-block;
    background: #FFF3CD;
    color: #856404;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-condensed);
    font-weight: 600;
    font-size: 13px;
    margin-top: 6px;
}
.product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}
.product-stock.in-stock { color: var(--color-success); }
.product-stock.out-of-stock { color: var(--color-danger); }
.product-stock i { font-size: 16px; }
.product-short-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}
.product-features-quick {
    margin-bottom: 24px;
}
.product-features-quick li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.product-features-quick li i { color: var(--color-success); margin-top: 4px; font-size: 12px; }
.product-add-cart {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-selector button {
    width: 40px;
    height: 48px;
    border: none;
    background: var(--bg-muted);
    cursor: pointer;
    font-size: 16px;
    color: var(--text-primary);
    transition: background 0.2s;
}
.qty-selector button:hover { background: var(--border-color); }
.qty-selector input {
    width: 50px;
    height: 48px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    outline: none;
}
.product-meta-actions {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.product-meta-actions a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}
.product-meta-actions a:hover { color: var(--color-primary); }
.product-shipping-info {
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    padding: 16px;
}
.product-shipping-info .info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
}
.product-shipping-info .info-row i { color: var(--color-primary); width: 20px; text-align: center; }

/* Product Tabs */
.product-tabs {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.product-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-muted);
}
.tab-btn {
    padding: 16px 24px;
    font-family: var(--font-condensed);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
    color: var(--color-primary);
    background: var(--bg-card);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}
.tab-content { padding: 32px; display: none; }
.tab-content.active { display: block; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.section-heading h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.section-heading::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}
.section-heading .view-all {
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.category-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.category-card i {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.category-card h3 {
    font-family: var(--font-condensed);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */
.brands-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 24px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}
.brand-logo {
    height: 40px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s;
}
.brand-logo:hover { opacity: 1; filter: grayscale(0%); }

/* ============================================================
   SHOP / LISTING PAGE
   ============================================================ */
.shop-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 32px;
    padding: 32px 0;
}
.shop-sidebar {}
.filter-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}
.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    background: var(--bg-muted);
}
.filter-group-body { padding: 12px 16px; }
.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
    cursor: pointer;
}
.filter-option input { accent-color: var(--color-primary); }
.filter-option .count { margin-left: auto; color: var(--text-muted); font-size: 12px; }
.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}
.price-range input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
}
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.shop-toolbar .result-count {
    font-size: 14px;
    color: var(--text-secondary);
}
.shop-toolbar select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: white;
}

/* ============================================================
   CART
   ============================================================ */
.cart-table {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.cart-table th {
    background: var(--bg-muted);
    padding: 14px 16px;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}
.cart-table td {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
}
.cart-product {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cart-product-img {
    width: 80px;
    height: 60px;
    background: #F5F5F5;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.cart-product-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-product-name { font-weight: 600; font-size: 14px; }
.cart-product-sku { font-size: 12px; color: var(--text-muted); }
.cart-remove {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
}
.cart-remove:hover { color: var(--color-danger); }
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}
.cart-summary h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 2px solid var(--border-color);
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: var(--font-condensed);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    background: white;
    transition: border-color 0.2s;
    outline: none;
}
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(212,160,23,0.1); }
.form-control.error { border-color: var(--color-danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--color-danger); font-size: 12px; margin-top: 4px; }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.alert-danger { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }
.alert-warning { background: #FFF3CD; color: #856404; border: 1px solid #FFEEBA; }
.alert-info { background: #D1ECF1; color: #0C5460; border: 1px solid #BEE5EB; }

/* ============================================================
   REVIEWS
   ============================================================ */
.review-card {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}
.review-card:last-child { border-bottom: none; }
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.review-author {
    font-weight: 600;
    font-size: 15px;
}
.review-date {
    font-size: 13px;
    color: var(--text-muted);
}
.review-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}
.review-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.review-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-success);
    font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-dark);
    color: #999;
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.footer-col h4 {
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: #999; }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
    border-top: 1px solid #222;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}
.footer-bottom a { color: var(--color-primary); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination ul {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}
.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-condensed);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.pagination li.active a,
.pagination li a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--bg-dark);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}
.auth-card h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.compare-table {
    width: 100%;
    border-collapse: collapse;
}
.compare-table th, .compare-table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
}
.compare-table th {
    background: var(--bg-muted);
    font-family: var(--font-condensed);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* ============================================================
   FREE SHIPPING BAR
   ============================================================ */
.free-shipping-bar {
    background: linear-gradient(90deg, var(--bg-dark), #1A2A1A);
    border: 1px solid #2D4A2D;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.free-shipping-bar i { font-size: 24px; color: var(--color-success); }
.free-shipping-bar .progress-bar {
    flex: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}
.free-shipping-bar .progress-bar-fill {
    height: 100%;
    background: var(--color-success);
    border-radius: 3px;
    transition: width 0.5s;
}
.free-shipping-bar .text { color: #CCC; font-size: 14px; }
.free-shipping-bar .text strong { color: var(--color-success); }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; }
}
@media (max-width: 768px) {
    .header-main .container { flex-wrap: wrap; }
    .vehicle-selector { display: none; }
    .search-bar { order: 3; flex-basis: 100%; max-width: 100%; }
    .hero-title { font-size: 32px; }
    .hero-slide { height: 280px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-add-cart { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .nav-link { padding: 10px 10px; font-size: 12px; }
    .main-nav .container { overflow-x: auto; }
    .cart-table { font-size: 13px; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .product-card-body { padding: 12px; }
    .hero-content { padding: 20px; }
    .hero-title { font-size: 24px; }
    .auth-card { padding: 32px 24px; }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
}

/* ============================================================
   LOADING STATES
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   FITMENT BADGE
   ============================================================ */
.fitment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-condensed);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}
.fitment-badge.fits {
    background: #D4EDDA;
    color: #155724;
}
.fitment-badge.no-fit {
    background: #F8D7DA;
    color: #721C24;
}
