/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

html {
  font-size: 106.25%; /* Slightly larger shared type scale across the platform. */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #e8d8b5;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 35px, rgba(139, 105, 58, .09) 35px 36px, transparent 36px 70px),
    repeating-linear-gradient(-45deg, transparent 0 35px, rgba(139, 105, 58, .09) 35px 36px, transparent 36px 70px);
  background-size: 70px 70px, 70px 70px;
  color: #1e293b;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
  background-size: 300% 100%;
  animation: gradientMove 4s ease infinite;
  color: #fff;
  padding: 4px 0;
  font-size: 0.7rem;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.announcement-bar marquee { display: block; }

/* ===== ADMIN DOT ===== */
.admin-dot {
  position: fixed;
  top: 8px;
  right: 12px;
  color: #1e293b;
  font-size: 16px;
  cursor: pointer;
  z-index: 9999;
  opacity: 0.15;
  transition: opacity 0.3s;
  text-decoration: none;
}

.admin-dot:hover { opacity: 1; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  color: #1e293b;
  padding: 10px 14px;
  border-bottom: 1px solid #e8ecf1;
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header h1 {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
  color: #0f172a;
}

.header h1 span {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header a {
  color: #64748b;
  margin: 0 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.header a:hover { color: #2563eb; }

.bidhaalink-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  color: #15803d !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.1;
  text-decoration: none !important;
  white-space: nowrap;
}
.bidhaalink-brand:hover { color: #166534 !important; }
.bidhaalink-brand img {
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}
.bidhaalink-brand span {
  background: none !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}
.product-detail-brand-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}
.product-detail-shop-name {
  color: #475569;
  font-size: .82rem;
  font-weight: 600;
}

.header .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== HEADER AUTH BUTTONS ===== */
.header .header-right .auth-btn {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.2s;
  text-decoration: none;
}

.header .header-right .auth-btn:hover {
  transform: scale(1.05);
}

.header .header-right .business-login-btn {
  background: #22c55e;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.header .header-right .business-login-btn:hover {
  transform: scale(1.05);
  background: #16a34a;
}

.header .header-right .business-register-btn {
  background: #f59e0b;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.header .header-right .business-register-btn:hover {
  transform: scale(1.05);
  background: #d97706;
}

/* ===== BOTTOM NAVIGATION - MARKETPLACE ONLY ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e8ecf1;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 env(safe-area-inset-bottom, 8px) 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav.marketplace-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 4px 10px;
  position: relative;
  transition: color 0.2s;
  min-width: 50px;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 4px 10px;
  position: relative;
  transition: color 0.2s;
  min-width: 50px;
}

.bottom-nav a i {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.bottom-nav a span {
  font-size: 0.55rem;
  margin-top: 1px;
}

.bottom-nav a.active {
  color: #2563eb;
}

.bottom-nav a .nav-badge {
  position: absolute;
  top: -2px;
  right: 2px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  padding: 0 5px;
  font-size: 0.5rem;
  min-width: 16px;
  text-align: center;
  font-weight: 700;
  display: none;
}

.bottom-nav a .nav-badge.show {
  display: block;
}

/* ============================================================
   BOTTOM NAV - BUSINESS PROFILE (Full features)
   ============================================================ */
.bottom-nav.business-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e8ecf1;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 env(safe-area-inset-bottom, 8px) 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav.business-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 4px 10px;
  position: relative;
  transition: color 0.2s;
  min-width: 50px;
}

.bottom-nav.business-nav a i {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.bottom-nav.business-nav a span {
  font-size: 0.55rem;
  margin-top: 1px;
}

.bottom-nav.business-nav a.active {
  color: #2563eb;
}

.bottom-nav.business-nav a .nav-badge {
  position: absolute;
  top: -2px;
  right: 2px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  padding: 0 5px;
  font-size: 0.5rem;
  min-width: 16px;
  text-align: center;
  font-weight: 700;
  display: none;
}

.bottom-nav.business-nav a .nav-badge.show {
  display: block;
}

/* ===== SAVE MORE BANNER ===== */
.save-more-banner {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  padding: 8px 16px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  margin: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(245,87,108,0.3);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: #0f172a;
  background-size: cover;
  background-position: center;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 0 12px 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero-section .hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 16px;
}

.hero-content {
  max-width: 100%;
  margin: 0 auto;
  color: white;
  text-align: center;
}

.hero-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 30px rgba(255,107,107,0.3);
  margin-bottom: 8px;
}

.hero-content h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 0.8rem;
  opacity: 0.9;
  margin: 2px 0;
}

/* ===== ABOUT CARD ===== */
.about-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 14px;
  margin: 12px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

.about-item {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
}

.about-item i {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.about-item h3 {
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
}

.about-item p {
  font-size: 0.75rem;
  color: #475569;
}

/* ===== SLIDER ===== */
.slider-container {
  margin: 12px 12px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  height: 180px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #475569;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 50%;
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(255,107,107,0.8);
}

.prev {
  left: 8px;
}

.next {
  right: 8px;
}

/* ===== PRODUCT GRID ===== */
.container {
  padding: 0 6px;
  max-width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-header h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.section-header a {
  font-size: 0.7rem;
  color: #2563eb;
  text-decoration: none;
}

/* ===== PRODUCT GRID - 3 COLUMNS ON MOBILE ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 2px;
}

@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: transform 0.2s;
  border: 1px solid #f1f4f8;
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-card .media-wrap {
  width: 100%;
  height: 90px;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-card .media-wrap img,
.product-card .media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .media-wrap .quick-view-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card .product-image-preview {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 14px;
  padding: 4px 7px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.62rem;
  line-height: 1;
  cursor: pointer;
}

.product-card .product-image-preview:hover,
.product-card .product-image-preview:focus-visible { background: #0f172a; }

.business-image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 16px;
  background: rgba(0, 0, 0, 0.9);
}

.business-image-preview-modal.active { display: flex; }
.business-image-preview-modal img {
  display: block;
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}
.business-image-preview-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
body.image-preview-open { overflow: hidden; }

.product-card .media-wrap:hover .quick-view-icon,
.product-card .media-wrap:active .quick-view-icon {
  opacity: 1;
}

.product-card .flash-badge,
.product-card .new-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
}

.product-card .flash-badge {
  background: #ff6b6b;
  animation: blinkFlash 0.8s infinite alternate;
}

.product-card .new-badge {
  background: #48dbfb;
  color: #0f172a;
  animation: blinkNew 1.2s infinite alternate;
}

@keyframes blinkFlash {
  0% { background: #ff6b6b; }
  100% { background: #ee5a24; }
}

@keyframes blinkNew {
  0% { background: #48dbfb; }
  100% { background: #0abde3; }
}

.product-card .info {
  padding: 4px 6px 6px;
}

.product-card .name {
  font-weight: 600;
  font-size: 0.65rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
  color: #0f172a;
}

.product-card .name .green-tick {
  color: #22c55e;
  font-weight: 800;
}

.product-card .price {
  font-weight: 700;
  font-size: 0.7rem;
  color: #2563eb;
  margin: 2px 0;
}

.product-card .rating {
  font-size: 0.55rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-card .rating span {
  color: #f59e0b;
}

.product-card .badge-tag {
  font-size: 0.45rem;
  color: #2563eb;
  background: #eff6ff;
  padding: 1px 4px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 1px;
}

.product-card .variant-swatches {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.product-card .variant-swatches .swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background-size: cover;
  background-position: center;
  display: inline-block;
  cursor: pointer;
}

.product-card .actions {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.product-card .actions .qty-control {
  display: flex;
  align-items: center;
  gap: 1px;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 3px;
}

.product-card .actions .qty-control button {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: white;
  font-size: 0.6rem;
  cursor: pointer;
  line-height: 1;
  font-weight: 700;
}

.product-card .actions .qty-control button:hover {
  background: #2563eb;
  color: white;
}

.product-card .actions .qty-control span {
  font-weight: 700;
  font-size: 0.6rem;
  min-width: 14px;
  text-align: center;
}

.product-card .actions .btn-add {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex: 1;
  min-width: 40px;
  transition: background 0.2s;
}

.product-card .actions .btn-add:hover {
  background: #1d4ed8;
}

.product-card .actions .btn-add.in-cart {
  background: #22c55e;
}

.product-card .actions .btn-add.in-cart:hover {
  background: #16a34a;
}

.product-card .hover-preview {
  display: none;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.modal-box {
  background: white;
  max-width: 100%;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-box .close-modal {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: #94a3b8;
}

.modal-box .btn-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===== AUTH MODAL ===== */
#authModal .modal-box {
  max-width: 400px;
}

#authModal .form-group {
  margin-bottom: 10px;
  position: relative;
}

#authModal .form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  color: #334155;
  margin-bottom: 2px;
}

#authModal .form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
}

#authModal .form-group .toggle-pwd {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: none;
  border: none;
  color: #94a3b8;
}

#authModal .auth-status {
  text-align: center;
  font-size: 0.8rem;
  padding: 4px;
  border-radius: 6px;
}

#authModal .auth-status.error {
  color: #ef4444;
  background: #fef2f2;
}

#authModal .auth-status.success {
  color: #16a34a;
  background: #f0fdf4;
}

#authModal .form-group small {
  font-size: 0.55rem;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

/* ===== FLOATING WIDGETS ===== */
#floatingWidgets {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

#cartFloatingBtn,
#chatToggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

#cartFloatingBtn {
  background: #2563eb;
  color: white;
}

#chatToggle {
  background: #7c3aed;
  color: white;
}

#cartFloatingBtn:hover,
#chatToggle:hover {
  transform: scale(1.05);
}

#cartBadgeFloat {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  padding: 0 5px;
  font-size: 0.6rem;
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  display: none;
}

/* ===== CHAT WIDGET ===== */
#chatBox {
  display: none;
  position: fixed;
  bottom: 140px;
  right: 16px;
  width: 90vw;
  max-width: 360px;
  height: 420px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  flex-direction: column;
  z-index: 1000;
}

#chatBox .chat-header {
  background: #1e293b;
  color: white;
  padding: 10px 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

#chatBox .chat-header span:last-child {
  cursor: pointer;
  font-size: 1.4rem;
}

#chatMessages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#chatMessages .msg {
  max-width: 85%;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 0.8rem;
  word-wrap: break-word;
}

#chatMessages .msg.customer {
  background: #2563eb;
  color: white;
  align-self: flex-end;
}

#chatMessages .msg.seller {
  background: #e2e8f0;
  color: #1e293b;
  align-self: flex-start;
}

#chatInputArea {
  display: flex;
  padding: 8px 10px;
  border-top: 1px solid #e2e8f0;
  background: white;
}

#chatInputArea input {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
}

#chatInputArea button {
  margin-left: 6px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
}

#chatLoginPrompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 8px;
}

/* ===== DETAIL MODAL ===== */
.detail-modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 600px) {
  .detail-modal-content {
    flex-direction: row;
    align-items: flex-start;
  }
}

.detail-modal-image {
  flex: 0 0 45%;
  max-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fafc;
}

.detail-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-modal-image .no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  font-size: 3rem;
  background: #e2e8f0;
}

.detail-modal-info {
  flex: 1;
}

.detail-modal-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-modal-info .price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #2563eb;
}

.detail-modal-info .rating {
  font-size: 0.85rem;
  color: #f59e0b;
}

.detail-modal-info .description {
  font-size: 0.85rem;
  color: #475569;
  margin: 8px 0;
}

.detail-modal-info .qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.detail-modal-info .qty-selector button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: white;
  font-size: 1.1rem;
  cursor: pointer;
}

.detail-modal-info .qty-selector button:hover {
  background: #2563eb;
  color: white;
}

.detail-modal-info .qty-selector span {
  font-weight: 700;
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
}

.detail-modal-info .btn-add-large {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.detail-modal-info .btn-add-large:hover {
  background: #1d4ed8;
}

.detail-modal-info .btn-add-large.in-cart {
  background: #22c55e;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  max-width: 400px;
  width: 100%;
}

.toast {
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
  margin-bottom: 8px;
  transform: translateX(0);
  transition: transform 0.3s;
}

.toast.success {
  background: #22c55e;
  color: white;
}

.toast.error {
  background: #ef4444;
  color: white;
}

.toast.warning {
  background: #f59e0b;
  color: white;
}

.toast.info {
  background: #2563eb;
  color: white;
}

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

/* ============================================================
   MARKETPLACE SPECIFIC
   ============================================================ */

/* Business Grid */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 0 12px;
}

/* Business Card */
.business-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: 1px solid #f0f4f8;
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.business-card .card-image {
  width: 100%;
  height: 160px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.business-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card .card-image .no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  background: #f1f5f9;
}

.business-card .card-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.business-card .card-badges .badge {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}

.business-card .card-badges .badge.verified {
  background: #22c55e;
  color: white;
}

.business-card .card-badges .badge.featured {
  background: #facc15;
  color: #0f172a;
}

.business-card .card-body {
  padding: 12px 14px 14px;
}

.business-card .card-body .business-name {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.business-card .card-body .business-location {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
}

.business-card .card-body .business-description {
  font-size: 0.8rem;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.business-card .card-body .business-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: #64748b;
  border-top: 1px solid #f1f4f8;
  padding-top: 8px;
}

.business-card .card-body .business-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.business-card .card-body .business-stats .rating {
  color: #f59e0b;
}

/* Featured Section */
.featured-section {
  padding: 16px 0;
}

.featured-section h2 {
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0 12px 12px;
  color: #0f172a;
}

/* Businesses Section */
.businesses-section {
  padding: 16px 0;
}

.businesses-section h2 {
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0 12px 12px;
  color: #0f172a;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 30px 20px;
  text-align: center;
  color: white;
  margin: 0 0 16px 0;
}

.hero-banner h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #facc15;
  display: block;
}

.hero-stats .stat .label {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===== SEARCH FILTER BAR ===== */
.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  margin: 0 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  align-items: center;
}

.search-filter-bar .search-wrapper {
  flex: 1;
  display: flex;
  gap: 8px;
  min-width: 200px;
}

.search-filter-bar .search-wrapper input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-filter-bar .search-wrapper input:focus {
  border-color: #2563eb;
}

.search-filter-bar .search-wrapper button {
  padding: 10px 20px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.search-filter-bar .search-wrapper button:hover {
  background: #1d4ed8;
}

.search-filter-bar select {
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  background: white;
  cursor: pointer;
  min-width: 140px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.search-filter-bar select:focus {
  border-color: #2563eb;
  outline: none;
}

/* ===== CTA SECTION ===== */
.cta-section {
  margin: 24px 12px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: white;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.cta-section .btn {
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.3s;
}

.cta-section .btn:hover {
  transform: scale(1.05);
}

.cta-section .btn-success {
  background: white;
  color: #f5576c;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
}

.empty-state .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 0.85rem;
}

/* ============================================================
   CATEGORY CARD
   ============================================================ */
.category-card {
  background: white;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  border: 1px solid #eef2f6;
}

.category-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 16px rgba(37,99,235,0.10);
}

.category-card .icon {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.category-card .name {
  font-weight: 700;
  font-size: 0.7rem;
  color: #0f172a;
}

.category-card .count {
  font-size: 0.55rem;
  color: #94a3b8;
}

/* ============================================================
   BACK LINK
   ============================================================ */
.back-link {
  display: inline-block;
  margin-bottom: 8px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .business-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
  }

  .hero-banner h1 {
    font-size: 1.4rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stats .stat .number {
    font-size: 1.4rem;
  }

  .search-filter-bar .search-wrapper {
    min-width: 100%;
  }

  .search-filter-bar select {
    flex: 1;
    min-width: 100px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .business-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .business-card .card-image {
    height: 120px;
  }

  .business-card .card-body .business-name {
    font-size: 0.85rem;
  }

  .search-filter-bar {
    padding: 8px 10px;
    margin: 0 6px 12px;
  }

  .hero-banner {
    padding: 20px 12px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .product-card .media-wrap {
    height: 70px;
  }
}

/* ============================================================
   PRODUCT CATEGORY FILTER (Business Profile)
   ============================================================ */
.products-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.products-filters select {
  padding: 6px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.8rem;
  background: white;
  cursor: pointer;
}

.products-filters input {
  padding: 6px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.8rem;
  min-width: 140px;
  background: white;
}

.products-filters input:focus,
.products-filters select:focus {
  border-color: #2563eb;
  outline: none;
}

/* ============================================================
   BUSINESS PROFILE - PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  padding: 0 2px;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}


/* Keep the shared legal footer compact; shop thank-you messages use the shop toast instead. */
.bidhaa-legal-footer-brand,
.bidhaa-legal-footer-thanks { display: none !important; }
.bidhaa-legal-footer .bidhaa-legal-footer-inner {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  min-height: 0 !important;
}
.bidhaa-legal-footer .bidhaa-legal-footer-inner > * { grid-area: auto !important; }
.bidhaa-legal-footer .bidhaa-legal-footer-links {
  grid-column: 1 / -1 !important;
  justify-content: flex-end;
}
