:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #78716c;
  --border: #e7e2da;
  --primary: #1c1917;
  --primary-hover: #292524;
  --accent: #9a3412;
  --green: #15803d;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.lang-pill {
  display: inline-flex; align-items: center; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; background: #fff; font-size: 12px; font-weight: 700;
}
.lang-pill a { padding: 6px 9px; color: var(--muted); transition: all 0.15s; }
.lang-pill a.active { background: var(--primary); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 16px; }

/* Announcement Bar */
.top-bar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 7px 12px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand-wrap { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  font-family: 'Inter', 'Hind Siliguri', sans-serif;
  font-size: 20px; font-weight: 800; letter-spacing: -0.5px; color: var(--primary);
  white-space: nowrap;
}
.brand-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--accent); }

.search-box {
  flex: 1; max-width: 340px;
  display: flex; align-items: center;
  background: #f3f4f6; border: 1px solid var(--border); border-radius: 999px;
  padding: 0 14px; height: 40px;
}
.search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--text); min-width: 0;
}
.search-box button {
  border: none; background: transparent; cursor: pointer; color: var(--muted); font-size: 15px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; font-size: 17px;
}
.icon-btn:hover { background: #f3f4f6; }
.menu-btn { display: none; }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 19px; height: 19px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* Hero Slider */
.hero-section { padding: 14px 0 6px; }
.hero-slider {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #111; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: auto; display: block; }
.hero-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 999px; border: none;
  background: rgba(255,255,255,0.45); cursor: pointer; transition: all 0.2s;
}
.hero-dot.active { width: 24px; background: #fff; }

/* Sections */
.section { padding: 34px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.section-title { font-size: 22px; font-weight: 700; color: var(--text); }
.view-all { font-size: 14px; font-weight: 600; color: var(--primary); border-bottom: 1.5px solid var(--primary); }

/* Categories Grid */
.cat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px; text-align: center; transition: transform 0.15s, box-shadow 0.15s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.cat-thumb {
  width: 100%; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden;
  background: #f3f4f6; margin-bottom: 8px;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-size: 14px; font-weight: 600; color: var(--text); }

/* Product Grid */
.prod-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.prod-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.prod-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.07); }
.prod-img-wrap {
  position: relative; width: 100%; aspect-ratio: 1/1; background: #f5f5f5; overflow: hidden;
}
.prod-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.prod-card:hover .prod-img-wrap img { transform: scale(1.04); }
.disc-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.prod-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.prod-title {
  font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; margin-top: auto; }
.price-now { font-size: 17px; font-weight: 800; color: var(--text); }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }

.card-btns { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.btn-order {
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  padding: 9px 10px; font-size: 14px; font-weight: 700; cursor: pointer;
  text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-order:hover { background: var(--primary-hover); }
.btn-cart-mini {
  width: 38px; border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.btn-cart-mini:hover { background: #f3f4f6; }

/* Trust Strip */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon {
  width: 42px; height: 42px; border-radius: 10px; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--primary); flex-shrink: 0;
}
.trust-item h4 { font-size: 14px; font-weight: 700; }
.trust-item p { font-size: 12px; color: var(--muted); }

/* Product Detail Page */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.pd-image {
  background: #f5f5f5; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; aspect-ratio: 1/1;
}
.pd-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 26px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.pd-price .price-now { font-size: 28px; }
.pd-price .price-old { font-size: 17px; }
.size-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.size-btn {
  min-width: 48px; height: 40px; border-radius: 8px; border: 1.5px solid var(--border);
  background: #fff; font-weight: 700; cursor: pointer; padding: 0 12px;
}
.size-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.qty-row { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.qty-row button { width: 38px; height: 40px; border: none; background: #f9fafb; font-size: 18px; cursor: pointer; }
.qty-row input { width: 46px; height: 40px; border: none; text-align: center; font-weight: 700; font-size: 15px; outline: none; }
.pd-actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.btn-big-order {
  background: var(--primary); color: #fff; border: none; border-radius: 10px;
  padding: 14px 20px; font-size: 17px; font-weight: 700; cursor: pointer; text-align: center;
}
.btn-big-cart {
  background: #fff; color: var(--primary); border: 1.5px solid var(--primary); border-radius: 10px;
  padding: 12px 20px; font-size: 16px; font-weight: 700; cursor: pointer; text-align: center;
}
.btn-big-wa {
  background: #16a34a; color: #fff; border: none; border-radius: 10px;
  padding: 12px 20px; font-size: 16px; font-weight: 700; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

/* Checkout & Forms */
.checkout-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.form-control {
  width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 15px; background: #fff; outline: none;
}
.form-control:focus { border-color: var(--primary); }
textarea.form-control { height: auto; padding: 10px 12px; }
.alert-err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }

/* Shop Filter Bar */
.shop-filters {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px;
}
.shop-filters .form-control { width: auto; height: 40px; font-size: 14px; }

/* Drawers (Mobile Menu + Cart) */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 998;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; width: 90%; max-width: 360px; background: #fff; z-index: 999;
  display: flex; flex-direction: column; transition: transform 0.25s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.drawer-left { left: 0; transform: translateX(-105%); }
.drawer-right { right: 0; transform: translateX(105%); }
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 17px;
}
.drawer-close {
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: 18px; cursor: pointer;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.drawer-foot { padding: 16px; border-top: 1px solid var(--border); background: #f9fafb; }
.mobile-nav-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-list a {
  display: block; padding: 11px 12px; border-radius: 8px; font-weight: 600; font-size: 15px;
}
.mobile-nav-list a:hover { background: #f3f4f6; }

/* Footer */
.site-footer {
  background: #111318; color: #cbd5e1; padding: 44px 0 24px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.site-footer h3 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px;
}
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  background: #25D366; color: #fff; border-radius: 999px;
  padding: 11px 18px; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

/* Toast */
.toast-msg {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #111; color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 1200; opacity: 0; transition: all 0.25s;
}
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 960px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-grid, .checkout-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .search-box { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { height: 56px; }
  .section { padding: 24px 0; }
  .section-title { font-size: 19px; }
  .prod-body { padding: 10px; }
  .prod-title { font-size: 14px; }
  .price-now { font-size: 15px; }
  .btn-order { font-size: 13px; padding: 8px 6px; }
}
