/* ======================================================
   SINO DRIVE COMPONENTS — Premium Design System
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Core Palette */
    --primary: #c8102e;
    --primary-dark: #a00d24;
    --primary-light: #ff2d4f;
    --secondary: #1a1a2e;
    --accent: #e8b600;
    --accent-light: #ffd740;

    /* Neutrals */
    --bg-dark: #f1f3f6;
    --bg-card: #ffffff;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-light: #cbd5e1;

    /* Semantic */
    --success: #00c853;
    --warning: #ff9100;
    --danger: #ff1744;
    --info: #2196f3;

    /* Spacing */
    --header-height: 72px;
    --container-max: 1280px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

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

/* ─── Typography ───────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }

.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ─── Header / Navbar ──────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
    flex-shrink: 0;
}

.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
}

.navbar-brand span.accent { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 160px;
    padding: 4px 8px;
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box button {
    color: var(--text-secondary);
    padding: 4px;
    display: flex;
}

/* Quote cart button */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.cart-btn:hover {
    border-color: var(--primary);
    background: rgba(200, 16, 46, 0.1);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.lang-selector {
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}

.lang-selector:focus { border-color: var(--primary); }
.lang-selector option { background: var(--bg-card); }

/* Mobile menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Hero Section ─────────────────────────────────────── */
.hero {
    padding: calc(var(--header-height) + 80px) 0 80px;
    background: radial-gradient(ellipse at 20% 50%, rgba(200, 16, 46, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(232, 182, 0, 0.08) 0%, transparent 50%),
                var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stat .number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), transparent);
    opacity: 0.1;
    border-radius: 0 var(--radius-lg) 0 100%;
}

.hero-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hero-feature {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.hero-feature:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.hero-feature .icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hero-feature h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.hero-feature p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(200, 16, 46, 0.1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--bg-dark);
    font-weight: 700;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

/* ─── Cards ────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-image {
    width: 100%;
    height: 200px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-image .placeholder-icon {
    font-size: 3rem;
    color: var(--text-muted);
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.card-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(200, 16, 46, 0.15);
    color: var(--primary-light);
    border-radius: 100px;
    font-weight: 500;
}

/* ─── Product Grid ─────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.brand-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(200, 16, 46, 0.15);
}

.brand-card .brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
}

.brand-card h3 { font-size: 1rem; margin-bottom: 4px; }
.brand-card p { font-size: 0.8rem; color: var(--text-muted); }

/* Category cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.category-card .cat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.category-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.category-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Section Styles ───────────────────────────────────── */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-card);
}

/* ─── Product Detail ───────────────────────────────────── */
.product-detail {
    padding: calc(var(--header-height) + 40px) 0 60px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.product-gallery {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: 400px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-main-image .placeholder-icon {
    font-size: 5rem;
    color: var(--text-muted);
}

.product-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
}

.product-thumbnails img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
    border-color: var(--primary);
}

.product-info h1 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.product-info .oem-code {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-info .oem-code strong { color: var(--accent); }

.product-specs {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-row {
    display: flex;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
}

.spec-row .spec-label {
    width: 140px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.spec-row .spec-value {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.product-description {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.add-to-quote {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-input {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-input button {
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.qty-input button:hover { background: var(--bg-elevated); }

.qty-input input {
    width: 60px;
    text-align: center;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 600;
    padding: 10px 0;
    outline: none;
}

/* ─── Breadcrumbs ──────────────────────────────────────── */
.breadcrumbs {
    padding: calc(var(--header-height) + 24px) 0 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--primary-light); }
.breadcrumbs span { margin: 0 8px; }

/* ─── Quote Cart ───────────────────────────────────────── */
.quote-cart {
    padding: calc(var(--header-height) + 40px) 0 60px;
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cart-table th {
    text-align: left;
    padding: 14px 16px;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.cart-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.cart-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.cart-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-product-info img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-surface);
}

.cart-summary {
    margin-top: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.cart-summary h2 { font-size: 1.25rem; margin-bottom: 24px; }

/* ─── Forms ────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.form-control::placeholder { color: var(--text-muted); }

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239999b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 0;
}

.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Pagination ───────────────────────────────────────── */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 4px;
}

.pagination-wrap a,
.pagination-wrap span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.pagination-wrap a:hover { border-color: var(--primary); color: var(--text-primary); }
.pagination-wrap span.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ─── Alerts ───────────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: rgba(0, 200, 83, 0.1); border: 1px solid rgba(0, 200, 83, 0.3); color: var(--success); }
.alert-error { background: rgba(255, 23, 68, 0.1); border: 1px solid rgba(255, 23, 68, 0.3); color: var(--danger); }
.alert-info { background: rgba(33, 150, 243, 0.1); border: 1px solid rgba(33, 150, 243, 0.3); color: var(--info); }

/* ─── Badge ────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-new { background: rgba(33, 150, 243, 0.15); color: var(--info); }
.badge-contacted { background: rgba(255, 145, 0, 0.15); color: var(--warning); }
.badge-quoted { background: rgba(0, 200, 83, 0.15); color: var(--success); }
.badge-closed { background: rgba(102, 102, 128, 0.15); color: var(--text-muted); }
.badge-active { background: rgba(0, 200, 83, 0.15); color: var(--success); }
.badge-draft { background: rgba(255, 145, 0, 0.15); color: var(--warning); }
.badge-discontinued { background: rgba(255, 23, 68, 0.15); color: var(--danger); }

/* ─── Page Header ──────────────────────────────────────── */
.page-header {
    padding: calc(var(--header-height) + 40px) 0 40px;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ─── Quote Success ────────────────────────────────────── */
.success-page {
    padding: calc(var(--header-height) + 80px) 0 80px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.success-page h1 { margin-bottom: 16px; }
.success-page p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 32px; }

/* ─── RTL Support ──────────────────────────────────────── */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .navbar-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { direction: rtl; }
[dir="rtl"] .spec-row { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }

/* ─── Toast Notification ───────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    font-size: 0.9rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ─── Empty State ──────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; color: var(--text-secondary); }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .search-box input { width: 100px; }
    .hero { padding: calc(var(--header-height) + 40px) 0 40px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .section { padding: 48px 0; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .brands-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .cart-table { display: block; overflow-x: auto; }
    .add-to-quote { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .navbar-brand { font-size: 1.1rem; }
    .hero-stat .number { font-size: 1.8rem; }
    .products-grid { grid-template-columns: 1fr; }
}
