* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f6f8fb;
  color: #0f1f3d;
}
.ti {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  display: inline-block;
  line-height: 1;
}
.ti-shopping-cart::before { content: "\f07a"; }
.ti-x::before { content: "\f00d"; }
.ti-clock::before { content: "\f017"; }
.ti-cash::before { content: "\f555"; }
.ti-wallet::before { content: "\f555"; }
.ti-circle-check::before { content: "\f058"; }
.ti-plus::before { content: "\2b"; font-family: Arial, sans-serif; font-weight: 900; }
.ti-minus::before { content: "\2212"; font-family: Arial, sans-serif; font-weight: 900; }
.ti-package::before { content: "\f466"; }
.ti-search::before { content: "\f002"; }

/* ── Search ── */
.shop-search-wrap { max-width: 1440px; margin: 0 auto; padding: 14px 16px 0; }
.shop-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 420px;
  margin: 0 auto;
  color: #94a3b8;
}
.shop-search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 13.5px;
  color: #0f1f3d;
  background: transparent;
}

/* ── Top bar ── */
.shop-topbar {
  background: linear-gradient(90deg, #1f4385, #0078b7);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(15,31,61,0.15);
}
.shop-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; }
.shop-business-name { color: #fff; font-weight: 800; font-size: 17px; flex: 1; }
.shop-cart-btn {
  position: relative;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 17px;
  cursor: pointer;
}
.shop-cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Banner ── */
.shop-banner {
  background: #eef4fb;
  border-bottom: 1px solid #dbe6f6;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  color: #1f4385;
  font-weight: 600;
}

/* ── Hero ── */
.shop-hero {
  background: linear-gradient(135deg, #1f4385, #0078b7);
  padding: 36px 16px;
  text-align: center;
  color: #fff;
}
.shop-hero-inner { max-width: 700px; margin: 0 auto; }
.shop-hero-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.shop-hero-about { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6; max-width: 520px; margin: 0 auto; }
.shop-hero-banner {
  display: inline-block;
  margin-top: 14px;
  background: rgba(255,255,255,0.15);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ── Category pills ── */
.shop-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px;
  max-width: 1440px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}
.shop-categories::-webkit-scrollbar { display: none; }
.shop-cat-pill {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.shop-cat-pill.active { background: linear-gradient(135deg,#1f4385,#0078b7); border-color: transparent; color: #fff; }

/* ── Footer ── */
.shop-footer { border-top: 1px solid #e7ebf1; margin-top: 30px; padding: 24px 16px; }
.shop-footer-inner { max-width: 1440px; margin: 0 auto; text-align: center; }
.shop-footer-phone { font-size: 12.5px; color: #64748b; margin-bottom: 6px; }
.shop-footer-copy { font-size: 11.5px; color: #cbd5e1; }

.shop-closed {
  max-width: 400px;
  margin: 80px auto;
  text-align: center;
}

/* ── Product grid ── */
.shop-main { max-width: 1440px; margin: 0 auto; padding: 24px 16px 60px; }
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.shop-empty { text-align: center; color: #94a3b8; padding: 60px 0; font-size: 14px; }

.shop-product-card {
  background: #fff;
  border: 1px solid #e7ebf1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.shop-product-card:hover { box-shadow: 0 8px 20px rgba(15,31,61,0.1); transform: translateY(-2px); }
.shop-product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 28px;
  overflow: hidden;
}
.shop-product-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-product-info { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.shop-product-name { font-size: 13px; font-weight: 700; color: #0f1f3d; line-height: 1.35; margin-bottom: 4px; }
.shop-product-price { font-size: 15px; font-weight: 800; color: #0078b7; margin-top: auto; }
.shop-product-oos { font-size: 11px; color: #ef4444; font-weight: 700; margin-top: 2px; }
.shop-add-btn {
  width: 100%;
  margin-top: 8px;
  padding: 7px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg,#1f4385,#0078b7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.shop-add-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

/* ── Overlay / drawer / modal ── */
.shop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,31,61,0.45);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}
.shop-drawer {
  background: #fff;
  width: 380px;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.shop-modal {
  background: #fff;
  width: 440px;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-left: auto;
}
.shop-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e7ebf1;
  font-weight: 800;
  font-size: 15px;
}
.shop-drawer-close {
  background: #f1f5f9;
  border: none;
  width: 30px; height: 30px;
  border-radius: 8px;
  cursor: pointer;
  color: #64748b;
}
.shop-cart-items { flex: 1; overflow-y: auto; padding: 8px 18px; }
.shop-cart-empty { text-align: center; color: #94a3b8; padding: 40px 0; font-size: 13.5px; }

.shop-cart-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}
.shop-cart-item-img {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: #f1f5f9;
  flex-shrink: 0;
  overflow: hidden;
}
.shop-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-cart-item-info { flex: 1; min-width: 0; }
.shop-cart-item-name { font-size: 12.5px; font-weight: 700; color: #0f1f3d; }
.shop-cart-item-price { font-size: 11.5px; color: #64748b; }
.shop-qty-control { display: flex; align-items: center; gap: 6px; }
.shop-qty-control button {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  color: #334155;
}
.shop-qty-control span { font-size: 12.5px; font-weight: 700; min-width: 14px; text-align: center; }
.shop-cart-remove { background: none; border: none; color: #ef4444; font-size: 11px; cursor: pointer; padding: 4px; }

.shop-drawer-footer { padding: 14px 18px; border-top: 1px solid #e7ebf1; }
.shop-cart-total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.shop-checkout-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg,#1f4385,#0078b7);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.shop-modal-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.shop-form-row { margin-bottom: 12px; text-align: left; }
.shop-form-row label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 5px; }
.shop-form-row input, .shop-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 13.5px;
  color: #0f1f3d;
  font-family: inherit;
}

.shop-payment-options { display: flex; gap: 10px; }
.shop-radio-card {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.shop-radio-card input { margin: 0; }

.shop-bkash-box {
  background: #fdf5f9;
  border: 1px solid #f6d3e3;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.shop-bkash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e2136e;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 7px;
}

.shop-checkout-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 12px;
}

.shop-order-summary { border-top: 1px solid #e7ebf1; padding-top: 10px; margin: 12px 0; }

@media (max-width: 480px) {
  .shop-product-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-drawer, .shop-modal { width: 100%; }
}
