/* ==========================================================================
   CHUKA UNIVERSITY STUDENT MARKETPLACE - DESIGN SYSTEM & CORE STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --chuka-blue: #2563eb;
  --chuka-blue-hover: #1d4ed8;
  --chuka-blue-light: #eff6ff;
  --chuka-navy: #0e2a47;
  --chuka-navy-dark: #09172a;
  --chuka-navy-light: #163e69;
  --chuka-gold: #eab308;
  --chuka-green: #16a34a;
  --chuka-green-dark: #15803d;
  --chuka-orange: #ea580c;
  --chuka-red: #e11d48;

  /* Neutrals */
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-slate: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Container */
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-slate);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-crest {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--chuka-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-input-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0 16px;
  height: 44px;
  transition: all 0.2s ease;
}

.search-input-box:focus-within {
  background-color: var(--bg-white);
  border-color: var(--chuka-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 10px;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-dark);
}

.search-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.search-clear-btn {
  display: none;
  background: transparent;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 50%;
}

.search-clear-btn:hover {
  color: var(--text-dark);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-slate);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all 0.18s ease;
}

.nav-item:hover {
  color: var(--chuka-blue);
  background-color: var(--chuka-blue-light);
}

.nav-item.active {
  color: var(--chuka-blue);
  background-color: var(--chuka-blue-light);
}

.nav-item-icon {
  width: 18px;
  height: 18px;
}

/* Account Dropdown */
.account-dropdown-wrapper {
  position: relative;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-slate);
  padding: 8px 14px;
  border-radius: var(--radius-md);
}

.account-btn:hover {
  background-color: #f1f5f9;
  color: var(--text-dark);
}

.account-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: 8px 0;
  display: none;
  animation: fadeInDown 0.15s ease-out;
  z-index: 100;
}

.account-menu.show {
  display: block;
}

.account-menu-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}

.account-menu-user {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.account-menu-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--chuka-green);
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-slate);
  transition: all 0.15s ease;
}

.account-menu-item:hover {
  background-color: #f8fafc;
  color: var(--chuka-blue);
}

/* Cart Button */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: #f1f5f9;
  color: var(--chuka-navy);
  transition: all 0.2s ease;
}

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

.cart-count-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-white);
  line-height: 1;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
}

/* ==========================================================================
   HERO BANNER - VIBRANT & EYE-CATCHING REDESIGN
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 540px;
  overflow: hidden;
  background-color: #070f1e;
  display: flex;
  align-items: center;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: brightness(0.66) contrast(1.18) saturate(1.15);
  transform: scale(1.02);
  transition: transform 12s ease;
}

.hero-section:hover .hero-bg-img {
  transform: scale(1.04);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    108deg,
    rgba(7, 15, 30, 0.95) 0%,
    rgba(7, 15, 30, 0.88) 38%,
    rgba(9, 23, 42, 0.72) 70%,
    rgba(9, 23, 42, 0.5) 100%
  );
}

/* Ambient Glowing Mesh Orbs */
.hero-mesh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}

.hero-mesh-1 {
  width: 460px;
  height: 460px;
  top: -100px;
  left: -60px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.55), rgba(37, 99, 235, 0.2) 65%, transparent 80%);
}

.hero-mesh-2 {
  width: 520px;
  height: 520px;
  bottom: -140px;
  right: -60px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45), rgba(14, 165, 233, 0.2) 60%, transparent 80%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 88%);
}

/* Hero Grid Layout */
.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px 0;
}

.hero-content {
  max-width: 650px;
  color: #ffffff;
}

/* Campus Verification Pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), 0 0 16px rgba(56, 189, 248, 0.15);
  margin-bottom: 20px;
}

.hero-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseHeroGreen 2s infinite ease-in-out;
}

@keyframes pulseHeroGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero-badge-text {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.01em;
}

.hero-badge-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Main Hero Headline */
.hero-title {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 45%, #a78bfa 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 18px rgba(56, 189, 248, 0.35));
}

.hero-description {
  font-size: 16.5px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 550px;
}

/* Trust Micro-Badges */
.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trust-badge-item svg {
  color: #38bdf8;
}

/* CTA Group & Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--chuka-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--chuka-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.hero-btn-glow {
  position: relative;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  padding: 13.5px 26px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.hero-btn-glow::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: rotate(35deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.hero-btn-glow:hover::after {
  transform: rotate(35deg) translateY(100%);
}

.hero-btn-glow:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(37, 99, 235, 0.7);
}

.btn-arrow {
  transition: transform 0.22s ease;
}

.hero-btn-glow:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(14, 42, 71, 0.85);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: rgba(22, 62, 105, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.hero-btn-glass {
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 13.5px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero-btn-glass:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.6);
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Trending Search Tag Pills */
.hero-quick-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-tags-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-tags-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-tag-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-tag-pill:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   HERO RIGHT COLUMN - VISUAL GLASS CARD & CAMPUS SHOWCASE
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glass-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.72) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(37, 99, 235, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(56, 189, 248, 0.25);
}

/* Floating Notification Micro-Cards */
.floating-deal-pill {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 15px;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.18);
  pointer-events: none;
}

.float-top {
  top: -20px;
  right: -20px;
  animation: heroFloat1 4.5s ease-in-out infinite alternate;
}

.float-bottom {
  bottom: -22px;
  left: -22px;
  animation: heroFloat2 5s ease-in-out infinite alternate;
}

@keyframes heroFloat1 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-9px) rotate(1deg); }
}

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

.deal-pill-icon {
  font-size: 20px;
  line-height: 1;
}

.deal-pill-text {
  display: flex;
  flex-direction: column;
}

.deal-pill-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.deal-pill-sub {
  font-size: 10.5px;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 1px;
}

/* Card Header: Live indicator */
.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: pulseHeroGreen 2s infinite ease-in-out;
}

.live-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.campus-loc {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* Featured Student Deal in Hero */
.hero-featured-deal {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-featured-deal:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.5);
  transform: scale(1.01);
}

.deal-media {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: #09172a;
}

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

.hero-featured-deal:hover .deal-img {
  transform: scale(1.05);
}

.deal-badge-hot {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45);
}

.deal-condition {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.deal-info {
  padding: 14px 16px;
}

.deal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.deal-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.deal-price {
  font-size: 17px;
  font-weight: 800;
  color: #38bdf8;
}

.deal-specs {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.deal-seller-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 11px;
}

.deal-seller {
  display: flex;
  align-items: center;
  gap: 9px;
}

.deal-seller-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
}

.deal-seller-meta {
  display: flex;
  flex-direction: column;
}

.deal-seller-name {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.deal-seller-dept {
  font-size: 10.5px;
  color: #94a3b8;
}

.deal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--chuka-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deal-action-btn:hover {
  background: var(--chuka-blue-hover);
  transform: translateY(-1px);
}

/* Live Marketplace Stats Bar */
.hero-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.hero-stat-number {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 10.5px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 3px;
}

.hero-stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   SHOP BY CATEGORY SECTION
   ========================================================================== */
.section-padding {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--chuka-blue);
  transition: all 0.18s ease;
}

.section-link:hover {
  color: var(--chuka-blue-hover);
  transform: translateX(3px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
}

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

.category-card.active {
  border-color: var(--chuka-blue);
  box-shadow: 0 0 0 2px var(--chuka-blue);
}

.category-icon-box {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.category-card:hover .category-icon-box {
  transform: scale(1.1);
}

.category-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

/* ==========================================================================
   FEATURED PRODUCTS SECTION
   ========================================================================== */
.featured-section {
  background-color: var(--bg-page);
  padding-top: 10px;
  padding-bottom: 50px;
}

.product-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.filter-chip {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-slate);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--chuka-blue);
  color: var(--chuka-blue);
}

.filter-chip.active {
  background-color: var(--chuka-navy);
  border-color: var(--chuka-navy);
  color: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* Product Card */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

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

/* Image Container */
.product-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f1f5f9;
}

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

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

/* Badge */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.badge-popular {
  background-color: #2563eb;
}

.badge-new {
  background-color: #16a34a;
}

.badge-best-deal {
  background-color: #ea580c;
}

.badge-fresh {
  background-color: #059669;
}

/* Wishlist Button */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  z-index: 2;
  transition: all 0.2s ease;
}

.wishlist-btn:hover {
  background: #ffffff;
  color: #ef4444;
  transform: scale(1.1);
}

.wishlist-btn.active {
  color: #ef4444;
  background: #ffffff;
}

/* Card Body */
.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--chuka-green);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

/* Seller Meta */
.seller-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  margin-bottom: 10px;
}

.seller-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
}

.seller-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.seller-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-dept {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Location Tag */
.location-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.location-icon {
  color: #ef4444;
  flex-shrink: 0;
}

/* Card CTA */
.btn-view-details {
  width: 100%;
  background-color: var(--chuka-navy);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-view-details:hover {
  background-color: var(--chuka-blue);
  box-shadow: 0 4px 10px rgba(14, 42, 71, 0.2);
}

/* Quick add button overlay */
.quick-add-btn {
  margin-top: 6px;
  width: 100%;
  background-color: #f1f5f9;
  color: var(--text-slate);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.quick-add-btn:hover {
  background-color: #e2e8f0;
  color: var(--chuka-blue);
}

/* Empty search state */
.empty-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

/* ==========================================================================
   VALUE PROPOSITION / TRUST BAR
   ========================================================================== */
.trust-bar-section {
  background-color: #f0f7ff;
  border-top: 1px solid #e0e7ff;
  border-bottom: 1px solid #e0e7ff;
  padding: 28px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--chuka-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.trust-content {
  display: flex;
  flex-direction: column;
}

.trust-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--chuka-navy);
  line-height: 1.2;
}

.trust-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--chuka-navy-dark);
  color: #94a3b8;
  padding-top: 56px;
  padding-bottom: 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 40px;
}

/* Footer Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-crest {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.footer-brand-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.footer-brand-motto {
  font-size: 12px;
  color: var(--chuka-gold);
  font-weight: 500;
  font-style: italic;
}

.footer-campus-info {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-top: 4px;
}

/* Footer Column */
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 13.5px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

/* Social Icons */
.social-icons-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.social-circle:hover {
  background-color: var(--chuka-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Footer Tagline Right */
.footer-tagline-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  text-align: right;
}

.built-for-text {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.buy-sell-support-text {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
}

/* ==========================================================================
   MODALS AND DRAWERS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

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

.modal-window {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

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

/* Product Detail Modal Content */
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  padding: 32px;
}

.product-modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-modal-main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-product-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 10px;
}

.modal-product-price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--chuka-green);
  margin-bottom: 14px;
}

.modal-product-desc {
  font-size: 14px;
  color: var(--text-slate);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-seller-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.modal-seller-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-seller-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-seller-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-1px);
}

.btn-add-cart-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--chuka-navy);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-md);
}

.btn-add-cart-large:hover {
  background-color: var(--chuka-blue);
}

/* Post Item Modal Form */
.post-form-content {
  padding: 32px;
}

.form-header {
  margin-bottom: 24px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.col-span-2 {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
  color: var(--text-dark);
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  background-color: #ffffff;
  border-color: var(--chuka-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Slide-over Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1100;
  display: none;
}

.cart-drawer-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.cart-drawer-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #f1f5f9;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.cart-item-seller {
  font-size: 11.5px;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 800;
  color: var(--chuka-green);
  font-size: 14px;
  margin-top: 4px;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.cart-qty-btn:hover {
  background-color: #e2e8f0;
}

.cart-remove-btn {
  margin-left: auto;
  color: #94a3b8;
  background: transparent;
}

.cart-remove-btn:hover {
  color: #ef4444;
}

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

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-total-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-total-val {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--chuka-green);
}

.btn-checkout {
  width: 100%;
  background-color: var(--chuka-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-checkout:hover {
  background-color: var(--chuka-blue-hover);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--chuka-navy-dark);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInUp 0.25s ease-out;
  max-width: 380px;
}

.toast.toast-success {
  border-left: 4px solid var(--chuka-green);
}

.toast.toast-info {
  border-left: 4px solid var(--chuka-blue);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   MOBILE NAVIGATION COMPONENTS (DRAWER & BOTTOM BAR)
   ========================================================================== */
.mobile-menu-toggle-btn {
  display: none;
  background: transparent;
  color: var(--chuka-navy);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.mobile-menu-toggle-btn:active {
  background-color: #f1f5f9;
  transform: scale(0.95);
}

/* Mobile Off-canvas Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #ffffff;
  z-index: 1201;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-drawer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.mobile-drawer-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--chuka-navy);
  line-height: 1.15;
}

.mobile-drawer-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.mobile-drawer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.mobile-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--chuka-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.mobile-profile-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.mobile-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-slate);
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.mobile-drawer-item:hover,
.mobile-drawer-item:active {
  background-color: var(--chuka-blue-light);
  color: var(--chuka-blue);
}

.mobile-drawer-item.active {
  background-color: var(--chuka-blue-light);
  color: var(--chuka-blue);
}

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

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  gap: 3px;
  flex: 1;
  height: 100%;
  transition: color 0.18s ease;
}

.mobile-bar-btn.active {
  color: var(--chuka-blue);
}

.mobile-bar-sell-btn {
  position: relative;
}

.sell-fab-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--chuka-blue), #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  margin-top: -16px;
  border: 3px solid #ffffff;
  transition: transform 0.2s ease;
}

.sell-fab-circle:active {
  transform: scale(0.92);
}

.bar-wishlist-dot {
  display: none;
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.bar-wishlist-dot.active {
  display: block;
}

.bar-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  font-size: 9.5px;
  min-width: 16px;
  height: 16px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 48px 0;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-visual {
    width: 100%;
  }
  .hero-glass-card {
    max-width: 480px;
    margin: 0 auto;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .product-modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  /* Prevent bottom bar overlap */
  body {
    padding-bottom: 74px;
  }

  .site-header {
    padding: 10px 0 12px 0;
  }

  .navbar {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-link {
    gap: 8px;
  }

  .brand-crest {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 11.5px;
  }

  .brand-tagline {
    display: none;
  }

  /* Search row takes full width */
  .search-wrapper {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
  }

  .search-input-box {
    height: 42px;
  }

  .nav-actions .nav-item,
  .nav-actions .account-dropdown-wrapper {
    display: none;
  }

  .mobile-menu-toggle-btn {
    display: flex;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  /* Hero Section Mobile */
  .hero-section {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 40px 0;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-badge {
    padding: 5px 12px 5px 8px;
    margin-bottom: 14px;
  }

  .hero-badge-text {
    font-size: 12px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.16;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
  }

  .hero-description {
    font-size: 14.5px;
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .hero-trust-badges {
    gap: 8px;
    margin-bottom: 22px;
  }

  .trust-badge-item {
    font-size: 11px;
    padding: 4px 10px;
  }

  .hero-cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-bottom: 22px;
  }

  .hero-btn-glow, .hero-btn-glass {
    padding: 12px 14px;
    font-size: 13.5px;
    justify-content: center;
  }

  .quick-tags-label {
    width: 100%;
    margin-bottom: 2px;
  }

  .hero-quick-tags {
    gap: 6px;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-glass-card {
    max-width: 100%;
    padding: 16px;
  }

  .floating-deal-pill {
    position: static;
    margin-bottom: 10px;
    width: 100%;
    justify-content: center;
    animation: none;
    padding: 8px 12px;
  }

  .float-top {
    margin-top: -6px;
    margin-bottom: 10px;
  }

  .float-bottom {
    margin-top: 12px;
    margin-bottom: 0;
  }

  /* Shop by Category: Swipeable Horizontal Carousel */
  .section-padding {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .section-header {
    margin-bottom: 18px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-subtitle {
    font-size: 13px;
  }

  .section-link {
    font-size: 13px;
  }

  .category-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 4px 2px 14px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-grid::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    flex: 0 0 114px;
    scroll-snap-align: start;
    padding: 14px 8px;
    border-radius: var(--radius-md);
  }

  .category-icon-box {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
  }

  .category-name {
    font-size: 12px;
  }

  /* Filter bar */
  .product-filter-bar {
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 18px;
  }

  .filter-chip {
    padding: 6px 14px;
    font-size: 12.5px;
    flex-shrink: 0;
  }

  /* Product Cards on Mobile (2-Column Grid) */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .product-badge {
    top: 8px;
    left: 8px;
    font-size: 10px;
    padding: 3px 8px;
  }

  .wishlist-btn {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }

  .product-body {
    padding: 10px 10px 12px 10px;
  }

  .product-title {
    font-size: 13.5px;
    margin-bottom: 3px;
  }

  .product-price {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .product-desc {
    display: none; /* Hide multi-line text on mobile cards for uniform compact appearance */
  }

  .seller-row {
    padding-top: 8px;
    margin-top: 6px;
    margin-bottom: 6px;
    gap: 6px;
  }

  .seller-avatar {
    width: 26px;
    height: 26px;
  }

  .seller-name {
    font-size: 11.5px;
  }

  .seller-dept {
    font-size: 9.5px;
  }

  .location-row {
    font-size: 10.5px;
    margin-bottom: 10px;
  }

  .btn-view-details {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
  }

  .quick-add-btn {
    display: none; /* Keep mobile card clean */
  }

  /* Bottom-Sheet Modals */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-window {
    border-radius: 20px 20px 0 0;
    max-height: 86vh;
    width: 100%;
    max-width: 100%;
    animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .product-modal-grid {
    padding: 20px 18px 30px 18px;
    gap: 16px;
  }

  .modal-product-title {
    font-size: 20px;
  }

  .modal-product-price {
    font-size: 22px;
  }

  .post-form-content {
    padding: 20px 18px 30px 18px;
  }

  .form-title {
    font-size: 20px;
  }

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

  /* Cart Drawer Full Screen */
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  .cart-drawer-header {
    padding: 16px 20px;
  }

  .cart-drawer-items {
    padding: 16px 20px;
  }

  .cart-drawer-footer {
    padding: 16px 20px 30px 20px;
  }

  /* Trust Bar */
  .trust-bar-section {
    padding: 22px 0;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .trust-item {
    gap: 12px;
  }

  .trust-icon-box {
    width: 40px;
    height: 40px;
  }

  .trust-title {
    font-size: 14px;
  }

  .trust-desc {
    font-size: 11.5px;
  }

  /* Footer */
  .site-footer {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .footer-tagline-col {
    align-items: flex-start;
    text-align: left;
  }

  /* Toast position on mobile */
  .toast-container {
    bottom: 80px;
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: 100%;
    font-size: 13px;
  }
}

@media (max-width: 440px) {
  .hero-cta-group {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.18;
  }

  .hero-badge {
    flex-wrap: wrap;
    gap: 6px;
  }

  .products-grid {
    gap: 8px;
  }

  .product-body {
    padding: 8px 8px 10px 8px;
  }

  .product-title {
    font-size: 12.5px;
  }

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

