/* ============================================================
   Esecbiz India — Global Stylesheet v3 (Compliance Edition)
   ============================================================ */

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

:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --primary-light: #3b82f6;
  --secondary:     #0f172a;
  --accent:        #06b6d4;
  --bg:            #f1f5f9;
  --bg2:           #e8f0fe;
  --card:          #ffffff;
  --text:          #1e293b;
  --text-light:    #64748b;
  --border:        #e2e8f0;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.14);
  --radius:        12px;
  --radius-lg:     18px;
}

html { height: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Container ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ─────────────────────────────────────────── */
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: .5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2.8rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  background: linear-gradient(110deg, var(--secondary) 0%, #1e3a8a 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  gap: 1rem;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
}
.logo i { color: var(--accent); font-size: 1.4rem; }
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: .15rem;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: 8px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.nav-links .nav-cta a {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: .45rem 1rem;
}
.nav-links .nav-cta a:hover { background: #0891b2; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: .5rem;
  min-width: 44px; min-height: 44px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0e7490 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(6,182,212,.18);
  border: 1px solid rgba(6,182,212,.4);
  color: #67e8f9;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -.3px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.7rem;
  border: none;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .22s ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,.38); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-secondary { background: var(--bg); color: var(--primary); border: 2px solid var(--border); }
.btn-secondary:hover { background: var(--bg2); border-color: var(--primary); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #0284c7); color: #fff; box-shadow: 0 4px 14px rgba(6,182,212,.3); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(6,182,212,.4); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; min-height: 36px; }
.btn-block { width: 100%; }

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: 4rem 0; }
.section-white { background: #fff; }
.section-dark { background: var(--secondary); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: #94a3b8; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.category-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, linear-gradient(90deg, var(--primary), var(--accent)));
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #bfdbfe; }
.category-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.1rem;
}
.category-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .45rem; color: var(--secondary); }
.category-card p { color: var(--text-light); font-size: .88rem; margin-bottom: 1.4rem; line-height: 1.6; }

/* ============================================================
   PRODUCT CATALOG
   ============================================================ */
.filter-bar {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .45rem 1.1rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--card);
  color: var(--text-light);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.25); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #bfdbfe; }
.product-card-img {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  padding: 1.8rem;
  text-align: center;
  font-size: 3.5rem;
  line-height: 1;
  position: relative;
}
.product-badge {
  position: absolute;
  top: .7rem; right: .7rem;
  font-size: .68rem;
  font-weight: 700;
  padding: .22rem .65rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.badge-ais140 { background: #d1fae5; color: #065f46; }
.badge-new    { background: #fef3c7; color: #92400e; }
.badge-popular{ background: #ede9fe; color: #4c1d95; }
.badge-fleet  { background: #dbeafe; color: #1e40af; }

.product-card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--primary); margin-bottom: .2rem; }
.product-title { font-size: 1.05rem; font-weight: 700; color: var(--secondary); margin-bottom: .55rem; line-height: 1.3; }
.product-desc { font-size: .83rem; color: var(--text-light); margin-bottom: .9rem; line-height: 1.55; flex: 1; }
.product-warranty { font-size: .75rem; color: var(--text-light); margin-bottom: .9rem; display: flex; align-items: center; gap: .35rem; }
.product-warranty i { color: var(--success); }

.spec-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .9rem; }
.spec-chip { font-size: .7rem; font-weight: 600; padding: .2rem .6rem; border-radius: 6px; background: var(--bg); color: var(--text-light); border: 1px solid var(--border); }
.spec-chip.chip-blue  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.spec-chip.chip-green { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.spec-chip.chip-purple{ background: #faf5ff; color: #6b21a8; border-color: #e9d5ff; }
.spec-chip.chip-orange{ background: #fff7ed; color: #9a3412; border-color: #fed7aa; }

.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; border-top: 1px solid var(--border); margin-top: auto; gap: .5rem; }
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.product-price-note { font-size: .72rem; color: var(--text-light); font-weight: 400; display: block; }

/* ============================================================
   FEATURES / WHY US
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
}
.feature-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
  text-align: center;
  transition: background .2s;
}
.feature-card:hover { background: rgba(255,255,255,.1); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto .9rem;
  background: rgba(6,182,212,.15);
}
.feature-card h3 { font-size: .95rem; font-weight: 700; color: #f1f5f9; margin-bottom: .35rem; }
.feature-card p { font-size: .82rem; color: #94a3b8; line-height: 1.55; }

/* ============================================================
   FORM
   ============================================================ */
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .88rem; color: var(--secondary); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
  background: var(--card);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563eb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
  -webkit-appearance: none;
}
.form-group small { display: block; margin-top: .3rem; font-size: .78rem; color: var(--text-light); }
.form-check { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: 1.3rem; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: .15rem; accent-color: var(--primary); cursor: pointer; }
.form-check label { font-size: .88rem; color: var(--text); cursor: pointer; line-height: 1.5; }
.form-check a { color: var(--primary); }

/* Order Summary Box */
.order-summary-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.3rem;
}
.order-summary-box h4 { font-size: .9rem; font-weight: 700; color: var(--secondary); margin-bottom: .9rem; display: flex; align-items: center; gap: .4rem; }
.order-row { display: flex; justify-content: space-between; font-size: .88rem; padding: .3rem 0; }
.order-row.total-row { font-weight: 800; font-size: 1.1rem; color: var(--primary); border-top: 2px solid var(--border); padding-top: .6rem; margin-top: .3rem; }

/* ============================================================
   ALERT
   ============================================================ */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info     { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ============================================================
   POLICY PAGES
   ============================================================ */
.policy-section { padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.policy-section h4 { display: flex; align-items: center; gap: .7rem; font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: .7rem; }
.policy-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 800; flex-shrink: 0; }
.policy-list { list-style: none; margin-top: .4rem; display: flex; flex-direction: column; gap: .4rem; }
.policy-list li { padding-left: 1.3rem; position: relative; font-size: .92rem; color: var(--text); }
.policy-list li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.info-box { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: .9rem 1.1rem; margin-top: .65rem; font-size: .88rem; line-height: 1.8; color: var(--text); }
.info-box a { color: var(--primary); }

/* ============================================================
   CHECKOUT STEPS
   ============================================================ */
.checkout-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 2.5rem; }
.checkout-step { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--border); color: var(--text-light); font-weight: 800; font-size: .82rem; display: flex; align-items: center; justify-content: center; }
.checkout-step.active .step-num { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.checkout-step.done .step-num { background: var(--success); color: #fff; }
.step-label { font-size: .68rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.checkout-step.active .step-label { color: var(--primary); }
.checkout-step.done .step-label { color: var(--success); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 .5rem 1.2rem; max-width: 80px; }
.step-line.done { background: var(--success); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { margin-bottom: .9rem; }
.footer-brand p { font-size: .85rem; line-height: 1.7; color: #94a3b8; }
.footer-legal { margin-top: .7rem; font-size: .75rem; color: #64748b; line-height: 1.8; }
.footer-col h4 { font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; font-size: .83rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.3rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
  font-size: .78rem; color: #64748b;
}
.footer-bottom a { color: var(--accent); text-decoration: none; }

/* Secure payment note */
.secure-pay-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .8rem;
  color: #166534;
  margin-top: .8rem;
}
.secure-pay-note i { color: #059669; flex-shrink: 0; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { padding: .9rem 0; margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; font-size: .82rem; color: var(--text-light); }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 .2rem; }

/* ============================================================
   TABLE
   ============================================================ */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; border-radius: var(--radius); overflow: hidden; }
th, td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .88rem; }
th { background: var(--secondary); color: #fff; font-weight: 600; }
tr:hover td { background: var(--bg); }

/* ============================================================
   MOBILE NAV
   ============================================================ */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: block; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #0f172a;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 199;
    gap: .2rem;
  }
  .nav-links.active a { display: block; padding: .85rem 1rem; border-radius: 8px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .section { padding: 2.8rem 0; }
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .products-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: .35rem; }
  .filter-btn { padding: .35rem .8rem; font-size: .78rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .card { padding: 1.3rem; }
  #alertContainer { position: fixed; top: 64px; left: 0; right: 0; z-index: 198; padding: 0 1rem; }
}
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
}
@media (min-width: 576px) and (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Focus accessibility */
input:focus, select:focus, textarea:focus, button:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
