/* ============================================================
   VENDO - Premium Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Core Brand */
  --indigo-950: #0f0a2e;
  --indigo-900: #1a0f4f;
  --indigo-800: #2d1b8a;
  --indigo-700: #3d24b8;
  --indigo-600: #4f35d4;
  --indigo-500: #6351e8;
  --indigo-400: #8b7cf6;
  --indigo-300: #b4a8fb;
  --indigo-100: #ede9ff;
  --indigo-50:  #f5f3ff;

  --purple-700: #6b21a8;
  --purple-500: #a855f7;
  --purple-300: #d8b4fe;

  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --teal-600: #0d9488;

  --pink-500: #ec4899;

  /* Neutrals */
  --gray-950: #0a0a0f;
  --gray-900: #111118;
  --gray-800: #1c1c28;
  --gray-700: #2a2a3d;
  --gray-600: #3d3d55;
  --gray-500: #6b6b8a;
  --gray-400: #9494b0;
  --gray-300: #c4c4d8;
  --gray-200: #e2e2ee;
  --gray-100: #f0f0f8;
  --gray-50:  #f8f8fc;
  --white:    #ffffff;

  /* Semantic */
  --primary:       var(--indigo-600);
  --primary-dark:  var(--indigo-800);
  --primary-light: var(--indigo-400);
  --accent:        var(--teal-500);
  --accent-light:  var(--teal-400);
  --danger:  #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --info:    #3b82f6;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --radius-sm:  6px;
  --radius:    12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-md:  0 8px 32px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.08);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.16), 0 16px 40px rgba(0,0,0,.10);
  --shadow-indigo: 0 8px 32px rgba(79,53,212,.25);
  --shadow-teal:   0 8px 24px rgba(20,184,166,.25);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-xl { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.05; }
.display-lg { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
.display-md { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
.heading-lg { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 700; }
.heading-md { font-size: 1.5rem; font-weight: 600; }
.heading-sm { font-size: 1.125rem; font-weight: 600; }
.body-lg    { font-size: 1.125rem; line-height: 1.7; }
.body-md    { font-size: 1rem; }
.body-sm    { font-size: 0.875rem; }
.caption    { font-size: 0.75rem; color: var(--gray-500); }

.text-gradient {
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--indigo-400) 50%, var(--purple-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: linear-gradient(135deg, var(--pink-500) 0%, var(--purple-500) 60%, var(--indigo-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-700));
  color: var(--white);
  box-shadow: var(--shadow-indigo);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79,53,212,.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: var(--white);
  box-shadow: var(--shadow-teal);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(20,184,166,.35);
}

.btn-white {
  background: var(--white);
  color: var(--indigo-700);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
}

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

.btn-outline-dark {
  border: 1.5px solid var(--gray-200);
  color: var(--gray-700);
  background: transparent;
}

.btn-outline-dark:hover {
  border-color: var(--indigo-500);
  color: var(--indigo-600);
  background: var(--indigo-50);
}

.btn-ghost {
  color: var(--gray-600);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 17px 36px;
  font-size: 1.0625rem;
}

.btn-icon {
  padding: 11px;
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--gray-100);
}

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

.card-body { padding: 20px; }

/* Product Card */
.product-card { cursor: pointer; }

.product-card .card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}

.product-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.product-card .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-digital { background: rgba(79,53,212,.9); color: white; }
.badge-event   { background: rgba(20,184,166,.9); color: white; }
.badge-free    { background: rgba(16,185,129,.9); color: white; }

.product-card .card-body {
  padding: 18px;
}

.product-card .vendor-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.product-card .vendor-link img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-900);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.product-card .price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--indigo-700);
}

.product-card .price-free {
  color: var(--success);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.star-filled { color: #f59e0b; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s var(--ease);
}

/* Dark hero pages: nav links are white until scrolled */
body.page-home .header:not(.scrolled) .nav-link {
  color: rgba(255,255,255,0.75);
}
body.page-home .header:not(.scrolled) .nav-link:hover,
body.page-home .header:not(.scrolled) .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
body.page-home .header:not(.scrolled) .logo {
  color: var(--white);
}
/* ═══════════════════════════════════════════════════════
   LOGO SWAP — single image, CSS filter toggle
   Transparent header  → filter:brightness(0) invert(1) = white
   Scrolled/white header → filter:none = colored
═══════════════════════════════════════════════════════ */

/* Default: colored logo on all non-home pages + scrolled home */
.site-logo-img {
  filter: none;
  transition: filter .2s ease;
}

/* Homepage transparent header → invert to white */
body.page-home .header:not(.scrolled) .site-logo-img {
  filter: brightness(0) invert(1);
}

/* Homepage scrolled → remove filter, show colored */
body.page-home .header.scrolled .site-logo-img {
  filter: none;
}

/* ── Keep old logo-img classes working if still used ── */
.logo-img.logo-light    { display: block; }
.logo-img.logo-dark-img { display: none !important; }


/* Push page content below the 72px fixed header on all non-home pages */
body:not(.page-home) {
  padding-top: 72px;
}

/* Auth pages (login/register) don't need top padding — they center vertically */
body.page-auth {
  padding-top: 0 !important;
}

.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--indigo-700);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--indigo-600), var(--purple-500));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--indigo-700);
  background: var(--indigo-50);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.header-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease);
  z-index: 100;
}

.header-dropdown:hover .dropdown-menu,
.header-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: all 0.15s;
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--indigo-700);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 6px 0;
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: background .2s;
}
.hamburger:hover { background: var(--gray-100); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, width .3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Home page: hamburger spans are white when header is transparent */
body.page-home .header:not(.scrolled) .hamburger span { background: rgba(255,255,255,0.85); }
body.page-home .header:not(.scrolled) .hamburger:hover { background: rgba(255,255,255,0.1); }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
#mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
  z-index: 999;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  animation: slideDown .22s var(--ease-out) both;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.page-home #mobile-nav {
  background: var(--indigo-950);
  border-top-color: rgba(255,255,255,.08);
}

#mobile-nav .mobile-nav-inner {
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#mobile-nav .nav-link {
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s, color .15s;
}
#mobile-nav .nav-link:hover { background: var(--gray-50); color: var(--indigo-700); }
body.page-home #mobile-nav .nav-link { color: rgba(255,255,255,.75); }
body.page-home #mobile-nav .nav-link:hover { background: rgba(255,255,255,.08); color: white; }

#mobile-nav .mobile-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 8px 0;
}
body.page-home #mobile-nav .mobile-divider { background: rgba(255,255,255,.08); }

#mobile-nav .mobile-user-info {
  padding: 12px 14px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#mobile-nav .mobile-user-info img {
  width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
#mobile-nav .mobile-user-name { font-weight: 700; font-size: .9rem; color: var(--gray-900); }
#mobile-nav .mobile-user-email { font-size: .78rem; color: var(--gray-500); }
body.page-home #mobile-nav .mobile-user-name { color: white; }
body.page-home #mobile-nav .mobile-user-email { color: rgba(255,255,255,.5); }

#mobile-nav .mobile-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 14px 4px;
}
#mobile-nav .mobile-cta-row .btn {
  justify-content: center;
  font-size: .875rem;
  padding: 10px 16px;
}
#mobile-nav .nav-link.danger { color: var(--danger); }
#mobile-nav .nav-link.danger:hover { background: #fef2f2; }

/* ============================================================
   RESPONSIVE BREAKPOINTS — HEADER
   ============================================================ */
@media (max-width: 768px) {
  .nav { display: none; }            /* hide desktop nav */
  .hamburger { display: flex; }      /* show hamburger */
  .header-actions .btn-ghost,
  .header-actions .btn-outline-dark,
  .header-actions .btn-primary,
  .header-actions .btn-sm:not(.keep-mobile) { display: none; } /* hide desktop CTAs */
  .header-inner { gap: 0; }
}


/* ============================================================
   PAGE INNER HERO (non-home pages)
   ============================================================ */
.page-hero-inner {
  background: linear-gradient(145deg, var(--indigo-950) 0%, #1a0a4a 40%, #0d1535 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-inner::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,81,232,0.25), transparent 70%);
  top: -150px; right: -100px;
  filter: blur(60px);
}

.page-hero-inner::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,0.15), transparent 70%);
  bottom: -100px; left: -80px;
  filter: blur(60px);
}

.page-hero-inner .container { position: relative; z-index: 2; }

.page-hero-inner .section-label {
  color: var(--teal-400);
  margin-bottom: 14px;
}

.page-hero-inner h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 900;
}

.page-hero-inner p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--gray-800);
}

.empty-state p {
  color: var(--gray-500);
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================================
   MARKETPLACE FILTERS
   ============================================================ */
.marketplace-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.filter-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.filter-search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.filter-search .form-control {
  padding-left: 42px;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  transition: all 0.2s;
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--indigo-400);
  color: var(--indigo-700);
}

.filter-pill.active {
  background: var(--indigo-600);
  border-color: var(--indigo-600);
  color: white;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}

/* ============================================================
   SECTION LABEL (pill-style)
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--indigo-600);
  background: var(--indigo-50);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}


/* ============================================================
   INNER-PAGE HERO SEARCH BAR
   ============================================================ */
.page-hero-inner .search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 20px;
  max-width: 520px;
  margin: 24px auto 0;
  backdrop-filter: blur(12px);
  transition: border-color .2s;
}
.page-hero-inner .search-bar:focus-within {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.18);
}
.page-hero-inner .search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: .95rem;
  font-family: var(--font-body);
}
.page-hero-inner .search-bar input::placeholder { color: rgba(255,255,255,0.5); }
.page-hero-inner .search-bar button {
  background: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  padding: 10px 20px;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
}
.page-hero-inner .search-bar button:hover { background: var(--indigo-700); }

/* ============================================================
   AUTH PAGES (login / register / forgot / reset)
   ============================================================ */
body.page-auth {
  background: linear-gradient(135deg, var(--indigo-950) 0%, #1a0a4a 50%, #0d1535 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
body.page-auth .auth-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 48px;
  width: 100%;
  max-width: 460px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-950);
  color: rgba(255,255,255,0.55);
  padding: 72px 0 0;
  margin-top: 80px;
  font-size: .9rem;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Brand column */
.footer-brand .logo {
  color: white !important;
  margin-bottom: 16px;
  display: inline-flex;
}
.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: .875rem;
  max-width: 280px;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.footer-social a:hover {
  background: var(--indigo-600);
  border-color: var(--indigo-500);
  color: white;
  transform: translateY(-2px);
}

/* Link columns */
.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s, padding-left .2s;
  display: inline-block;
}
.footer-links a:hover {
  color: rgba(255,255,255,0.9);
  padding-left: 4px;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255,255,255,0.3);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom i {
  color: var(--teal-500);
  margin-right: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p { max-width: 100%; }
}
@media (max-width: 560px) {
  .footer { padding-top: 48px; margin-top: 48px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ============================================================
   RESPONSIVE FIXES — v2
   ============================================================ */

/* Checkout two-column → single on mobile */
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr !important; }
  .checkout-grid > div:last-child { position: static !important; }
}

/* Account tabs → horizontal scroll on mobile */
@media (max-width: 640px) {
  .account-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap !important; }
  .account-tabs a { white-space: nowrap; }
}

/* Product/event detail responsive */
@media (max-width: 900px) {
  .product-detail-grid  { grid-template-columns: 1fr !important; }
  .event-detail-grid    { grid-template-columns: 1fr !important; }
}

/* Vendor store grid */
@media (max-width: 768px) {
  .vendor-store-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .vendor-store-grid { grid-template-columns: 1fr !important; }
}

/* Marketplace — keep 2 cols on tablet */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr !important; }
}

/* Events grid */
@media (max-width: 900px) {
  .events-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .events-grid { grid-template-columns: 1fr !important; }
}

/* page-hero-inner padding fix on mobile */
@media (max-width: 640px) {
  .page-hero-inner { padding: 100px 0 60px; }
  .page-hero-inner h1 { font-size: 1.8rem; }
}

/* Pricing cards */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr !important; }
}

/* Become-vendor page */
@media (max-width: 900px) {
  .become-vendor-grid { grid-template-columns: 1fr !important; }
}

/* Container horizontal padding on very small screens */
@media (max-width: 380px) {
  .container { padding-left: 14px; padding-right: 14px; }
}

/* Make all fixed-width inline grids fluid */
@media (max-width: 768px) {
  [style*="grid-template-columns:1fr 380px"],
  [style*="grid-template-columns: 1fr 380px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 340px"],
  [style*="grid-template-columns: 1fr 340px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns: 1fr 320px"] {
    grid-template-columns: 1fr !important;
  }
}
