/* ═══════════════════════════════════════════════════════════════
   Termograf eCommerce — Site Styles
   Design System tokens per /docs/40-ux-ui/Design-System.md
   Brand: termograf.ro — theme-color #1c2122
   Light / Dark theme via [data-theme] on <html>
   Icons: Font Awesome 6 Free (solid + regular)
   ═══════════════════════════════════════════════════════════════ */

/* ─── LIGHT THEME (default) ─── */
:root,
[data-theme="light"] {
    /* Typography */
    --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Lato', 'Inter', sans-serif;
    --font-size-h1: clamp(2rem, 5vw, 3.25rem);
    --font-size-h2: clamp(1.5rem, 3.5vw, 2.25rem);
    --font-size-h3: 1.375rem;
    --font-size-body: 1rem;
    --font-size-small: 0.875rem;
    --font-size-xs: 0.75rem;
    --line-height: 1.6;

    /* Spacing scale (4px base) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-base: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Brand colors — from termograf.ro */
    --color-brand-dark: #1c2122;
    --color-brand-gradient: linear-gradient(135deg, #1c2122 0%, #2d3436 100%);

    /* Functional colors */
    --color-primary: #0066CC;
    --color-primary-hover: #0052A3;
    --color-primary-light: #E8F0FE;
    --color-secondary: #6C757D;
    --color-success: #28A745;
    --color-warning: #FFC107;
    --color-danger: #DC3545;
    --color-bg: #FFFFFF;
    --color-surface: #F8F9FA;
    --color-text: #212529;
    --color-text-muted: #6C757D;
    --color-text-light: #ADB5BD;
    --color-border: #DEE2E6;
    --color-header-bg: rgba(255,255,255,0.97);
    --color-card-bg: #FFFFFF;
    --color-input-bg: #FFFFFF;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-modal: 0 16px 48px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Header */
    --header-height: 72px;

    color-scheme: light;
}

/* ─── DARK THEME ─── */
[data-theme="dark"] {
    --color-brand-dark: #0e1111;
    --color-brand-gradient: linear-gradient(135deg, #0e1111 0%, #1a1f20 100%);

    --color-primary: #4DA3FF;
    --color-primary-hover: #7ABCFF;
    --color-primary-light: rgba(77,163,255,0.12);
    --color-secondary: #8B95A0;
    --color-success: #34D058;
    --color-warning: #FFD866;
    --color-danger: #F85149;
    --color-bg: #141819;
    --color-surface: #1C2122;
    --color-text: #E6EDF3;
    --color-text-muted: #8B949E;
    --color-text-light: #6E7681;
    --color-border: #30363D;
    --color-header-bg: rgba(20,24,25,0.97);
    --color-card-bg: #1C2122;
    --color-input-bg: #1C2122;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.35);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.45);
    --shadow-modal: 0 16px 48px rgba(0,0,0,0.55);

    color-scheme: dark;
}

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

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-hover); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }

/* Skip link (a11y) */
.skip-link {
    position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
    z-index: 9999; padding: var(--space-sm) var(--space-base);
    background: var(--color-primary); color: white; font-weight: 600;
}
.skip-link:focus { left: var(--space-base); top: var(--space-base); width: auto; height: auto; }

/* ─── CONTAINER ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.text-white { color: #FFFFFF; }
.text-muted { color: var(--color-text-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    transition: box-shadow var(--transition-base), background var(--transition-base);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-lg);
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }

/* Navigation */
.main-nav { flex: 1; display: flex; justify-content: center; }

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-xs);
}

.nav-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-size: var(--font-size-small);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-link:hover,
.nav-link.active { color: var(--color-primary); background: var(--color-primary-light); }

/* Nav dropdown */
.has-dropdown { position: relative; }
.nav-dropdown-arrow {
    font-size: 0.55em;
    margin-left: 0.3em;
    transition: transform var(--transition-fast);
    vertical-align: 0.1em;
}
.has-dropdown:hover .nav-dropdown-arrow,
.has-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: var(--space-xs) 0;
    list-style: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.has-dropdown:hover > .nav-dropdown,
.has-dropdown.open > .nav-dropdown {
    display: block;
    opacity: 1;
}
.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-size: var(--font-size-small);
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-dropdown-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.nav-dropdown-link i { width: 1.2em; text-align: center; color: var(--color-primary); }

/* Hamburger */
.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 40px; height: 40px;
    position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block; width: 22px; height: 2px;
    background: var(--color-text); border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 9px; }
.hamburger::before { top: 12px; }
.hamburger::after { bottom: 12px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { bottom: 19px; transform: rotate(-45deg); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--space-base); flex-shrink: 0; }

/* Language Switcher */
.lang-switcher { display: flex; gap: 2px; }
.lang-flag {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 28px;
    font-size: var(--font-size-xs); font-weight: 600;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.lang-flag:hover { color: var(--color-primary); background: var(--color-primary-light); }
.lang-flag.active { color: var(--color-primary); background: var(--color-primary-light); font-weight: 700; }

/* Currency Switcher */
.currency-switcher { display: flex; align-items: center; }
.currency-form { margin: 0; }
.currency-select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background: transparent;
    border: 1px solid var(--color-border, #ccc);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs); font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 8px 5px;
    padding-right: 20px;
    transition: all var(--transition-fast);
    height: 28px; line-height: 1;
}
.currency-select:hover { border-color: var(--color-primary); color: var(--color-primary); }
.currency-select:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }

/* Account icon */
/* Account icon (guest) */
.account-icon {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    color: var(--color-text);
    border-radius: var(--radius-sm); font-size: 1.15rem;
    transition: background var(--transition-fast), color var(--transition-fast);
    text-decoration: none; white-space: nowrap;
}
.account-icon:hover { background: var(--color-surface); color: var(--color-primary); }
.login-label { font-size: var(--font-size-small); font-weight: 500; }

/* ─── User Menu (authenticated) ─── */
.user-menu { position: relative; }
.user-menu-trigger {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    background: var(--color-card-bg); color: var(--color-text);
    cursor: pointer; transition: all var(--transition-fast);
    max-width: 220px;
}
.user-menu-trigger:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.user-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--color-primary); color: white;
    font-size: 0.85rem;
}
.user-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.user-name {
    font-size: var(--font-size-small); font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-chevron { font-size: 0.7rem; color: var(--color-text-muted); transition: transform var(--transition-fast); margin-left: auto; }
.user-menu.open .user-chevron { transform: rotate(180deg); }

/* Role badges */
.user-role {
    display: inline-block; padding: 1px 8px;
    font-size: var(--font-size-xs); font-weight: 700;
    border-radius: var(--radius-full); white-space: nowrap;
    line-height: 1.6; letter-spacing: 0.02em;
}
.role-customer { background: var(--color-primary-light); color: var(--color-primary); }
.role-dealer { background: rgba(40,167,69,0.12); color: var(--color-success); }
.role-dealer-pending { background: rgba(255,193,7,0.15); color: #b8860b; }
.role-admin { background: rgba(220,53,69,0.1); color: var(--color-danger); }

/* User dropdown */
.user-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 240px; z-index: 1000;
    background: var(--color-card-bg); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: dropdown-in var(--transition-fast) ease forwards;
}
.user-menu.open .user-dropdown { display: block; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.user-dropdown-header { padding: var(--space-md) var(--space-base); display: flex; flex-direction: column; gap: 4px; }
.user-dropdown-name { font-size: var(--font-size-body); font-weight: 600; color: var(--color-text); }
.user-dropdown-sep { border: none; border-top: 1px solid var(--color-border); margin: 0; }
.user-dropdown-item {
    display: flex; align-items: center; gap: var(--space-sm);
    padding: var(--space-sm) var(--space-base);
    font-size: var(--font-size-small); color: var(--color-text);
    text-decoration: none; transition: background var(--transition-fast);
}
.user-dropdown-item i { width: 18px; text-align: center; color: var(--color-text-muted); font-size: 0.9rem; }
.user-dropdown-item:hover { background: var(--color-surface); color: var(--color-primary); }
.user-dropdown-item:hover i { color: var(--color-primary); }
.user-dropdown-logout { color: var(--color-danger); }
.user-dropdown-logout i { color: var(--color-danger); }
.user-dropdown-logout:hover { background: rgba(220,53,69,0.06); }
.user-dropdown-form { display: contents; }
.user-dropdown-form button.user-dropdown-logout {
    width: 100%; background: none; border: none; cursor: pointer;
    font-family: var(--font-family); text-align: left;
}

/* Mobile-only nav actions (inside slide-down menu) — hidden on desktop */
.mobile-nav-actions { display: none; }

/* mobile: hide label, shrink menu */
@media (max-width: 768px) {
    .login-label { display: none; }
    .user-info { display: none; }
    .user-chevron { display: none; }
    .user-menu-trigger { padding: var(--space-xs); border: none; background: transparent; }
    .user-dropdown { right: -40px; min-width: 200px; }

    /* Hide lang/currency/theme from header bar on mobile — they live in the nav overlay */
    .header-actions > .lang-switcher,
    .header-actions > .currency-switcher,
    .header-actions > .theme-toggle { display: none; }

    /* Reduce header-actions gap on mobile */
    .header-actions { gap: var(--space-xs); }

    /* Show mobile nav actions inside the slide-down panel */
    .mobile-nav-actions {
        display: block;
        list-style: none;
        margin-top: auto;
        padding-top: var(--space-lg);
        border-top: 1px solid var(--color-border);
    }
    .mobile-nav-actions-inner {
        display: flex;
        flex-direction: column;
        gap: var(--space-base);
    }
    .mobile-nav-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-sm) 0;
    }
    .mobile-nav-label {
        font-size: var(--font-size-small);
        font-weight: 600;
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .mobile-nav-row .lang-switcher { gap: var(--space-xs); }
    .mobile-nav-row .lang-flag { width: 40px; height: 34px; font-size: var(--font-size-small); }
    .mobile-nav-row .currency-select { height: 34px; font-size: var(--font-size-small); }
    .mobile-theme-toggle {
        display: flex; align-items: center; justify-content: center;
        width: 40px; height: 40px;
        background: none; border: 1px solid var(--color-border);
        border-radius: var(--radius-full);
        color: var(--color-text-muted);
        cursor: pointer; font-size: 1.1rem;
        transition: all var(--transition-fast);
    }
    .mobile-theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }
    [data-theme="light"] .mobile-theme-toggle .fa-sun { display: none; }
    [data-theme="dark"] .mobile-theme-toggle .fa-moon { display: none; }
}

/* Cart icon */
.cart-icon {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; color: var(--color-text);
    border-radius: var(--radius-sm); font-size: 1.15rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.cart-icon:hover { background: var(--color-surface); color: var(--color-primary); }

/* Theme toggle */
.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: none; border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    cursor: pointer; font-size: 1rem;
    transition: all var(--transition-fast);
}
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); background: var(--color-primary-light); }
[data-theme="light"] .theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
.cart-count {
    position: absolute; top: 2px; right: 0;
    min-width: 18px; height: 18px;
    font-size: 10px; font-weight: 700; color: white;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: min(85vh, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.hero-bg-wrap {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

.hero-content {
    position: relative; z-index: 1;
    max-width: 720px;
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
}

.hero-title {
    font-size: var(--font-size-h1);
    font-weight: 900;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-title span { display: block; }
.hero-title em {
    font-style: normal;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-xl);
    max-width: 560px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ═══════════════════════════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════════════════════════ */
.section { padding: var(--space-4xl) 0; }
.section-title { font-size: var(--font-size-h2); margin-bottom: var(--space-base); }
.section-subtitle { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: var(--space-2xl); }

/* ── About Section (with bg image overlay) ── */
.section-about {
    position: relative;
    color: white;
    min-height: 500px;
}
.section-bg-wrap { position: absolute; inset: 0; z-index: 0; }
.section-bg {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.35);
}
.section-overlay-content {
    position: relative; z-index: 1;
    max-width: 800px;
}
.description-text p { margin-bottom: var(--space-base); opacity: 0.92; line-height: 1.7; }

/* ── Use Cases Grid ── */
.usecases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.usecases-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-md); }

.usecase-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-base);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.usecase-item:hover { transform: translateX(4px); box-shadow: var(--shadow-xs); }
.usecase-icon { font-size: 1.4rem; flex-shrink: 0; }

.usecases-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.usecases-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Industry Cards Grid (Home) ── */
.section-lead { max-width: 640px; margin: 0 auto var(--space-xl); color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.6; }
.industry-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}
.industry-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    text-decoration: none; color: var(--color-text);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); color: var(--color-text); }
.industry-card-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: var(--space-md); }
.industry-card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: var(--space-sm); }
.industry-card-desc { font-size: var(--font-size-small); color: var(--color-text-muted); line-height: 1.5; margin-bottom: var(--space-base); flex: 1; }
.industry-card-link { font-size: var(--font-size-small); font-weight: 600; color: var(--color-primary); display: inline-flex; align-items: center; gap: 0.4em; }
.industry-card:hover .industry-card-link { text-decoration: underline; }

/* ── Trust / Social Proof Section ── */
.section-trust { background: var(--color-bg-alt, #f7f8fa); }
.trust-stats {
    display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xl);
    margin: var(--space-xl) 0;
}
.trust-stat {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
    min-width: 140px;
}
.trust-stat-icon { font-size: 2rem; color: var(--color-primary); }
.trust-stat-number { font-size: 2rem; font-weight: 700; color: var(--color-text); line-height: 1; }
.trust-stat-label { font-size: var(--font-size-small); color: var(--color-text-muted); font-weight: 500; }
.trust-certifications { font-size: var(--font-size-small); color: var(--color-text-muted); margin-top: var(--space-md); }
.trust-certifications i { color: var(--color-primary); margin-right: 0.3em; }

/* ── Error / 404 Page ── */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-code {
    font-size: clamp(6rem, 15vw, 12rem); font-weight: 800; line-height: 1;
    color: var(--color-primary); opacity: 0.15;
    margin-bottom: var(--space-md);
}
.error-heading { font-size: var(--font-size-h2); margin-bottom: var(--space-base); }
.error-message { color: var(--color-text-muted); max-width: 500px; margin: 0 auto var(--space-xl); line-height: 1.6; }
.error-suggestions { display: inline-block; text-align: left; }
.error-suggestions-title { font-weight: 600; margin-bottom: var(--space-sm); }
.error-suggestions-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.error-suggestions-list li { display: flex; align-items: center; gap: var(--space-sm); }
.error-suggestions-list li i { width: 20px; text-align: center; color: var(--color-primary); }
.error-suggestions-list a { font-weight: 500; }

/* ─── PRODUCTS GRID ─── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: var(--space-lg);
}

.product-card { display: flex; flex-direction: column; background: var(--color-card-bg); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-surface);
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-body { padding: var(--space-lg); display: flex; flex-direction: column; flex: 1; }
.product-card-title { font-size: var(--font-size-h3); margin-bottom: var(--space-xs); }
.product-card-probes { font-size: var(--font-size-small); color: var(--color-primary); font-weight: 600; margin-bottom: var(--space-sm); }
.product-card-desc { font-size: var(--font-size-small); color: var(--color-text-muted); flex: 1; margin-bottom: var(--space-base); }
.product-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-sm); margin-top: auto; flex-wrap: wrap; }
.product-card-pricing { display: flex; flex-direction: column; gap: 2px; }
.product-card-price { font-size: 1.25rem; font-weight: 700; color: var(--color-text); }
.product-card-price--retail { text-decoration: line-through; opacity: 0.6; font-size: 0.85em; font-weight: 400; }
.product-card-price--dealer { color: var(--color-success); }

/* ─── FEATURES GRID ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.feature-icon { font-size: 2.5rem; display: block; margin-bottom: var(--space-md); }
.feature-title { font-size: 1.1rem; margin-bottom: var(--space-sm); }
.feature-desc { font-size: var(--font-size-small); color: var(--color-text-muted); line-height: 1.5; }

/* ─── CTA Section ─── */
.section-cta {
    background: var(--color-brand-gradient);
    color: white;
    text-align: center;
}
.cta-title { font-size: var(--font-size-h2); margin-bottom: var(--space-md); }
.cta-subtitle { font-size: 1.1rem; opacity: 0.85; margin-bottom: var(--space-xl); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS (extended)
   ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--color-primary-hover); color: white; }

.btn-secondary { background: white; color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover:not(:disabled) { background: var(--color-surface); border-color: var(--color-text-muted); color: var(--color-text); }

.btn-ghost { background: transparent; color: var(--color-primary); }
.btn-ghost:hover { background: var(--color-primary-light); }

.btn-ghost-light { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.25); color: white; }

.btn-sm { padding: 6px 14px; font-size: var(--font-size-small); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */
.badge { display: inline-block; padding: 2px var(--space-sm); border-radius: var(--radius-sm); font-size: var(--font-size-small); font-weight: 600; }
.badge-dealer { background: var(--color-primary-light); color: var(--color-primary); }
.badge-in-stock { background: #D4EDDA; color: #155724; }
.badge-out-of-stock { background: #F8D7DA; color: #721C24; }
.badge-success { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.badge-outline { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */
.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════ */
.alert { padding: var(--space-md) var(--space-base); border-radius: var(--radius-sm); margin-bottom: var(--space-base); }
.alert-success { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.alert-warning { background: #FFF3CD; color: #856404; border: 1px solid #FFEEBA; }
.alert-error { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }

/* ═══════════════════════════════════════════════════════════════
   FORM INPUTS
   ═══════════════════════════════════════════════════════════════ */
.form-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    background: var(--color-input-bg);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(0,102,204,0.15); }
.form-input.is-invalid { border-color: var(--color-danger); }
.form-input.is-valid { border-color: var(--color-success); }

.form-hint { display: block; font-size: var(--font-size-xs); color: var(--color-text-muted); margin-top: 2px; line-height: 1.4; }
.field-validation-error { display: block; font-size: var(--font-size-xs); color: var(--color-danger); margin-top: 2px; line-height: 1.4; }
.field-validation-valid { display: none; }

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

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER / BREADCRUMB
   ═══════════════════════════════════════════════════════════════ */
.page-header { padding: var(--space-2xl) 0 var(--space-xl); background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.page-header-sm { padding: var(--space-lg) 0; }
.page-title { font-size: var(--font-size-h1); margin-bottom: var(--space-sm); }
.page-subtitle { font-size: 1.1rem; color: var(--color-text-muted); }

.breadcrumb {
    display: flex; flex-wrap: wrap; gap: var(--space-sm);
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    margin-bottom: var(--space-base);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ═══════════════════════════════════════════════════════════════
   PRODUCT DETAIL
   ═══════════════════════════════════════════════════════════════ */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.product-gallery-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
    aspect-ratio: 4/3;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery-thumbs {
    display: flex; gap: var(--space-sm); margin-top: var(--space-md);
}
.thumb-btn {
    width: 72px; height: 54px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden; cursor: pointer;
    background: none; padding: 0;
    transition: border-color var(--transition-fast);
}
.thumb-btn:hover, .thumb-btn.active { border-color: var(--color-primary); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-title { font-size: var(--font-size-h2); margin-bottom: var(--space-sm); }
.product-sku { font-size: var(--font-size-small); color: var(--color-text-muted); margin-bottom: var(--space-lg); }

.product-price-block { display: flex; align-items: center; gap: var(--space-base); margin-bottom: var(--space-lg); }
.product-detail-price { font-size: 1.75rem; font-weight: 700; }

.product-description { margin-bottom: var(--space-xl); line-height: 1.7; }
.product-description p { margin-bottom: var(--space-md); }

/* Configuration */
.product-config { margin-bottom: var(--space-xl); }
.config-heading { font-size: var(--font-size-h3); margin-bottom: var(--space-base); }
.config-group { margin-bottom: var(--space-lg); }
.config-label { display: block; font-weight: 600; font-size: var(--font-size-small); margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }

.config-options { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.config-option {
    padding: var(--space-sm) var(--space-base);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-input-bg);
    color: var(--color-text);
    cursor: pointer;
    font-size: var(--font-size-small);
    font-weight: 500;
    transition: all var(--transition-fast);
}
.config-option:hover { border-color: var(--color-primary); }
.config-option.active { border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary); }

/* Quantity selector */
.qty-selector { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn {
    width: 40px; height: 40px;
    border: none; background: var(--color-surface);
    font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition-fast);
}
.qty-btn:hover { background: var(--color-border); }
.qty-input { width: 50px; height: 40px; text-align: center; border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); font-size: var(--font-size-body); }
.qty-input:focus { outline: none; }

.product-actions { display: flex; flex-direction: column; gap: var(--space-md); }

/* Specs table */
.specs-table-wrap { overflow-x: auto; }
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-small);
}
.specs-table th, .specs-table td {
    padding: var(--space-md) var(--space-base);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.specs-table th { background: var(--color-surface); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--font-size-xs); }
.specs-table td:first-child { text-align: left; font-weight: 500; }
.specs-table tr:hover { background: rgba(0,102,204,0.03); }

/* Product badges (industry tags on detail page) */
.product-badges { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.product-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 14px; border-radius: 99px;
    font-size: var(--font-size-xs); font-weight: 600;
    text-decoration: none; transition: all var(--transition-fast);
    white-space: nowrap;
}
.product-badge svg { flex-shrink: 0; }
.product-badge--pharma { background: #e8f5e9; color: #2e7d32; }
.product-badge--pharma:hover { background: #c8e6c9; }
.product-badge--food { background: #fff3e0; color: #e65100; }
.product-badge--food:hover { background: #ffe0b2; }
.product-badge--logistics { background: #e3f2fd; color: #1565c0; }
.product-badge--logistics:hover { background: #bbdefb; }

/* Use Cases & Compliance grid */
.product-usecases-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.product-usecase-card {
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition-fast);
}
.product-usecase-card:hover { box-shadow: var(--shadow-card); }
.product-usecase-card h3 { font-size: var(--font-size-h4); margin-bottom: var(--space-sm); }
.product-usecase-card p { color: var(--color-text-muted); line-height: 1.65; }

/* Downloads grid */
.downloads-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.download-card {
    display: flex; align-items: center; gap: var(--space-base);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none; color: var(--color-text);
    transition: all var(--transition-fast);
}
.download-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-card); }
.download-card svg { flex-shrink: 0; color: var(--color-primary); }
.download-card span { font-weight: 600; }
.download-card-title { font-weight: 600; display: block; }
.download-card-meta { font-size: var(--font-size-xs); color: var(--color-text-muted); display: block; }

/* Product FAQ (reuses .faq-list/.faq-item from FAQ page) */
.product-faq-section .faq-list { max-width: 800px; }

/* Product CTA banner */
.product-cta {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}
.product-cta h2 { margin-bottom: var(--space-sm); }
.product-cta p { color: var(--color-text-muted); margin-bottom: var(--space-lg); max-width: 520px; margin-left: auto; margin-right: auto; }
.product-cta .btn { margin: 0 var(--space-sm); }

/* ─── ABOUT PAGE: Features 4-col variant ─── */
.features-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ─── ABOUT PAGE: Specs Explanation ─── */
.about-specs-explain { max-width: 820px; }
.specs-explain-grid { display: flex; flex-direction: column; gap: var(--space-xl); margin-top: var(--space-lg); }
.specs-explain-item h3 { font-size: var(--font-size-h4); margin-bottom: var(--space-xs); }
.specs-explain-item h3 i { margin-right: var(--space-sm); color: var(--color-primary); }
.specs-explain-item p { color: var(--color-text-muted); line-height: 1.7; }

/* ─── ABOUT PAGE: Model Guide Grid ─── */
.model-guide-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
.model-guide-card {
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex; flex-direction: column; gap: var(--space-sm);
    transition: box-shadow var(--transition-fast);
    position: relative;
}
.model-guide-card:hover { box-shadow: var(--shadow-card); }
.model-guide-name { font-size: var(--font-size-h3); }
.model-guide-desc { color: var(--color-text-muted); line-height: 1.6; flex: 1; }
.model-guide-card .btn { align-self: flex-start; margin-top: auto; }
.model-guide-card--popular { border-color: var(--color-primary); border-width: 2px; }
.model-guide-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--color-primary); color: #fff;
    padding: 2px 14px; border-radius: 99px;
    font-size: var(--font-size-xs); font-weight: 600;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: start;
}
.contact-info-card { padding: var(--space-xl); background: var(--color-surface); border-radius: var(--radius-md); }
.contact-info-card h3 { margin-bottom: var(--space-lg); }
.contact-info-item { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-base); }
.contact-info-item svg { flex-shrink: 0; color: var(--color-primary); }

.contact-form { display: flex; flex-direction: column; gap: var(--space-base); }
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-group label { font-size: var(--font-size-small); font-weight: 600; }
textarea.form-input { min-height: 140px; resize: vertical; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--color-brand-dark);
    color: rgba(255,255,255,0.8);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer-logo { display: inline-block; margin-bottom: var(--space-base); }
.footer-logo img { opacity: 0.9; }
.footer-tagline { font-size: var(--font-size-small); margin-bottom: var(--space-sm); opacity: 0.7; }
.footer-company { font-size: var(--font-size-xs); opacity: 0.5; }

.footer-heading {
    font-size: var(--font-size-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: white;
    margin-bottom: var(--space-lg);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-sm); display: flex; align-items: center; gap: var(--space-sm); }
.footer-links a { color: rgba(255,255,255,0.7); font-size: var(--font-size-small); transition: color var(--transition-fast); }
.footer-links a:hover { color: white; }
.footer-links svg { color: rgba(255,255,255,0.4); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 2000;
    background: var(--color-brand-dark);
    color: white;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-base) var(--space-lg);
}
.cookie-inner p { font-size: var(--font-size-small); opacity: 0.9; }
.cookie-banner .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.cookie-banner .btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg); right: var(--space-lg);
    z-index: 900;
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-fast);
    pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--color-primary-hover); }

/* ═══════════════════════════════════════════════════════════════
   PROFILE / ACCOUNT LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.profile-page, .orders-page { min-height: 60vh; }

.profile-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.profile-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.profile-nav {
    display: flex;
    flex-direction: column;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-base);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.profile-nav-item:last-child { border-bottom: none; }
.profile-nav-item:hover { background: var(--color-surface); color: var(--color-primary); }
.profile-nav-item.active { background: var(--color-primary-light); color: var(--color-primary); font-weight: 600; }

.profile-nav-form { display: contents; }

.profile-nav-logout {
    background: none;
    border: none;
    border-top: 1px solid var(--color-border);
    cursor: pointer;
    font-family: var(--font-family);
    width: 100%;
    text-align: left;
    color: var(--color-text-muted);
}
.profile-nav-logout:hover { color: var(--color-danger); background: var(--color-surface); }

.profile-content { min-width: 0; }

.profile-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}
.profile-card h2 { font-size: var(--font-size-h3); margin-bottom: var(--space-lg); }

.profile-info-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-base);
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}
.profile-info-item:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════ */
.faq-list {
    max-width: 760px;
    margin: var(--space-lg) 0;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: var(--color-card-bg);
    transition: box-shadow var(--transition-fast);
}
.faq-item[open] { box-shadow: var(--shadow-card); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-base) var(--space-lg);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: background var(--transition-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\f078'; /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--color-surface); }

.faq-item p {
    padding: 0 var(--space-lg) var(--space-lg);
    line-height: 1.7;
    color: var(--color-text);
}
.faq-item p a { color: var(--color-primary); }
.faq-item p a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   ERROR / ACCESS DENIED PAGE
   ═══════════════════════════════════════════════════════════════ */
.error-page { min-height: 60vh; }

.error-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER HELPERS
   ═══════════════════════════════════════════════════════════════ */
.footer-inner { /* wraps footer-grid inside container — no extra styles needed */ }
.footer-col { /* grid cell inside footer-grid — inherits layout */ }

/* ═══════════════════════════════════════════════════════════════
   PAGE WRAPPER CLASSES (semantic, minimal)
   ═══════════════════════════════════════════════════════════════ */
.dealer-page,
.dealer-register-page,
.dealer-pending-page,
.dealer-orders-page,
.dealer-invoices-page,
.blog-page,
.blog-post-page,
.doc-page,
.industry-page,
.resources-page { min-height: 60vh; }

.confirmation-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-top: var(--space-xl); }
.confirmation-next-steps { margin-top: var(--space-2xl); text-align: left; max-width: 500px; margin-left: auto; margin-right: auto; }
.confirmation-support { margin-top: var(--space-lg); font-size: var(--font-size-small); color: var(--color-text-muted); }
.next-steps-list { list-style: none; padding: 0; }
.next-steps-list li { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-sm) 0; }

/* Section semantic wrappers */
.section-catalog, .section-features, .section-products,
.section-usecases, .section-product-detail, .section-specs { /* semantic — inherit from .section */ }

/* Product detail layout helpers */
.product-gallery, .product-info { /* handled by .product-detail-grid columns */ }

/* Catalog usecases content */
.usecases-content { /* no additional styles needed — structure comes from grid */ }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 991px) {
    .hero-content { max-width: 100%; }
    .usecases-grid { grid-template-columns: 1fr; }
    .usecases-image { order: -1; max-height: 300px; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-usecases-grid { grid-template-columns: 1fr; }
    .downloads-grid { grid-template-columns: 1fr; }
    .features-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .model-guide-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; row-gap: var(--space-xl); }
    .contact-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-sidebar { position: static; }
    .profile-nav { flex-direction: row; flex-wrap: wrap; }
    .profile-nav-item { border-bottom: none; border-right: 1px solid var(--color-border); flex: 1; justify-content: center; text-align: center; }
    .profile-nav-item:last-child { border-right: none; }
}

/* Mobile nav */
@media (max-width: 768px) {
    .header-inner { justify-content: flex-start; }
    .header-actions { margin-left: auto; }
    .main-nav { flex: 0; justify-content: flex-start; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }

    .nav-list {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0; bottom: 0;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        flex-direction: column;
        background: var(--color-bg);
        padding: var(--space-lg);
        gap: 0;
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform var(--transition-base), visibility 0s linear 0.3s;
        pointer-events: none;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-list.open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform var(--transition-base), visibility 0s linear 0s;
    }
    .nav-link {
        padding: var(--space-base);
        font-size: var(--font-size-body);
        border-bottom: 1px solid var(--color-border);
    }

    /* Mobile dropdown */
    .has-dropdown { position: static; }
    .nav-dropdown {
        position: static;
        transform: none;
        min-width: auto;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        background: var(--color-bg);
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        transition: max-height var(--transition-base);
    }
    .has-dropdown:hover > .nav-dropdown { display: none; opacity: 1; }
    .has-dropdown.open > .nav-dropdown {
        display: block;
        max-height: 300px;
        opacity: 1;
    }
    .nav-dropdown-link {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-size-small);
        border-bottom: 1px solid var(--color-border);
    }
    .nav-dropdown-arrow { display: inline-block; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .industry-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-stats { gap: var(--space-lg); }
    .trust-stat { min-width: 120px; }
    .footer-grid { grid-template-columns: 1fr; }

    .cookie-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .industry-cards-grid { grid-template-columns: 1fr; }
    .features-grid--4 { grid-template-columns: 1fr; }
    .model-guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .container { padding: 0 var(--space-base); }
    .section { padding: var(--space-2xl) 0; }
    .hero-section { min-height: 60vh; }
    .config-options { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════
   DARK THEME — element-specific overrides
   ═══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .site-footer { background: #0e1111; }
[data-theme="dark"] .footer-logo img { opacity: 0.85; }
[data-theme="dark"] .section-cta { background: linear-gradient(135deg, #0a0d0e 0%, #1a1f20 100%); }
[data-theme="dark"] .page-header { background: var(--color-surface); border-color: var(--color-border); }
[data-theme="dark"] .contact-info-card { background: var(--color-surface); }
[data-theme="dark"] .feature-card { background: var(--color-surface); }
[data-theme="dark"] .specs-table th { background: var(--color-surface); color: var(--color-text); }
[data-theme="dark"] .specs-table tr:hover { background: rgba(77,163,255,0.05); }
[data-theme="dark"] .usecase-item { background: var(--color-surface); }
[data-theme="dark"] .industry-card { background: var(--color-surface); }
[data-theme="dark"] .section-trust { background: var(--color-surface); }
[data-theme="dark"] .badge-in-stock { background: rgba(52,208,88,0.15); color: var(--color-success); }
[data-theme="dark"] .badge-out-of-stock { background: rgba(248,81,73,0.15); color: var(--color-danger); }
[data-theme="dark"] .badge-dealer { background: var(--color-primary-light); color: var(--color-primary); }
[data-theme="dark"] .alert-success { background: rgba(52,208,88,0.12); color: #56d364; border-color: rgba(52,208,88,0.25); }
[data-theme="dark"] .alert-warning { background: rgba(255,216,102,0.12); color: #e3b341; border-color: rgba(255,216,102,0.25); }
[data-theme="dark"] .alert-error { background: rgba(248,81,73,0.12); color: #f85149; border-color: rgba(248,81,73,0.25); }
[data-theme="dark"] .cookie-banner { background: #0e1111; }
[data-theme="dark"] .btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
[data-theme="dark"] .btn-secondary:hover:not(:disabled) { background: var(--color-card-bg); border-color: var(--color-text-muted); }
[data-theme="dark"] .qty-btn { background: var(--color-surface); color: var(--color-text); }
[data-theme="dark"] .qty-btn:hover { background: var(--color-border); }
[data-theme="dark"] .qty-input { background: var(--color-input-bg); color: var(--color-text); border-color: var(--color-border); }
[data-theme="dark"] select.form-input,
[data-theme="dark"] select { background: var(--color-input-bg); color: var(--color-text); }
[data-theme="dark"] .skeleton { background: linear-gradient(90deg, var(--color-surface) 25%, #262b2c 50%, var(--color-surface) 75%); background-size: 200% 100%; }
[data-theme="dark"] .btn-primary { background: var(--color-primary); color: #0D1117; }
[data-theme="dark"] .btn-primary:hover:not(:disabled) { background: var(--color-primary-hover); color: #0D1117; }
[data-theme="dark"] .badge-success { background: rgba(52,208,88,0.15); color: #56d364; border-color: rgba(52,208,88,0.25); }
[data-theme="dark"] .badge-outline { border-color: var(--color-border); color: var(--color-text); }
[data-theme="dark"] .profile-card { background: var(--color-card-bg); border-color: var(--color-border); }
[data-theme="dark"] .profile-nav { background: var(--color-card-bg); border-color: var(--color-border); }
[data-theme="dark"] .profile-nav-item { border-color: var(--color-border); }
[data-theme="dark"] .profile-nav-logout { border-color: var(--color-border); }
[data-theme="dark"] .faq-item { background: var(--color-card-bg); border-color: var(--color-border); }
[data-theme="dark"] .product-badge--pharma { background: rgba(46,125,50,0.18); color: #81c784; }
[data-theme="dark"] .product-badge--food { background: rgba(230,81,0,0.18); color: #ffb74d; }
[data-theme="dark"] .product-badge--logistics { background: rgba(21,101,192,0.18); color: #64b5f6; }
[data-theme="dark"] .product-usecase-card { background: var(--color-card-bg); border-color: var(--color-border); }
[data-theme="dark"] .download-card { background: var(--color-card-bg); border-color: var(--color-border); }
[data-theme="dark"] .product-cta { background: var(--color-card-bg); border-color: var(--color-border); }
[data-theme="dark"] .model-guide-card { background: var(--color-card-bg); border-color: var(--color-border); }
[data-theme="dark"] .model-guide-card--popular { border-color: var(--color-primary); }
[data-theme="dark"] .model-guide-badge { background: var(--color-primary); }

/* ═══════════════════════════════════════════════════════════════
   FONT AWESOME — icon sizing helpers
   ═══════════════════════════════════════════════════════════════ */
.fa-icon-sm { font-size: 0.875rem; }
.fa-icon-md { font-size: 1.15rem; }
.fa-icon-lg { font-size: 1.5rem; }
.fa-icon-xl { font-size: 2rem; }
.fa-icon-2xl { font-size: 2.5rem; }
.fa-icon-hero { font-size: 3.5rem; }

/* Feature / use-case icon in card */
.feature-icon { font-size: 2.5rem; display: block; margin-bottom: var(--space-md); color: var(--color-primary); }
.usecase-icon { font-size: 1.4rem; flex-shrink: 0; width: 28px; text-align: center; color: var(--color-primary); }

/* Confirmation / empty-state large icons */
.state-icon { font-size: 4rem; margin-bottom: var(--space-lg); }
.state-icon--success { color: var(--color-success); }
.state-icon--danger { color: var(--color-danger); }
.state-icon--muted { color: var(--color-text-light); }

/* Nav / action bar icons */
.nav-icon { width: 20px; text-align: center; }
.action-icon { width: 18px; text-align: center; }

/* Smooth transition for theme switch */
body, .site-header, .card, .feature-card, .contact-info-card, .page-header,
.btn, .form-input, .nav-link, .footer-links a, .site-footer {
    transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON VARIANTS (extended)
   ═══════════════════════════════════════════════════════════════ */
.btn-outline { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-outline:hover:not(:disabled) { background: var(--color-surface); border-color: var(--color-text-muted); }
[data-theme="dark"] .btn-outline { color: #fff; border-color: rgba(255,255,255,0.35); }
[data-theme="dark"] .btn-outline:hover:not(:disabled) { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

.btn-danger { color: var(--color-danger); border-color: var(--color-danger); }
.btn-danger:hover:not(:disabled) { background: var(--color-danger); color: white; }

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

/* ═══════════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════════ */
.cart-page { min-height: 60vh; }

.cart-empty {
    text-align: center;
    padding: var(--space-4xl) 0;
    color: var(--color-text-muted);
}
.cart-empty svg { margin: 0 auto var(--space-lg); display: block; }
.cart-empty h2 { margin-bottom: var(--space-sm); color: var(--color-text); }
.cart-empty p { margin-bottom: var(--space-xl); }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-2xl);
    align-items: start;
}

.cart-items { overflow-x: auto; }

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-small);
}
.cart-table thead th {
    padding: var(--space-md) var(--space-base);
    text-align: left;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
}

.cart-item td { padding: var(--space-base); border-bottom: 1px solid var(--color-border); vertical-align: middle; }

.cart-item-product { min-width: 200px; }
.cart-item-info { display: flex; flex-direction: column; gap: 2px; }
.cart-item-name { font-weight: 600; color: var(--color-text); }
.cart-item-sku { font-size: var(--font-size-xs); color: var(--color-text-muted); }
.cart-item-config { font-size: var(--font-size-xs); color: var(--color-primary); }
.cart-item-badge {
    display: inline-block;
    font-size: var(--font-size-xs);
    padding: 1px var(--space-sm);
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: 2px;
}

.cart-item-price { white-space: nowrap; }

.cart-item-qty { white-space: nowrap; }
.qty-form { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-form .qty-btn {
    width: 32px; height: 32px;
    border: none; background: var(--color-surface);
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition-fast);
}
.qty-form .qty-btn:hover { background: var(--color-border); }
.qty-value { width: 36px; text-align: center; font-weight: 600; font-size: var(--font-size-small); }

.cart-item-total { font-weight: 600; white-space: nowrap; }

.cart-item-remove { text-align: center; }
.remove-btn {
    background: none; border: none; cursor: pointer;
    color: var(--color-text-muted);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    display: inline-flex; align-items: center; justify-content: center;
}
.remove-btn:hover { color: var(--color-danger); background: #F8D7DA; }

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-lg);
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Cart Summary Sidebar */
.cart-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}
.cart-summary h2 { font-size: var(--font-size-h3); margin-bottom: var(--space-lg); }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}
.summary-total { font-size: 1.1rem; padding-top: var(--space-md); }
.summary-total strong { font-size: 1.25rem; }

.cart-summary hr { border: none; border-top: 1px solid var(--color-border); margin: var(--space-md) 0; }

.cart-summary .btn-block { margin-top: var(--space-lg); }

.secure-note {
    display: flex; align-items: center; justify-content: center; gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════════════════════ */
.checkout-page { min-height: 60vh; }

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-2xl);
    align-items: start;
}

.checkout-form fieldset { border: none; margin: 0; padding: 0; }

.checkout-step {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
}
.checkout-step:last-of-type { border-bottom: none; }

.checkout-step legend {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-h3);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: white;
    font-size: var(--font-size-small);
    font-weight: 700;
    flex-shrink: 0;
}

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

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.checkout-form input:focus,
.checkout-form select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.15);
}

.checkout-submit { margin-top: var(--space-lg); gap: var(--space-sm); }

/* Checkout Summary Sidebar */
.checkout-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}
.checkout-summary h2 { font-size: var(--font-size-h3); margin-bottom: var(--space-lg); }

.checkout-items { display: flex; flex-direction: column; gap: var(--space-sm); }

/* Payment Methods */
.payment-methods { display: flex; flex-direction: column; gap: var(--space-md); }
.payment-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-base);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.payment-option:hover { border-color: var(--color-primary); }
.payment-option input[type="radio"]:checked + .payment-label { color: var(--color-primary); font-weight: 600; }
.payment-option:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-light); }

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

/* VAT validation result */
.vat-result {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-sm);
    font-size: var(--font-size-small);
    line-height: 1.5;
}
.vat-result i { margin-right: 4px; }
.vat-valid { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.vat-valid i { color: var(--color-success); }
.vat-invalid { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }
.vat-invalid i { color: var(--color-danger); }
.vat-error { background: #FFF3CD; color: #856404; border: 1px solid #FFEEBA; }
.vat-error i { color: #856404; }
.vat-address { color: inherit; opacity: 0.8; }
[data-theme="dark"] .vat-valid { background: rgba(40,167,69,0.15); color: #34d058; border-color: rgba(40,167,69,0.3); }
[data-theme="dark"] .vat-invalid { background: rgba(220,53,69,0.12); color: #f85149; border-color: rgba(220,53,69,0.3); }
[data-theme="dark"] .vat-error { background: rgba(255,193,7,0.12); color: #ffd866; border-color: rgba(255,193,7,0.3); }

.input-with-btn { display: flex; gap: var(--space-sm); }
.input-with-btn input { flex: 1; }

.flex-grow { flex: 1; }

/* Shipping Options */
.shipping-options { display: flex; flex-direction: column; gap: var(--space-md); }
.shipping-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-base);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.shipping-option:hover { border-color: var(--color-primary); }
.shipping-option:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-light); }
.shipping-option input[type="radio"]:checked + .shipping-label { color: var(--color-primary); font-weight: 600; }
.shipping-label { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.shipping-name { display: flex; align-items: center; gap: var(--space-sm); }
.shipping-est { font-size: var(--font-size-small); color: var(--color-text-light); }
.shipping-price { font-size: var(--font-size-body); white-space: nowrap; }
.shipping-loading { padding: var(--space-md); color: var(--color-text-light); }
.shipping-loading i { margin-right: var(--space-sm); }
.shipping-hint { font-size: var(--font-size-small); }
.shipping-error {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
    font-size: var(--font-size-small);
}
.shipping-error i { margin-right: 4px; }
[data-theme="dark"] .shipping-error { background: rgba(255,193,7,0.12); color: #ffd866; border-color: rgba(255,193,7,0.3); }

/* ═══════════════════════════════════════════════════════════════
   ORDER CONFIRMATION PAGE
   ═══════════════════════════════════════════════════════════════ */
.confirmation-page { min-height: 60vh; }

.confirmation-container { max-width: 600px; text-align: center; padding: var(--space-3xl) 0; }

.confirmation-icon { margin-bottom: var(--space-xl); }
.confirmation-icon svg { margin: 0 auto; }

.confirmation-title { font-size: var(--font-size-h2); margin-bottom: var(--space-md); }
.confirmation-subtitle { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: var(--space-xl); line-height: 1.6; }

.order-info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin: var(--space-xl) auto;
    text-align: left;
    max-width: 400px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}
.order-info-row:last-child { border-bottom: none; }

.info-label { color: var(--color-text-muted); font-size: var(--font-size-small); }
.info-value { font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   CART & CHECKOUT — RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .cart-summary { position: static; }
}

@media (max-width: 575px) {
    .form-row { grid-template-columns: 1fr; }
    .cart-actions { flex-direction: column; }
    .cart-actions .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES (Terms, Privacy, Cookies)
   ═══════════════════════════════════════════════════════════════ */
.legal-page {
    min-height: 60vh;
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.legal-page h1 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--space-md);
}

.legal-page h2 {
    font-size: var(--font-size-h3);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}

.legal-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-page p,
.legal-page li {
    line-height: 1.75;
    color: var(--color-text);
}

.legal-page ul,
.legal-page ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-base);
}

.legal-page li { margin-bottom: var(--space-xs); }

.legal-meta {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.legal-meta p { margin: 0.2em 0; font-size: var(--font-size-small); }

.legal-updated {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.legal-footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
}

/* Cookie tables */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-small);
}

.cookie-table th,
.cookie-table td {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.cookie-table th {
    background: var(--color-surface);
    font-weight: 600;
}

.cookie-table code {
    font-size: 0.85em;
    background: var(--color-surface);
    padding: 0.1em 0.4em;
    border-radius: var(--radius-xs, 3px);
}

@media (max-width: 575px) {
    .cookie-table { font-size: 0.8rem; }
    .cookie-table th,
    .cookie-table td { padding: var(--space-xs) var(--space-sm); }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

