/**
 * Master Theme 2025
 * Modern E-Commerce Design System
 * Light Theme with Professional Clean Styling
 * Based on Product Page Redesign
 */

/* ==================== CSS VARIABLES (DESIGN TOKENS) ==================== */
:root {
    /* COLORS - Modern Light Theme */
    --color-bg-primary: #ffffff;           /* Pure White */
    --color-bg-secondary: #f8f9fa;         /* Light Gray */
    --color-bg-tertiary: #f5f5f5;          /* Slightly Darker Gray */
    --color-bg-card: #ffffff;              /* White Cards */
    --color-bg-dark: #2c3e50;              /* Dark Sections */

    --color-text-primary: #1a1a1a;         /* Almost Black */
    --color-text-secondary: #4a4a4a;       /* Medium Dark Gray */
    --color-text-muted: #888;              /* Medium Gray */
    --color-text-light: #aaa;              /* Light Gray */
    --color-text-white: #ffffff;           /* White Text */

    --color-accent-primary: #0066cc;       /* Professional Blue */
    --color-accent-hover: #0052a3;         /* Darker Blue */
    --color-accent-active: #003d7a;        /* Even Darker Blue */

    --color-price-green: #27ae60;          /* Green for Prices */
    --color-price-hover: #229954;          /* Darker Green */

    --color-success: #27ae60;              /* Green (In Stock, Success) */
    --color-success-bg: #d4edda;           /* Light Green BG */
    --color-warning: #f39c12;              /* Orange (Low Stock) */
    --color-warning-bg: #fff3cd;           /* Light Yellow BG */
    --color-danger: #e74c3c;               /* Red (Out of Stock, Error) */
    --color-danger-bg: #f8d7da;            /* Light Red BG */
    --color-info: #3498db;                 /* Blue (Info) */
    --color-info-bg: #d1ecf1;              /* Light Blue BG */

    --color-border: #e0e0e0;               /* Light Border */
    --color-border-medium: #ccc;           /* Medium Border */
    --color-border-dark: #999;             /* Dark Border */
    --color-border-focus: #0066cc;         /* Blue Focus State */

    /* TYPOGRAPHY - Professional & Modern */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-headings: 'Roboto Condensed', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-condensed: 'Roboto Condensed', sans-serif;

    /* FONT SIZES - Mobile First (16px base = 1rem) */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 2rem;        /* 32px */
    --font-size-4xl: 2.625rem;    /* 42px */
    --font-size-5xl: 3rem;        /* 48px */

    /* LINE HEIGHTS */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

    /* FONT WEIGHTS */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 900;

    /* SPACING (8px base unit) */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */

    /* BORDER RADIUS */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.375rem;  /* 6px */
    --radius-lg: 0.5rem;    /* 8px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-2xl: 1rem;     /* 16px */
    --radius-full: 9999px;  /* Pill shape */

    /* SHADOWS */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.15);

    /* TRANSITIONS */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* BREAKPOINTS (for reference) */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* ==================== GLOBAL RESETS & BASE STYLES ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    /* Prevent horizontal pan/drift on mobile — kills accidental sideways scroll. */
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Defensive: common wide-element culprits stay inside the viewport */
img, video, iframe, embed, object, canvas, svg { max-width: 100%; }
table { max-width: 100%; }
pre, code { max-width: 100%; overflow-x: auto; word-break: break-word; }

/* ==================== TYPOGRAPHY ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

h5, h6 {
    font-size: var(--font-size-base);
}

p {
    margin-bottom: var(--space-4);
    line-height: var(--line-height-normal);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
}

strong, b {
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

ul, ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

li {
    margin-bottom: var(--space-2);
    line-height: var(--line-height-normal);
    color: var(--color-text-secondary);
}

/* ==================== RESPONSIVE TYPOGRAPHY ==================== */
@media (min-width: 768px) {
    h1 {
        font-size: var(--font-size-4xl);
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.375rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: var(--font-size-5xl);
    }
    h2 {
        font-size: var(--font-size-3xl);
    }
    h3 {
        font-size: var(--font-size-2xl);
    }
}

/* ==================== HEADER & NAVIGATION ==================== */

.site-header {
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    padding: var(--space-2) 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: var(--space-6);
    color: var(--color-text-secondary);
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.header-links {
    display: flex;
    gap: var(--space-4);
}

.header-links a {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.header-links a:hover {
    color: var(--color-accent-primary);
}

.header-main {
    padding: var(--space-4) 0;
}

.header-main .container {
    display: grid;
    grid-template-columns: 180px 1fr auto; /* matches logo cap below */
    gap: var(--space-6);
    align-items: center;
}

.logo img {
    max-width: 180px; /* was 200px served (230px here — old drift) — Brad 2026-07-09: "about 10% too big" */
    height: auto;
}

.search-bar {
    display: block;
    flex: 1;
    min-width: 200px;
}

.search-bar form {
    display: flex;
    gap: 0;
}

.search-bar input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: var(--font-size-base);
    outline: none;
}

.search-bar input:focus {
    border-color: var(--color-accent-primary);
}

.search-bar button {
    padding: var(--space-3) var(--space-6);
    background: var(--color-accent-primary);
    color: var(--color-text-white);
    border: 2px solid var(--color-accent-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-bar button:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

/* Search clear button */
.search-bar form {
    position: relative;
}
.search-bar input[name="q"] {
    padding-right: 36px;
}
.search-clear {
    display: none;
    position: absolute;
    right: auto;
    left: calc(100% - 160px);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    z-index: 2;
}
.search-clear:hover {
    color: #333;
    background: #f0f0f0;
}

/* Search loading spinner */
.search-bar.search-loading button::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Search suggestions dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 0 0 10px 10px;
    max-height: 480px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid #e0e0e0;
    border-top: none;
}
.suggestion-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.suggestion-item:hover,
.suggestion-item.suggestion-active {
    background: #f5f7fa;
}
.suggestion-inner {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.suggestion-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}
.suggestion-thumb-placeholder {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 4px;
}
.suggestion-details {
    flex: 1;
    min-width: 0;
}
.suggestion-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggestion-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.suggestion-price {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-accent-primary);
    white-space: nowrap;
}
.suggestion-oos .suggestion-title,
.suggestion-oos .suggestion-price {
    color: #aaa;
}
.suggestion-oos-label {
    display: inline-block;
    font-size: 11px;
    color: #c41e3a;
    margin-left: 6px;
}
.suggestion-view-all {
    display: block;
    padding: 12px 14px;
    text-align: center;
    color: var(--color-accent-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-top: 1px solid #e0e0e0;
    background: #fafbfc;
    border-radius: 0 0 10px 10px;
}
.suggestion-view-all:hover {
    background: #f0f4f8;
}

.cart-widget {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-fast);
}

.cart-link:hover {
    background: var(--color-accent-primary);
    color: var(--color-text-white);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 var(--space-2);
    background: var(--color-accent-primary);
    color: var(--color-text-white);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

.cart-link:hover .cart-count {
    background: var(--color-text-white);
    color: var(--color-accent-primary);
}

/* Main Navigation */
.main-nav {
    background: var(--color-bg-dark) !important;
    border-bottom: 3px solid var(--color-accent-primary) !important;
}

.main-nav .container {
    max-width: 1280px !important;
    padding: 0 var(--space-4) !important;
}

.main-nav ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
}

.main-nav > ul > li {
    margin: 0 !important;
    position: relative !important;
    display: inline-block !important;
}

.main-nav > ul > li > a,
.main-nav > ul > li > a:link,
.main-nav > ul > li > a:visited,
.main-nav > ul > li > a:active {
    display: block !important;
    padding: 14px 28px !important;
    color: #ffffff !important;
    font-family: 'Roboto Condensed', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    background: linear-gradient(180deg, #0066cc 0%, #0052a3 100%) !important;
    border: 2px solid #0088ff !important;
    border-radius: 6px !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.2s ease !important;
}

.main-nav > ul > li > a:hover {
    background: linear-gradient(180deg, #ff6b35 0%, #e64a19 100%) !important;
    border-color: #ff8c5a !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    text-decoration: none !important;
}

/* Dropdown Menu */
.main-nav .dropdown {
    position: relative !important;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    display: none !important;
    min-width: 220px !important;
    background: var(--color-bg-primary) !important;
    border: 1px solid var(--color-border) !important;
    border-top: 3px solid var(--color-accent-primary) !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    box-shadow: var(--shadow-xl) !important;
    list-style: none !important;
    padding: var(--space-2) 0 !important;
    margin: 0 !important;
    z-index: 1000 !important;
}

.dropdown:hover .dropdown-menu {
    display: block !important;
    animation: fadeIn 200ms ease-in !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    margin: 0 !important;
}

.dropdown-menu a {
    display: block !important;
    padding: var(--space-3) var(--space-5) !important;
    color: var(--color-text-primary) !important;
    font-weight: var(--font-weight-normal) !important;
    font-size: var(--font-size-base) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: all var(--transition-fast) !important;
    border-left: 3px solid transparent !important;
}

.dropdown-menu a:hover {
    background: var(--color-bg-secondary) !important;
    color: var(--color-accent-primary) !important;
    border-left-color: var(--color-accent-primary) !important;
    padding-left: calc(var(--space-5) + 5px) !important;
    text-decoration: none !important;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
}

.btn:focus-visible {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
}

.btn-primary {
    color: var(--color-text-white);
    background-color: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
}

.btn-primary:hover {
    color: var(--color-text-white);
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    color: var(--color-text-primary);
    background-color: var(--color-bg-secondary);
    border-color: var(--color-border-medium);
}

.btn-secondary:hover {
    background-color: var(--color-bg-tertiary);
    border-color: var(--color-border-dark);
}

.btn-success {
    color: var(--color-text-white);
    background-color: var(--color-price-green);
    border-color: var(--color-price-green);
}

.btn-success:hover {
    background-color: var(--color-price-hover);
    border-color: var(--color-price-hover);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    min-height: 52px;
}

.btn-block {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== FORMS ==================== */
input,
textarea,
select {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    width: 100%;
    transition: all var(--transition-fast);
    min-height: 44px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
}

label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

/* ==================== CARDS ==================== */
.card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ==================== ALERTS ==================== */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    margin-bottom: var(--space-4);
}

.alert-success {
    background-color: var(--color-success-bg);
    border-color: var(--color-success);
    color: var(--color-text-primary);
}

.alert-warning {
    background-color: var(--color-warning-bg);
    border-color: var(--color-warning);
    color: var(--color-text-primary);
}

.alert-danger {
    background-color: var(--color-danger-bg);
    border-color: var(--color-danger);
    color: var(--color-text-primary);
}

.alert-info {
    background-color: var(--color-info-bg);
    border-color: var(--color-info);
    color: var(--color-text-primary);
}

/* ==================== STOCK STATUS BADGES ==================== */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.stock-status.in-stock {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.stock-status.low-stock {
    background-color: var(--color-warning-bg);
    color: var(--color-warning);
    border: 1px solid var(--color-warning);
}

.stock-status.out-of-stock {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
}

/* ==================== UTILITY CLASSES ==================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

.font-bold {
    font-weight: var(--font-weight-bold);
}

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

/* ==================== MAIN CONTENT ==================== */
.main-content {
    min-height: 60vh;
    padding: 0;
}

/* ==================== HOMEPAGE HERO SLIDER ==================== */
.hero-section {
    position: relative;
    width: 100%;
    /* LOCKED responsiveness (Brad 2026-07-08, 2nd pass): height was fixed 500px while
       width scaled, so widening the window forced object-fit:cover to crop MORE of every
       slide ("still cut off"). 26vw keeps a constant ~3.84:1 frame — widening the screen
       scales the hero as one unit and never changes what part of the image is visible. */
    height: clamp(280px, 26vw, 700px);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    /* Lock responsiveness on ultrawide screens (Brad 2026-07-08): with no cap, the
       fixed-500px-tall band gets absurdly wide (6:1+ on ultrawides) and object-fit:cover
       crops the slide subjects "out of the frame". 1920px keeps the crop at the same
       ratio designers see on a standard monitor; the section's dark bg fills the sides. */
    max-width: 2688px; /* = 700px max-height x 3.84 ratio — keeps the frame ratio constant even past the height cap */
    margin-left: auto;
    margin-right: auto;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 800ms ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Hero background image for LCP optimization */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(139, 0, 0, 0.35) 100%
    );
    z-index: 1;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--color-text-white);
    max-width: 800px;
    padding: var(--space-6);
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-text-white);
    margin-bottom: var(--space-4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-white);
    margin-bottom: var(--space-8);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--color-text-white);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition-fast);
    backdrop-filter: blur(4px);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-prev {
    /* clamp to the capped slider's edge on ultrawide screens (slider max-width 2688px) */
    left: max(var(--space-4), calc(50% - 1344px + var(--space-4)));
}

.hero-next {
    right: max(var(--space-4), calc(50% - 1344px + var(--space-4)));
}

.hero-dots {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-3);
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.hero-dot.active {
    background: var(--color-text-white);
}

/* ==================== PRODUCTS SECTION ==================== */
.products-section {
    padding: var(--space-12) 0;
    background: var(--color-bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
}

/* Product Tabs */
.product-tabs-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.product-tab-btn {
    padding: var(--space-3) var(--space-6);
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-tab-btn:hover {
    background: var(--color-bg-tertiary);
    border-color: var(--color-accent-primary);
}

.product-tab-btn.active {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: var(--color-text-white);
}

.product-tab-content {
    display: none;
}

.product-tab-content.active {
    display: block;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.products-grid-4col {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (min-width: 768px) {
    .products-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid-4col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .products-grid-4col {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card */
.product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-accent-primary);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Button links inside product cards - override inherit color */
.product-card a.btn {
    flex: none;
    color: var(--color-text-white);
}

.product-card a.btn-primary {
    color: var(--color-text-white);
    background-color: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--color-bg-secondary);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-4);
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    line-height: var(--line-height-tight);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-brand {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.product-meta-info {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-bottom: var(--space-4);
    flex: 1;
}

.product-model,
.product-upc {
    margin-bottom: var(--space-1);
}

.product-price {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-price-green);
    margin-top: auto;
}

/* Financing Teaser Text */
.financing-teaser {
    font-size: 12px;
    color: #0066cc;
    margin-top: 6px;
}

.product-card .btn {
    margin: 0 var(--space-5) var(--space-5);
    border-radius: var(--radius-md);
    width: calc(100% - (var(--space-5) * 2));
    box-sizing: border-box;
}

/* Badges */
.badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    z-index: 2;
}

.badge-views {
    background: rgba(0, 102, 204, 0.9);
    color: var(--color-text-white);
}

/* MAP Price Badge - inline with price */
.map-badge {
    display: inline-block;
    background-color: #c41e3a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-bestseller {
    background: rgba(231, 76, 60, 0.9);
    color: var(--color-text-white);
}

/* FFL Required Badge - Bottom Left */
.badge-ffl {
    top: auto;
    bottom: var(--space-3);
    left: var(--space-3);
    right: auto;
    background: rgba(231, 76, 60, 0.95);
    color: var(--color-text-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Featured Badge - Bottom Right */
.badge-featured {
    top: auto;
    bottom: var(--space-3);
    right: var(--space-3);
    background: rgba(241, 196, 15, 0.95);
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.no-products {
    text-align: center;
    padding: var(--space-12);
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    padding: var(--space-12) 0;
    background: var(--color-bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.features-grid.features-grid-5col {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
    .features-grid.features-grid-5col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid.features-grid-5col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid.features-grid-5col {
        grid-template-columns: 1fr;
    }
}

.feature-financing .feature-icon {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature {
    text-align: center;
    padding: var(--space-6);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--space-4);
}

.feature h3 {
    font-size: var(--font-size-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.feature p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: var(--space-16);
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-col h2,
.footer-col h3,
.footer-heading,
.footer-subheading {
    color: var(--color-text-white);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
    font-weight: var(--font-weight-bold);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

.footer-links,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.contact-list li {
    margin-bottom: var(--space-3);
}

.footer-links a,
.contact-list a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.contact-list a:hover {
    color: var(--color-text-white);
    text-decoration: none;
}

/* Contact List Specific Styling - High Contrast */
.contact-list li {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
}

.contact-list strong {
    color: #ffffff;
    font-weight: 600;
}

.contact-list span {
    color: rgba(255, 255, 255, 0.95);
}

.contact-list small {
    display: block;
    margin-top: 2px;
}

.contact-list a {
    color: rgba(255, 255, 255, 0.95);
}

/* Social Media Links */
.footer-social-row {
    padding: var(--space-8) 0;
    margin: var(--space-4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Trust Badges */
.footer-trust-row {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    padding: var(--space-8) 0;
    margin: var(--space-4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-trust-row .trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: #ffffff !important;
    font-size: var(--font-size-base);
    font-weight: 700;
}

.footer-trust-row .trust-badge span {
    color: #ffffff !important;
    font-weight: 700;
}

.footer-trust-row .trust-badge svg {
    width: 40px;
    height: 40px;
    stroke: #ff6b35 !important;
}

/* Authorize.Net Verified Merchant Seal */
.footer-trust-row .authorizenet-seal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-trust-row .authorizenet-seal .AuthorizeNetSeal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-trust-row .authorizenet-seal img {
    max-height: 50px;
    width: auto;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-3);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    margin-bottom: var(--space-2);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a:hover {
    color: var(--color-text-white);
}

.legal-notice {
    font-size: var(--font-size-xs);
    font-style: italic;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.payment-label {
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 255, 255, 0.8);
}

.payment-methods img {
    height: 200px;
    width: auto;
    max-height: none;
}

@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-trust-row {
        gap: var(--space-4);
    }

    .trust-badge {
        font-size: var(--font-size-xs);
    }
}

/* ==================== ACCESSIBILITY ==================== */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-accent-primary);
    color: var(--color-text-white);
    padding: var(--space-3) var(--space-6);
    text-decoration: none;
    z-index: 9999;
}

.skip-to-main:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

/* Mobile Navigation Toggle */
@media (max-width: 767px) {
    .header-main .container {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* Note: Main nav mobile styles are handled by the hamburger menu section */
}

/* ==================== CONTACT PAGE ==================== */
.content-page {
    padding: var(--space-12) 0;
    background: var(--color-bg-primary);
    min-height: 60vh;
}

.content-page h1 {
    margin-bottom: var(--space-6);
    text-align: center;
}

.content-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-12);
    color: var(--color-text-secondary);
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    margin-top: var(--space-8);
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

/* Contact Form Article */
.content-article {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}

.content-article h2 {
    margin-bottom: var(--space-6);
    color: var(--color-text-primary);
}

/* Contact Form */
.contact-form {
    margin-top: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.required {
    color: var(--color-danger);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-text {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Captcha */
.captcha-group {
    background: var(--color-bg-secondary);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.captcha-question {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin: var(--space-3) 0;
    padding: var(--space-4);
    background: var(--color-bg-primary);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-accent-primary);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

@media (max-width: 576px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Contact Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.contact-card h3 {
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-border);
}

.contact-card p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

/* Contact Item */
.contact-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item .icon {
    font-size: 28px;
    flex-shrink: 0;
}

.contact-item .details {
    flex: 1;
}

.contact-item .details strong {
    display: block;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

.contact-item .details a {
    display: block;
    color: var(--color-accent-primary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-1);
    text-decoration: none;
}

.contact-item .details a:hover {
    text-decoration: underline;
}

.contact-item .hours {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Hours List */
.hours-list {
    margin-top: var(--space-4);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
}

.hours-row:last-child {
    margin-bottom: 0;
}

.hours-row span {
    color: var(--color-text-secondary);
}

.hours-row strong {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

/* Quick Links */
.quick-links-list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
}

.quick-links-list li {
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-accent-primary);
    color: var(--color-text-secondary);
}

.quick-links-list li:last-child {
    margin-bottom: 0;
}

.quick-links-list a {
    color: var(--color-accent-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.quick-links-list a:hover {
    text-decoration: underline;
}

/* Success Message */
.message-sent-confirmation {
    text-align: center;
    max-width: 700px;
    margin: var(--space-16) auto;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    padding: var(--space-12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.success-icon {
    margin-bottom: var(--space-6);
}

.message-sent-confirmation h1 {
    color: #FFFFFF;
    margin-bottom: var(--space-6);
}

.success-content {
    color: #FFFFFF;
}

.success-content .lead {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-4);
    color: #FFFFFF;
}

.action-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-8);
}

@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
    }
}

/* Alert Messages */
.alert {
    padding: var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    border-left: 4px solid;
}

.alert-danger {
    background-color: var(--color-danger-bg);
    border-color: var(--color-danger);
    color: var(--color-text-primary);
}

.alert strong {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-danger);
}

.alert ul {
    margin: var(--space-3) 0 0 0;
    padding-left: var(--space-5);
}

.alert li {
    color: var(--color-text-primary);
    margin-bottom: var(--space-1);
}

/* ==================== MOBILE RESPONSIVE STYLES ==================== */

/* ===== TABLET & BELOW (max-width: 992px) ===== */
@media (max-width: 992px) {
    /* Container adjustments */
    .container {
        max-width: 100%;
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    /* Hero sections */
    .hero-section {
        padding: var(--space-12) 0;
    }

    .hero-section h1 {
        font-size: var(--font-size-3xl);
    }

    /* Product grids - 2 columns on tablet */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-4);
    }

    /* Category layout - Stack filters on tablet */
    .category-layout {
        grid-template-columns: 1fr !important;
    }

    .category-sidebar {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        margin-bottom: var(--space-6);
        border-right: none;
        border-bottom: 2px solid var(--color-border);
        padding-bottom: var(--space-6);
    }

    /* Footer grid - 2 columns on tablet */
    .footer-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-8) var(--space-6);
    }

    /* Contact form layout */
    .contact-layout {
        grid-template-columns: 1fr !important;
    }

    .contact-sidebar {
        margin-top: var(--space-8);
    }
}

/* ===== MOBILE LANDSCAPE & SMALL TABLETS (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1, .h1 {
        font-size: var(--font-size-3xl);
    }

    h2, .h2 {
        font-size: var(--font-size-2xl);
    }

    h3, .h3 {
        font-size: var(--font-size-xl);
    }

    /* Header adjustments */
    .header-top {
        font-size: var(--font-size-sm);
        padding: var(--space-2) 0;
    }

    .site-header .container {
        flex-direction: column;
        gap: var(--space-4);
    }

    .header-actions {
        justify-content: space-between;
        width: 100%;
    }

    /* Note: Main navigation mobile styles handled by hamburger menu section */

    /* Product card adjustments */
    .product-card {
        padding: var(--space-4);
    }

    .product-card-title {
        font-size: var(--font-size-sm);
        line-height: var(--line-height-tight);
    }

    .product-price {
        font-size: var(--font-size-lg);
    }

    /* Category filters - Accordion style */
    .filter-section {
        margin-bottom: var(--space-4);
    }

    .filter-section h3 {
        font-size: var(--font-size-base);
        cursor: pointer;
        padding: var(--space-3);
        background: var(--color-bg-secondary);
        border-radius: var(--radius-md);
        margin-bottom: var(--space-2);
    }

    /* Trust badges - Stack vertically */
    .footer-trust-row {
        flex-direction: column;
        gap: var(--space-4);
        align-items: stretch;
    }

    .trust-badge {
        justify-content: center;
        padding: var(--space-4);
    }

    /* Footer - Single column */
    .footer-row {
        grid-template-columns: 1fr !important;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-bottom-left,
    .footer-bottom-right {
        width: 100%;
    }

    /* Form layouts */
    .form-row {
        flex-direction: column;
    }

    .form-group {
        margin-bottom: var(--space-4);
    }
}

/* ===== MOBILE PORTRAIT (max-width: 576px) ===== */
@media (max-width: 576px) {
    /* Reduce spacing */
    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    /* Typography - Smaller on mobile */
    h1, .h1 {
        font-size: var(--font-size-2xl);
        line-height: var(--line-height-tight);
    }

    h2, .h2 {
        font-size: var(--font-size-xl);
    }

    h3, .h3 {
        font-size: var(--font-size-lg);
    }

    /* Hero adjustments */
    .hero-section {
        padding: var(--space-8) 0;
    }

    .hero-section h1 {
        font-size: var(--font-size-2xl);
    }

    .hero-section .hero-subtitle {
        font-size: var(--font-size-base);
    }

    /* Logo adjustments */
    .site-logo {
        font-size: var(--font-size-xl);
    }

    /* Search bar - Full width */
    .header-search {
        width: 100%;
    }

    .search-bar {
        width: 100%;
    }

    /* Product grid - Single column */
    .products-grid,
    .products-grid-3col,
    .products-grid-4col {
        grid-template-columns: 1fr !important;
        gap: var(--space-4);
    }

    /* Product card - More compact */
    .product-card {
        padding: var(--space-3);
    }

    .product-image {
        height: 200px;
    }

    .product-card-title {
        font-size: var(--font-size-sm);
        -webkit-line-clamp: 2;
    }

    .product-meta {
        font-size: var(--font-size-xs);
    }

    /* Buttons - Full width on mobile */
    .btn {
        width: 100%;
        padding: var(--space-4);
    }

    .product-card .btn {
        margin: 0 var(--space-3) var(--space-3);
        width: calc(100% - (var(--space-3) * 2));
    }

    /* Filter controls */
    .filters-bar {
        flex-direction: column;
        gap: var(--space-3);
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
    }

    /* Breadcrumb - Smaller text */
    .breadcrumb,
    .product-breadcrumb {
        font-size: var(--font-size-xs);
        padding: var(--space-2) 0;
    }

    /* Category sidebar - Mobile optimized */
    .category-sidebar {
        padding: var(--space-4);
    }

    .filter-section {
        padding: var(--space-3);
        background: var(--color-bg-secondary);
        border-radius: var(--radius-md);
        margin-bottom: var(--space-3);
    }

    /* Product detail page */
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .product-images-section {
        margin-bottom: var(--space-6);
    }

    .product-info-section {
        position: static !important;
    }

    .product-price-section {
        margin: var(--space-4) 0;
    }

    .price-display {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .product-main-price {
        font-size: var(--font-size-3xl);
    }

    /* Thumbnail gallery - Horizontal scroll */
    .thumbnail-gallery {
        display: flex;
        gap: var(--space-2);
        overflow-x: auto;
        padding-bottom: var(--space-2);
        -webkit-overflow-scrolling: touch;
    }

    .thumbnail {
        flex: 0 0 60px;
        height: 60px;
    }

    /* Action buttons - Stack */
    .product-actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .product-actions .btn {
        width: 100%;
    }

    /* Contact form - Mobile optimized */
    .contact-card {
        padding: var(--space-4);
    }

    .hours-list {
        font-size: var(--font-size-sm);
    }

    /* Footer - Compact */
    .footer-col {
        padding: 0;
    }

    .footer-heading {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-3);
    }

    .footer-links,
    .contact-list {
        font-size: var(--font-size-sm);
    }

    .payment-methods img {
        height: 70px !important;
    }

    /* Tables - Responsive scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: var(--font-size-sm);
    }

    /* Modal adjustments */
    .modal-content {
        width: 95%;
        margin: var(--space-4);
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Quantity selector */
    .quantity-selector {
        width: 100px;
    }

    /* Alert messages */
    .alert {
        padding: var(--space-4);
        font-size: var(--font-size-sm);
    }

    /* Badge sizing */
    .badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    .badge-ffl,
    .badge-featured {
        bottom: var(--space-2);
    }

    .badge-ffl {
        left: var(--space-2);
    }

    .badge-featured {
        right: var(--space-2);
    }

    /* Spacing reductions */
    section {
        padding: var(--space-8) 0;
    }

    .section-heading {
        margin-bottom: var(--space-6);
    }
}

/* ===== EXTRA SMALL MOBILE (max-width: 375px) ===== */
@media (max-width: 375px) {
    /* Further reduce spacing for very small screens */
    .container {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }

    h1, .h1 {
        font-size: var(--font-size-xl);
    }

    h2, .h2 {
        font-size: var(--font-size-lg);
    }

    /* Product cards - Even more compact */
    .product-card {
        padding: var(--space-2);
    }

    .product-image {
        height: 180px;
    }

    .product-card-title {
        font-size: var(--font-size-xs);
    }

    .product-price {
        font-size: var(--font-size-base);
    }

    /* Buttons - Smaller padding */
    .btn {
        padding: var(--space-3);
        font-size: var(--font-size-sm);
    }

    /* Form inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    button,
    .btn,
    a.btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }

    /* Larger checkboxes and radio buttons */
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
    }

    /* Better spacing for tappable elements */
    .filter-option {
        padding: var(--space-3);
        margin-bottom: var(--space-2);
    }

    /* Links in lists - more padding */
    .footer-links a,
    .nav-link {
        padding: var(--space-3);
        display: block;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 768px) and (orientation: landscape) {
    /* Reduce vertical spacing in landscape */
    .hero-section {
        padding: var(--space-6) 0;
    }

    section {
        padding: var(--space-6) 0;
    }

    /* Product grid - 2 columns in landscape */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==================== MOBILE HAMBURGER MENU ==================== */

/* Hamburger button - hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: #c41e3a;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 6px;
    z-index: 9999;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-label {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Mobile styles */
@media (max-width: 900px) {
    /* Show hamburger button - fixed in top right corner */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        position: fixed !important;
        top: 18px !important;
        right: 10px !important;
        background: #c41e3a !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    .main-nav {
        position: relative;
        padding: 12px 0 !important;
    }

    .main-nav .container {
        position: relative;
    }

    /* Slide-out sidebar menu - hidden off-screen by default (transform approach, same as admin sidebar) */
    .main-nav ul[role="menubar"] {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        background: #1f2937 !important;
        padding: 20px 0 !important;
        margin: 0 !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
    }

    /* Show menu when .open class is toggled via JS */
    .main-nav ul[role="menubar"].open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.5) !important;
    }

    /* Mobile nav items - compact horizontal grid */
    .main-nav > ul > li {
        width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav > ul > li:last-child {
        border-bottom: none;
    }

    /* Mobile nav links - simpler styling */
    .main-nav > ul > li > a,
    .main-nav > ul > li > a:link,
    .main-nav > ul > li > a:visited {
        display: block !important;
        padding: 14px 20px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-size: 14px !important;
        text-align: left !important;
        transform: none !important;
    }

    .main-nav > ul > li > a:hover {
        background: rgba(255,255,255,0.1) !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* Dropdown menus on mobile */
    .main-nav .dropdown-menu {
        position: static !important;
        display: none !important;
        background: rgba(0,0,0,0.2) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-nav .dropdown.active .dropdown-menu {
        display: block !important;
    }

    .main-nav .dropdown-menu a {
        padding: 12px 20px 12px 40px !important;
        font-size: 13px !important;
        color: #ddd !important;
    }

    .main-nav .dropdown-menu a:hover {
        background: rgba(255,255,255,0.05) !important;
        color: #fff !important;
    }

    /* Hamburger animation when open */
    .main-nav.menu-open .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .main-nav.menu-open .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .main-nav.menu-open .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Even smaller screens - more compact */
@media (max-width: 576px) {
    .main-nav > ul > li > a,
    .main-nav > ul > li > a:link,
    .main-nav > ul > li > a:visited {
        padding: 12px 15px !important;
        font-size: 13px !important;
    }

    .main-nav .dropdown-menu a {
        padding: 10px 15px 10px 30px !important;
        font-size: 12px !important;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    body {
        background: white;
        color: black;
    }

    .no-print,
    .site-header,
    .site-footer,
    .main-nav {
        display: none !important;
    }
}

/* ===== Pagination ===== */
.pagination-container {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination-btn:hover:not(.disabled):not(.pagination-current) {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}
.pagination-btn.pagination-current {
    background: #c41e3a;
    border-color: #c41e3a;
    color: #fff;
    font-weight: 600;
}
.pagination-btn.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    background: #f9fafb;
}
.pagination-ellipsis {
    color: #6b7280;
    padding: 0 4px;
}
.pagination-prev,
.pagination-next {
    font-weight: 600;
}
.pagination-info {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}
@media (max-width: 600px) {
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    .pagination-prev,
    .pagination-next {
        padding: 0 10px;
    }
}

/* ===== Products Toolbar (sort + count) ===== */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}
.product-count-display {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.sort-select {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-select label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}
.sort-select select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== M2-SLR feature hero slide (added 2026-07-06) ===== */
/* The banner has its headline, CTA and product name baked into the image, so it
   must never be cropped. object-fit:contain shows the whole 2560x900 banner at any
   viewport; the deep-navy fill (sampled from the banner) covers any letterbox gap.
   The whole slide is a click target to the product page. */
.hero-slide-m2 { background-color: #0e1c2c; }
/* Center the banner and CAP it to the frame both ways so it can never overflow or
   crop, at any viewport (Brad 2026-07-06: "too big → goes out of frame → cuts off"). */
.hero-slide-m2 .hero-slide-link { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-slide-m2 .hero-bg-img { position: static; width: auto; height: auto; max-width: 100%; max-height: 100%; display: block; }
