:root {
  --bg: #f5f7fa;
  --white: #ffffff;
  --ink: #222222;
  --muted: #6b7280;
  --line: #e5eaf0;
  --red: #ff4d4d;
  --red-deep: #e53935;
  --green: #2e7d32;
  --green-btn: #43a047;
  --navy: #0a2540;
  --teal: #3d9ead;
  --form-btn: #4a69bd;
  --whatsapp: #25d366;
  --gold: #f0c14b;
  --blue: #163a8c;
  --blue-2: #1f4fc0;
  --cyan: #2ec8f0;
  --shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
  --radius: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  padding-bottom: 24px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* Header — white, old-site layout */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  padding: 10px 0 14px;
}
.brand {
  display: flex;
  align-items: center;
  background: #000;
  padding: 6px 10px;
  border-radius: 8px;
  flex-shrink: 1;
  min-width: 0;
}
.brand-logo {
  height: 52px;
  width: auto;
  max-width: min(280px, 48vw);
  object-fit: contain;
  display: block;
}
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav a {
  color: #111;
  font-size: 15px;
  font-weight: 500;
  padding: 2px 0;
}
.nav a:hover, .nav a.active { color: var(--red-deep); }
.query-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #111;
  border: 1px solid #111;
  border-radius: 2px;
  padding: 6px 14px 6px 12px;
  min-height: 48px;
}
.query-label {
  color: #e55b5b;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.query-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111;
}
.query-phone small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
}
.query-phone b {
  display: block;
  font-size: 13px;
  line-height: 1.15;
}
.header-rule {
  height: 6px;
  background: var(--red);
}
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid #ddd;
  color: #111;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 14px;
  transition: .15s background, .15s transform;
}
.btn:hover { transform: translateY(-1px); }
.btn-cyan { background: var(--cyan); color: #04121c; }
.btn-blue { background: var(--form-btn); color: #fff; }
.btn-red { background: var(--red-deep); color: #fff; }
.btn-confirm { background: var(--form-btn); color: #fff; font-size: 16px; padding: 12px 18px; border-radius: 4px; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.btn-outline {
  background: #fff;
  color: var(--blue);
  border: 1px solid #c9d7ee;
}
.btn-wa { background: var(--whatsapp); color: #053b1a; }

/* Diwali banner */
.diwali-hero { padding: 18px 0 8px; background: #fff; }
.diwali-banner-box {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 16px;
  border: 3px solid #c62828;
  background:
    radial-gradient(circle at 78% 50%, rgba(255, 193, 7, .35), transparent 28%),
    linear-gradient(90deg, #8b1010 0%, #c62828 35%, #b71c1c 70%, #7f1010 100%);
  display: grid;
  grid-template-columns: 1fr 1.2fr .9fr;
  align-items: center;
  padding: 18px 28px;
}
.burst-left {
  width: 220px;
  height: 220px;
  justify-self: center;
  background:
    radial-gradient(circle at 50% 50%, #fff59d 0 7px, transparent 8px),
    conic-gradient(from 0deg, #ffeb3b, #ff5252, #40c4ff, #69f0ae, #ffab40, #ea80fc, #ffeb3b);
  mask: repeating-conic-gradient(#000 0 8deg, transparent 8deg 22deg);
  -webkit-mask: repeating-conic-gradient(#000 0 8deg, transparent 8deg 22deg);
  filter: drop-shadow(0 0 12px rgba(255,235,59,.5));
  border-radius: 50%;
  opacity: .95;
}
.diwali-copy { text-align: center; z-index: 1; }
.diwali-copy .happy {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: clamp(42px, 6vw, 72px);
  color: #b3e5fc;
  line-height: 1;
  text-shadow: 0 2px 0 #0d47a1;
}
.diwali-copy .diwali-word {
  display: block;
  font-weight: 800;
  font-size: clamp(52px, 8vw, 92px);
  letter-spacing: .02em;
  color: #ff1744;
  line-height: 1;
  -webkit-text-stroke: 2px #fff8e1;
  text-shadow: 0 0 18px rgba(255, 236, 179, .9), 0 4px 0 #7f0000;
}
.diya-wrap {
  position: relative;
  height: 220px;
  display: grid;
  place-items: center;
}
.mandala {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,213,79,.55) 0 6deg, transparent 6deg 18deg),
    radial-gradient(circle, rgba(255,160,0,.4), transparent 70%);
}
.diya {
  position: absolute;
  width: 110px;
  height: 70px;
  background: radial-gradient(ellipse at 50% 30%, #ffe082, #ff8f00 55%, #ef6c00);
  border-radius: 0 0 70px 70px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.diya::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -28px;
  width: 16px;
  height: 36px;
  margin-left: -8px;
  background: radial-gradient(circle at 50% 20%, #fffde7, #ff6f00);
  border-radius: 50% 50% 40% 40%;
}

/* Category tiles */
.cats-section { padding: 8px 0 48px; background: #fff; }
.cat-bar {
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 10px 16px;
  margin: 22px 0 14px;
  position: relative;
  border-radius: 2px;
}
.cat-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 84px;
  height: 4px;
  background: #1b5e20;
}
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-tile {
  min-height: 150px;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .15s ease;
}
.cat-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.cat-tile span { position: relative; z-index: 1; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-a { background: radial-gradient(circle at 30% 30%, #ffeb3b 0, transparent 28%), radial-gradient(circle at 70% 40%, #ff5252 0, transparent 32%), linear-gradient(160deg, #1a0533, #4a148c); }
.cat-b { background: radial-gradient(circle at 40% 20%, #fff59d 0, transparent 24%), radial-gradient(circle at 80% 70%, #ffd54f 0, transparent 30%), linear-gradient(160deg, #0d1b2a, #1b4f72); }
.cat-c { background: radial-gradient(circle at 60% 30%, #82b1ff 0, transparent 28%), radial-gradient(circle at 20% 70%, #ea80fc 0, transparent 26%), linear-gradient(160deg, #12051f, #4a148c 70%, #880e4f); }
.cat-d { background: radial-gradient(circle at 50% 40%, #ffab40 0, transparent 30%), radial-gradient(circle at 20% 20%, #ff8a80 0, transparent 22%), linear-gradient(160deg, #3e1f00, #bf360c); }
.cat-e { background: radial-gradient(circle at 70% 25%, #69f0ae 0, transparent 26%), radial-gradient(circle at 30% 60%, #40c4ff 0, transparent 28%), linear-gradient(160deg, #012a1a, #004d40); }
.cat-f { background: radial-gradient(circle at 25% 35%, #ff8a80 0, transparent 28%), radial-gradient(circle at 75% 55%, #ffe082 0, transparent 24%), linear-gradient(160deg, #3e0000, #b71c1c); }
.cat-g { background: radial-gradient(circle at 50% 20%, #ce93d8 0, transparent 30%), radial-gradient(circle at 80% 80%, #80d8ff 0, transparent 26%), linear-gradient(160deg, #1a237e, #311b92); }
.cat-h { background: radial-gradient(circle at 35% 45%, #fff 0, transparent 18%), radial-gradient(circle at 65% 30%, #ff5252 0, transparent 28%), linear-gradient(160deg, #0b1020, #1565c0); }

.section { padding: 48px 0; }
.section-h {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.eyebrow { color: var(--red-deep); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.section-h h2, .page-head h1 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 36px);
}
.page-head {
  background: var(--red);
  color: #fff;
  padding: 28px 0;
}
.page-head p { color: #ffebee; margin: 8px 0 0; }
.page-head .eyebrow { color: #c8e6c9; }

.grid-4, .grid-3, .grid-2 {
  display: grid;
  gap: 18px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card h3 { margin-top: 0; }

.legal-strip {
  background: #fff8e1;
  color: #5d4037;
  padding: 16px 0;
  font-size: 13px;
  border-top: 1px solid #ffe0b2;
}
.legal-strip strong { color: #b71c1c; }

.site-footer {
  background: #1a1a1a;
  color: #c5d3e6;
  padding: 48px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
}
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { color: #ffcdd2; }
.brand-footer {
  margin-bottom: 12px;
  display: inline-flex;
  background: #000;
  padding: 6px 10px;
  border-radius: 8px;
}
.brand-footer .brand-logo { height: 44px; max-width: 240px; }
.copy {
  border-top: 1px solid #333;
  margin-top: 28px;
  padding-top: 16px;
  font-size: 12px;
  color: #8a97ab;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.price-list-badge {
  position: fixed;
  left: 16px;
  bottom: 22px;
  z-index: 60;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8e1, #ffe082 40%, #ff8a80);
  color: var(--red-deep);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .04em;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  border: 3px dashed #ef6c00;
}

/* Catalog */
.catalog-page { padding: 18px 0 48px; }
.estimate-tools { margin: 4px 0 16px; }
.estimate-tools input {
  width: 100%;
  border: 1px solid #d5dde6;
  border-radius: 4px;
  padding: 12px 14px;
  background: #fff;
  font-size: 16px;
}
.catalog-loading, .catalog-empty { color: var(--muted); padding: 24px 0; }
.cat-block { margin-bottom: 8px; scroll-margin-top: 110px; }
.cat-block .cat-bar { margin-top: 18px; }
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.prod-card {
  background: #fff;
  border: 1px solid #e8eef4;
  border-bottom: 3px solid var(--red);
  border-radius: 6px;
  padding: 12px 14px 10px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.prod-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.prod-top img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  background: #eceff1;
  flex-shrink: 0;
}
.prod-top h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.price {
  margin: 0;
  font-size: 13px;
  color: #333;
}
.price s { color: var(--red-deep); text-decoration: line-through; }
.price .offer { color: var(--green); font-weight: 700; }
.prod-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--green-btn);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  display: grid;
  place-items: center;
  padding: 0;
}
.step-btn:hover { background: var(--green); }
.step-qty {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}
.line-total {
  font-weight: 600;
  font-size: 15px;
  color: #222;
  margin-left: auto;
}
.oos {
  color: var(--red-deep);
  font-weight: 700;
  font-size: 13px;
}
.estimate-bottom {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}
.form-note { font-size: 12px; color: var(--muted); }
.form label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: 13px; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid #d5dde6;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
}
.form textarea { min-height: 90px; resize: vertical; }
.form-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 14px;
  align-items: center;
}
.form-grid label { font-weight: 600; font-size: 13px; margin: 0; }
.form-grid textarea { min-height: 72px; }
.totals { background: #fff; color: #222; padding: 8px 0 12px; }
.totals div {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
}
.totals .grand { font-size: 18px; color: var(--green); font-weight: 800; border-top: 2px solid var(--red); }
.totals .warn { padding: 0 18px; color: var(--red-deep); }
.form-error {
  background: #ffe8ea;
  color: #9f1230;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
  margin-bottom: 10px;
}
.form-error.show { display: block; }
.warn { color: var(--red-deep); font-size: 13px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 22px;
}
.table-wrap { overflow: auto; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.plist { width: 100%; border-collapse: collapse; min-width: 640px; }
.plist th {
  background: var(--red);
  color: #fff;
  text-align: left;
  padding: 12px;
  font-size: 13px;
}
.plist td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.qty {
  width: 78px;
  border: 1px solid #cfdcea;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 16px;
}
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; }
.map { min-height: 320px; border: 0; width: 100%; border-radius: 12px; }

.notice {
  background: #fff1f2;
  border-left: 3px solid var(--red-deep);
  padding: 12px 14px;
  border-radius: 8px;
  color: #7f1d1d;
  font-size: 13px;
}

/* Admin */
.admin-body { background: #eef2f7; }
.admin-top {
  background: #111;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand-logo-admin {
  height: 40px;
  max-width: 200px;
}
.admin-wrap { width: min(1200px, calc(100% - 28px)); margin: 24px auto 48px; }
.login-box { max-width: 420px; margin: 10vh auto; }
.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.status.new { background: #ffe8ea; color: #b91c1c; }
.status.contacted { background: #fef3c7; color: #92400e; }
.status.confirmed { background: #dbeafe; color: #1e40af; }
.status.packed { background: #ede9fe; color: #5b21b6; }
.status.dispatched { background: #dcfce7; color: #166534; }
.status.closed { background: #e5e7eb; color: #374151; }

@media (max-width: 980px) {
  .cart-layout, .contact-grid, .footer-grid, .estimate-bottom { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
    gap: 8px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
  .header-right { flex-direction: row; align-items: center; }
  .query-label { display: none; }
  .form-grid { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 640px) {
  .cats, .grid-4, .grid-3, .prod-grid { grid-template-columns: 1fr; }
  .diwali-banner-box { grid-template-columns: 1fr; min-height: 220px; padding: 24px 16px; }
  .burst-left { width: 140px; height: 140px; }
  .diya-wrap { height: 140px; }
  .mandala { width: 140px; height: 140px; }
  .section { padding: 32px 0; }
  .brand-logo { height: 40px; max-width: 42vw; }
  .price-list-badge { width: 64px; height: 64px; font-size: 9px; left: 10px; bottom: 18px; }
  .wa-fab { right: 10px; bottom: 18px; }
  .plist { min-width: 0; }
  .table-wrap { background: transparent; box-shadow: none; }
  .plist, .plist tbody, .plist tr, .plist td { display: block; width: 100%; }
  .plist thead { display: none; }
  .plist tr { background: #fff; margin: 0 0 12px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
  .plist td { display: flex; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid var(--line); }
  .plist td::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
}

@media print {
  .site-header, .header-rule, .wa-fab, .price-list-badge, .admin-top .btn, .no-print { display: none !important; }
  body { background: #fff; }
}
