@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --green: #2d7a3a;
  --green-light: #e8f5eb;
  --green-dark: #1a5226;
  --orange: #e8640a;
  --orange-light: #fff3eb;
  --text: #1c1c1c;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.14);
}

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

body {
  font-family: 'Hind Siliguri', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── TOP BAR ── */
.topbar {
  background: var(--green-dark);
  color: #b7f0c0;
  font-size: 13px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.3px;
}

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-text-bn {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  line-height: 1;
}

.search-bar {
  flex: 1;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.search-bar:focus-within { border-color: var(--green); }

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
}

.search-bar button {
  background: var(--green);
  border: none;
  color: white;
  padding: 0 20px;
  font-size: 16px;
  transition: background 0.2s;
}

.search-bar button:hover { background: var(--green-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn-cart {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: background 0.2s, transform 0.15s;
}

.btn-cart:hover { background: var(--green-dark); transform: translateY(-1px); }

.cart-count {
  background: var(--orange);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── NAV CATEGORIES ── */
.category-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.category-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar { display: none; }

.cat-btn {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.cat-btn:hover { color: var(--green); }
.cat-btn.active { color: var(--green); border-bottom-color: var(--green); }

/* ── HERO BANNER ── */
.hero {
  background: linear-gradient(135deg, #1a5226 0%, #2d7a3a 60%, #3d9b4a 100%);
  padding: 60px 20px;
  text-align: center;
  color: white;
  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.04'%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");
}

.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-bn {
  font-size: 20px;
  opacity: 0.85;
  margin-bottom: 16px;
  font-weight: 300;
}

.hero p {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 28px;
}

.hero-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
}

/* ── SECTION ── */
.section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.section-title-bn {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
}

.see-all {
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.see-all:hover { background: var(--green-light); }

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 1;
}

.product-badge.fresh { background: var(--green); }

.product-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg);
}

.product-img-placeholder {
  width: 100%;
  height: 160px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.product-info { padding: 12px; }

.product-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 2px;
}

.product-name-bn {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-weight {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
}

.price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.btn-add:hover { background: var(--green-dark); transform: scale(1.05); }
.btn-add.added { background: var(--orange); }

/* ── FEATURES ── */
.features-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  font-size: 28px;
  width: 50px;
  height: 50px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title { font-weight: 600; font-size: 14px; }
.feature-sub { font-size: 12px; color: var(--text-muted); }

/* ── CART MODAL ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  backdrop-filter: blur(2px);
}

.overlay.open { display: flex; align-items: flex-start; justify-content: flex-end; }

.cart-panel {
  background: var(--white);
  width: 100%;
  max-width: 440px;
  height: 100vh;
  overflow-y: auto;
  padding: 24px;
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cart-header h2 { font-size: 20px; font-weight: 700; }

.btn-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-close:hover { background: var(--bg); }

.cart-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; }
.cart-item-price { font-size: 13px; color: var(--green); font-weight: 600; }

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  color: var(--green);
}

.qty-btn:hover { background: var(--green-light); }
.qty-num { font-weight: 700; min-width: 20px; text-align: center; }

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty-icon { font-size: 64px; margin-bottom: 16px; }

.cart-summary {
  border-top: 2px dashed var(--border);
  padding-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.cod-badge {
  background: var(--orange-light);
  border: 1px solid #f4b882;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #6b3100;
  margin: 16px 0;
}

.btn-checkout {
  width: 100%;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}

.btn-checkout:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); }
.btn-checkout:disabled { background: #9ca3af; cursor: not-allowed; }

/* ── ORDER MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.modal .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--green); background: white; }

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.order-note {
  background: var(--orange-light);
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #5c2e00;
}

.btn-place-order {
  width: 100%;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 10px;
}

.btn-place-order:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-cancel-order {
  width: 100%;
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cancel-order:hover { background: var(--bg); }

/* ── SUCCESS SCREEN ── */
.success-screen { text-align: center; padding: 20px 0; }
.success-icon { font-size: 72px; margin-bottom: 16px; }
.success-screen h2 { font-size: 26px; color: var(--green); margin-bottom: 8px; }
.success-screen p { color: var(--text-muted); margin-bottom: 6px; }
.order-id { font-size: 13px; background: var(--bg); padding: 8px 16px; border-radius: 8px; display: inline-block; margin: 12px 0; font-weight: 600; color: var(--green); }

/* ── FOOTER ── */
footer {
  background: var(--green-dark);
  color: #cfe8d2;
  padding: 40px 20px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; opacity: 0.7; line-height: 1.6; }

.footer-col h4 { color: white; font-size: 15px; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 13px; opacity: 0.75; cursor: pointer; }
.footer-col ul li:hover { opacity: 1; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  opacity: 0.6;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 500;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  animation: fadeUp 0.3s ease;
}

.toast.show { display: flex; }
.toast.success { background: var(--green); }
.toast.error { background: #dc2626; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero-bn { font-size: 16px; }
  .header-inner { flex-wrap: wrap; }
  .search-bar { order: 3; flex: 1 1 100%; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 24px 16px; }
}

@media (max-width: 480px) {
  .product-img-placeholder { height: 120px; font-size: 40px; }
  .cart-panel { max-width: 100%; }
  .features-inner { grid-template-columns: 1fr 1fr; }
}
