/* ============================================================
   🚛 WALKER LOGISTICS — Neon & Deep Design System
   Vibrant & Professional E-Commerce Identity
   ============================================================ */
:root {
    --accent: #0066c0; /* Premium Blue */
    --accent-hover: #004b91;
    --accent-secondary: #00a8e1;
    --accent-stars: #007185;
    --accent-promo: #cc0c39; /* Keep red for alerts, or change to deep blue? User said change ALL yellow/orange. */
    --accent-primary: #2563eb;
    --accent-success: #10B981;
    --amz-yellow: #0066c0;
    --nav-bg: #131921;
    --subnav-bg: #232f3e;
    --header-text: #ffffff;
    --bg-main: #f0f2f5;
    --bg-card: #ffffff;
    --bg-deep: #e7e9eb;
    --bg-input: #ffffff;
    --amz-nav: var(--nav-bg);
    --amz-subnav: var(--subnav-bg);
    --amz-accent: var(--accent);
    --amz-accent-hover: var(--accent-hover);
    --text-main: #0f1111;
    --text-header: #ffffff;
    --text-muted: #565959;
    --text-dim: #888;
    --text-link: #007185;
    --border: #d5d9d9;
    --border-hover: #adb5bd;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow: 0 4px 20px rgba(0,0,0,0.15);
    --glass: rgba(255,255,255,0.85);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 260px;
    --primary: #232F3E;
    --secondary: #37475A;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #0066c0;
    --amz-dark: #131921;
    --amz-navy: #232f3e;
    --amz-light-grey: #eaeded;
}


* { margin: 0; padding: 0; box-sizing: border-box; }

.hidden { display: none !important; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   GATE SCREEN — Modern Login
   ═══════════════════════════════════════════ */
.gate-screen {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    background: #0f172a;
}
.gate-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}
.gate-screen.hidden { display: none; }

.gate-box {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    width: 350px;
    max-width: 95vw;
    box-shadow: var(--shadow-md);
    animation: gateIn 0.5s ease-out;
    color: var(--text-main);
}

.gate-logo h1 { font-family: 'Outfit', sans-serif; font-size: 1.75rem; font-weight: 800; margin-bottom: 5px; color: #000; }
.gate-logo h1 span { color: var(--accent); }
.gate-tagline { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }

.gate-input-wrap {
    display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--border);
    border-radius: 4px; padding: 0 12px; margin-bottom: 12px;
    transition: var(--transition);
}
.gate-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.gate-input-wrap i { color: #888; }
.gate-input-wrap input { flex: 1; border: none; background: none; color: #111; padding: 10px 0; font-size: 1rem; outline: none; }

.gate-submit {
    width: 100%; padding: 10px; background: var(--accent); color: #fff;
    border: none; border-radius: 4px; font-weight: 500; cursor: pointer; transition: var(--transition);
    font-size: 0.95rem;
}
.gate-submit:hover { background: var(--accent-hover); }

.gate-tabs {
    display: flex; gap: 0.5rem; margin-bottom: 2rem;
    background: rgba(0,0,0,0.05); padding: 0.4rem; border-radius: 12px; margin-bottom: 2rem;
}
.gate-tabs {
    display: flex; gap: 0.5rem; margin-bottom: 2rem; background: #f8fafc; padding: 0.4rem; border-radius: 12px;
}
.gt-tab {
    flex: 1; padding: 0.8rem; background: transparent; border: none; color: var(--text-muted);
    font-weight: 700; border-radius: 8px; cursor: pointer; transition: var(--transition);
}
.gt-tab.active, .gt-tab:hover { background: var(--accent); color: #fff; }
.gate-footer { margin-top: 1.5rem; text-align: center; }

/* ═══════════════════════════════════════════
   APP CONTAINER & SIDEBAR
   ═══════════════════════════════════════════ */
.app-container { display: flex; height: 100vh; }
.app-container.hidden { display: none; }

.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    color: var(--text-main);
    z-index: 1000;
}
.sidebar-header { 
    padding: 20px; border-bottom: 1px solid var(--border); 
    background: #fdfdfd;
}
.logo-icon { 
    width: 36px; height: 36px; background: var(--accent); 
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.logo-text h1 { 
    font-family: 'Outfit', sans-serif; font-size: 1.2rem; 
    font-weight: 800; color: var(--text-main); margin:0;
    letter-spacing: -0.5px;
}
.logo-text span { font-size: 0.6rem; color: var(--accent); font-weight: 700; text-transform: uppercase; }

.nav-links { list-style: none; padding-top: 10px; flex: 1; overflow-y: auto; }
.nav-section { 
    padding: 20px 20px 10px; font-size: 0.7rem; font-weight: 800; 
    color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1px;
}
.nav-links li:not(.nav-section) {
    padding: 12px 20px; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 12px; color: var(--text-muted);
    font-size: 0.9rem; font-weight: 500;
}
.nav-links li:not(.nav-section):hover { 
    background: rgba(0,0,0,0.03); color: var(--text-main); 
}
.nav-links li.active:not(.nav-section) { 
    background: rgba(0,102,192,0.1); color: var(--accent); 
    border-left: 4px solid var(--accent);
}
.nav-links li i { width: 20px; text-align: center; font-size: 1.1rem; }

.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.btn-logout {
    width: 100%; padding: 10px; background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2); color: #f43f5e;
    border-radius: 6px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ═══════════════════════════════════════════
   MAIN CONTENT & PAGES
   ═══════════════════════════════════════════ */
.content { flex: 1; padding: 2rem; overflow-y: auto; background: var(--bg-main); }
.page { display: none; }
.page.active { display: block; animation: pageIn 0.4s ease-out; }

.page-header { margin-bottom: 2rem; }
.page-header h2 { font-family: 'Outfit', sans-serif; font-size: 1.75rem; font-weight: 800; margin-bottom: 0.25rem; }
.page-header i { color: var(--accent); margin-right: 0.5rem; }

/* ═══════════════════════════════════════════
   CARDS & KPI GRID
   ═══════════════════════════════════════════ */
.card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.03); margin-bottom: 1.5rem;
    transition: var(--transition);
}
.card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.card.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.kpi-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; display: flex; align-items: center; gap: 1rem; position: relative; overflow: hidden;
}
.kpi-card::before { content: ''; position: absolute; top:0; left:0; right:0; height:3px; }
.kpi-blue::before { background: var(--accent); }
.kpi-green::before { background: var(--accent-secondary); }
.kpi-purple::before { background: var(--accent-secondary); }
.kpi-red::before { background: var(--accent-promo); }
.kpi-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.kpi-blue .kpi-icon { background: rgba(37, 99, 235, 0.1); color: var(--accent); }
.kpi-green .kpi-icon { background: rgba(5, 150, 105, 0.1); color: var(--accent-secondary); }

.kpi-value { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--text-main); }
.kpi-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

/* ═══════════════════════════════════════════
   FORMS, BUTTONS & TABLES
   ═══════════════════════════════════════════ */
.input-group label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.4rem; display: block; }
.input-group input, .input-group select {
    width: 100%; padding: 0.75rem; background: var(--bg-input); border: 1px solid var(--border); color: var(--text-main);
    border-radius: var(--radius-sm); font-size: 0.95rem; outline: none; transition: var(--transition);
}
.input-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.btn-primary {
    padding: 0.8rem 1.5rem; background: var(--accent); color: #fff; border: none;
    border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2); }

.btn-secondary {
    padding: 0.8rem 1.5rem; background: transparent; color: var(--text-main); border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { background: rgba(0,0,0,0.05); border-color: var(--text-muted); }

.btn-danger {
    padding: 0.8rem 1.5rem; background: rgba(244, 63, 94, 0.1); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; transition: var(--transition);
}
.btn-danger:hover { background: #f43f5e; color: #fff; }

.btn-accent { background: #0066c0; color: #fff; border: 1px solid #004b91; }
.btn-accent:hover { background: #004b91; }

.pulse-red {
    animation: pulse-red-anim 1.5s infinite;
}
@keyframes pulse-red-anim {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.cell-input {
    background: #fff;
    border: 1px solid var(--border);
    color: #1f2937;
    font-weight: 500;
    transition: var(--transition);
}
.cell-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    outline: none;
}
textarea.cell-input {
    resize: vertical;
    font-family: inherit;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }


table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 1rem; font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid var(--border); }
td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
tbody tr:hover { background: rgba(37, 99, 235, 0.02); }

/* ═══════════════════════════════════════════
   PUBLIC PORTAL — VIBRANT E-COMMERCE
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   PREMIUM PORTAL — AMAZON RESTRUCTURE
   ═══════════════════════════════════════════ */
.public-portal { 
    position: fixed; inset: 0; 
    display: flex; flex-direction: column; 
    background: var(--bg-main); 
    z-index: 1000; overflow: hidden;
}
.pub-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
    scroll-behavior: smooth;
}
.nav-public.active { color: var(--accent); }

.amz-cart-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 10px; border: 1px solid transparent; border-radius: 2px;
    cursor: pointer; position: relative;
    color: #fff; font-weight: 700;
}
.amz-cart-btn:hover { border-color: #fff; }
.amz-cart-btn .cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: #00a8e1; color: #fff;
    font-size: 0.75rem; font-weight: 900;
    min-width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--nav-bg);
}

.amz-subnav {
    background: var(--amz-navy) !important;
    height: 38px !important;
    display: flex; align-items: center; gap: 20px !important;
    padding: 0 20px !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.amz-subnav a, .amz-subnav button {
    color: #fff !important; text-decoration: none;
    font-size: 0.85rem !important; font-weight: 600 !important;
    padding: 6px 10px; border: 1px solid transparent; border-radius: 4px;
    white-space: nowrap; cursor: pointer; background: none;
    transition: var(--transition);
}
.amz-subnav a:hover, .amz-subnav button:hover { 
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}


.pub-page { display: none; }
.pub-page.active { display: block; animation: pageIn 0.4s ease-out; }

.hero {
    background: linear-gradient(to bottom, transparent 0%, var(--bg-main) 100%), 
                linear-gradient(135deg, var(--nav-bg) 0%, var(--subnav-bg) 100%);
    padding: 60px 40px 100px;
    color: var(--text-main);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start;
}
.hero-content { max-width: 600px; position: relative; z-index: 2; }
.hero-content h1 { 
    font-family: 'Outfit', sans-serif; 
    font-size: 3.5rem; font-weight: 800; 
    line-height: 1.1; margin-bottom: 20px; 
    color: var(--text-main);
}
.hero-content p { font-size: 1.25rem; margin-bottom: 30px; color: var(--text-muted); }
.hero .btn-primary { 
    background: var(--accent); color: #fff; 
    padding: 15px 40px; font-size: 1.1rem; 
    border-radius: 4px; box-shadow: var(--shadow-md);
}
.hero .btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* Services Grid (Category Boxes) */
.services-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; padding: 0 20px; 
    margin-top: -60px; position: relative; z-index: 10;
}
.srv-card { 
    background: var(--bg-card); border-radius: 4px; padding: 25px; 
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: var(--transition);
}
.srv-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.srv-icon { color: var(--accent); font-size: 2rem; margin-bottom: 15px; }
.srv-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }

.promo-banner-strip {
    background: var(--accent); color: #fff; 
    padding: 10px; text-align: center; 
    font-weight: 700; font-size: 0.9rem;
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.1);
}

.home-layout {
    display: flex; gap: 20px; padding: 20px;
    background: var(--bg-main);
}
.home-sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--bg-card); padding: 20px;
    border: 1px solid var(--border); border-radius: 4px;
}
.home-sidebar h3 { font-size: 1rem; margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.home-sidebar ul { list-style: none; }
.home-sidebar li { 
    padding: 8px 0; font-size: 0.9rem; cursor: pointer; color: var(--text-main); 
}
.home-sidebar li:hover { color: var(--accent); text-decoration: underline; }

.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.section-header h2 { font-size: 1.4rem; font-weight: 700; }
.section-header a { font-size: 0.85rem; color: var(--text-link); text-decoration: none; }
.section-header a:hover { color: var(--accent-promo); text-decoration: underline; }

.hero-bg-icon {
    position: absolute; right: -40px; bottom: -40px;
    font-size: 12rem; color: rgba(0,0,0,0.03);
    z-index: 1; transform: rotate(-15deg);
}

.product-card {
    background: var(--bg-card); border: 1px solid var(--border); 
    border-radius: 4px; padding: 20px;
    transition: var(--transition); position: relative;
    display: flex; flex-direction: column;
    height: 100%;
}
.product-card:hover { 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    border-color: #0066c0; 
}

.product-img { 
    height: 200px; margin-bottom: 15px; 
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); padding: 10px;
    transition: transform 0.3s ease;
}
.product-card:hover .product-img { transform: scale(1.02); }
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.product-title { 
    font-size: 1rem; font-weight: 600; color: #007185; 
    line-height: 1.3; margin-bottom: 8px; cursor: pointer;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6rem;
}
.product-title:hover { color: #c45500; text-decoration: underline; }

.product-price { 
    font-size: 1.75rem; font-weight: 500; color: var(--text-main); 
    display: flex; align-items: flex-start; gap: 2px;
    margin-bottom: 8px;
}
.product-price::before { content: '$'; font-size: 0.85rem; margin-top: 5px; font-weight: 600; }
.p-cents { font-size: 0.85rem; margin-top: 5px; font-weight: 600; }

.rv-grid {
    display: flex; gap: 20px; overflow-x: auto; padding-bottom: 15px;
}
.rv-item {
    width: 150px; flex-shrink: 0; text-align: center;
}
.rv-item img { width: 100px; height: 100px; object-fit: contain; margin-bottom: 5px; }
.rv-item div { font-size: 0.8rem; color: var(--text-link); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Profile & Dashboard Pages */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 30px; padding: 20px; }
.profile-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 30px; text-align: center; box-shadow: var(--shadow-sm); }
.avatar { font-size: 4rem; color: var(--text-muted); margin-bottom: 15px; }
.walker-points { 
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff; padding: 20px; border-radius: 8px;
    display: flex; align-items: center; justify-content: space-between;
}

.amz-prime-badge {
    color: var(--accent-secondary); font-weight: 800; font-size: 0.75rem;
    display: flex; align-items: center; gap: 4px; margin-top: 5px;
}
.amz-prime-badge i { font-size: 1rem; }

/* FLOATING CART & DRAWER */
.floating-cart {
    position: fixed; bottom: 40px; right: 40px; width: 72px; height: 72px;
    background: var(--accent); color: #fff; border-radius: 24px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    cursor: pointer; box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3); z-index: 1050; transition: var(--transition);
}
.cart-badge {
    position: absolute; top: -10px; right: -10px; background: var(--accent-promo);
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 900; border: 3px solid #fff;
}

.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; 
    width: 380px; background: var(--bg-card); 
    display: flex; flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 2000;
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { 
    padding: 15px 20px; background: var(--bg-deep); color: var(--text-main); 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-family: 'Outfit'; font-weight: 700; font-size: 1.1rem; }
.cart-body { flex: 1; padding: 20px; overflow-y: auto; background: var(--bg-card); }

#cart-items .cart-item {
    display: flex; gap: 15px; padding-bottom: 20px; margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 5px; }
.cart-item-price { color: var(--accent-promo); font-weight: 700; }

.cart-footer { 
    padding: 20px; border-top: 1px solid var(--border); 
    background: #f8f9fa; display: flex; flex-direction: column; gap: 10px; 
}
.cart-total-line { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
#btn-checkout {
    width: 100%; padding: 14px; background: linear-gradient(to bottom, #d8e2f3, #0066c0); 
    color: #fff; border: 1px solid #004b91; border-radius: 8px; font-weight: 700; cursor: pointer;
    transition: var(--transition); box-shadow: 0 2px 5px rgba(213,217,217,0.5);
}
#btn-checkout:hover { background: linear-gradient(to bottom, #bbd1f1, #004b91); border-color: #003366; }

/* ═══════════════════════════════════════════
   PRODUCT MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center; z-index: 5000;
}
.product-modal-content {
    background: var(--bg-card); border-radius: 8px;
    width: 1000px; max-width: 95vw; display: flex; overflow: hidden; position: relative;
    box-shadow: var(--shadow-lg); animation: pageIn 0.3s ease-out;
}
.pm-left { flex: 0 0 450px; background: var(--bg-card); display: flex; align-items: center; justify-content: center; padding: 40px; border-right: 1px solid var(--border); }
.pm-left img { max-width: 100%; max-height: 400px; object-fit: contain; }

.pm-right { flex: 1; padding: 40px; display: flex; flex-direction: column; color: var(--text-main); }
.pm-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; line-height: 1.2; }
.pm-price { font-size: 2rem; color: var(--text-main); font-weight: 400; margin-bottom: 20px; }
.pm-rating { color: var(--text-link); font-size: 0.9rem; margin-bottom: 20px; }

.pm-add-cart, .btn-amz-cart {
    width: 100%; padding: 12px; background: var(--accent); color: #fff; border: none;
    border-radius: 20px; font-weight: 600; cursor: pointer; transition: var(--transition);
    margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.pm-add-cart:hover, .btn-amz-cart:hover { background: var(--accent-hover); }

.pm-1click {
    width: 100%; padding: 12px; background: var(--accent-secondary); color: #fff; border: none;
    border-radius: 20px; font-weight: 600; cursor: pointer; transition: var(--transition);
    margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.pm-1click:hover { opacity: 0.9; }

.btn-wishlist {
    width: 100%; padding: 1rem; background: transparent; color: var(--text-dim); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; font-weight: 700; cursor: pointer; transition: var(--transition);
    margin-top: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-wishlist:hover { color: var(--accent-promo); border-color: var(--accent-promo); background: rgba(244,63,94,0.05); }

/* Animation des gros éléments modaux */
.modal-content {
    background: var(--bg-card); color: var(--text-main); border-radius: 20px; padding: 2.5rem;
    width: 500px; max-width: 95vw; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    animation: gateIn 0.3s ease-out;
}
.truck-animation-container {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999;
}
.truck { font-size: 5rem; color: var(--accent-secondary); animation: drive 2.5s ease-in-out forwards; }
@keyframes drive {
    0% { transform: translateX(-150vw); }
    50% { transform: translateX(0); }
    100% { transform: translateX(150vw); }
}

/* ═══════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════ */
#notifications { position: fixed; top: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 0.5rem; }
.notification {
    background: var(--bg-card); border-left: 5px solid var(--accent); padding: 1.25rem 2rem;
    margin-bottom: 0; border-radius: var(--radius); box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); max-width: 400px;
    font-weight: 600; font-size: 0.9rem; backdrop-filter: blur(10px);
}
.notification.success { border-left-color: var(--accent-secondary); }
.notification.danger  { border-left-color: var(--accent-promo); }
.notification.warning { border-left-color: var(--accent-stars); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ═══════════════════════════════════════════
   03. MICRO-INTERACTIONS
   ═══════════════════════════════════════════ */
.btn-primary, .btn-secondary, .btn-danger, .gate-submit, .pm-add-cart, .btn-amz-cart, .pm-1click, .btn-wishlist, .nav-public {
    position: relative; overflow: hidden;
}
.btn-primary::after, .gate-submit::after, .pm-add-cart::after, .btn-amz-cart::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    background: rgba(255,255,255,0.15); border-radius: 50%;
    transform: translate(-50%, -50%); transition: width 0.5s, height 0.5s;
}
.btn-primary:active::after, .gate-submit:active::after, .pm-add-cart:active::after, .btn-amz-cart:active::after {
    width: 300px; height: 300px;
}
.srv-card { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease; }
.product-card { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease; }
.kpi-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.kpi-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }

/* ═══════════════════════════════════════════
   04. SKELETON SCREENS
   ═══════════════════════════════════════════ */
.skeleton { position: relative; overflow: hidden; background: #e2e8f0; border-radius: var(--radius-sm); }
.skeleton::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: shimmer 1.8s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.skeleton-img { width: 100%; height: 220px; border-radius: 16px; }
.skeleton-text { height: 1rem; margin-bottom: 0.5rem; border-radius: 4px; }
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-price { height: 1.5rem; width: 40%; border-radius: 4px; margin-top: 0.5rem; }
.skeleton-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 1.5rem; }

/* ═══════════════════════════════════════════
   09. GLOW BADGES
   ═══════════════════════════════════════════ */
.badge-urgent {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 1rem; border-radius: 99px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    background: rgba(244, 63, 94, 0.15); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3);
    animation: glowUrgent 2s ease-in-out infinite alternate;
}
@keyframes glowUrgent {
    from { box-shadow: 0 0 5px rgba(244, 63, 94, 0.3); }
    to   { box-shadow: 0 0 20px rgba(244, 63, 94, 0.6), 0 0 40px rgba(244, 63, 94, 0.2); }
}
.badge-prime {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 1rem; border-radius: 99px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(245, 158, 11, 0.2));
    color: #d97706; border: 1px solid rgba(245, 158, 11, 0.4);
    animation: glowPrime 2.5s ease-in-out infinite alternate;
}
@keyframes glowPrime {
    from { box-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
    to   { box-shadow: 0 0 18px rgba(245, 158, 11, 0.5), 0 0 35px rgba(245, 158, 11, 0.15); }
}
.badge-new {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 1rem; border-radius: 99px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    background: rgba(0, 102, 192, 0.15); color: #0066c0; border: 1px solid rgba(0, 102, 192, 0.3);
}
.badge-stock-low {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 1rem; border-radius: 99px; font-size: 0.75rem; font-weight: 800;
    background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ═══════════════════════════════════════════
   10. INTERACTIVE CURSOR
   ═══════════════════════════════════════════ */
.product-card, .srv-card { cursor: pointer; }
.product-card:active, .srv-card:active { cursor: grabbing; }
button, .nav-public, .gt-tab, a, .nav-links li { cursor: pointer; }
.btn-primary:disabled, .gate-submit:disabled { cursor: wait; opacity: 0.7; }

/* ═══════════════════════════════════════════
   11. SMOOTH-FADE PAGE TRANSITIONS
   ═══════════════════════════════════════════ */
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pub-page.active { animation: pageFadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.page.active { animation: pageFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

/* ═══════════════════════════════════════════
   19. SCROLL-TO-TOP BUTTON
   ═══════════════════════════════════════════ */
.scroll-to-top {
    position: fixed; bottom: 40px; left: 40px; width: 52px; height: 52px;
    background: var(--accent); color: #fff; border: none; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; z-index: 1050;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; pointer-events: none; transform: translateY(20px);
}
.scroll-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-to-top:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 14px 35px rgba(37, 99, 235, 0.5); }
.scroll-to-top i { transition: transform 0.3s ease; }
.scroll-to-top:hover i { transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   20. CUSTOM SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-secondary) 100%);
    border-radius: 99px; border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); border: 0; border-radius: 99px; }
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }

/* ═══════════════════════════════════════════
   SEARCH PREDICTIONS DROPDOWN
   ═══════════════════════════════════════════ */
.search-predictions {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card);
    border: 1px solid var(--border); border-top: none; border-radius: 0 0 16px 16px;
    max-height: 300px; overflow-y: auto; z-index: 1200;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); display: none;
}
.search-predictions.open { display: block; }
.search-prediction-item {
    padding: 0.8rem 1.5rem; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.search-prediction-item:hover { background: rgba(37, 99, 235, 0.05); color: var(--accent); }
.search-prediction-item img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #f1f5f9; }
.search-prediction-item .sp-name { font-weight: 700; }
.search-prediction-item .sp-price { font-weight: 800; color: var(--accent); margin-left: auto; }

/* ═══════════════════════════════════════════
   ORDER TRACKING TIMELINE
   ═══════════════════════════════════════════ */
.order-timeline { display: flex; align-items: center; gap: 0; padding: 1.5rem 0; position: relative; }
.ot-step {
    display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; z-index: 1;
}
.ot-icon {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; background: #e2e8f0; color: var(--text-muted); border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.4s ease; position: relative; z-index: 2;
}
.ot-step.done .ot-icon { background: var(--accent-secondary); color: #fff; box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35); }
.ot-step.active .ot-icon { background: var(--accent); color: #fff; animation: pulse 1.5s infinite; box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4); }
.ot-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); margin-top: 0.6rem; text-align: center; text-transform: uppercase; letter-spacing: 0.5px; }
.ot-step.done .ot-label, .ot-step.active .ot-label { color: var(--text-main); }
.ot-connector {
    flex: 1; height: 3px; background: #e2e8f0; position: relative; top: -12px; z-index: 0;
}
.ot-connector.done { background: linear-gradient(90deg, var(--accent-secondary), var(--accent)); }
.ot-truck {
    position: absolute; top: -22px; font-size: 1.2rem;
    animation: truckSlide 3s ease-in-out infinite;
}
@keyframes truckSlide { 0%, 100% { left: 0; } 50% { left: calc(100% - 20px); } }

/* ═══════════════════════════════════════════
   LOYALTY & PRIME BADGES (Header)
   ═══════════════════════════════════════════ */
.loyalty-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.8rem; border-radius: 99px; font-size: 0.8rem; font-weight: 800;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(245, 158, 11, 0.15));
    color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3);
}
.prime-header-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.25rem 0.7rem; border-radius: 99px; font-size: 0.7rem; font-weight: 900;
    background: linear-gradient(135deg, #0066c0, #00a8e1); color: #fff;
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 102, 192, 0.3);
}

/* ═══════════════════════════════════════════
   RECENTLY VIEWED SECTION
   ═══════════════════════════════════════════ */
.recently-viewed { padding: 2rem 5%; }
.recently-viewed h3 { font-family: 'Outfit'; font-weight: 800; font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--text-main); }
.rv-grid { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem; }
.rv-card {
    min-width: 180px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 1rem; flex-shrink: 0; transition: var(--transition); cursor: pointer;
}
.rv-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: var(--accent); }
.rv-card img { width: 100%; height: 120px; object-fit: contain; border-radius: 8px; background: #f1f5f9; margin-bottom: 0.8rem; }
.rv-card .rv-name { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; }
.rv-card .rv-price { font-weight: 900; color: var(--accent); }

/* ═══════════════════════════════════════════
   WISHLIST CARDS
   ═══════════════════════════════════════════ */
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; padding: 1rem 0; }
.wishlist-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem; transition: var(--transition);
}
.wishlist-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.06); border-color: var(--accent-promo); }
.wishlist-card img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #f1f5f9; }
.wishlist-card .wl-info { flex: 1; }
.wishlist-card .wl-name { font-weight: 700; font-size: 0.95rem; }
.wishlist-card .wl-price { font-weight: 800; color: var(--accent); }
.wishlist-card .btn-remove-wl {
    background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer;
    transition: var(--transition);
}
.wishlist-card .btn-remove-wl:hover { color: var(--accent-promo); }

/* ═══════════════════════════════════════════
   REVIEWS
   ═══════════════════════════════════════════ */
.review-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem;
}
.review-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.review-author { font-weight: 700; font-size: 0.9rem; }
.review-date { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.review-stars { color: var(--accent-stars); font-size: 0.9rem; margin-bottom: 0.5rem; }
.review-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.star-input { display: inline-flex; gap: 0.3rem; font-size: 1.5rem; cursor: pointer; }
.star-input i { color: #cbd5e1; transition: color 0.15s; }
.star-input i.active, .star-input i:hover { color: var(--accent-stars); }

/* ═══════════════════════════════════════════
   DAILY DEALS BANNER
   ═══════════════════════════════════════════ */
.daily-deals-banner {
    background: linear-gradient(135deg, #0066c0 0%, #004b91 100%); color: #fff;
    padding: 1.5rem 5%; border-radius: 0; display: flex; align-items: center; gap: 1.5rem;
    overflow: hidden; position: relative;
}
.daily-deals-banner::before {
    content: '⚡'; position: absolute; right: 5%; font-size: 4rem; opacity: 0.15;
}
.daily-deals-banner h3 { font-family: 'Outfit'; font-weight: 900; font-size: 1.2rem; white-space: nowrap; }
.daily-deals-banner .dd-timer { font-family: 'Outfit'; font-weight: 800; font-size: 1.5rem; margin-left: auto; }
.deals-scroll { display: flex; gap: 1rem; overflow-x: auto; padding: 0 5% 0.5rem; }
.deal-card {
    min-width: 200px; background: var(--bg-card); border: 2px solid var(--accent-new); border-radius: 16px;
    padding: 1rem; flex-shrink: 0; position: relative; overflow: hidden;
}
.deal-card::before {
    content: 'DEAL'; position: absolute; top: 8px; right: -20px; background: var(--accent-promo);
    color: #fff; font-size: 0.6rem; font-weight: 900; padding: 0.2rem 2rem; transform: rotate(45deg);
}
.deal-card .deal-old-price { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; }
.deal-card .deal-new-price { font-weight: 900; color: var(--accent-promo); font-size: 1.3rem; }

/* ═══════════════════════════════════════════
   97. MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .amz-layout, .home-layout { flex-direction: column; display: flex; }
    .amz-sidebar, .home-sidebar { width: 100%; }
    .product-modal-content { flex-direction: column; width: 95vw; }
    .pm-left, .pm-right { flex: none; }
    .pm-left { height: 250px; }
}
@media (max-width: 768px) {
    .sidebar { display: none; }
    .content { padding: 1rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; padding: 1rem 3%; }
    .services-grid { grid-template-columns: 1fr; padding: 0 3% 2rem; }
    .public-navbar { padding: 0.8rem 3%; flex-wrap: wrap; height: auto; gap: 0.5rem; }
    .amz-header-search { order: 3; margin: 10px 0; max-width: 100%; }
    .pub-links { gap: 0.3rem; flex-wrap: wrap; justify-content: center; }
    .nav-public { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    .amz-topbar { flex-direction: column; padding: 0 3%; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-drawer { width: 100vw; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr !important; }
    .kpi-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.8rem; }
}
/* ═══════════════════════════════════════════
   AMAZON HEADER & NAV
   ═══════════════════════════════════════════ */
.public-navbar {
    background: var(--amz-dark);
    padding: 0 20px;
    height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: sticky; top:0; z-index: 1000;
}


.amz-header-search {
    flex: 1; max-width: 800px; display: flex; height: 42px;
    background: var(--bg-card); border-radius: 4px; overflow: hidden;
    margin: 0 20px; border: 3px solid transparent; transition: 0.2s;
}
.amz-header-search:focus-within { border-color: #0066c0; box-shadow: 0 0 8px rgba(0, 102, 192, 0.4); }

.amz-header-search select {
    background: #f3f3f3; border: none; border-right: 1px solid #ccc;
    padding: 0 12px; font-size: 0.85rem; cursor: pointer; outline: none;
    color: #555; font-weight: 500;
}
.amz-header-search input {
    flex: 1; border: none; padding: 0 15px; font-size: 1rem;
    outline: none; color: var(--text-main);
}
.amz-header-search button {
    background: var(--accent); border: none; padding: 0 20px;
    cursor: pointer; font-size: 1.2rem; color: #fff;
    transition: 0.2s;
}
.amz-header-search button:hover { background: var(--accent-hover); }

.pub-links { display: flex; align-items: center; gap: 12px; color: var(--text-main); }

.nav-public {
    background: none; border: 1px solid transparent; color: var(--text-main);
    font-weight: 700; cursor: pointer; padding: 8px 10px;
    border-radius: 4px; font-size: 0.9rem; transition: 0.1s;
    display: flex; flex-direction: column; line-height: 1.2;
    white-space: nowrap;
}
.nav-public:hover, .nav-public.active { border-color: var(--accent); color: var(--accent); }

.amz-cart-btn {
    display: flex; align-items: center; gap: 8px; color: var(--text-main);
    cursor: pointer; position: relative; padding: 8px 12px;
    border: 1px solid transparent; border-radius: 4px; transition: 0.1s;
}
.amz-cart-btn:hover { border-color: var(--border); }
.amz-cart-btn i { font-size: 1.8rem; }
.amz-cart-btn .cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: #00a8e1; color: #fff;
    font-size: 0.9rem; font-weight: 900;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--nav-bg);
}

.amz-subnav {
    background: var(--subnav-bg); height: 40px; color: var(--text-main);
    display: flex; align-items: center; gap: 15px; padding: 0 25px;
    border-bottom: 1px solid var(--border);
}
.amz-subnav a, .amz-subnav button {
    color: var(--text-main); text-decoration: none; font-size: 0.85rem; font-weight: 600;
    padding: 6px 10px; border: 1px solid transparent; border-radius: 4px; cursor: pointer;
    background: none; white-space: nowrap;
}
.amz-subnav a:hover, .amz-subnav button:hover { background: #e8e8e8; }

/* ═══════════════════════════════════════════
   CATALOGUE LAYOUT (Amazon Style)
   ═══════════════════════════════════════════ */
.amz-layout {
    display: flex; gap: 30px; padding: 25px;
    max-width: 1600px; margin: 0 auto;
}
.amz-sidebar {
    width: 260px; flex-shrink: 0;
    padding-right: 20px;
}
.amz-sidebar h3 { 
    font-size: 0.9rem; font-weight: 800; margin-bottom: 12px; 
    color: var(--text-main); text-transform: none;
    border-bottom: none;
}
.amz-filter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 25px; }
.amz-filter label { 
    display: flex; align-items: center; gap: 8px; cursor: pointer; 
    font-size: 0.85rem; color: var(--text-main); font-weight: 400;
    transition: color 0.2s;
}
.amz-filter label:hover { color: #007185; }
.amz-filter input[type="radio"] { width: 14px; height: 14px; accent-color: #007185; }

.amz-main { flex: 1; }
.amz-topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
    background: var(--bg-card); padding: 10px 15px; border-radius: 4px;
}
.amz-search-bar {
    max-width: 400px; padding: 8px 12px; border: 1px solid var(--border);
    border-radius: 4px; font-size: 0.9rem; outline: none; flex: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) inset;
}
.amz-sort-box {
    padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
    background: #f0f2f2; font-size: 0.85rem; font-weight: 500; cursor: pointer;
    box-shadow: 0 2px 5px rgba(213,217,217,0.5);
    transition: var(--transition);
}
.amz-sort-box:hover { background: #e3e6e6; border-color: #adb5bd; }


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* ═══════════════════════════════════════════
   HOME PAGE GRID & CARDS
   ═══════════════════════════════════════════ */
.home-layout {
    display: grid; grid-template-columns: 240px 1fr;
    gap: 20px; padding: 20px; max-width: 1500px; margin: 0 auto;
}
.home-sidebar { background: var(--bg-card); padding: 20px; border-radius: 4px; height: fit-content; border: 1px solid var(--border); }
.home-sidebar h3 { font-size: 0.95rem; margin-bottom: 12px; border-bottom: 2px solid var(--amz-accent); display: inline-block; }
.home-sidebar ul { list-style: none; }
.home-sidebar li { margin-bottom: 8px; font-size: 0.85rem; cursor: pointer; color: var(--text-main); }
.home-sidebar li:hover { color: var(--amz-accent); text-decoration: underline; }

.deal-card {
    background: var(--bg-card); padding: 15px; border-radius: 4px;
    min-width: 200px; transition: 0.2s; border: 1px solid var(--border);
}
.deal-card:hover { border-color: var(--amz-accent); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.deal-new-price { color: #b12704; font-size: 1.2rem; font-weight: 700; }
.deal-old-price { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; margin-right: 8px; }

/* Fixed Catalogue Alignment */
#pub-tarifs .amz-layout {
    margin-top: 2rem; padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.home-main-content {
    background: transparent;
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.amz-footer {
    background: var(--amz-subnav);
    color: #fff;
    padding: 40px 20px;
    margin-top: 60px;
}
.footer-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-col h4 { margin-bottom: 15px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 0.85rem; color: #ddd; cursor: pointer; }
.footer-col li:hover { text-decoration: underline; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #999;
}

/* -------------------------------------------
   HOME PAGE GRID & CARDS (Amazon Look)
   ------------------------------------------- */
.amz-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: -100px 20px 20px;
    position: relative;
    z-index: 10;
}
.amz-home-card {
    background: var(--bg-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.amz-home-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; color: var(--text-main); }
.amz-home-card a { margin-top: auto; font-size: 0.85rem; color: var(--text-link); text-decoration: none; font-weight: 500; }
.amz-home-card a:hover { color: #004b91; text-decoration: underline; }

.amz-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.amz-card-item { cursor: pointer; display: flex; flex-direction: column; }
.amz-card-item img { width: 100%; height: 100px; object-fit: contain; background: #f8f8f8; padding: 5px; margin-bottom: 5px; }
.amz-card-item span { font-size: 0.75rem; color: #333; }

.amz-card-full {
    flex: 1;
    cursor: pointer;
    margin-bottom: 15px;
    overflow: hidden;
}
.amz-card-full img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-card); }

.amz-btn-yellow {
    background: linear-gradient(to bottom, #d8e2f3, #0066c0);
    border: 1px solid #004b91; border-radius: 8px;
    padding: 10px 15px; font-size: 0.9rem; font-weight: 500;
    cursor: pointer; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset;
    transition: 0.2s;
}
.amz-btn-yellow:hover { background: linear-gradient(to bottom, #bbd1f1, #004b91); border-color: #003366; }

.amz-btn-primary {
    background: linear-gradient(to bottom, #fefefe, #f7f8fa);
    border: 1px solid #adb1b8; border-radius: 8px;
    padding: 10px 15px; font-size: 0.9rem; font-weight: 500;
    cursor: pointer; color: var(--text-main); box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
    transition: 0.2s;
}
.amz-btn-primary:hover { background: linear-gradient(to bottom, #f7f8fa, #e7e9ec); border-color: #a2a6ac; }

.btn-amz-cart {
    background: linear-gradient(to bottom, #00a8e1, #0066c0); border: 1px solid #004b91; border-radius: 20px;
    padding: 10px 16px; font-size: 0.95rem; font-weight: 500;
    cursor: pointer; color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-amz-cart:hover { background: linear-gradient(to bottom, #0096c7, #004b91); border-color: #003366; }

.hero {
    background: linear-gradient(180deg, #e3e6e6 0%, #e3e6e6 50%, rgba(227, 230, 230, 0) 100%) !important;
    min-height: 400px; padding: 40px 20px !important; margin-bottom: -150px !important;
}

.pub-logo {
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; color: var(--text-main) !important;
    min-width: fit-content;
}
.pub-logo span {
    font-family: 'Outfit', sans-serif;
    font-weight: 800; font-size: 1.35rem;
    letter-spacing: -0.5px; white-space: nowrap; color: var(--text-main) !important;
}
.pub-logo span span { color: var(--accent-stars) !important; font-weight: 500; margin-left: 2px; }

.logo-icon-sm {
    width: 36px; height: 36px; background: var(--accent);
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
}

/* -------------------------------------------
   LOGO VISIBILITY FIX (Amazon Dark Navbar)
   ------------------------------------------- */
#main-logo-home {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--text-header) !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#main-logo-home:hover {
    transform: scale(1.05);
}
#main-logo-home:hover .logo-icon-sm {
    box-shadow: 0 6px 15px rgba(0, 222, 255, 0.5);
}
#main-logo-home span {
    color: var(--text-header) !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    display: block !important;
    font-family: 'Outfit', sans-serif !important;
}
#main-logo-home span span {
    color: #00deff !important; /* Cyan Walker Accent */
    font-weight: 400 !important;
}
#main-logo-home .logo-icon-sm {
    background: #2563eb !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Section Profil de l'utilisateur dans la Sidebar */
.user-profile {
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.user-info {
    display: flex; align-items: center; gap: 0.8rem;
}

.user-avatar {
    width: 38px; height: 38px; background: var(--amz-yellow); color: var(--bg-dark);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.user-details { display: flex; flex-direction: column; }
.user-name { font-weight: 700; color: var(--text-main); font-size: 0.95rem; }
.user-role { font-size: 0.7rem; color: var(--amz-yellow); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }

/* Table SQL Mode — High Contrast pro console style */
.sql-table-res { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: #131921; color: #fff; border-radius: 8px; overflow: hidden; }
.sql-table-res th { background: #232f3e; color: #00deff; text-align: left; padding: 12px; position: sticky; top: 0; z-index: 10; border-bottom: 2px solid #37475a; font-weight: 700; }
.sql-table-res td { padding: 10px 12px; border-bottom: 1px solid #37475a; color: #e0e0e0; font-family: 'Fira Code', monospace; }
.sql-table-res tr:hover td { background: rgba(255,255,255,0.08); color: #fff; }
.sql-table-res em { color: #00a8e1; font-style: normal; }

.table-item-btn {
    width: 100%; text-align: left; padding: 10px 15px; background: none; border: none;
    color: var(--text-muted); cursor: pointer; transition: 0.2s; border-radius: 6px;
    display: flex; align-items: center; gap: 10px; font-size: 0.9rem;
}
.table-item-btn:hover { background: rgba(255,255,255,0.05); color: var(--amz-yellow); }
.table-item-btn.active { background: rgba(0,102,192,0.1); color: var(--amz-yellow); font-weight: bold; border-left: 3px solid var(--amz-yellow); border-radius: 0 6px 6px 0; }

/* ══════════════════════════════════════════
   DASHBOARD & KPI CARDS
   ══════════════════════════════════════════ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.kpi-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 15px -1px rgba(0,0,0,0.2);
}

.kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.kpi-value.green { color: var(--accent-success); }
.kpi-value.orange { color: var(--accent-promo); }
.kpi-value.red { color: var(--accent-danger); }

/* ══════════════════════════════════════════
   FORMS & INPUTS IMPROVEMENTS
   ══════════════════════════════════════════ */
.input-readonly {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: transparent !important;
    color: var(--text-dim) !important;
    cursor: not-allowed;
    font-weight: 600;
}

.form-saisie-container {
    max-width: 800px;
}

.saisie-summary {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-deep);
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent);
}

.saisie-summary-item {
    display: flex;
    flex-direction: column;
}

.saisie-summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.saisie-summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit';
}

/* Logout button in public header */
.btn-logout-sm {
    background: rgba(255,50,50,0.15);
    border: 1px solid rgba(255,50,50,0.3);
    color: #ff4d4d;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout-sm:hover {
    background: rgba(255,50,50,0.3);
    border-color: #ff4d4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,77,77,0.2);
}

/* -------------------------------------------
   DEZOOM SAISIE PAGE
   ------------------------------------------- */
#page-saisie { zoom: 0.85; }
#page-saisie .card { padding: 1.25rem !important; }
#page-saisie .input-group label { font-size: 0.7rem !important; margin-bottom: 2px !important; }
#page-saisie .input-group input, #page-saisie .input-group select { padding: 8px 12px !important; font-size: 0.85rem !important; }
#page-saisie .btn-primary, #page-saisie .btn-secondary { padding: 10px 15px !important; font-size: 0.9rem !important; }
#page-saisie .saisie-summary-value { font-size: 1.25rem !important; }
#page-saisie .form-grid { grid-gap: 15px !important; }
.form-saisie-container { max-width: 1000px !important; }
@media (max-width: 1200px) { #page-saisie { zoom: 1; } }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
