/* ==============================================
   PASAR GOGIK - Custom CSS
   Marketplace UMKM Desa Gogik
   ============================================== */

/* ---- CSS Variables ---- */
:root {
  --primary:        #0B3C13;
  --primary-light:  #145C22;
  --primary-medium: #1E7C33;
  --accent:         #2C9645;
  --accent-light:   #60C079;
  --gold:           #FFC107;
  --gold-dark:      #F57F17;
  --gold-light:     #FFF9C4;
  --text-dark:      #1a1a2e;
  --text-medium:    #4a4a6a;
  --text-light:     #7a7a9a;
  --bg-main:        #FAFAFA;
  --bg-card:        #FFFFFF;
  --bg-green-light: #E8F5E9;
  --border:         #E0E0E0;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:      0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl:      0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius-sm:      0.375rem;
  --radius-md:      0.75rem;
  --radius-lg:      1rem;
  --radius-xl:      1.5rem;
  --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(27,94,32,0.3);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(27,94,32,0.95);
  box-shadow: 0 4px 30px rgba(27,94,32,0.4);
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(44, 150, 69, 0.25) 0%, transparent 50%), 
              radial-gradient(circle at 10% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 40%),
              linear-gradient(135deg, #07230b 0%, #0B3C13 50%, #041707 100%);
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  box-shadow: inset 0 -30px 60px rgba(0,0,0,0.2);
}

.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.02'%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");
}

/* Floating animation for badges */
.floating-badge-1 {
  animation: floatBadge1 4s ease-in-out infinite;
}

.floating-badge-2 {
  animation: floatBadge2 5s ease-in-out infinite;
}

@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}


/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-light);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-green-light) 0%, #C8E6C9 100%);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  font-size: 3rem;
}

.product-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-store {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.product-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}

.product-card-price {
  margin-top: 0.5rem;
}

.price-current {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.price-original {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 0.25rem;
}

.price-discount-badge {
  display: inline-block;
  background: #FFEBEE;
  color: #C62828;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  margin-left: 0.25rem;
}

.badge-featured {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--text-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(255,193,7,0.4);
}

.btn-cart {
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-cart:hover {
  background: var(--primary-light);
  transform: scale(1.02);
}

.btn-cart:active { transform: scale(0.98); }

.btn-cart.loading {
  opacity: 0.7;
  pointer-events: none;
}

.favorite-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  color: #ccc;
}

.favorite-btn:hover, .favorite-btn.active { color: #ef4444; transform: scale(1.1); }

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-green-light);
}

.category-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-green-light) 0%, #C8E6C9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
}

/* ============================================
   STORE CARDS
   ============================================ */
.store-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.store-banner {
  height: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.store-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid white;
  background: white;
  overflow: hidden;
  position: absolute;
  bottom: -30px;
  left: 1rem;
  box-shadow: var(--shadow-md);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(27,94,32,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27,94,32,0.4);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  color: white;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, #FFD54F 100%);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255,193,7,0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,193,7,0.5);
  color: var(--text-dark);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  transition: var(--transition);
  animation: waPulse 2s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.7);
  animation: none;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.15); }
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.3);
  animation: waPulseRing 2s ease-in-out infinite;
}

@keyframes waPulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================
   STATUS BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green   { background: #E8F5E9; color: var(--primary); }
.badge-yellow  { background: #FFF9C4; color: #F57F17; }
.badge-red     { background: #FFEBEE; color: #C62828; }
.badge-blue    { background: #E3F2FD; color: #1565C0; }
.badge-purple  { background: #F3E5F5; color: #6A1B9A; }
.badge-gray    { background: #F5F5F5; color: #616161; }
.badge-success { background: #E8F5E9; color: #1B5E20; }
.badge-yellow  { background: #FFF8E1; color: #9A6700; }
.badge-indigo  { background: #E8EAF6; color: #303F9F; }
.badge-cyan    { background: #E0F7FA; color: #00796B; }
.badge-pink    { background: #FCE4EC; color: #AD1457; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: .75rem;
    background: #fff;
    color: #374151;
    font-weight: 700;
    transition: all .2s ease;
}
.btn-secondary:hover { background: #f3f4f6; border-color: #9ca3af; }
.badge-orange  { background: #FFF3E0; color: #E65100; }

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--accent) 100%);
  border-radius: 2px;
}

/* ============================================
   DASHBOARD SIDEBAR
   ============================================ */
.sidebar {
  background: linear-gradient(180deg, var(--primary) 0%, #1a3a1e 100%);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  margin: 0.15rem 0.5rem;
  transition: var(--transition);
  position: relative;
}

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.sidebar-nav-item.active {
  background: rgba(255,255,255,0.15);
  color: white;
  border-left: 3px solid var(--gold);
}

.sidebar-nav-item.active svg {
  color: var(--gold);
}

/* ============================================
   DASHBOARD KPI CARDS
   ============================================ */
.kpi-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.kpi-card.green::before  { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.kpi-card.yellow::before { background: linear-gradient(90deg, var(--gold), #FFD54F); }
.kpi-card.blue::before   { background: linear-gradient(90deg, #1565C0, #42A5F5); }
.kpi-card.red::before    { background: linear-gradient(90deg, #C62828, #EF5350); }

.kpi-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

table { width: 100%; border-collapse: collapse; }
thead th {
  background: #F8FDF9;
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
}
tbody td {
  padding: 1rem;
  border-bottom: 1px solid #F5F5F5;
  font-size: 0.875rem;
  color: var(--text-medium);
}
tbody tr:hover { background: #FAFFF9; }
tbody tr:last-child td { border-bottom: none; }

/* ============================================
   FORMS
   ============================================ */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.375rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}

.form-input.error { border-color: #ef4444; }

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #FAFAFA;
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--accent);
  background: var(--bg-green-light);
}

/* ============================================
   ALERTS / NOTIFICATIONS
   ============================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideInDown 0.3s ease;
}

.alert-success { background: #E8F5E9; color: var(--primary); border-left: 4px solid var(--accent); }
.alert-error   { background: #FFEBEE; color: #C62828; border-left: 4px solid #EF5350; }
.alert-warning { background: #FFF8E1; color: #F57F17; border-left: 4px solid var(--gold); }
.alert-info    { background: #E3F2FD; color: #1565C0; border-left: 4px solid #42A5F5; }

@keyframes slideInDown {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 300px;
  margin: 0 auto 1.5rem;
}

/* ============================================
   RATING STARS
   ============================================ */
.stars { display: inline-flex; gap: 2px; }
.star { color: #ddd; font-size: 0.875rem; }
.star.filled { color: var(--gold); }

/* ============================================
   STOCK INDICATORS
   ============================================ */
.stock-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.stock-aman     .stock-dot { background: var(--accent); }
.stock-hampir   .stock-dot { background: var(--gold); }
.stock-habis    .stock-dot { background: #ef4444; }

/* ============================================
   PROGRESS STEPS (UMKM Registration)
   ============================================ */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 120px;
}

.step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  z-index: 1;
}

.step-item.active .step-circle   { background: var(--primary); color: white; }
.step-item.completed .step-circle { background: var(--accent); color: white; }

.step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-align: center;
}

.step-item.active .step-label { color: var(--primary); }
.step-item.completed .step-label { color: var(--accent); }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: -1.25rem;
}

.step-line.completed { background: var(--accent); }

/* ============================================
   INVOICE PRINT STYLES
   ============================================ */
@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .invoice { box-shadow: none; }
}

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .section-title { font-size: 1.4rem; }
  .hero { min-height: 400px; }
  .kpi-value { font-size: 1.4rem; }
}

@media (max-width: 640px) {
  .btn-gold, .btn-primary { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
  .product-card-name { font-size: 0.85rem; }
}

/* ============================================
   MARKETPLACE HOME 2026
   ============================================ */
[x-cloak] { display: none !important; }

.market-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 4px 22px rgba(11, 60, 19, .08);
}

.market-utility {
  padding: .42rem 0;
  background: linear-gradient(90deg, #07320e, #0b4817 60%, #145c22);
  color: rgba(255,255,255,.82);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .025em;
}

.market-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250,204,21,.13);
}

.market-mainbar { background: #fff; }

.market-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: max-content;
  text-decoration: none;
}

.market-brand-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #dce9df;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f0f8f1);
  box-shadow: 0 5px 14px rgba(11,60,19,.1);
}

.market-brand-logo img { width: 43px; height: 43px; object-fit: contain; }
.market-brand strong { display: block; color: #0b3c13; font-size: 1.05rem; line-height: 1.1; font-weight: 900; letter-spacing: -.025em; }
.market-brand small { display: block; margin-top: .2rem; color: #718176; font-size: .62rem; font-weight: 700; }

.market-search {
  flex: 1;
  height: 48px;
  align-items: stretch;
  overflow: hidden;
  border: 2px solid #16802d;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(16,113,38,.08);
}

.market-search:focus-within { border-color: #0b5c1c; box-shadow: 0 0 0 4px rgba(44,150,69,.13); }
.market-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 1.1rem; color: #1f2937; background: transparent; font-size: .86rem; }
.market-search input::placeholder { color: #9ca3af; }
.market-search button { min-width: 94px; display: flex; align-items: center; justify-content: center; gap: .45rem; border: 0; color: #fff; background: linear-gradient(135deg, #16802d, #0b5c1c); font-size: .82rem; font-weight: 800; cursor: pointer; transition: .2s ease; }
.market-search button:hover { background: linear-gradient(135deg, #0f6c25, #073b12); }
.market-search button svg { width: 19px; height: 19px; }

.market-actions { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.market-action-button { width: 43px; height: 43px; display: grid; place-items: center; color: #174b20; border: 1px solid #dce9df; border-radius: 12px; background: #fff; transition: .2s ease; }
.market-action-button:hover { color: #0b3c13; border-color: #9fcbaa; background: #f0faf2; }
.market-action-button svg { width: 23px; height: 23px; }
.market-cart-count { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #212121; background: #facc15; font-size: .61rem; font-weight: 900; }

.market-login-button,
.market-seller-button { height: 42px; align-items: center; justify-content: center; padding: 0 1rem; border-radius: 11px; font-size: .76rem; font-weight: 800; transition: .2s ease; }
.market-login-button { color: #0b5c1c; border: 1px solid #b8d7be; background: #fff; }
.market-login-button:hover { background: #eef9f0; }
.market-seller-button { color: #25300c; background: linear-gradient(135deg, #facc15, #f6ad0a); box-shadow: 0 5px 13px rgba(245,173,10,.25); }
.market-seller-button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(245,173,10,.34); }

.market-account-button { height: 43px; display: flex; align-items: center; gap: .55rem; padding: 0 .65rem; border: 1px solid #dce9df; border-radius: 12px; color: #203625; background: #fff; font-size: .76rem; font-weight: 800; }
.market-account-button img { width: 29px; height: 29px; object-fit: cover; border-radius: 50%; }
.market-account-button .chevron { width: 14px; height: 14px; transition: transform .2s; }
.market-account-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 220px; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; box-shadow: 0 20px 45px rgba(17,24,39,.15); }
.market-account-menu > a, .market-account-menu form button { width: 100%; display: block; padding: .7rem 1rem; color: #374151; text-align: left; font-size: .78rem; font-weight: 700; }
.market-account-menu > a:hover, .market-account-menu form button:hover { color: #0b5c1c; background: #f0faf2; }

.market-shortcuts { border-top: 1px solid #edf2ee; border-bottom: 1px solid #e5eee7; background: #fff; }
.market-shortcuts a { min-height: 43px; display: flex; align-items: center; gap: .48rem; padding: .5rem .82rem; color: #34453a; font-size: .74rem; font-weight: 750; white-space: nowrap; transition: .2s ease; }
.market-shortcuts a:hover { color: #0b5c1c; background: #f2faf4; }
.market-category-trigger { min-width: 200px; color: #0b3c13 !important; border-right: 1px solid #edf2ee; font-weight: 850 !important; }
.market-category-trigger svg { width: 17px; height: 17px; }
.market-category-trigger > span:last-child { margin-left: auto; }
.shortcut-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; font-size: .69rem; font-weight: 900; }
.shortcut-icon.gold { color: #8a5900; background: #fff2bb; }
.shortcut-icon.red { color: #b42318; background: #fee4e2; }
.shortcut-icon.green { color: #087523; background: #dcfce4; }
.shortcut-icon.blue { color: #175cd3; background: #dbeafe; }
.shortcut-icon.purple { color: #6941c6; background: #ede9fe; }
.market-mobile-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem; padding: .85rem 1rem 1rem; border-top: 1px solid #e5eee7; background: #fff; }
.market-mobile-menu a { padding: .72rem .8rem; border-radius: 9px; color: #435148; background: #f6f8f6; font-size: .78rem; font-weight: 700; }

.market-home-hero { background: linear-gradient(180deg, #f3f8f4, #fff); }
.market-hero-grid { display: grid; grid-template-columns: 218px minmax(0,1fr) 210px; gap: 14px; align-items: stretch; }
.market-category-panel { overflow: hidden; border: 1px solid #e1ebe3; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(11,60,19,.06); }
.market-panel-title { height: 43px; display: flex; align-items: center; gap: .55rem; padding: 0 .9rem; color: #fff; background: linear-gradient(135deg, #0b3c13, #176326); font-size: .75rem; font-weight: 850; }
.market-panel-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.14); }
.market-category-list { padding: .42rem .35rem; }
.market-category-list a { min-height: 35px; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: .35rem; padding: .3rem .5rem; border-radius: 8px; color: #45564a; font-size: .72rem; font-weight: 700; transition: .18s ease; }
.market-category-list a:hover { color: #0b5c1c; background: #eef9f0; transform: translateX(2px); }
.market-category-emoji { font-size: 1.05rem; }
.market-category-list small { color: #9aa49c; font-size: .61rem; }
.market-all-category { display: flex; align-items: center; justify-content: space-between; margin: .25rem .65rem .65rem; padding: .58rem .62rem; border-top: 1px solid #eef2ef; color: #137127; font-size: .68rem; font-weight: 850; }

.market-hero-carousel { position: relative; min-width: 0; width: 100%; height: 400px; overflow: hidden; border-radius: 18px; background: #0b3c13; box-shadow: 0 14px 34px rgba(11,60,19,.17); }
.market-hero-carousel > .market-hero-slide { position: absolute; inset: 0; display: none; width: 100%; height: 100%; }
.market-hero-carousel > .market-hero-slide:first-of-type,
.market-hero-carousel > .market-hero-slide.is-active { display: block; animation: marketSlideReveal .55s ease both; }
.market-hero-carousel.is-ready > .market-hero-slide:first-of-type:not(.is-active) { display: none; }
@keyframes marketSlideReveal { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }
.market-hero-slide { position: relative; height: 100%; overflow: hidden; background: linear-gradient(135deg, #082f10, #17662a); }
.market-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.market-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,31,9,.92) 0%, rgba(5,44,13,.78) 38%, rgba(5,44,13,.16) 72%, rgba(5,44,13,.04) 100%); }
.market-hero-copy { position: relative; z-index: 2; width: min(62%, 600px); height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2.2rem 2.45rem; color: #fff; }
.market-hero-kicker { display: inline-flex; padding: .38rem .65rem; border: 1px solid rgba(250,204,21,.45); border-radius: 999px; color: #fde047; background: rgba(250,204,21,.1); font-size: .62rem; font-weight: 900; letter-spacing: .11em; }
.market-hero-copy h1 { margin-top: .8rem; color: #fff; font-size: clamp(1.8rem,3vw,3.1rem); font-weight: 900; line-height: 1.08; letter-spacing: -.045em; text-shadow: 0 2px 18px rgba(0,0,0,.22); }
.market-hero-copy p { max-width: 520px; margin-top: .8rem; color: rgba(255,255,255,.8); font-size: .84rem; line-height: 1.65; }
.market-hero-primary, .market-hero-secondary { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1rem; border-radius: 10px; font-size: .74rem; font-weight: 850; transition: .2s ease; }
.market-hero-primary { color: #27300e; background: linear-gradient(135deg, #fde047, #f6ad0a); box-shadow: 0 7px 20px rgba(246,173,10,.3); }
.market-hero-secondary { color: #fff; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.market-hero-primary:hover, .market-hero-secondary:hover { transform: translateY(-2px); }
.market-hero-seal { position: absolute; right: 1.35rem; bottom: 1.3rem; z-index: 2; width: 87px; height: 87px; align-items: center; justify-content: center; gap: .28rem; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; color: #fff; background: rgba(11,60,19,.72); backdrop-filter: blur(8px); transform: rotate(-7deg); box-shadow: 0 8px 25px rgba(0,0,0,.2); }
.market-hero-seal strong { color: #fde047; font-size: 1.2rem; font-weight: 900; }
.market-hero-seal span { font-size: .55rem; font-weight: 850; line-height: 1.1; text-transform: uppercase; }
.market-hero-prev, .market-hero-next { position: absolute; top: 50%; z-index: 8; width: 36px; height: 48px; display: grid; place-items: center; border: 0; color: #fff; background: rgba(4,31,9,.48); font-size: 1.7rem; line-height: 1; opacity: 0; transform: translateY(-50%); transition: .2s ease; cursor: pointer; }
.market-hero-prev { left: 0; border-radius: 0 9px 9px 0; }
.market-hero-next { right: 0; border-radius: 9px 0 0 9px; }
.market-hero-carousel:hover .market-hero-prev, .market-hero-carousel:hover .market-hero-next { opacity: 1; }
.market-hero-pagination .swiper-pagination-bullet { width: 18px; height: 5px; border-radius: 10px; background: #fff; opacity: .5; }
.market-hero-pagination .swiper-pagination-bullet-active { width: 30px; background: #facc15; opacity: 1; }
.market-carousel-dots { position: absolute; left: 50%; bottom: 14px; z-index: 10; display: flex; align-items: center; gap: 6px; transform: translateX(-50%); }
.market-carousel-dots button { width: 18px; height: 5px; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: .2s ease; }
.market-carousel-dots button.active { width: 30px; background: #facc15; }
.market-hero-fallback { background: radial-gradient(circle at 80% 20%, rgba(96,192,121,.35), transparent 32%), linear-gradient(120deg,#082e0f,#146124); }

.market-seller-teaser { flex-direction: column; padding: 1.2rem; border: 1px solid #e6dfb7; border-radius: 16px; background: linear-gradient(160deg, #fffef7, #fff8d5); box-shadow: 0 8px 22px rgba(118,91,0,.08); }
.market-seller-teaser-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #17802e, #0b4918); box-shadow: 0 8px 18px rgba(11,73,24,.2); }
.market-seller-teaser-icon svg { width: 27px; height: 27px; }
.market-teaser-label { margin-top: 1rem; color: #ac7103; font-size: .57rem; font-weight: 900; letter-spacing: .12em; }
.market-seller-teaser h2 { margin-top: .25rem; color: #16271a; font-size: 1.2rem; font-weight: 900; line-height: 1.22; letter-spacing: -.03em; }
.market-seller-teaser p { margin-top: .55rem; color: #69736b; font-size: .69rem; line-height: 1.55; }
.market-seller-teaser ul { display: grid; gap: .42rem; margin-top: 1rem; }
.market-seller-teaser li { display: flex; align-items: center; gap: .45rem; color: #455249; font-size: .65rem; font-weight: 700; }
.market-seller-teaser li span { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #137127; background: #dcfce4; font-size: .58rem; font-weight: 900; }
.market-seller-teaser > a { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: .72rem .8rem; border-radius: 10px; color: #fff; background: #0b5c1c; font-size: .7rem; font-weight: 850; }

.market-trust-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 14px; overflow: hidden; border: 1px solid #e4ece5; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(11,60,19,.05); }
.market-trust-item { min-width: 0; display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .8rem .9rem; border-right: 1px solid #e9efea; }
.market-trust-item:last-child { border: 0; }
.market-trust-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 11px; color: #0c6a20; background: #e6f7e9; font-size: .7rem; font-weight: 900; }
.market-trust-icon.wallet { color: #9a6500; background: #fff2c2; }
.market-trust-icon.chat { color: #087b41; background: #dbf7ea; }
.market-trust-icon.truck { color: #175cd3; background: #e7efff; }
.market-trust-item strong, .market-trust-item small { display: block; }
.market-trust-item strong { color: #27362b; font-size: .72rem; font-weight: 850; }
.market-trust-item small { margin-top: .08rem; color: #89928b; font-size: .6rem; }

.market-section { padding: 4.3rem 0; }
.market-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.market-section-heading h2, .market-benefit-intro h2, .market-how-section h2, .market-stat-card h2, .market-final-cta h2 { color: #17241a; font-size: clamp(1.55rem,3vw,2.2rem); font-weight: 900; line-height: 1.15; letter-spacing: -.04em; }
.market-section-heading p { margin-top: .45rem; color: #758079; font-size: .78rem; }
.market-eyebrow { display: block; margin-bottom: .45rem; color: #15742a; font-size: .62rem; font-weight: 900; letter-spacing: .13em; }
.market-eyebrow-light { color: #fde047; }
.market-see-all { display: inline-flex; align-items: center; gap: .4rem; color: #116923; font-size: .75rem; font-weight: 850; white-space: nowrap; }
.market-see-all span { transition: transform .2s; }
.market-see-all:hover span { transform: translateX(4px); }

.market-category-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); border: 1px solid #e5ece6; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 8px 22px rgba(11,60,19,.05); }
.market-category-card { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 145px; padding: 1rem .5rem; border-right: 1px solid #ebefec; text-align: center; transition: .22s ease; }
.market-category-card:last-child { border-right: 0; }
.market-category-card:hover { z-index: 1; background: #f1faf3; box-shadow: inset 0 -3px #1d8b35; transform: translateY(-3px); }
.market-category-card-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid #d9eadc; border-radius: 18px; background: linear-gradient(145deg,#f6fff7,#e3f3e6); font-size: 1.75rem; box-shadow: 0 6px 15px rgba(11,60,19,.07); transition: transform .22s; }
.market-category-card:hover .market-category-card-icon { transform: scale(1.08) rotate(-3deg); }
.market-category-card strong { margin-top: .65rem; overflow: hidden; color: #334239; font-size: .68rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.market-category-card small { margin-top: .18rem; color: #9aa29c; font-size: .59rem; }

.market-featured-section { background: linear-gradient(180deg,#f8faf8,#eff7f1); }
.market-promo-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; padding: 1rem 1.2rem; border-radius: 14px; color: #fff; background: linear-gradient(95deg,#0b3c13,#146125 70%,#1c7c34); box-shadow: 0 10px 25px rgba(11,60,19,.16); }
.market-promo-heading > div > div > span { color: #fde047; font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.market-promo-heading h2 { margin-top: .1rem; color: #fff; font-size: 1.2rem; font-weight: 900; }
.market-promo-heading > a { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border-radius: 9px; color: #25300c; background: #fde047; font-size: .68rem; font-weight: 900; }
.market-promo-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: #6d4800; background: linear-gradient(145deg,#fff2a7,#f7c821); font-size: 1.2rem; box-shadow: 0 5px 15px rgba(250,204,21,.25); }

.market-seller-benefits { padding: 5rem 0; color: #fff; background: radial-gradient(circle at 82% 12%,rgba(52,171,77,.3),transparent 26%), linear-gradient(130deg,#06280d,#0b3c13 55%,#125923); }
.market-benefit-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.3rem; }
.market-benefit-intro > div { max-width: 700px; }
.market-benefit-intro h2 { color: #fff; }
.market-benefit-intro p { max-width: 650px; margin-top: .7rem; color: rgba(255,255,255,.7); font-size: .83rem; line-height: 1.7; }
.market-benefit-cta { display: inline-flex; align-items: center; gap: .65rem; padding: .82rem 1rem; border-radius: 11px; color: #263109; background: linear-gradient(135deg,#fde047,#f6ad0a); font-size: .73rem; font-weight: 900; white-space: nowrap; box-shadow: 0 8px 22px rgba(246,173,10,.22); }
.market-benefit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.market-benefit-card { position: relative; overflow: hidden; min-height: 215px; padding: 1.35rem; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.075); backdrop-filter: blur(8px); transition: .22s ease; }
.market-benefit-card:hover { border-color: rgba(253,224,71,.45); background: rgba(255,255,255,.11); transform: translateY(-4px); }
.market-benefit-number { position: absolute; top: .75rem; right: 1rem; color: rgba(255,255,255,.13); font-size: 2.1rem; font-weight: 900; }
.market-benefit-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: #25300c; background: linear-gradient(145deg,#fff4a8,#f7c821); font-size: 1.45rem; box-shadow: 0 7px 18px rgba(250,204,21,.15); }
.market-benefit-card h3 { margin-top: 1rem; color: #fff; font-size: 1rem; font-weight: 850; }
.market-benefit-card p { margin-top: .48rem; color: rgba(255,255,255,.64); font-size: .72rem; line-height: 1.65; }
.market-benefit-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .7rem 1.7rem; margin-top: 1.7rem; padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: rgba(255,255,255,.7); background: rgba(0,0,0,.09); font-size: .68rem; font-weight: 750; }

.market-best-section { background: linear-gradient(180deg,#fffaf0,#fff); }
.market-ranked-product { position: relative; }
.market-rank-badge { position: absolute; top: 9px; left: 9px; z-index: 20; min-width: 34px; height: 25px; display: grid; place-items: center; padding: 0 .45rem; border: 2px solid #fff; border-radius: 8px; color: #fff; background: linear-gradient(135deg,#ea580c,#c2410c); box-shadow: 0 4px 10px rgba(194,65,12,.28); font-size: .64rem; font-weight: 900; }

.market-store-card { overflow: hidden; border: 1px solid #e3eae4; border-radius: 16px; background: #fff; box-shadow: 0 7px 19px rgba(11,60,19,.06); transition: .22s ease; }
.market-store-card:hover { border-color: #add2b4; box-shadow: 0 14px 30px rgba(11,60,19,.12); transform: translateY(-4px); }
.market-store-cover { position: relative; height: 120px; overflow: hidden; background: #dfece1; }
.market-store-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.market-store-card:hover .market-store-cover img { transform: scale(1.04); }
.market-store-cover-fallback { width: 100%; height: 100%; background: radial-gradient(circle at 80% 10%,rgba(250,204,21,.25),transparent 30%), linear-gradient(135deg,#0b3c13,#28843c); }
.market-store-status { position: absolute; top: .65rem; right: .65rem; padding: .28rem .55rem; border-radius: 999px; font-size: .58rem; font-weight: 900; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.market-store-status.open { color: #067327; background: #dcfce7; }
.market-store-status.closed { color: #b42318; background: #fee4e2; }
.market-store-info { position: relative; min-height: 83px; display: grid; grid-template-columns: 56px minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .95rem; }
.market-store-logo { width: 56px; height: 56px; margin-top: -35px; object-fit: cover; border: 4px solid #fff; border-radius: 14px; background: #fff; box-shadow: 0 5px 13px rgba(0,0,0,.12); }
.market-store-info h3 { overflow: hidden; color: #27362b; font-size: .82rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.market-store-info p { margin-top: .22rem; color: #8a948c; font-size: .63rem; }
.market-store-rating { color: #8a5b00; font-size: .64rem; font-weight: 850; }

.market-how-section { padding: 4.8rem 0; background: #f2f7f3; }
.market-how-section .text-center > p { margin-top: .6rem; color: #77827a; font-size: .78rem; }
.market-how-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid #dfe8e1; border-radius: 17px; background: #dfe8e1; box-shadow: 0 9px 24px rgba(11,60,19,.06); }
.market-how-grid article { position: relative; min-height: 210px; padding: 1.5rem; background: #fff; text-align: center; }
.market-how-number { position: absolute; top: .75rem; right: .9rem; color: #dce9df; font-size: 1.6rem; font-weight: 900; }
.market-how-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto; border: 1px solid #d8e9dc; border-radius: 50%; color: #0e6b22; background: linear-gradient(145deg,#f2fcf4,#dff2e3); font-size: 1.35rem; font-weight: 900; }
.market-how-grid h3 { margin-top: .9rem; color: #29372d; font-size: .87rem; font-weight: 850; }
.market-how-grid p { max-width: 180px; margin: .4rem auto 0; color: #849087; font-size: .67rem; line-height: 1.6; }

.market-community-section { padding: 0 0 4.5rem; background: #f2f7f3; }
.market-stat-card { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: center; padding: 2.2rem; border-radius: 20px; color: #fff; background: radial-gradient(circle at 85% 20%,rgba(60,183,84,.35),transparent 28%), linear-gradient(130deg,#06280d,#0c4a18); box-shadow: 0 15px 36px rgba(11,60,19,.2); }
.market-stat-card h2 { color: #fff; }
.market-stat-card > div:first-child p { margin-top: .65rem; color: rgba(255,255,255,.68); font-size: .76rem; }
.market-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.market-stat-grid > div { padding: .75rem .6rem; border-left: 1px solid rgba(255,255,255,.15); text-align: center; }
.market-stat-grid strong { display: block; color: #fde047; font-size: 1.65rem; font-weight: 900; line-height: 1; }
.market-stat-grid span { display: block; margin-top: .45rem; color: rgba(255,255,255,.65); font-size: .59rem; font-weight: 700; }

.market-final-cta { padding: 5rem 0; color: #fff; background: radial-gradient(circle at 15% 50%,rgba(250,204,21,.13),transparent 25%), linear-gradient(110deg,#0b3c13,#136526); }
.market-final-icon { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 1.2rem; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.1); font-size: 2.1rem; }
.market-final-cta h2 { color: #fff; }
.market-final-cta p { max-width: 680px; margin: .75rem auto 0; color: rgba(255,255,255,.7); font-size: .82rem; line-height: 1.7; }
.market-final-primary, .market-final-secondary { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .78rem 1.2rem; border-radius: 11px; font-size: .75rem; font-weight: 900; transition: .2s; }
.market-final-primary { color: #2a320c; background: linear-gradient(135deg,#fde047,#f6ad0a); box-shadow: 0 8px 22px rgba(246,173,10,.25); }
.market-final-secondary { color: #fff; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.market-final-primary:hover, .market-final-secondary:hover { transform: translateY(-2px); }

.market-empty { padding: 3.5rem 1rem; border: 1px dashed #cfdcd2; border-radius: 16px; color: #7b867e; background: rgba(255,255,255,.65); text-align: center; }
.market-empty > span { display: block; margin-bottom: .6rem; font-size: 2.4rem; }
.market-empty strong { display: block; color: #435148; font-size: .95rem; }
.market-empty p { margin-top: .35rem; font-size: .72rem; }
.market-empty a { display: inline-flex; margin-top: 1rem; padding: .65rem .9rem; border-radius: 9px; color: #fff; background: #0b5c1c; font-size: .68rem; font-weight: 850; }

@media (max-width: 1279px) {
  .market-hero-grid { grid-template-columns: 218px minmax(0,1fr); }
  .market-hero-carousel { height: 390px; }
}

@media (max-width: 1023px) {
  .market-hero-grid { display: block; }
  .market-hero-carousel { height: 365px; }
  .market-category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .market-category-card { border-bottom: 1px solid #ebefec; }
  .market-category-card:nth-child(4n) { border-right: 0; }
  .market-benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-stat-card { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .market-brand-logo { width: 42px; height: 42px; border-radius: 12px; }
  .market-brand-logo img { width: 36px; height: 36px; }
  .market-search { height: 43px; border-width: 1.5px; }
  .market-search button { min-width: 48px; }
  .market-search button span { display: none; }
  .market-action-button { width: 40px; height: 40px; }
  .market-hero-carousel { height: 330px; border-radius: 15px; }
  .market-hero-copy { width: 78%; padding: 1.6rem; }
  .market-hero-copy h1 { font-size: 2rem; }
  .market-hero-copy p { font-size: .74rem; }
  .market-trust-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-trust-item { justify-content: flex-start; border-bottom: 1px solid #e9efea; }
  .market-trust-item:nth-child(2) { border-right: 0; }
  .market-trust-item:nth-child(n+3) { border-bottom: 0; }
  .market-section { padding: 3.4rem 0; }
  .market-benefit-intro { display: block; }
  .market-benefit-cta { margin-top: 1.2rem; }
  .market-benefit-grid { grid-template-columns: 1fr; }
  .market-benefit-card { min-height: 190px; }
  .market-how-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-stat-grid > div:nth-child(3) { border-top: 1px solid rgba(255,255,255,.15); }
  .market-stat-grid > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.15); }
}

@media (max-width: 520px) {
  .market-utility { font-size: .61rem; }
  .market-home-hero > div { padding-left: .75rem; padding-right: .75rem; }
  .market-hero-carousel { height: 310px; }
  .market-hero-copy { width: 88%; padding: 1.3rem; justify-content: flex-end; padding-bottom: 3.2rem; }
  .market-hero-copy h1 { font-size: 1.55rem; }
  .market-hero-copy p { display: none; }
  .market-hero-kicker { font-size: .5rem; }
  .market-hero-primary, .market-hero-secondary { min-height: 38px; padding: .58rem .7rem; font-size: .62rem; }
  .market-hero-shade { background: linear-gradient(0deg,rgba(4,31,9,.94),rgba(5,44,13,.15) 90%); }
  .market-trust-item { gap: .5rem; padding: .68rem .55rem; }
  .market-trust-icon { width: 31px; height: 31px; flex-basis: 31px; }
  .market-trust-item strong { font-size: .62rem; }
  .market-trust-item small { display: none; }
  .market-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-category-card:nth-child(2n) { border-right: 0; }
  .market-category-card:nth-child(odd) { border-right: 1px solid #ebefec; }
  .market-category-card { min-height: 132px; }
  .market-section-heading { align-items: flex-start; }
  .market-section-heading p { display: none; }
  .market-see-all { font-size: .66rem; }
  .market-promo-heading { padding: .85rem; }
  .market-promo-heading > div > div > span { display: none; }
  .market-promo-heading h2 { font-size: .95rem; }
  .market-promo-heading > a { padding: .5rem .6rem; font-size: .59rem; }
  .market-promo-icon { width: 36px; height: 36px; }
  .market-how-grid article { min-height: 190px; padding: 1.2rem .8rem; }
  .market-stat-card { padding: 1.5rem 1rem; }
  .market-final-cta { padding: 4rem 0; }
}
