@font-face {
  font-family: "Kalpurush";
  src: url("fonts/Kalpurush.woff2") format("woff2"),
       url("fonts/Kalpurush.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --brand: #0B4F4A;
  --brand-dark: #083B37;
  --brand-light: #E6F2F0;
  --accent: #C9A227;
  --text: #1c2b29;
  --muted: #5b6f6b;
  --border: #dce8e5;
  --bg: #f7faf9;
  --card: #ffffff;
  --danger: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Kalpurush", "Hind Siliguri", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 20px; }
.brand-text small { opacity: .85; font-size: 12px; }
.main-nav { display: flex; gap: 18px; }
.main-nav a { color: #fff; font-weight: 500; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: 16px; padding: 40px 28px; margin: 24px 0;
}
.hero h1 { margin: 0 0 10px; font-size: 30px; }
.hero p { margin: 0 0 20px; opacity: .92; max-width: 640px; }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600;
}
.btn-whatsapp { background: #25D366; color: #083B37; }
.btn-whatsapp:hover { text-decoration: none; filter: brightness(1.05); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { padding: 6px 14px; font-size: 14px; }

/* Sections & cards */
.section-title { font-size: 24px; margin: 28px 0 6px; color: var(--brand-dark); }
.section-sub { color: var(--muted); margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 32px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card img.cover { width: 100%; height: 180px; object-fit: cover; object-position: top; background: var(--brand-light); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 19px; color: var(--brand-dark); }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card .card-actions { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #fdf3d7; color: #7a5c00; border: 1px solid #ecd27a;
}
.badge-live { background: var(--brand-light); color: var(--brand-dark); border-color: var(--border); }

/* Product detail */
.detail-hero { margin: 24px 0 8px; }
.detail-hero h1 { margin: 0 0 6px; font-size: 28px; color: var(--brand-dark); }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin: 18px 0 32px; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.panel h2 { margin-top: 0; font-size: 20px; color: var(--brand-dark); }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--border); }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 700; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 14px 0 32px; }
.shots img { width: 100%; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.cta-box { background: var(--brand-light); border-radius: 14px; padding: 20px; text-align: center; }
.cta-box p { margin: 0 0 14px; }

/* Footer */
.site-footer { background: var(--brand-dark); color: #dcebe8; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #fff; }
.footer-bottom { padding-bottom: 20px; font-size: 14px; opacity: .8; }

.loading { text-align: center; padding: 60px 0; color: var(--muted); }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* Admin */
.admin-wrap { max-width: 920px; margin: 24px auto 48px; padding: 0 16px; }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.admin-card h2 { margin-top: 0; color: var(--brand-dark); }
label { display: block; font-weight: 600; margin: 14px 0 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 15px; background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); margin-top: 3px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1; }
.row .btn { flex: 0 0 auto; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--brand-dark); color: #fff; padding: 10px 22px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); display: none; z-index: 50;
}
.toast.show { display: block; }
.error-text { color: var(--danger); }
