/* ==========================================================================
   E Seller Store - Modern Light-Mode E-Commerce Design System & Stylesheet
   Color Palette:
   - Header & Top Bar: Crisp White (#FFFFFF) & Light Slate (#F8FAFC)
   - Primary Slate Navy: #0F172A / #1E293B
   - Vibrant Brand Blue: #1A73E8 / Hover: #1557B0 / Light Tint: #E8F0FE
   - Accent Badge / Hot: #E11D48 / Gold: #F59E0B
   - Subtle Borders: #E5E7EB / Divider: #F1F5F9 / Blue Border: #D2E3FC
   - Background Light: #FFFFFF / Card BG: #FFFFFF
   - Typography: #0F172A (Headings) / #64748B (Body & Charcoal Muted)
   ========================================================================== */

:root {
  --primary-navy: #0f172a;
  --primary-dark: #0f172a;
  --brand-blue: #0284c7;
  --brand-blue-hover: #0369a1;
  --brand-blue-light: #e0f2fe;
  --brand-blue-border: #bae6fd;
  --brand-sky: #38bdf8;
  --brand-red: #dc2626;
  --brand-red-hover: #b91c1c;
  --brand-crimson: #e11d48;
  --brand-yellow: #f59e0b;
  --brand-amber: #eab308;
  --accent-gold: #f59e0b;
  --bg-light: #ffffff;
  --bg-subtle: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-light: #e5e7eb;
  --border-subtle: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-card: 12px;
  --radius-lg: 14px;
}

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

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Keyframes */
@keyframes floatGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.35);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 14px 30px rgba(26, 115, 232, 0.45);
  }
}

@keyframes springBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.2) rotate(-4deg); }
  70% { transform: scale(0.95) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(26, 115, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
}

/* Logo & Vector Mark Styling */
.ref-logo {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-logo:hover {
  transform: scale(1.02);
}

.ref-logo span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.unread-badge {
  background: var(--brand-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
  animation: pulseGlow 1.5s infinite;
}

/* ==========================================================================
   TOP UTILITY BAR (Level 1: Crisp Light Slate #F8FAFC)
   ========================================================================== */
.ref-top-bar {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-dropdowns select {
  background: transparent;
  color: #64748b;
  border: none;
  font-size: 12px;
  margin-right: 12px;
  cursor: pointer;
  font-weight: 500;
  outline: none;
}

.top-bar-dropdowns select:hover {
  color: var(--brand-blue);
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar-links a {
  color: #64748b;
  font-weight: 500;
}

.top-bar-links a:hover {
  color: var(--brand-blue);
}

/* ==========================================================================
   MAIN HEADER (Level 2: Crisp Clean White #FFFFFF)
   ========================================================================== */
.ref-main-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ref-search-container {
  flex: 1;
  max-width: 620px;
  position: relative;
}

.ref-search-pill {
  display: flex;
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.ref-search-pill:focus-within {
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.ref-search-input {
  flex: 1;
  padding: 11px 20px;
  border: none;
  background: transparent;
  font-size: 13.5px;
  outline: none;
  color: var(--text-dark);
}

.ref-search-input::placeholder {
  color: #94a3b8;
}

.ref-search-icon-btn {
  background: var(--brand-blue);
  color: #fff;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.2s ease;
}

.ref-search-icon-btn:hover {
  background: var(--brand-blue-hover);
}

.ajax-search-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
}

.ajax-search-dropdown.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #f8fafc;
}

.search-result-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.ref-user-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}

.ref-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ref-user-links {
  font-size: 13px;
  color: #64748b;
}

.ref-user-links a {
  color: var(--text-dark);
  font-weight: 600;
}

.ref-user-links a:hover {
  color: var(--brand-blue);
}

/* ==========================================================================
   PRIMARY NAVIGATION BAR (Level 3: Slate Navy #0F172A)
   ========================================================================== */
.ref-nav-bar {
  background: var(--primary-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.nav-bar-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.categories-btn-trigger {
  background: #1e293b;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  border-radius: 6px 6px 0 0;
}

.categories-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: #ffffff;
  color: #333;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: none;
  z-index: 1000;
  border: 1px solid var(--border-light);
}

.categories-btn-trigger:hover .categories-dropdown-menu {
  display: block;
}

.cat-item {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  transition: all 0.2s ease;
}

.cat-item:hover {
  background: #eff6ff;
  color: var(--brand-blue);
  padding-left: 20px;
}

.ref-nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.ref-nav-menu a {
  color: #f1f5f9;
  font-weight: 500;
  font-size: 13.5px;
  padding: 13px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.ref-nav-menu a:hover, .ref-nav-menu a.active {
  color: #60a5fa;
  font-weight: 600;
}

.ref-cart-summary {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ref-cart-summary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   UPFRONT VISIBLE BRANDS SECTION
   ========================================================================== */
.visible-brands-container {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin: 24px 0;
  border: 1px solid var(--border-light);
}

.visible-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.visible-brand-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.visible-brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
  background: #ffffff;
}

.visible-brand-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.visible-brand-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.visible-brand-card small {
  font-size: 10px;
  color: var(--brand-blue);
  font-weight: 600;
  background: var(--brand-blue-light);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ==========================================================================
   SELLER ZONE BANNER (Light Blue to White Gradient Card)
   ========================================================================== */
.seller-zone-banner {
  background: linear-gradient(135deg, #e8f0fe 0%, #ffffff 100%);
  border-radius: var(--radius-card);
  padding: 24px 32px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--brand-blue-border);
}

.seller-zone-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.seller-zone-text h3 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.3px;
}

.seller-zone-text p {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.highlight-apply-now-btn {
  background: var(--brand-blue);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.28);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-apply-now-btn:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.38);
}

/* ==========================================================================
   FEATURE #1: ADMIN AD CAMPAIGN MANAGEMENT & IN-FEED ADS
   ========================================================================== */
.ad-campaign-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.ad-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.ad-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: #10b981;
}

input:checked + .slider-round:before {
  transform: translateX(20px);
}

.in-feed-ad-banner {
  background: #ffffff;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 32px 0;
  box-shadow: var(--shadow-card);
  position: relative;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.in-feed-ad-banner img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.in-feed-ad-content {
  position: absolute;
  bottom: 20px;
  left: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  max-width: 500px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  color: var(--text-dark);
}

/* ==========================================================================
   FEATURE #3: LIVE CHAT DRAWER & SUPPORT
   ========================================================================== */
.ai-chat-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1a73e8 100%);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.35);
  cursor: pointer;
  z-index: 8000;
  animation: floatGlow 4s infinite ease-in-out;
  transition: transform 0.2s ease;
}

.ai-chat-trigger-btn:hover {
  transform: scale(1.1);
}

.ai-chat-drawer {
  position: fixed;
  bottom: 95px;
  right: 24px;
  width: 360px;
  height: 480px;
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  z-index: 8500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.ai-chat-drawer.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ai-chat-header {
  background: var(--primary-navy);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-header h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
}

.ai-msg.bot {
  background: #ffffff;
  color: #1e293b;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
  border-bottom-left-radius: 2px;
  border: 1px solid var(--border-light);
}

.ai-msg.admin-reply {
  background: var(--brand-blue);
  color: #ffffff;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
  border-bottom-left-radius: 2px;
}

.ai-msg.user {
  background: #0f172a;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.ai-chat-footer {
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}

.ai-chat-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 12px;
  outline: none;
}

.ai-chat-input:focus {
  border-color: var(--brand-blue);
}

.ai-send-btn {
  background: var(--brand-blue);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-send-btn:hover {
  background: var(--brand-blue-hover);
}

/* Admin Live Chat Inbox Styles */
.admin-chat-inbox-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  min-height: 320px;
}

.admin-chat-threads-list {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow-y: auto;
  max-height: 320px;
}

.admin-chat-thread-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s ease;
}

.admin-chat-thread-item.active, .admin-chat-thread-item:hover {
  background: #e2e8f0;
}

.admin-chat-messages-box {
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 320px;
}

.admin-chat-stream {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

/* ==========================================================================
   REAL-TIME ADMIN NOTIFICATION FEED
   ========================================================================== */
.admin-live-feed-box {
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 20px;
}

.admin-feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
}

.admin-feed-item:last-child {
  border-bottom: none;
}

.admin-feed-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.admin-feed-badge.info { background: #1a73e8; color: #fff; }
.admin-feed-badge.warning { background: #f59e0b; color: #000; }
.admin-feed-badge.success { background: #10b981; color: #fff; }

/* ==========================================================================
   HERO LAYOUT & PRODUCT GRIDS
   ========================================================================== */
.hero-layout-section {
  padding: 20px 0;
}

.hero-flex-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}

.ref-main-banner {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #e8f0fe 100%);
  display: flex;
  align-items: center;
}

.ref-main-banner img {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.banner-overlay-content {
  position: absolute;
  top: 50%;
  left: 36px;
  transform: translateY(-50%);
  color: #0f172a;
  max-width: 480px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 26px 30px;
  border-radius: 12px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
}

.banner-overlay-content h2 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
  letter-spacing: -0.5px;
  text-shadow: none;
}

.banner-overlay-content p {
  font-size: 13.5px;
  margin-bottom: 16px;
  color: #475569;
  text-shadow: none;
  font-weight: 500;
  line-height: 1.45;
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}

.todays-deal-vertical-box {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.todays-deal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.todays-deal-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.hot-badge {
  background: var(--brand-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.deal-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.deal-item-card:hover {
  transform: translateX(4px);
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.deal-item-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.deal-item-price {
  color: var(--brand-blue);
  font-size: 16px;
  font-weight: 800;
}

/* Category Strip */
.category-strip-section {
  margin: 20px 0;
}

.category-strip-flex {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.cat-strip-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  min-width: 130px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-strip-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-strip-card img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
}

.cat-strip-card p {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Products Grid */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 16px 0;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 8px;
}

.section-heading span {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  position: relative;
}

.section-heading span::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--brand-blue);
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.2);
}

.product-img-box {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

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

.product-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: auto;
}

.product-price .original {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

.product-card-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.btn-buy-now {
  background: var(--brand-blue);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
}

.btn-buy-now:hover {
  transform: translateY(-1px);
  background: var(--brand-blue-hover);
}

.btn-add-cart {
  background: #f1f5f9;
  color: #1e293b;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-cart:hover {
  transform: translateY(-1px);
  background: #e2e8f0;
  color: #0f172a;
}

.checkout-vendor-badge {
  background: var(--brand-blue-light);
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}

/* ==========================================================================
   DASHBOARDS (Admin & Vendor)
   ========================================================================== */
.dashboard-view {
  display: none;
  padding: 24px 0;
}

.dashboard-view.active {
  display: block;
}

.dash-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}

.dash-table th, .dash-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.dash-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
}

.status-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.status-badge.verified { background: #dcfce7; color: #15803d; }
.status-badge.pending_verification { background: #fef3c7; color: #b45309; }
.status-badge.rejected { background: #fee2e2; color: #b91c1c; }
.status-badge.suspended { background: #fee2e2; color: #991b1b; font-weight: 800; }

/* Admin Master Sub-Navigation Tabs */
.admin-nav-tabs, .vendor-nav-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 24px;
  padding-bottom: 2px;
}

.admin-tab-btn, .vendor-tab-btn {
  background: #f1f5f9;
  color: #64748b;
  padding: 10px 18px;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--border-light);
  border-bottom: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-tab-btn:hover, .vendor-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.admin-tab-btn.active, .vendor-tab-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.admin-tab-content, .vendor-tab-content {
  display: none;
}

.admin-tab-content.active, .vendor-tab-content.active {
  display: block;
}

/* Vendor 7 Stats Grid */
.vendor-7stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card-box {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.stat-card-box .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-card-box .stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-card-box.balance-box { border-top: 3px solid var(--brand-blue); }
.stat-card-box.pending-box { border-top: 3px solid #f59e0b; }
.stat-card-box.shipping-box { border-top: 3px solid #0284c7; }
.stat-card-box.complete-box { border-top: 3px solid #10b981; }

/* Sliding Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  justify-content: flex-end;
}

.cart-drawer-overlay.active {
  display: flex;
}

.cart-drawer {
  width: 360px;
  height: 100%;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.cart-header {
  padding: 16px;
  background: var(--primary-navy);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.cart-footer {
  padding: 16px;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 28px;
  max-width: 600px;
  width: 90%;
  box-shadow: var(--shadow-card);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-light);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 20px;
  color: #64748b;
}

.modal-close-btn:hover {
  color: var(--text-dark);
}

/* Cookie Popup */
.cookie-consent-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #ffffff;
  color: var(--text-dark);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 7000;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  border: 1px solid var(--border-light);
}

.cookie-accept-btn {
  background: var(--brand-blue);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

/* Vendor Verification & Multi-Target Badges */
.vendor-pending-banner {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #92400e;
}

.official-badge-tag {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue-border);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.5px;
}

/* Dual Image Upload Dropzones */
.image-upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-upload-zone:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.image-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.image-preview-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

/* Checkout Payment Methods */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-method-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payment-method-card:hover {
  border-color: #cbd5e1;
}

.payment-method-card.selected {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
}

/* Chat Attachment Preview */
.chat-attachment-preview-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f1f5f9;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
}

.chat-attachment-img {
  max-width: 180px;
  max-height: 120px;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  margin-top: 6px;
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   FOOTER (Modern Slate #0F172A)
   ========================================================================== */
.ref-footer {
  background: var(--primary-navy);
  color: #94a3b8;
  padding: 48px 0 24px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-grid ul a {
  color: #94a3b8;
}

.footer-grid ul a:hover {
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media screen and (max-width: 900px) {
  .top-bar-flex {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .header-flex {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .ref-logo {
    justify-content: center;
  }

  .ref-search-container {
    max-width: 100%;
  }

  .ref-user-auth {
    justify-content: center;
  }

  .nav-bar-flex {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
  }

  .categories-btn-trigger {
    width: 100%;
    justify-content: center;
    border-radius: 6px;
  }

  .categories-dropdown-menu {
    width: 100%;
  }

  .ref-nav-menu {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .ref-cart-summary {
    width: 100%;
    text-align: center;
  }

  .hero-flex-grid {
    grid-template-columns: 1fr;
  }

  .ref-main-banner {
    height: 260px;
  }

  .seller-zone-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px 16px;
  }

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

  .vendor-7stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media screen and (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .product-img-box {
    height: 130px;
  }

  .product-title {
    font-size: 12px;
    height: 32px;
  }

  .product-price {
    font-size: 14px;
  }

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