
:root {
    --brand-red: #e11b22;
    --brand-dark: #0f172a;
    --accent-blue: #0284c7;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --success: #16a34a;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--bg-light); color: var(--text-dark); line-height: 1.5; }

/* Top Announcement Bar */
.top-bar {
    background: var(--brand-dark); color: white; padding: 8px 5%; font-size: 0.8rem;
    display: flex; justify-content: space-between; align-items: center;
}

/* Havells Header */
.header {
    background: white; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100;
}

.logo { font-size: 1.3rem; font-weight: 700; color: var(--brand-red); display: flex; align-items: center; gap: 8px; text-transform: uppercase; cursor: pointer; }

.nav-links { display: flex; gap: 20px; align-items: center; list-style: none; font-size: 0.9rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--text-dark); transition: 0.2s; cursor: pointer; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-red); font-weight: 600; }

.btn-login {
    background: var(--brand-dark); color: white !important; padding: 8px 18px; border-radius: 20px;
    cursor: pointer; border: none; font-weight: 600; display: flex; align-items: center; gap: 6px; text-decoration: none;
}

.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; min-height: 70vh; }

.hero {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); color: white;
    padding: 50px; border-radius: 12px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center;
}
.hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }

.card { background: white; padding: 25px; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.card-header { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; color: var(--brand-dark); display: flex; align-items: center; justify-content: space-between; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
.stat-box { padding: 18px; border-radius: 10px; color: white; }
.bg-blue { background: #2563eb; }
.bg-green { background: #16a34a; }
.bg-purple { background: #7c3aed; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; margin-top: 15px; }
.prod-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 15px; text-align: center; background: white; }
.prod-card img { width: 100px; height: 100px; object-fit: contain; margin-bottom: 10px; }
.prod-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 5px; }
.prod-price { color: var(--brand-red); font-weight: 700; font-size: 1rem; margin-bottom: 10px; }

.input-box { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #cbd5e1; border-radius: 6px; outline: none; }
.btn-action { padding: 10px 15px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; color: white; }
.btn-red { background: var(--brand-red); }
.btn-green { background: var(--success); }
.btn-dark { background: var(--brand-dark); }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 0.85rem; }
th { background: #f1f5f9; color: var(--text-muted); }

.modal { display: none; position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.6); z-index: 2000; justify-content: center; align-items: center; }
.modal-body { background: white; padding: 25px; border-radius: 12px; width: 400px; position: relative; }
.close-btn { position: absolute; top: 15px; right: 15px; cursor: pointer; font-size: 1.2rem; }

.ai-widget { position: fixed; bottom: 20px; right: 20px; background: var(--brand-red); color: white; padding: 12px 20px; border-radius: 30px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); font-weight: 600; z-index: 999; }
.ai-chat-box { display: none; position: fixed; bottom: 75px; right: 20px; width: 320px; height: 380px; background: white; border-radius: 14px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); flex-direction: column; z-index: 999; border: 1px solid #e2e8f0; overflow: hidden; }
.chat-head { background: var(--brand-red); color: white; padding: 12px; font-weight: 600; display: flex; justify-content: space-between; }
.chat-messages { flex: 1; padding: 12px; overflow-y: auto; font-size: 0.85rem; }
.chat-input { display: flex; border-top: 1px solid #e2e8f0; }
.chat-input input { flex: 1; padding: 10px; border: none; outline: none; }
.chat-input button { padding: 10px 15px; background: var(--brand-red); color: white; border: none; cursor: pointer; }
