/* D4TA Trade — Design System (void default, paper via data-theme=light) */
:root {
    --color-bg: #070A14;
    --color-bg2: #0B0F1F;
    --color-surface: #0B0F1F;
    --color-surface-2: rgba(255, 255, 255, 0.045);
    --color-border: rgba(255, 255, 255, 0.09);
    --color-text: #EEF0FA;
    --color-text-muted: #8991AC;
    --color-primary: #8B5CF6;
    --color-primary-dark: #7C3AED;
    --color-primary-light: #A78BFA;
    --color-accent: #22D3EE;
    --color-accent-hover: #06B6D4;
    --color-cyan: #22D3EE;
    --color-blue: #3E7BFA;
    --color-violet: #8B5CF6;
    --color-magenta: #EC4899;
    --color-amber: #F5A524;
    --color-success: #34d399;
    --color-danger: #F26D6D;
    --color-info: #38BDF8;
    --color-glass: rgba(255, 255, 255, 0.045);
    --color-glass-border: rgba(255, 255, 255, 0.09);
    --grad-brand: linear-gradient(120deg, #3E7BFA, #8B5CF6);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
    --radius: 14px;
    --radius-lg: 18px;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --nav-height: 72px;
    --transition: 0.2s ease;
    color-scheme: dark;
}

/* Paper theme (toggle) */
[data-theme="light"] {
    --color-bg: #F3F1EC;
    --color-bg2: #ffffff;
    --color-surface: #ffffff;
    --color-surface-2: #F8F6F1;
    --color-border: rgba(18, 19, 26, 0.12);
    --color-text: #12131A;
    --color-text-muted: #565A6E;
    --color-primary: #8B5CF6;
    --color-primary-dark: #7C3AED;
    --color-primary-light: #6D5BFF;
    --color-accent: #0E7C8C;
    --color-accent-hover: #0A5F6B;
    --color-success: #059669;
    --color-danger: #dc2626;
    --color-info: #0284c7;
    --color-glass: rgba(18, 19, 26, 0.04);
    --color-glass-border: rgba(18, 19, 26, 0.10);
    --shadow-sm: 0 1px 3px rgba(18, 19, 26, 0.06);
    --shadow-md: 0 4px 16px rgba(18, 19, 26, 0.08);
    --shadow-lg: 0 12px 40px rgba(18, 19, 26, 0.12);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100%;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    max-width: 100%;
}

/* ── D4TA brand utilities ── */
.font-display { font-family: var(--font-display); }
.font-data {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.glass-panel {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
}

.glass-panel-violet {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
}

.dot-grid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}
[data-theme="light"] .dot-grid {
    background-image: radial-gradient(rgba(18, 19, 26, 0.08) 1px, transparent 1px);
}

.mesh-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.mesh-bg .mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
}
.mesh-bg .mesh-blob--blue {
    width: 520px; height: 520px; background: var(--color-blue);
    top: -120px; left: -100px;
}
.mesh-bg .mesh-blob--violet {
    width: 460px; height: 460px; background: var(--color-violet);
    top: 40%; right: -140px;
}
.mesh-bg .mesh-blob--cyan {
    width: 400px; height: 400px; background: var(--color-cyan);
    bottom: 20%; left: 18%; opacity: 0.16;
}
.mesh-bg .mesh-blob--magenta {
    width: 480px; height: 480px; background: var(--color-magenta);
    bottom: -160px; right: 8%; opacity: 0.14;
}
.mesh-bg .mesh-dots {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

.category-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-violet);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 0.2rem 0.55rem;
    border-radius: 0.25rem;
    display: inline-block;
    line-height: 1.4;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--color-text);
}
.brand-lockup:hover { color: var(--color-text); }
.brand-lockup__badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.55);
}
.brand-lockup--sm .brand-lockup__badge { width: 28px; height: 28px; border-radius: 8px; }
.brand-lockup--lg .brand-lockup__badge { width: 44px; height: 44px; border-radius: 12px; }
.brand-lockup--xl .brand-lockup__badge { width: 52px; height: 52px; border-radius: 14px; }
.brand-lockup__word {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--color-text);
}
.brand-lockup--sm .brand-lockup__word { font-size: 0.8rem; }
.brand-lockup--lg .brand-lockup__word { font-size: 1.1rem; }
.brand-lockup--xl .brand-lockup__word { font-size: 1.25rem; }
.brand-lockup__product { color: var(--color-violet); }
.brand-lockup--inverted .brand-lockup__word { color: #12131A; }

.signal-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    height: 28px;
}
.signal-bars span {
    width: 6px;
    border-radius: 3px;
    display: block;
}
.signal-bars span:nth-child(1) { height: 35%; background: #3E7BFA; }
.signal-bars span:nth-child(2) { height: 70%; background: #22D3EE; }
.signal-bars span:nth-child(3) { height: 100%; background: #8B5CF6; }
.signal-bars span:nth-child(4) { height: 55%; background: #EC4899; }

.route-line {
    position: relative;
}
.route-line::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-violet), transparent);
    opacity: 0.45;
    z-index: 0;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-light); }

/* ── Layout ── */
.app-main { flex: 1; min-width: 0; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-width: 0;
}

/* ── Site header (demo banner + navbar) ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: var(--color-bg);
}

/* ── Navbar: full-bleed, logo left / links centered / actions right ── */
.navbar {
    position: relative;
    width: 100%;
    background: rgba(7, 10, 20, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-glass-border);
}
[data-theme="light"] .navbar {
    background: rgba(243, 241, 236, 0.88);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    height: var(--nav-height);
    padding: 0 1.75rem;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    gap: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    color: var(--color-text);
}
.navbar-brand:hover { color: var(--color-text); }

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--grad-brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.55);
}

.nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1;
    pointer-events: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
    pointer-events: auto;
}
.nav-links a:hover, .nav-links a.active {
    background: rgba(139, 92, 246, 0.15);
    color: #fff;
    border-color: rgba(139, 92, 246, 0.3);
}
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.nav-drawer-user {
    padding: 0.5rem 1.5rem 1rem;
}
.nav-drawer-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.icon-btn:hover {
    background: var(--color-surface-2);
    color: var(--color-primary);
    border-color: var(--color-border);
}
.icon-btn .cart-badge {
    top: -4px;
    right: -4px;
}

.icon {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}
.nav-links a .icon {
    margin-right: 0.2rem;
    opacity: 0.85;
}
.nav-drawer-links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.country-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-primary);
}
.eu-pill {
    display: inline-flex;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}
.compare-footnote {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    max-width: 52rem;
}
.muted { color: var(--color-text-muted); }

.locale-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--color-surface-2);
    border-radius: 8px;
    padding: 3px;
}

.locale-switcher a {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}
.locale-switcher a.active {
    background: var(--color-surface);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    background: var(--color-primary);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background var(--transition);
}
.cart-btn .icon { color: #fff; }
.cart-btn-label { white-space: nowrap; }
.cart-btn:hover { background: var(--color-primary-dark); color: #fff !important; }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-surface);
}

/* ── Hero ── */
.hero {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 4.5rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}
.hero p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 0 0 2rem;
    max-width: 520px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.stat-card {
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}
.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-violet);
}
.stat-card .stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-accent { background: var(--color-violet); color: #fff; }
.btn-accent:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-glass-border);
}
.btn-outline:hover { background: var(--color-glass); color: var(--color-text); }
.hero .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
[data-theme="light"] .hero .btn-outline {
    color: var(--color-text);
    border-color: rgba(18, 19, 26, 0.2);
}
.btn-ghost {
    background: var(--color-surface-2);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-ghost:hover { background: var(--color-border); color: var(--color-text); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-success { background: var(--color-success); color: #fff; }

/* ── Cards ── */
.card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    backdrop-filter: blur(12px);
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(139, 92, 246, 0.35);
}
.card-body { padding: 1.5rem; }

.section { padding: 3rem 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

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

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card .card-body { flex: 1; display: flex; flex-direction: column; }

.product-icon {
    width: 56px;
    height: 56px;
    background: var(--color-surface-2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.product-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.product-card h3 a { color: var(--color-text); }
.product-card h3 a:hover { color: var(--color-primary); }

.product-ref {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: var(--color-surface-2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
}
.product-price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.stock-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}
.stock-in { background: #d1fae5; color: #065f46; }
.stock-low { background: #fef3c7; color: #92400e; }
.stock-out { background: #fee2e2; color: #991b1b; }

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Filters ── */
.filters-bar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filter-group { flex: 1; min-width: 180px; }
.filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.9rem;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition);
}
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.category-pill {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--transition);
}
.category-pill:hover, .category-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ── Page Header ── */
.page-header {
    padding: 2rem 0 1.5rem;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
}
.page-header p {
    color: var(--color-text-muted);
    margin: 0;
}

/* ── Cart ── */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: start;
}

.quote-cart-page {
    padding: 2rem 0 3.5rem;
}

.quote-wizard {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}
.quote-wizard__step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--color-text-muted);
    min-width: 0;
}
.quote-wizard__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface-2);
}
.quote-wizard__label {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.quote-wizard__step.is-active {
    border-color: rgba(139, 92, 246, 0.45);
    color: var(--color-text);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15);
}
.quote-wizard__step.is-active .quote-wizard__num {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.quote-wizard__step.is-done {
    border-color: rgba(34, 197, 94, 0.35);
    color: var(--color-text);
}
.quote-wizard__step.is-done .quote-wizard__num {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}

.cart-lines-card {
    overflow: hidden;
}
.cart-lines-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 88px;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-surface-2);
}
.cart-lines-head span:nth-child(2),
.cart-lines-head span:nth-child(3) {
    text-align: right;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 88px;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.cart-item-icon {
    width: 48px;
    height: 48px;
    background: var(--color-surface-2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-info .ref {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.cart-item-info .pricing-tier-badge {
    display: inline-flex;
    margin-top: 0.35rem;
}

.cart-item-price {
    text-align: right;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
    white-space: nowrap;
}
.cart-item-price small {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.cart-item-qty {
    display: flex;
    justify-content: flex-end;
}

.qty-input {
    width: 72px;
    text-align: center;
    padding: 0.45rem 0.35rem;
}

.summary-card {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
}
.summary-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}
.summary-card .filter-group {
    margin-bottom: 1rem;
}
.summary-totals {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
}
.summary-row--discount { color: var(--color-success); }
.summary-row.total {
    font-size: 1.1rem;
    font-weight: 800;
    border-top: 2px solid var(--color-border);
    padding-top: 0.85rem;
    margin-top: 0.35rem;
    color: var(--color-primary);
}
.summary-delivery {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0.75rem 0 0;
}
.summary-update-btn { margin-top: 1rem; }

.quote-cart-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.quote-cart-actions .btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
.quote-cart-clear {
    margin-left: auto;
}

@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .cart-lines-head { display: none; }
    .cart-item {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "main price"
            "main qty";
        gap: 0.5rem 1rem;
    }
    .cart-item-main { grid-area: main; }
    .cart-item-price { grid-area: price; align-self: start; }
    .cart-item-qty { grid-area: qty; align-self: end; }
    .quote-wizard { flex-direction: column; gap: 0.5rem; }
}

/* ── Compare Table ── */
.compare-table {
    width: 100%;
    border-collapse: collapse;
}
.compare-table th, .compare-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.compare-table th {
    background: var(--color-surface-2);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}
.compare-table tr:hover td { background: var(--color-surface-2); }
.compare-table .best { background: #ecfdf5 !important; font-weight: 700; }

.country-flag {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* ── Product Detail ── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.product-detail-visual {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.spec-item {
    background: var(--color-surface-2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}
.spec-item .spec-key {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
}
.spec-item .spec-val {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── History ── */
.history-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.history-table th {
    background: var(--color-surface-2);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ── Alerts / Toasts ── */
.alerts { padding: 1rem 0; }
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-success { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.35); }
.alert-warning { background: rgba(245, 165, 36, 0.12); color: #F5A524; border: 1px solid rgba(245, 165, 36, 0.35); }
.alert-info { background: rgba(34, 211, 238, 0.12); color: #22D3EE; border: 1px solid rgba(34, 211, 238, 0.35); }
.alert-danger { background: rgba(242, 109, 109, 0.12); color: #F26D6D; border: 1px solid rgba(242, 109, 109, 0.35); }

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}
.empty-state .empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--color-text-muted);
    opacity: 0.55;
}
.empty-state h3 { color: var(--color-text); margin: 0 0 0.5rem; }

/* ── Footer ── */
.footer {
    background: var(--color-bg2);
    color: var(--color-text-muted);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--color-glass-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer h4 {
    font-family: var(--font-display);
    color: var(--color-text);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.footer a { color: var(--color-text-muted); font-size: 0.85rem; display: block; margin-bottom: 0.5rem; }
.footer a:hover { color: var(--color-violet); }
.footer-bottom {
    border-top: 1px solid var(--color-glass-border);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}
    text-align: center;
}

/* ── Features Grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto 1rem;
}
.feature-card h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .nav-link-secondary { display: none; }
}

@media (max-width: 900px) {
    .cart-btn-label { display: none; }
    .nav-links { display: none; }
    .nav-actions .locale-switcher { display: none; }
    .nav-auth-btn { display: none; }
    .hero-grid, .product-detail, .cart-layout, .features-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .navbar-inner { padding: 0 1rem; }
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
    .filters-bar { flex-direction: column; }
    .hero { padding: 2.5rem 0 3rem; }
}

/* ══════════════════════════════════════════════════════════════
   Enterprise Features
   ══════════════════════════════════════════════════════════════ */

/* ── Paper theme component overrides ── */
[data-theme="light"] .stock-in { background: #d1fae5; color: #065f46; }
[data-theme="light"] .stock-low { background: #fef3c7; color: #92400e; }
[data-theme="light"] .stock-out { background: #fee2e2; color: #991b1b; }

[data-theme="light"] .alert-success { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
[data-theme="light"] .alert-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
[data-theme="light"] .alert-info { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
[data-theme="light"] .alert-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition);
}
.theme-toggle:hover {
    background: var(--color-border);
    color: var(--color-text);
}

/* ── Command Palette ── */
.command-palette-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.command-palette-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.command-palette {
    position: fixed;
    top: 15vh;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 1001;
    width: min(560px, calc(100% - 2rem));
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.command-palette.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.command-palette-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}
.command-palette-input-wrap .search-icon {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}
.command-palette-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--color-text);
    outline: none;
}
.command-palette-input::placeholder { color: var(--color-text-muted); }

.command-palette-kbd {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.command-palette-results {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
}
.command-palette-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.command-palette-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
    color: var(--color-text);
}
.command-palette-item:hover,
.command-palette-item.is-active {
    background: var(--color-surface-2);
}
.command-palette-item .item-icon {
    width: 36px;
    height: 36px;
    background: var(--color-surface-2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.command-palette-item .item-info { flex: 1; min-width: 0; }
.command-palette-item .item-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.command-palette-item .item-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}
.command-palette-item .item-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.command-palette-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.command-palette-footer kbd {
    font-family: var(--font-mono);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    margin-right: 0.25rem;
}

/* ── Mobile Nav Drawer ── */
.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-2);
    color: var(--color-text);
    cursor: pointer;
    font-size: 1.25rem;
    transition: background var(--transition);
    flex-shrink: 0;
}
.mobile-menu-toggle:hover { background: var(--color-border); }

.nav-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 201;
    width: min(300px, 85%);
    max-width: 100%;
    height: 100dvh;
    height: 100vh;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
}
.nav-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.nav-drawer-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.nav-drawer-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-drawer-close:hover { background: var(--color-border); color: var(--color-text); }

.nav-drawer-links {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    flex: 1;
}
.nav-drawer-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 10px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background var(--transition), color var(--transition);
}
.nav-drawer-links a:hover,
.nav-drawer-links a.active {
    background: rgba(139, 92, 246, 0.15);
    color: #fff;
}

.nav-drawer-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 900px) {
    .mobile-menu-toggle { display: inline-flex; }
}

/* ── Dashboard Chart Cards ── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.chart-card:hover { box-shadow: var(--shadow-md); }

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0.75rem;
}
.chart-card-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.chart-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    padding: 0 1.5rem;
}
.chart-card-body {
    padding: 0.75rem 1.5rem 1.5rem;
    min-height: 120px;
}
.chart-card-body canvas,
.chart-card-body .chart-placeholder {
    width: 100%;
    height: 100px;
    border-radius: 8px;
}
.chart-card-body .chart-placeholder {
    background: linear-gradient(180deg, var(--color-surface-2) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0 0.5rem;
}
.chart-bar {
    flex: 1;
    background: var(--color-primary-light);
    border-radius: 3px 3px 0 0;
    opacity: 0.7;
    transition: opacity var(--transition);
}
.chart-card:hover .chart-bar { opacity: 1; }

.chart-card-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}
.chart-card-trend.up { background: #d1fae5; color: #065f46; }
.chart-card-trend.down { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .chart-card-trend.up { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .chart-card-trend.down { background: #7f1d1d; color: #fca5a5; }

/* ── Wizard Step Indicator ── */
.wizard {
    margin-bottom: 2rem;
}
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.wizard-step {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 200px;
}
.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}
.wizard-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    transition: all var(--transition);
    position: relative;
    z-index: 1;
}
.wizard-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    transition: color var(--transition);
}
.wizard-step.is-active .wizard-step-number {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}
.wizard-step.is-active .wizard-step-label { color: var(--color-primary); }
.wizard-step.is-completed .wizard-step-number {
    border-color: var(--color-success);
    background: var(--color-success);
    color: #fff;
}
.wizard-step.is-completed .wizard-step-label { color: var(--color-success); }

.wizard-step-connector {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    margin: 0 -0.5rem;
    margin-bottom: 1.5rem;
    transition: background var(--transition);
}
.wizard-step.is-completed + .wizard-step-connector,
.wizard-step-connector.is-completed { background: var(--color-success); }

/* ── Testimonials ── */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    transition: box-shadow var(--transition), border-color var(--transition);
    backdrop-filter: blur(12px);
}
.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(139, 92, 246, 0.35);
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1.25rem;
    font-size: 3rem;
    line-height: 1;
    color: var(--color-violet);
    opacity: 0.35;
    font-family: var(--font-display), Georgia, serif;
}
.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0 0 1.25rem;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.testimonial-author-info .author-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0;
}
.testimonial-author-info .author-role {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}
.testimonial-stars {
    color: var(--color-accent);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}

/* ── Trust Badges ── */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all var(--transition);
    backdrop-filter: blur(12px);
}
.trust-badge:hover {
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--color-violet);
    box-shadow: var(--shadow-sm);
}
.trust-badge-icon {
    font-size: 1.25rem;
}

/* ── Workflow Timeline (home horizontal) ── */
.workflow-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}
.workflow-timeline::before {
    display: none;
}
.workflow-step {
    position: relative;
    z-index: 1;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    backdrop-filter: blur(12px);
}
.workflow-step-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-violet);
    color: #070A14;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.workflow-step h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}
.workflow-step p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}
@media (max-width: 900px) {
    .workflow-timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .workflow-timeline { grid-template-columns: 1fr; }
}

.timeline-step {
    position: relative;
    padding-bottom: 2rem;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step-marker {
    position: absolute;
    left: -2rem;
    top: 0.15rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    z-index: 1;
    transition: all var(--transition);
}
.timeline-step.is-active .timeline-step-marker {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25);
}
.timeline-step.is-completed .timeline-step-marker {
    border-color: var(--color-success);
    background: var(--color-success);
}
.timeline-step-content h4 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
}
.timeline-step-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.timeline-step-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    margin-top: 0.35rem;
}

/* ── Favorite Button ── */
.favorite-btn-wrap {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 3;
}
.product-card .featured-badge {
    top: 14px;
    right: 56px;
    left: auto;
}
.product-card:has(.product-bulk-checkbox) .favorite-btn-wrap {
    /* Keep heart clear of the multiselect checkbox (left) */
    right: 12px;
    left: auto;
}
.favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
    box-shadow: var(--shadow-sm);
}
.favorite-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-surface-2);
}
.favorite-btn.is-active,
.favorite-btn.favorite-btn--active {
    border-color: var(--color-accent);
    background: #fef3c7;
    color: var(--color-accent);
}
[data-theme="dark"] .favorite-btn.is-active,
[data-theme="dark"] .favorite-btn.favorite-btn--active {
    background: #78350f;
    color: #fbbf24;
}

.product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-surface-2);
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.country-map-card .country-code-badge {
    margin-bottom: 0.35rem;
}

/* ── Profile Badge ── */
.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border-radius: 20px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition);
}
.profile-badge:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}
.profile-badge-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
}
.profile-badge-tier {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
}

/* ── Toast Notifications ── */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    animation: toast-in 0.3s ease forwards;
}
.toast.is-dismissed {
    animation: toast-out 0.25s ease forwards;
}
.toast-success { border-left: 4px solid var(--color-success); }
.toast-warning { border-left: 4px solid var(--color-accent); }
.toast-info { border-left: 4px solid var(--color-info); }
.toast-danger { border-left: 4px solid var(--color-danger); }

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.toast-close:hover { color: var(--color-text); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/* ── Page Fade-in Animations ── */
@keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes page-fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes page-fade-in-scale {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.page-fade-in {
    animation: page-fade-in 0.4s ease both;
}
.page-fade-in-up {
    animation: page-fade-in-up 0.5s ease both;
}
.page-fade-in-scale {
    animation: page-fade-in-scale 0.35s ease both;
}

.app-main > .container,
.app-main > section {
    animation: page-fade-in 0.4s ease both;
}
.app-main > section:nth-child(2) { animation-delay: 0.05s; }
.app-main > section:nth-child(3) { animation-delay: 0.1s; }
.app-main > section:nth-child(4) { animation-delay: 0.15s; }

.stagger-children > * {
    animation: page-fade-in-up 0.4s ease both;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .page-fade-in,
    .page-fade-in-up,
    .page-fade-in-scale,
    .app-main > .container,
    .app-main > section,
    .stagger-children > *,
    .toast {
        animation: none;
    }
}

/* ── Pricing Tier Badges ── */
.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.pricing-tier {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-tier:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.pricing-tier.is-featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}
.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    white-space: nowrap;
}
.tier-badge.accent { background: var(--color-accent); }
.tier-badge.success { background: var(--color-success); }

.pricing-tier-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.pricing-tier-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 0.25rem;
}
.pricing-tier-price small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
.pricing-tier-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
}
.pricing-tier-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    text-align: left;
}
.pricing-tier-features li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pricing-tier-features li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Home extras ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    background: rgba(139, 92, 246, 0.14);
    color: var(--color-violet);
    border: 1px solid rgba(139, 92, 246, 0.35);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-tiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pricing-tier-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
}

.pricing-tier-rate {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-violet);
}

.pricing-tier-label {
    font-weight: 600;
    margin: 0.5rem 0;
}

/* ── Dashboard KPIs ── */
.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dashboard-kpi-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.kpi-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-violet);
    margin-top: 0.25rem;
}

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dashboard-chart-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.dashboard-chart-card h3 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1rem;
}

.d-none-mobile { display: inline; }
@media (max-width: 900px) {
    .dashboard-kpi-grid, .pricing-tiers-grid, .dashboard-charts-grid { grid-template-columns: 1fr 1fr; }
    .d-none-mobile { display: none; }
}
@media (max-width: 600px) {
    .dashboard-kpi-grid, .pricing-tiers-grid { grid-template-columns: 1fr; }
}

/* ── Demo banner ── */
.demo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(90deg, rgba(62, 123, 250, 0.35), rgba(139, 92, 246, 0.45), rgba(236, 72, 153, 0.25));
    border-bottom: 1px solid var(--color-glass-border);
    color: #EEF0FA;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}
.demo-banner .btn-accent {
    background: #fff;
    color: #070A14;
    border: none;
    font-weight: 700;
}
.demo-banner .btn-accent:hover {
    background: var(--color-violet);
    color: #fff;
}

/* ── Login page ── */
.login-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}
.login-page > .container,
.login-page > .login-split {
    position: relative;
    z-index: 1;
}
.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 980px;
    width: 100%;
    background: var(--color-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(18px);
}
.login-brand {
    background: transparent;
    color: var(--color-text);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--color-glass-border);
}
.login-brand h1 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.75rem 0;
}
.login-brand p {
    color: var(--color-text-muted);
    margin: 0 0 2rem;
    line-height: 1.6;
}
.login-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.login-features div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.login-form-panel {
    padding: 3rem;
    background: rgba(11, 15, 31, 0.55);
}
[data-theme="light"] .login-form-panel {
    background: rgba(255, 255, 255, 0.65);
}
.login-form-panel h2 {
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}
.demo-credentials {
    padding: 1.25rem;
    background: var(--color-glass);
    border-radius: var(--radius);
    border: 1px dashed var(--color-glass-border);
}
.demo-credentials h4 {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}
.demo-credentials p {
    margin: 0.35rem 0;
    font-size: 0.85rem;
}
.demo-credentials code {
    background: var(--color-surface);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-cyan);
}

/* ── Client logos marquee ── */
.client-logos-section {
    padding: 2rem 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}
.client-logos-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin: 0 0 1.25rem;
}
.client-logos-marquee {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}
.client-logos-marquee span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-muted);
    opacity: 0.6;
    flex-shrink: 0;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Partner tier pill ── */
.partner-tier-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.partner-tier-pill--bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #fff;
}
.partner-tier-pill--silver {
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
    color: #1e293b;
}
.partner-tier-pill--gold {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #78350f;
}
.partner-catalog-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

/* ── Certifications ── */
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.5rem 0;
}
.cert-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.14);
    color: var(--color-violet);
    border: 1px solid rgba(30, 64, 175, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cert-badge--lg {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

/* ── Catalog bulk selection ── */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.catalog-results-count {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}
.catalog-bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.bulk-select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.product-bulk-checkbox {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.product-bulk-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* ── Onboarding tour ── */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.onboarding-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
.onboarding-spotlight {
    position: fixed;
    border-radius: var(--radius);
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.55);
    z-index: 1001;
    pointer-events: none;
    transition: all 0.35s ease;
}
.onboarding-tooltip {
    position: fixed;
    z-index: 1002;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 360px;
    box-shadow: var(--shadow-lg);
    transition: all 0.35s ease;
}
.onboarding-tooltip h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}
.onboarding-tooltip p {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.onboarding-dots {
    display: flex;
    gap: 0.35rem;
}
.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background var(--transition);
}
.onboarding-dot.is-active {
    background: var(--color-primary);
}
.onboarding-buttons {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .login-split { grid-template-columns: 1fr; }
    .login-brand { padding: 2rem; }
    .login-form-panel { padding: 2rem; }
}

/* ── Product card category gradients ── */
.product-card--motores .product-icon { background: linear-gradient(135deg, rgba(245, 165, 36, 0.25), rgba(245, 165, 36, 0.1)); }
.product-card--bombas .product-icon { background: linear-gradient(135deg, rgba(62, 123, 250, 0.3), rgba(62, 123, 250, 0.1)); }
.product-card--valvulas .product-icon { background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.1)); }
.product-card--transmision .product-icon { background: linear-gradient(135deg, rgba(137, 145, 172, 0.3), rgba(137, 145, 172, 0.1)); }
.product-card--sensores .product-icon { background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(34, 211, 238, 0.1)); }
.product-card .product-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.btn-added { animation: btnPop 0.4s ease; }
@keyframes btnPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); background: var(--color-success); }
    100% { transform: scale(1); }
}

/* ── Partner welcome ── */
.partner-welcome {
    background: rgba(139, 92, 246, 0.12);
    border-bottom: 1px solid rgba(139, 92, 246, 0.28);
    color: var(--color-text);
    padding: 2rem 0;
}
.partner-welcome-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.partner-welcome h2 {
    font-family: var(--font-display);
    margin: 0.75rem 0 0.25rem;
    font-size: 1.5rem;
}
.partner-welcome p {
    margin: 0;
    color: var(--color-text-muted);
}
.partner-welcome-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Cart drawer ── */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100%);
    max-width: 100%;
    height: 100dvh;
    height: 100vh;
    max-height: 100dvh;
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    z-index: 301;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    pointer-events: none;
}
.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 300;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cart-drawer-backdrop.is-open { opacity: 1; }
.cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.cart-drawer-header h2 {
    margin: 0;
    font-size: 1.1rem;
}
.cart-drawer-count {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}
.cart-drawer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}
.cart-drawer-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--color-surface-2);
    color: var(--color-primary);
}
.cart-drawer-item-info { flex: 1; min-width: 0; }
.cart-drawer-item-info strong {
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-drawer-item-info small {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}
.cart-drawer-item-price {
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}
.cart-drawer-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}
.cart-drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--color-border);
}
.cart-drawer-totals { margin-bottom: 1rem; }

/* ── Sticky quote bar ── */
.sticky-quote-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(12, 16, 28, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-glass-border);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.25);
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
[data-theme="light"] .sticky-quote-bar {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
}
body.has-sticky-quote .app-main {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
body.has-sticky-quote .live-chat-widget {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
.sticky-quote-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
    min-width: 0;
}
.sticky-quote-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    font-size: 0.92rem;
    min-width: 0;
    flex: 1;
    color: var(--color-text);
}
.sticky-quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.18);
    color: var(--color-violet, #8b5cf6);
    flex-shrink: 0;
}
.sticky-quote-info > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticky-quote-aside {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}
.sticky-quote-total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.sticky-quote-cta {
    white-space: nowrap;
}

@media (max-width: 640px) {
    body.has-sticky-quote .app-main {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }
    body.has-sticky-quote .live-chat-widget {
        bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
    }
    .sticky-quote-inner {
        gap: 0.65rem;
    }
    .sticky-quote-info {
        font-size: 0.82rem;
    }
    .sticky-quote-total {
        font-size: 1rem;
    }
    .sticky-quote-cta {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
        font-size: 0.8rem;
    }
    .container {
        padding: 0 1rem;
    }
    .navbar-inner {
        gap: 0.35rem;
    }
    .nav-actions {
        gap: 0.25rem;
    }
}

/* ── Country map ── */
.country-map-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.country-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.75rem;
}
.country-map-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface-2);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    font-family: inherit;
    text-align: center;
}
.country-map-card:hover,
.country-map-card.is-active {
    border-color: var(--color-primary);
    background: rgba(30, 64, 175, 0.05);
    transform: translateY(-2px);
}
.country-map-card.is-best {
    border-color: var(--color-success);
}
.country-map-flag { font-size: 2rem; }
.country-map-total {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1.1rem;
}
.country-map-best {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-success);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.compare-row.is-highlighted {
    background: rgba(30, 64, 175, 0.08);
    outline: 2px solid var(--color-primary);
}

/* ── Live chat ── */
.live-chat-widget {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 150;
}
.live-chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: transform var(--transition);
}
.live-chat-toggle:hover { transform: scale(1.08); }
.live-chat-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-primary-light);
    animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0; transform: scale(1.3); }
}
.live-chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.live-chat-header {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.live-chat-status {
    font-size: 0.7rem;
    background: var(--color-success);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}
.live-chat-messages {
    height: 220px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.chat-bubble {
    max-width: 85%;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.chat-bubble--agent {
    background: var(--color-surface-2);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-bubble--user {
    background: var(--color-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.live-chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--color-border);
}
.live-chat-input input { flex: 1; }

/* ── VAT validation ── */
.vat-input-wrap {
    display: flex;
    gap: 0.5rem;
}
.vat-result {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}
.vat-result--valid {
    background: rgba(5, 150, 105, 0.1);
    color: var(--color-success);
}
.vat-result--invalid {
    background: rgba(220, 38, 38, 0.1);
    color: var(--color-danger);
}

/* ── RFQ layout ── */
.rfq-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}
.rfq-sidebar { position: sticky; top: calc(var(--nav-height) + 1rem); }
.rfq-product-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
}
.rfq-product-chip span:first-child { font-size: 1.25rem; }

/* ── Testimonials transition ── */
.testimonials-grid .testimonial-card {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ── Price list ── */
.price-list-table td { vertical-align: middle; }

@media (max-width: 900px) {
    .country-map-grid { grid-template-columns: repeat(3, 1fr); }
    .rfq-layout { grid-template-columns: 1fr; }
    .rfq-sidebar { position: static; }
}
@media (max-width: 600px) {
    .country-map-grid { grid-template-columns: repeat(2, 1fr); }
    .live-chat-widget { bottom: 6rem; right: 1rem; }
    .live-chat-panel { width: min(320px, calc(100% - 2rem)); right: 0; left: auto; }
}
