/* =============================================
   MARKETHUB — MAIN STYLESHEET
   Design: Luxury Dark + Clean Light Hybrid
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Sora:wght@300;400;500;600&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --primary:        #0f172a;
  --secondary:      #6366f1;
  --accent:         #f59e0b;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --info:           #3b82f6;

  --bg:             #f8fafc;
  --bg-card:        #ffffff;
  --bg-muted:       #f1f5f9;
  --border:         #e2e8f0;
  --border-focus:   var(--secondary);

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-inverse:   #ffffff;

  --header-h:       72px;
  --sidebar-w:      260px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-sm:      8px;
  --shadow:         0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:      0 20px 60px rgba(0,0,0,.15);

  --font-display:   'Clash Display', sans-serif;
  --font-body:      'Sora', sans-serif;

  --transition:     0.2s ease;
  --transition-md:  0.35s cubic-bezier(.4,0,.2,1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-search { flex: 1; max-width: 520px; }
.search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-wrap:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.search-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: .95rem;
  color: var(--text-primary);
}
.search-btn {
  padding: 10px 20px;
  background: var(--secondary);
  color: #fff;
  font-size: 1rem;
  transition: background var(--transition);
}
.search-btn:hover { background: #4f46e5; }
.header-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link {
  padding: 8px 14px;
  font-weight: 500;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--secondary); background: rgba(99,102,241,.08); }
.nav-icon-btn {
  position: relative;
  padding: 8px 12px;
  font-size: 1.2rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-icon-btn:hover { background: var(--bg-muted); }
.badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--secondary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* User Dropdown */
.user-dropdown { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg-muted);
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-weight: 500;
  font-size: .9rem;
  color: var(--text-primary);
  transition: all var(--transition);
}
.user-trigger:hover { border-color: var(--secondary); }
.user-avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.user-initials {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--secondary), #818cf8);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.chevron { font-size: .7rem; color: var(--text-muted); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-md);
  z-index: 200;
}
.user-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text-primary);
  transition: all var(--transition);
}
.dropdown-menu a:hover { background: var(--bg-muted); color: var(--secondary); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.logout-link { color: var(--danger) !important; }

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-primary:hover { background: #4f46e5; border-color: #4f46e5; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,.3); }
.btn-dark {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-dark:hover { background: #1e293b; transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.btn-accent:hover { background: #d97706; }
.btn-outline {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn-outline:hover { background: var(--secondary); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-muted); color: var(--text-primary); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-xl { padding: 18px 40px; font-size: 1.1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-primary-sm { padding: 8px 18px; background: var(--secondary); color: #fff; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; }
.btn-outline-sm { padding: 8px 18px; border: 1.5px solid var(--border); color: var(--text-secondary); border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; }
.btn-outline-sm:hover { border-color: var(--secondary); color: var(--secondary); }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-md);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { padding: 24px; }
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-md);
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(99,102,241,.3); }
.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-muted);
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-sale { background: var(--danger); color: #fff; }
.badge-new { background: var(--success); color: #fff; }
.badge-featured { background: var(--accent); color: var(--primary); }
.badge-sponsored { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: .65rem; }
.product-card-sponsored { border-color: rgba(99,102,241,.35) !important; }
.product-card-sponsored::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #6366f1, #a78bfa); }
.product-wishlist {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: all var(--transition);
  opacity: 0;
  transform: scale(0.8);
  font-size: 1rem;
}
.product-card:hover .product-wishlist { opacity: 1; transform: scale(1); }
.product-wishlist:hover { transform: scale(1.1) !important; color: var(--danger); }
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-store-link {
  font-size: .75rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; }
.stars { color: var(--accent); }
.rating-count { color: var(--text-muted); }
.product-price {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 8px;
}
.price-main { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.price-compare { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.price-discount { font-size: .75rem; color: var(--danger); font-weight: 700; }
.product-card-footer { padding: 12px 16px; border-top: 1px solid var(--border); }
.add-to-cart-btn {
  width: 100%;
  padding: 9px;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
  transition: all var(--transition);
}
.add-to-cart-btn:hover { background: #4f46e5; transform: translateY(-1px); }

/* =============================================
   FORMS
   ============================================= */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-weight: 600; font-size: .9rem; color: var(--text-primary); }
.form-hint { font-size: .8rem; color: var(--text-muted); }
.form-control {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .95rem;
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.form-control.is-error { border-color: var(--danger); }
.form-error { font-size: .8rem; color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-group { position: relative; display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); flex: 1; }
.input-group-append { display: flex; }
.input-group-append .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-prefix {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.input-with-prefix .form-control { padding-left: 36px; }

/* =============================================
   ALERTS / FLASH
   ============================================= */
.flash-container { position: fixed; top: calc(var(--header-h) + 16px); right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  box-shadow: var(--shadow);
  animation: slideIn .3s ease;
  max-width: 400px;
}
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }
.alert-success { background: #ecfdf5; border-left: 4px solid var(--success); color: #065f46; }
.alert-error { background: #fef2f2; border-left: 4px solid var(--danger); color: #991b1b; }
.alert-warning { background: #fffbeb; border-left: 4px solid var(--warning); color: #92400e; }
.alert-info { background: #eff6ff; border-left: 4px solid var(--info); color: #1e40af; }
.alert-icon { font-size: 1rem; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content { margin-top: var(--header-h); min-height: calc(100vh - var(--header-h)); }
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.7); }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-title .subtitle-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(99,102,241,.1);
  color: var(--secondary);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

/* =============================================
   STATS / METRICS
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--secondary); }
.stat-label { font-size: .85rem; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

/* =============================================
   TABLE
   ============================================= */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { padding: 14px 16px; background: var(--bg-muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); text-align: left; }
td { padding: 14px 16px; border-top: 1px solid var(--border); color: var(--text-primary); vertical-align: middle; }
tr:hover td { background: rgba(99,102,241,.03); }

/* Status Badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.status-active    { background: #ecfdf5; color: #065f46; }
.status-pending   { background: #fffbeb; color: #92400e; }
.status-suspended { background: #fef2f2; color: #991b1b; }
.status-approved  { background: #ecfdf5; color: #065f46; }
.status-rejected  { background: #fef2f2; color: #991b1b; }
.status-paid      { background: #ecfdf5; color: #065f46; }
.status-processing{ background: #eff6ff; color: #1e40af; }
.status-shipped   { background: #f3e8ff; color: #7c3aed; }
.status-delivered { background: #ecfdf5; color: #065f46; }
.status-cancelled { background: #fef2f2; color: #991b1b; }
.status-refunded  { background: #fff7ed; color: #c2410c; }
.status-draft     { background: #f8fafc; color: #64748b; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 32px 0;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.page-btn.active { background: var(--secondary); border-color: var(--secondary); color: #fff; }

/* =============================================
   SIDEBAR LAYOUT (Seller/Admin)
   ============================================= */
.dashboard-layout { display: flex; min-height: calc(100vh - var(--header-h)); }
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary);
  color: var(--text-inverse);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.sidebar-brand-sub { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 2px; }
.sidebar-nav { flex: 1; padding: 16px 12px; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-section-title {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.3);
  padding: 0 8px;
  margin-bottom: 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar-link.active { color: #fff; background: var(--secondary); }
.sidebar-link .icon { width: 20px; text-align: center; font-size: 1rem; }
.sidebar-link .badge-sm {
  margin-left: auto;
  background: var(--secondary);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 50px;
}
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.dashboard-content { flex: 1; padding: 32px; overflow: hidden; }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 { font-size: 1.75rem; }
.dashboard-header p { color: var(--text-muted); }

/* =============================================
   METRIC CARDS (Dashboard)
   ============================================= */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.metric-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--secondary);
}
.metric-card.c2::before { background: var(--success); }
.metric-card.c3::before { background: var(--accent); }
.metric-card.c4::before { background: var(--danger); }
.metric-icon { font-size: 2rem; margin-bottom: 12px; }
.metric-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; margin-bottom: 4px; }
.metric-label { font-size: .85rem; color: var(--text-muted); }
.metric-change {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .8rem; font-weight: 700;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 50px;
}
.metric-change.up { background: #ecfdf5; color: var(--success); }
.metric-change.down { background: #fef2f2; color: var(--danger); }

/* =============================================
   STORE CARD
   ============================================= */
.store-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-md);
}
.store-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.store-banner {
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
}
.store-banner img { width: 100%; height: 100%; object-fit: cover; }
.store-logo-wrap {
  position: absolute;
  bottom: -28px; left: 20px;
  width: 56px; height: 56px;
  background: white;
  border-radius: var(--radius-sm);
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.store-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.store-card-body { padding: 40px 20px 20px; }
.store-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.store-meta { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--text-muted); margin-top: 8px; }

/* =============================================
   CATEGORY GRID
   ============================================= */
.category-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}
.category-pill:hover { border-color: var(--secondary); color: var(--secondary); background: rgba(99,102,241,.06); }
.category-pill.active { border-color: var(--secondary); background: var(--secondary); color: #fff; }
.category-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition-md);
  cursor: pointer;
}
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(99,102,241,.3); }
.category-icon { font-size: 2.5rem; margin-bottom: 12px; }
.category-name { font-weight: 700; font-size: .95rem; }
.category-count { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

/* =============================================
   REVIEW STARS
   ============================================= */
.review-stars { display: flex; gap: 2px; }
.star { font-size: 1rem; color: #d1d5db; }
.star.filled { color: var(--accent); }

/* =============================================
   IMAGE UPLOAD
   ============================================= */
.img-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-muted);
}
.img-upload-area:hover { border-color: var(--secondary); background: rgba(99,102,241,.04); }
.img-upload-area.dragover { border-color: var(--secondary); background: rgba(99,102,241,.08); }
.img-upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.img-upload-text { font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.img-upload-sub { font-size: .8rem; color: var(--text-muted); }

/* =============================================
   TABS
   ============================================= */
.tab-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--secondary); }
.tab-btn.active { color: var(--secondary); border-bottom-color: var(--secondary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(.95);
  transition: transform var(--transition-md);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; background: var(--bg-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.2rem; transition: all var(--transition); }
.modal-close:hover { background: var(--border); color: var(--text-primary); }
.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo { filter: brightness(0) invert(1); opacity: .9; }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.footer-tagline { font-size: .9rem; margin: 10px 0 20px; color: rgba(255,255,255,.5); }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.social-link:hover { background: var(--secondary); color: #fff; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: .04em; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .85rem;
}
.payment-badges { display: flex; gap: 8px; }
.payment-badge {
  padding: 4px 10px;
  background: rgba(255,255,255,.06);
  border-radius: 50px;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}

/* =============================================
   UTILS
   ============================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-primary-color { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.p-3 { padding: 24px; }
.gap-1 { gap: 4px; }
.d-none { display: none; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.loading { opacity: .5; pointer-events: none; }
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(99,102,241,.3);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-state-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =============================================
   SEARCH FILTERS
   ============================================= */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: .85rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.filter-select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--secondary); }
.results-info { font-size: .85rem; color: var(--text-muted); margin-left: auto; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb-sep { color: var(--border); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .sidebar { width: 220px; }
  .dashboard-content { padding: 24px; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-search { display: none; }
  .nav-link { display: none; }
  .mobile-menu-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; top: 0; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
}
