/* Garg Electro Mart - Blue & Green Theme */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --secondary: #2e7d32;
  --accent: #ffd600;
  --bg: #f5f7fa;
  --text: #1a237e;
  --text-muted: #546e7a;
  --border: #e3f2fd;
  --success: #2e7d32;
  --danger: #c62828;
  --shadow: 0 4px 20px rgba(21,101,192,0.1);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* TOPBAR */
.topbar { background: #0d47a1; color: #bbdefb; font-size: 13px; padding: 7px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px; }
.topbar a { color: #ffd600; font-weight: 700; }

/* HEADER */
.header { background: #fff; padding: 12px 0; box-shadow: 0 3px 15px rgba(21,101,192,0.12); position: sticky; top: 0; z-index: 100; border-bottom: 3px solid var(--primary); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.logo { display: flex; flex-direction: column; }
.logo-main { font-family: 'Rajdhani', sans-serif; font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1; letter-spacing: 1px; }
.logo-main span { color: var(--secondary); }
.logo-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }

.main-nav { display: flex; gap: 25px; }
.main-nav a { font-weight: 700; font-size: 15px; color: var(--text); transition: color .2s; }
.main-nav a:hover { color: var(--primary); }

.btn-whatsapp { background: #25d366; color: #fff; padding: 10px 18px; border-radius: 25px; font-weight: 700; font-size: 14px; transition: all .2s; }
.btn-whatsapp:hover { background: #1da851; transform: scale(1.05); }

/* HERO */
.hero { background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1b5e20 100%); color: #fff; padding: 80px 20px 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,214,0,0.05) 0%, transparent 60%); }
.hero-badge { background: var(--secondary); color: #fff; display: inline-block; padding: 6px 20px; border-radius: 25px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.hero h1 { font-family: 'Rajdhani', sans-serif; font-size: clamp(42px, 7vw, 80px); font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 17px; color: #bbdefb; max-width: 600px; margin: 0 auto 30px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-brands { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 45px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-brands span { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 13px; font-weight: 700; }

/* BUTTONS */
.btn-primary { background: var(--primary); color: #fff; padding: 12px 28px; border-radius: 30px; font-weight: 800; font-size: 15px; border: none; cursor: pointer; transition: all .2s; display: inline-block; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21,101,192,0.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); padding: 12px 28px; border-radius: 30px; font-weight: 800; font-size: 15px; cursor: pointer; transition: all .2s; display: inline-block; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-green { background: var(--secondary); color: #fff; padding: 12px 28px; border-radius: 30px; font-weight: 800; font-size: 15px; border: none; cursor: pointer; transition: all .2s; display: inline-block; }
.btn-green:hover { background: #1b5e20; transform: translateY(-2px); }

/* SECTION */
.section { padding: 60px 0; }
.section-title { font-family: 'Rajdhani', sans-serif; font-size: 38px; font-weight: 700; color: var(--primary); margin-bottom: 35px; letter-spacing: 1px; }
.section-title.light { color: #fff; }
.bg-light { background: #fff; }
.bg-blue { background: linear-gradient(135deg, #0d47a1, #1565c0); }
.bg-green { background: linear-gradient(135deg, #1b5e20, #2e7d32); }

/* CATEGORY */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; }
.cat-card { background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 20px 10px; text-align: center; transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-icon { font-size: 36px; }
.cat-card span { font-weight: 700; font-size: 13px; color: var(--text); }
.cat-card small { color: var(--text-muted); font-size: 11px; }

/* PRODUCTS */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; position: relative; border-top: 3px solid var(--primary); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(21,101,192,0.15); }
.discount-badge { position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; z-index: 1; }
.featured-tag { position: absolute; top: 10px; right: 10px; background: var(--accent); color: #1a237e; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; z-index: 1; }
.product-img { height: 200px; overflow: hidden; background: #f5f7fa; display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .3s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-info { padding: 15px; }
.product-brand { font-size: 12px; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 4px; }
.product-brand:hover { text-decoration: underline; }
.product-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-cat { font-size: 11px; color: var(--text-muted); background: #e3f2fd; padding: 2px 8px; border-radius: 10px; }
.product-price { margin: 10px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.offer-price { font-size: 20px; font-weight: 800; color: var(--primary); }
.mrp { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.product-btns { display: flex; gap: 8px; margin-top: 10px; }
.btn-inquiry { flex: 1; background: var(--primary); color: #fff; border: none; padding: 10px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; transition: all .2s; font-family: 'Nunito', sans-serif; }
.btn-inquiry:hover { background: var(--primary-dark); }
.btn-wa { background: #25d366; color: #fff; border: none; padding: 10px 14px; border-radius: 8px; font-size: 16px; cursor: pointer; text-decoration: none; display: flex; align-items: center; transition: all .2s; }
.btn-wa:hover { background: #1da851; }

/* WHY US */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; }
.why-card { text-align: center; color: #fff; }
.why-icon { font-size: 48px; margin-bottom: 12px; }
.why-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--accent); }
.why-card p { font-size: 14px; color: #bbdefb; }

/* STORE INFO */
.store-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; border-left: 5px solid var(--primary); }
.store-info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 15px; }
.store-info-row .icon { font-size: 20px; flex-shrink: 0; }
.store-info-row a { color: var(--primary); font-weight: 700; }

/* FOOTER */
.footer { background: #0d1b3e; color: #90a4ae; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-logo { font-family: 'Rajdhani', sans-serif; font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer p { font-size: 13px; line-height: 1.7; margin-bottom: 8px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer a { display: block; font-size: 13px; margin-bottom: 7px; color: #90a4ae; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #1e3a5f; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #fff; border-radius: 16px; padding: 35px; max-width: 420px; width: 100%; position: relative; border-top: 5px solid var(--primary); }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 22px; cursor: pointer; color: #999; }
.modal-box h3 { font-family: 'Rajdhani', sans-serif; font-size: 28px; color: var(--primary); margin-bottom: 5px; }
.form-input { width: 100%; border: 2px solid #e3f2fd; border-radius: 8px; padding: 12px 15px; font-size: 15px; font-family: 'Nunito', sans-serif; margin-bottom: 12px; transition: border .2s; }
.form-input:focus { outline: none; border-color: var(--primary); }

/* TOAST */
.toast { position: fixed; bottom: 30px; right: 30px; padding: 16px 25px; border-radius: 10px; font-weight: 700; font-size: 15px; z-index: 9999; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.toast.success { background: var(--success); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }

/* FILTER BAR */
.filter-bar { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar input { border: 2px solid #e3f2fd; border-radius: 8px; padding: 9px 14px; font-size: 14px; font-family: 'Nunito', sans-serif; }
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--primary); }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, #0d47a1, #1b5e20); color: #fff; padding: 50px 20px; text-align: center; }
.page-hero h1 { font-family: 'Rajdhani', sans-serif; font-size: 52px; font-weight: 700; }
.page-hero p { color: #bbdefb; margin-top: 10px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form input, .contact-form textarea { width: 100%; border: 2px solid #e3f2fd; border-radius: 8px; padding: 12px 15px; font-size: 15px; font-family: 'Nunito', sans-serif; margin-bottom: 15px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { height: 120px; resize: vertical; }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
