* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f3f6f4;
  color: #222;
  line-height: 1.5;
  padding-bottom: 70px;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 15px;
}

/* হেডার */
.header {
  background: linear-gradient(135deg, #0f764a, #159957);
  color: white;
  padding: 18px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-name {
  font-size: 28px;
  font-weight: 800;
}

.brand-name span {
  font-size: 16px;
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.tagline {
  font-size: 14px;
  opacity: 0.9;
}

.delivery-badge {
  background: #fff3cd;
  color: #664d03;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* অফার ব্যানার */
.offer-banner {
  margin: 18px 0;
}

.offer-box {
  background: #ffffff;
  border-left: 5px solid #ff9800;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.offer-text h2 {
  font-size: 18px;
  color: #d97706;
  margin-bottom: 4px;
}

.offer-text p {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 12px;
}

.offer-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.offer-form input, .offer-form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* মেইন লেআউট */
.main-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: start;
}

/* ক্যাটাগরি বাটন */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cat-btn {
  background: white;
  border: 1px solid #d1d5db;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  transition: 0.2s;
}

.cat-btn.active, .cat-btn:hover {
  background: #0f764a;
  color: white;
  border-color: #0f764a;
}

/* প্রোডাক্ট গ্রিড */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
}

.product-card {
  background: white;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #eee;
}

.combo-tag {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 5px;
}

.product-desc {
  font-size: 12.5px;
  color: #666;
  margin-bottom: 12px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-size: 17px;
  font-weight: 800;
  color: #0f764a;
}

.add-btn {
  background: #0f764a;
  color: white;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.add-btn:hover {
  background: #0b5c39;
}

/* কার্ট সেকশন */
.cart-card {
  background: white;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 15px;
}

.cart-card h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #0f764a;
}

.cart-items {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.empty-cart {
  color: #888;
  font-size: 14px;
  text-align: center;
  padding: 15px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
  font-size: 13.5px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.cart-summary {
  background: #f8faf9;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.total-row {
  font-size: 16px;
  font-weight: 800;
  color: #0f764a;
  border-top: 1px solid #ddd;
  padding-top: 6px;
  margin-top: 6px;
}

.delivery-hint {
  font-size: 12px;
  color: #b45309;
  margin-top: 6px;
  background: #fffbeb;
  padding: 6px;
  border-radius: 5px;
}

.divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 15px 0;
}

/* চেকআউট ফর্ম */
.checkout-form h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.btn-primary {
  width: 100%;
  background: #0f764a;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover {
  background: #0a5836;
}

.btn-secondary {
  background: #ff9800;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.status-msg {
  font-size: 13px;
  margin-top: 8px;
  font-weight: 600;
}

/* মোবাইল ফ্লোটিং বার */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f764a;
  color: white;
  text-align: center;
  padding: 13px;
  font-weight: 700;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

/* মডাল */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
}

.success-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.modal-note {
  font-size: 13.5px;
  color: #555;
  margin: 12px 0 18px;
}

.footer {
  text-align: center;
  margin-top: 30px;
  padding: 15px;
  font-size: 13px;
  color: #555;
}

@media (max-width: 820px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .mobile-cart-bar {
    display: block;
  }
}