/* ============================================================
   ঘরোয়া (Ghoroa) — Complete Stylesheet
   বাংলাদেশের হোমমেড প্রোডাক্ট মার্কেটপ্লেস
   ============================================================ */

/* ==================== 1. THEME VARIABLES ==================== */

:root, [data-theme='dark'] {
  --primary: #0D7C66;
  --primary-light: #10A37F;
  --primary-dark: #095C4C;
  --accent: #F4A623;
  --accent-light: #FFD166;
  --bg: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2332;
  --text: #e8e6e3;
  --text-muted: #9ca3af;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --danger: #ef4444;
  --success: #22c55e;
}

[data-theme='light'] {
  --bg: #FFF8F0;
  --bg-secondary: #FFF0E0;
  --bg-card: #FFFFFF;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.8);
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* ==================== 2. RESET & BASE ==================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Hind Siliguri', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, button, textarea, select { font: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ==================== 3. UTILITIES ==================== */

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-secondary); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 15px rgba(13,124,102,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,124,102,0.4); }

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: var(--glass-hover); transform: translateY(-2px); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #1a1a2e;
  box-shadow: 0 4px 15px rgba(244,166,35,0.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(244,166,35,0.4); }

.btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34,197,94,0.3);
}
.btn-success:hover { transform: translateY(-2px); }

.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ==================== 4. ANIMATIONS ==================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 5. NAVBAR ==================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.8rem 0;
  transition: all 0.3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  z-index: 10;
}
.logo-icon { font-size: 1.6rem; }
.logo-text { background: linear-gradient(135deg, var(--primary-light), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-links li a {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.nav-links li a:hover { color: var(--text); background: var(--glass-bg); }
.nav-links li .nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  padding: 0.5rem 1.2rem;
}
.nav-links li .nav-cta:hover { box-shadow: 0 4px 15px rgba(13,124,102,0.3); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}
.search-bar input {
  width: 160px;
  padding: 0.45rem 0.8rem;
  color: var(--text);
  background: transparent;
  font-size: 0.9rem;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-btn {
  padding: 0.45rem 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.search-bar:focus-within { border-color: var(--primary); }

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.theme-toggle:hover { background: var(--glass-hover); transform: rotate(20deg); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 30px;
  justify-content: center;
  background: none;
  border: none;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu ul li a {
  display: block;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
}
.mobile-menu ul li a:hover { background: var(--glass-bg); }
.mobile-menu ul li .nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  margin-top: 1rem;
}

/* ==================== 6. HERO ==================== */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(13,124,102,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(244,166,35,0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(13,124,102,0.08) 0%, transparent 50%);
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

.hero-image {
  position: relative;
}
.hero-image img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
}

.hero-floating-card {
  position: absolute;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.floating-emoji { font-size: 1.3rem; }
.floating-price { color: var(--accent); font-weight: 700; }

.floating-card-1 { top: 10%; left: -10%; animation-delay: 0s; }
.floating-card-2 { top: 55%; right: -8%; animation-delay: 1s; }
.floating-card-3 { bottom: 8%; left: 5%; animation-delay: 2s; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.scroll-arrow {
  font-size: 1.3rem;
  animation: scrollBounce 2s ease-in-out infinite;
  margin-top: 0.3rem;
}

/* ==================== 7. CATEGORIES ==================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,124,102,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.category-card:hover::before { opacity: 1; }
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(13,124,102,0.2);
  border-color: var(--primary);
}

.category-icon { font-size: 3rem; margin-bottom: 1rem; }
.category-name { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.category-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.8rem; line-height: 1.5; }
.category-count {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==================== 8. FLASH HAAT ==================== */

.haat-countdown-wrapper {
  text-align: center;
  margin-bottom: 2.5rem;
}
.countdown-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.countdown-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  min-width: 70px;
}
.countdown-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.countdown-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
}
.countdown-separator {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.haat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.haat-card {
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}
.haat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,0.2); }

.live-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--danger);
  color: #fff;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.haat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.haat-title { font-size: 1.2rem; font-weight: 700; }
.haat-products {
  background: var(--primary);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.haat-description { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }

.haat-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.haat-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}
.haat-date-icon { font-size: 1rem; }

/* ==================== 9. AREA BROWSING ==================== */

.area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.area-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.area-tag.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(13,124,102,0.3);
}
.area-seller-count {
  font-size: 0.75rem;
  opacity: 0.8;
  background: rgba(255,255,255,0.15);
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
}

/* ==================== 10. PRODUCTS ==================== */

.product-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover { color: var(--text); background: var(--glass-hover); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.25);
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  height: 200px;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.08); }

.product-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #1a1a2e;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.product-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}
.product-card:hover .product-overlay { opacity: 1; }

.product-info { padding: 1rem 1.2rem 1.2rem; }
.product-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; line-height: 1.4; }
.product-seller { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.product-story-snippet { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.8rem; line-height: 1.5; opacity: 0.8; }

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--glass-border);
}
.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-light);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}
.stars { color: var(--accent); letter-spacing: 1px; }
.review-count { color: var(--text-muted); font-size: 0.72rem; }

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}
.no-products-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ==================== 11. PRODUCT MODAL ==================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content {
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 0;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}
.modal-close:hover { background: var(--danger); color: #fff; }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-image-section { position: relative; }
.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
  min-height: 400px;
}
.modal-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #1a1a2e;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.modal-info-section { padding: 2rem; }
.modal-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.8rem; }

.modal-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
}
.modal-rating {
  font-size: 0.9rem;
  color: var(--accent);
}

.modal-seller-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
}
.seller-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.seller-info { display: flex; flex-direction: column; }
.seller-name { font-weight: 600; font-size: 0.95rem; }
.seller-area { font-size: 0.8rem; color: var(--text-muted); }

.modal-story {
  margin-bottom: 1.5rem;
}
.modal-story h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.modal-story p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.modal-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}
.share-btn:hover { background: var(--primary); transform: scale(1.1); }

/* ==================== 12. SELLER ONBOARDING ==================== */

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
  max-width: 250px;
  position: relative;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 0.8rem;
}
.step-icon { font-size: 2.5rem; margin-bottom: 0.6rem; }
.step-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.step-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.step-line {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin-top: 2.8rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.benefit-card {
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.benefit-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.benefit-icon { font-size: 2.2rem; display: block; margin-bottom: 0.8rem; }
.benefit-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.benefit-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.seller-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.seller-form {
  padding: 2rem;
}
.seller-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); color: var(--text); }

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

/* ==================== 13. TESTIMONIALS ==================== */

.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  padding: 1.5rem;
  transition: all 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }

.testimonial-quote {
  font-size: 3rem;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}
.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  min-height: 100px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-info h4 { font-size: 0.9rem; font-weight: 600; }
.testimonial-info span { font-size: 0.78rem; color: var(--text-muted); }

.testimonial-stats {
  display: flex;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--glass-border);
}
.testimonial-stat { flex: 1; }
.stat-value { display: block; font-size: 1rem; font-weight: 700; color: var(--primary-light); }
.stat-label { font-size: 0.72rem; color: var(--text-muted); }

/* ==================== 14. PRICING ==================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(244,166,35,0.15);
}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-4px); }

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #1a1a2e;
  padding: 0.2rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-header { margin-bottom: 1.5rem; }
.pricing-name { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 0.3rem; }
.price-amount { font-size: 2.2rem; font-weight: 700; color: var(--primary-light); }
.price-period { font-size: 0.85rem; color: var(--text-muted); }

.pricing-features {
  text-align: left;
  margin-bottom: 1.5rem;
}
.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--glass-border);
}
.pricing-features li.included { color: var(--text); }
.pricing-features li.excluded { color: var(--text-muted); opacity: 0.5; }

/* ==================== 15. FAQ ==================== */

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item { overflow: hidden; transition: all 0.3s; }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--primary-light); }
.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.2rem;
}
.faq-answer p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ==================== 16. CTA BANNER ==================== */

.cta-banner {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}
.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ==================== 17. FOOTER ==================== */

.footer {
  background: var(--bg-secondary);
  padding: 3rem 0 0;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s;
}
.social-btn:hover { background: var(--primary); transform: translateY(-3px); }

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-col p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }

.footer-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.payment-badge {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
}

.footer-bottom {
  text-align: center;
  padding: 1.2rem 0;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==================== 18. TOAST ==================== */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 25px rgba(13,124,102,0.3);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 350px;
}
.toast.show { transform: translateX(0); }

/* ==================== 19. MOBILE SEARCH ==================== */

.mobile-search-wrapper {
  margin-bottom: 1.5rem;
}
.mobile-search-wrapper input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.mobile-search-wrapper input::placeholder {
  color: var(--text-muted);
}
.mobile-search-wrapper input:focus {
  border-color: var(--primary);
}

/* ==================== 20. RESPONSIVE ==================== */

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { max-width: 500px; margin: 0 auto; }
  .floating-card-1 { left: 0; }
  .floating-card-2 { right: 0; }

  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-slider { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu { display: block; }
  .search-bar input { width: 120px; }

  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-floating-card { display: none; }

  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.8rem; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .haat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .testimonial-slider { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-container { flex-direction: column; align-items: center; }
  .step-line { width: 2px; height: 30px; }

  .modal-body { grid-template-columns: 1fr; }
  .modal-image { border-radius: 16px 16px 0 0; min-height: 250px; }
  .modal-info-section { padding: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-payment { justify-content: center; }

  .form-row { grid-template-columns: 1fr; }

  .countdown-box { min-width: 55px; padding: 0.6rem 0.8rem; }
  .countdown-value { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 0.8rem; }
  .stat-divider { width: 40px; height: 1px; }

  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }

  .search-bar { display: none; }
  .countdown-separator { font-size: 1.2rem; }
  .countdown-box { min-width: 50px; }

  .cta-content h2 { font-size: 1.5rem; }
}
