/* ============================================================
   Pocketstall — Design System
   ============================================================ */

/* ============================================================
   Pocketstall — Premium Design System (Landing Page)
   ============================================================ */

:root {
  /* Brand - Forest Green */
  --clr-primary: #228B22;
  --clr-primary-hover: #1a6e1a;
  --clr-primary-light: rgba(34, 139, 34, 0.08);
  --clr-primary-dark: #145214;

  /* Backgrounds */
  --clr-canvas: #FBF8F3;
  --clr-surface: #ffffff;
  --clr-card: #f6f6f7;
  --clr-card-hover: #edeff1;

  /* Accents */
  --clr-accent-coral: #e88d7c;
  --clr-accent-gold: #d4a853;

  /* Neutrals */
  --clr-text-primary: #0B0F19;
  --clr-text-secondary: #6B7280;
  --clr-text-on-primary: #ffffff;
  --clr-border: #E5E7EB;
  --clr-border-light: #F3F4F6;
  --clr-white: #ffffff;
  --clr-black: #0B0F19;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display-premium: 'Playfair Display', 'Georgia', serif;
}

/* ---- Premium Nav ---- */
.v-nav {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease;
}

.v-logo-text {
  font-family: var(--font-display-premium);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  letter-spacing: -0.02em;
}

.v-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4B5563;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.v-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.v-nav-link:hover {
  color: var(--clr-text-primary);
}

.v-nav-link:hover::after {
  width: 100%;
}

/* ---- Premium Button ---- */
.v-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: var(--clr-text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.v-btn-primary:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  color: white;
}

.v-btn-primary:active {
  transform: translateY(0);
}

.v-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.5rem;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-primary);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.v-btn-outline:hover {
  border-color: var(--clr-text-primary);
  background: rgba(11, 15, 25, 0.04);
  color: var(--clr-text-primary);
}

.v-btn-lg {
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
}

/* ---- Premium Input ---- */
.v-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: white;
  color: var(--clr-text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.v-input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.v-input::placeholder {
  color: #9CA3AF;
}

.v-input-light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: white;
}

.v-input-light:focus {
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.v-input-light::placeholder {
  color: rgba(255,255,255,0.4);
}

/* ---- Hero Section ---- */
.v-hero {
  position: relative;
  background: #FBF8F3;
}

.v-hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(5, 150, 105, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.v-hero-glow-2 {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse 50% 40% at 70% 60%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.v-hero-title {
  font-family: var(--font-display-premium);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0B0F19;
  margin-bottom: 1.25rem;
}

.v-text-accent {
  color: var(--clr-primary);
  font-style: italic;
}

.v-hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.v-badge {
  background: rgba(5, 150, 105, 0.08);
  color: var(--clr-primary);
  letter-spacing: 0.05em;
}

/* ---- Hero Mockup Stack ---- */
.v-mockup-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 380px;
}

.v-mockup {
  position: absolute;
  border-radius: 16px;
  padding: 1.25rem;
  background: white;
  box-shadow:
    0 4px 6px -2px rgba(0,0,0,0.05),
    0 12px 40px -8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.v-mockup-back {
  top: 20px;
  right: -20px;
  z-index: 0;
  transform: rotate(-3deg) scale(0.92);
  opacity: 0.6;
}

.v-mockup-front {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(0deg);
}

.v-mockup-front:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 12px -4px rgba(0,0,0,0.06),
    0 24px 60px -16px rgba(0,0,0,0.12);
}

/* ---- Stats ---- */
.v-stats {
  padding: 3rem 0;
  background: white;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
}

.v-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.v-stat-item {
  text-align: center;
  padding: 0.5rem 0;
}

.v-stat-number {
  font-family: var(--font-display-premium);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.v-stat-label {
  font-size: 0.85rem;
  color: #6B7280;
  font-weight: 500;
}

/* ---- Section Labels ---- */
.v-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-primary);
  margin-bottom: 0.75rem;
}

.v-section-title {
  font-family: var(--font-display-premium);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #0B0F19;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.v-section-desc {
  font-size: 1.05rem;
  color: #6B7280;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Bento Grid ---- */
.v-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
}

.v-bento-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.v-bento-card:hover {
  border-color: rgba(5, 150, 105, 0.2);
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.06);
  transform: translateY(-2px);
}

.v-bento-card-lg {
  grid-column: span 2;
  grid-row: span 2;
}

.v-bento-card-sm {
  grid-column: span 1;
  grid-row: span 1;
}

.v-bento-card-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.v-bento-card-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.v-bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(5, 150, 105, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  margin-bottom: 1rem;
  transition: background 0.25s ease;
}

.v-bento-card:hover .v-bento-icon {
  background: rgba(5, 150, 105, 0.14);
}

.v-bento-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0B0F19;
  margin-bottom: 0.5rem;
}

.v-bento-desc {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.6;
}

/* ---- Steps ---- */
.v-step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.v-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0B0F19;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display-premium);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v-step:hover .v-step-number {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(11, 15, 25, 0.15);
}

.v-step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0B0F19;
  margin-bottom: 0.5rem;
}

.v-step-desc {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* ---- Pricing ---- */
.v-pricing-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.v-pricing-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.v-pricing-card-featured {
  border-color: var(--clr-primary);
  border-width: 2px;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.08);
  transform: scale(1.03);
  z-index: 1;
}

.v-pricing-card-featured:hover {
  box-shadow: 0 8px 32px rgba(5, 150, 105, 0.12);
}

.v-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 999px;
}

.v-pricing-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  margin-bottom: 0.75rem;
}

.v-pricing-price {
  font-family: var(--font-display-premium);
  font-size: 2.75rem;
  font-weight: 700;
  color: #0B0F19;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.v-pricing-currency {
  font-size: 1.25rem;
  vertical-align: super;
  margin-right: 0.1rem;
}

.v-pricing-period {
  font-size: 0.85rem;
  color: #6B7280;
  margin-bottom: 1.5rem;
}

.v-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.v-pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #4B5563;
}

/* ---- FAQ ---- */
.v-faq-item {
  background: #FBF8F3;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.v-faq-item:hover {
  border-color: rgba(0, 0, 0, 0.08);
}

.v-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #0B0F19;
  text-align: left;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.v-faq-btn:hover {
  color: var(--clr-primary);
}

.v-faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #9CA3AF;
  transition: transform 0.3s ease;
}

.v-faq-item.open .v-faq-chevron {
  transform: rotate(180deg);
  color: var(--clr-primary);
}

.v-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.v-faq-item.open .v-faq-answer {
  max-height: 300px;
}

.v-faq-answer p {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.7;
}

/* ---- CTA ---- */
.v-cta {
  padding: 5rem 0;
  background: #0B0F19;
  color: white;
}

.v-cta-title {
  font-family: var(--font-display-premium);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.v-cta-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ---- Scroll Animations ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .v-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .v-bento-card-lg {
    grid-column: span 2;
    grid-row: span 1;
  }

  .v-bento-card-sm {
    grid-column: span 1;
    grid-row: span 1;
  }

  .v-bento-card-wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .v-bento-card-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .v-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .v-bento {
    grid-template-columns: 1fr;
  }

  .v-bento-card-lg,
  .v-bento-card-wide,
  .v-bento-card-tall,
  .v-bento-card-sm {
    grid-column: span 1;
    grid-row: span 1;
  }

  .v-pricing-card-featured {
    transform: none;
  }

  .v-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .v-mockup-back {
    display: none;
  }
}

/* ---- CSS Custom Properties (Design Tokens) — Legacy ---- */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--clr-text-primary);
  background-color: var(--clr-canvas);
  min-height: 100vh;
  line-height: 1.6;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--clr-text-primary);
}

/* ---- Layout ---- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Surface / Card ---- */
.surface {
  background-color: var(--clr-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-feature {
  background-color: var(--clr-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: background-color 0.2s;
}

.card-feature:hover {
  background-color: var(--clr-card-hover);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--clr-primary);
  color: var(--clr-text-on-primary);
}
.btn-primary:hover {
  background-color: var(--clr-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
}
.btn-outline:hover {
  background-color: var(--clr-primary-light);
}

.btn-ghost {
  background-color: transparent;
  color: var(--clr-text-secondary);
  border: 1.5px solid var(--clr-border);
}
.btn-ghost:hover {
  background-color: var(--clr-surface);
  border-color: var(--clr-text-secondary);
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ---- Form Elements ---- */
.input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--clr-border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background-color: var(--clr-white);
  color: var(--clr-text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-light);
}
.input::placeholder { color: #aaa; }

.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  margin-bottom: 0.35rem;
}

/* ---- Accent utilities ---- */
.text-coral { color: var(--clr-accent-coral); }
.text-gold { color: var(--clr-accent-gold); }
.text-primary { color: var(--clr-primary); }
.bg-coral-light { background-color: rgba(232, 141, 124, 0.12); }
.bg-gold-light { background-color: rgba(212, 168, 83, 0.12); }

/* ---- Link sharing ---- */
.share-link-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--clr-white);
  border: 1.5px solid var(--clr-border-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  word-break: break-all;
}

.share-link-box .url {
  flex: 1;
  color: var(--clr-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Product card ---- */
.product-card {
  background-color: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  border: 1px solid var(--clr-border-light);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .body {
  padding: 1rem 1rem 1.25rem;
}

.product-card .name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .price {
  font-weight: 700;
  color: var(--clr-primary);
  font-size: 1.1rem;
}

/* ---- Storefront header ---- */
.store-header {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.store-header .banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-header .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
}

.store-header .content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  width: 100%;
  color: white;
}

.store-header .store-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* ---- Cart sidebar / drawer ---- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--clr-white);
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-drawer.open { transform: translateX(0); }

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

.cart-drawer .items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cart-drawer .items::-webkit-scrollbar {
  display: none;
}

.cart-drawer .footer {
  flex-shrink: 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--clr-border-light);
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--clr-border-light);
}
.cart-item:last-child { border-bottom: none; }

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

.cart-item .info { flex: 1; }
.cart-item .name { font-weight: 500; font-size: 0.9rem; }
.cart-item .price { color: var(--clr-primary); font-weight: 600; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--clr-text-primary);
  color: var(--clr-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 139, 34, 0.3); }
  50%      { box-shadow: 0 0 0 12px rgba(34, 139, 34, 0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-in-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Delay helpers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }

/* Stagger children in a grid/list */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.animate-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.animate-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.animate-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.animate-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.animate-stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.animate-stagger.visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.animate-stagger.visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }

/* ---- Glass card ---- */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-primary), #2ea043);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Dark section ---- */
.dark-section {
  background: var(--clr-black);
  padding: 5rem 0;
}

.dark-section h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.dark-section > .container > p {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.dark-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.dark-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

.dark-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.dark-card .icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(34, 139, 34, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--clr-primary);
  transition: background 0.3s ease;
}

.dark-card:hover .icon-wrap {
  background: rgba(34, 139, 34, 0.25);
}

.dark-card h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dark-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--clr-white);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--clr-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text-primary);
  text-align: left;
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--clr-primary);
}

.faq-question .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--clr-text-secondary);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
  color: var(--clr-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(34, 139, 34, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(212, 168, 83, 0.06) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--clr-text-secondary);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Store preview card (hero) ---- */
.store-preview {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow:
    0 4px 6px -2px rgba(0,0,0,0.05),
    0 12px 40px -8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 380px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-preview:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 12px -4px rgba(0,0,0,0.06),
    0 20px 60px -12px rgba(0,0,0,0.12);
}

.store-preview .avatar {
  width: 44px;
  height: 44px;
  background: var(--clr-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.store-preview .rating-stars {
  color: var(--clr-accent-gold);
  font-size: 0.85rem;
}

.store-preview .progress-bar {
  height: 6px;
  background: var(--clr-border-light);
  border-radius: 3px;
  overflow: hidden;
}

.store-preview .progress-bar .fill {
  height: 100%;
  background: var(--clr-primary);
  border-radius: 3px;
  opacity: 0.5;
  width: 33%;
}

/* Floating animation for preview */
.float-anim {
  animation: float 5s ease-in-out infinite;
}

/* ---- Features grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 4px 20px rgba(34, 139, 34, 0.08);
  transform: translateY(-2px);
}

.feature-card .icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--clr-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--clr-primary);
  transition: background 0.3s ease;
}

.feature-card:hover .icon-wrap {
  background: var(--clr-primary);
  color: white;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
}

/* ---- Stats section ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
}

/* ---- Steps (How it works) ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.step {
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(34, 139, 34, 0.25);
}

.step h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ---- CTA section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #1a6e1a 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-section p {
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

.cta-section .btn {
  background: white;
  color: var(--clr-primary);
  font-weight: 600;
}

.cta-section .btn:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cta-section .btn-outline-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.cta-section .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ---- Footer ---- */
.footer-modern {
  border-top: 1px solid var(--clr-border-light);
  padding: 2.5rem 0 1.5rem;
}

.footer-modern .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-modern .brand-desc {
  font-size: 0.85rem;
  color: var(--clr-text-secondary);
  max-width: 280px;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.footer-modern h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-secondary);
  margin-bottom: 1rem;
}

.footer-modern a {
  display: block;
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-modern a:hover {
  color: var(--clr-primary);
}

.footer-modern .bottom {
  border-top: 1px solid var(--clr-border-light);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--clr-text-secondary);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- Mobile tab bar (dashboard) ---- */
.mobile-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border-light);
  padding: 0.35rem 0;
  justify-content: space-around;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.mobile-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--clr-text-secondary);
  transition: color 0.2s;
  min-width: 0;
}

.mobile-tab-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-tab-btn.active {
  color: var(--clr-primary);
}

.mobile-tab-btn span {
  font-size: 0.6rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ---- Dashboard sticky header ---- */
.dashboard-header-sticky {
  position: sticky;
  top: 0;
  z-index: 101;
}

/* ---- Dashboard body ---- */
.dashboard-body {
  height: calc(100dvh - 52px);
  overflow: hidden;
}

/* ---- Dashboard sidebar ---- */
.dashboard-sidebar {
  position: fixed;
  top: 52px;
  left: 0;
  width: var(--sidebar-width, 220px);
  height: calc(100dvh - 52px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ---- Dashboard main (scrollable content) ---- */
.dashboard-main {
  overflow-y: auto;
  height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dashboard-main::-webkit-scrollbar {
  display: none;
}

/* ---- Dashboard overview link card ---- */
.overview-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---- Nav (modern) ---- */
.nav-modern {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--clr-text-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .dark-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 3rem 0 4rem;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .cart-drawer { width: 100vw; }
  .modal { padding: 1.5rem !important; }
  #detail-image { max-height: 200px !important; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-modern .grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-modern .brand-col {
    grid-column: 1 / -1;
  }

  .cta-section {
    padding: 3rem 1.5rem;
    border-radius: var(--radius-md);
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-content > div {
    grid-template-columns: 1fr !important;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-modern .bottom {
    flex-direction: column;
    text-align: center;
  }

  .dark-features {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
  }

  .dashboard-body {
    overflow-y: visible;
  }

  .dashboard-header > div:first-child {
    gap: 0.5rem !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
    padding: 1rem 1rem 5rem !important;
  }

  .dashboard-sidebar {
    display: none;
  }

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

  .overview-link-card {
    flex-direction: column;
    align-items: stretch;
  }

  .overview-link-card .share-link-box {
    width: 100%;
  }

  .share-surface {
    padding: 1.25rem !important;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .product-modal-grid {
    grid-template-columns: 1fr !important;
  }

  .share-link-box {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .product-card-item {
    flex-direction: column;
    gap: 0.75rem !important;
  }

  .settings-grid {
    grid-template-columns: 1fr !important;
  }

  .settings-layout {
    grid-template-columns: 1fr !important;
  }

  .settings-layout > .surface:last-child {
    position: static !important;
  }

  .settings-form {
    padding: 1.25rem !important;
  }

  .auth-card {
    padding: 1.5rem !important;
  }

  .slug-input-group {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .product-form-grid {
    grid-template-columns: 1fr !important;
  }

  .overview-cards {
    grid-template-columns: 1fr !important;
  }

  .quick-start-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- Overview compact ---- */
  .tab-content > h1 {
    font-size: 1.25rem !important;
  }

  .overview-cards .surface {
    padding: 1rem !important;
  }

  #overview-product-count,
  #overview-sold-count,
  #stat-total-vendors,
  #stat-active-vendors,
  #stat-total-products,
  #stat-sold-products {
    font-size: 1.5rem !important;
  }

  .quick-setup-card {
    padding: 1rem !important;
  }

  .quick-setup-card > div:first-child {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 0.75rem !important;
  }

  .quick-setup-text h4 {
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
  }

  .quick-setup-text p {
    font-size: 0.85rem !important;
    max-width: 100% !important;
  }

  .overview-link-card {
    padding: 1rem !important;
  }

  .overview-cards {
    margin-bottom: 1rem !important;
  }

  .quick-start-grid {
    margin-bottom: 1rem !important;
  }

  .tab-content > p {
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 600px) {
  #products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .footer-modern .grid {
    grid-template-columns: 1fr;
  }

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

  .store-preview {
    max-width: 100%;
  }

  /* ---- Dashboard compact ---- */
  .tab-content > h1 {
    font-size: 1.1rem !important;
  }

  .overview-cards .surface {
    padding: 0.75rem !important;
  }

  #overview-product-count,
  #overview-sold-count,
  #stat-total-vendors,
  #stat-active-vendors,
  #stat-total-products,
  #stat-sold-products {
    font-size: 1.25rem !important;
  }

  .quick-setup-card {
    padding: 0.75rem !important;
  }

  .quick-setup-card > div:first-child {
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto 0.5rem !important;
  }

  .quick-setup-card > div:first-child svg {
    width: 24px !important;
    height: 24px !important;
  }

  .quick-setup-text h4 {
    font-size: 0.85rem !important;
    margin-bottom: 0.15rem !important;
  }

  .quick-setup-text p {
    font-size: 0.8rem !important;
  }

  .overview-link-card {
    padding: 0.75rem !important;
  }

  .overview-link-card h3 {
    font-size: 0.9rem !important;
  }

  .tab-content > p {
    margin-bottom: 0.75rem !important;
  }

  .overview-cards {
    margin-bottom: 0.75rem !important;
  }

  .quick-start-grid {
    margin-bottom: 0.75rem !important;
  }

  /* ---- Storefront compact ---- */
  #store-slogan {
    font-size: 0.8rem !important;
  }

  .modal {
    padding: 1rem !important;
  }

  #detail-image {
    max-height: 180px !important;
  }

  #detail-name {
    font-size: 1.1rem !important;
  }

  #detail-price {
    font-size: 1.2rem !important;
  }
}

/* ---- Skeleton loading ---- */
.skeleton {
  background: linear-gradient(90deg, var(--clr-border-light) 25%, var(--clr-surface) 50%, var(--clr-border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Modal/Backdrop ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }

.modal {
  background-color: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-gold {
  background-color: rgba(212, 168, 83, 0.15);
  color: var(--clr-accent-gold);
}

.badge-pending {
  background-color: rgba(34, 139, 34, 0.12);
  color: var(--clr-primary);
}

.badge-sold {
  background-color: rgba(212, 168, 83, 0.15);
  color: var(--clr-accent-gold);
}

.badge-cancelled {
  background-color: rgba(232, 141, 124, 0.12);
  color: var(--clr-accent-coral);
}

/* ---- Profile dropdown (dashboard header) ---- */
.profile-dropdown {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem 0.3rem 0.3rem;
  border: 1.5px solid var(--clr-border-light);
  border-radius: var(--radius-full);
  background: none;
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: var(--font-body);
}

.profile-trigger:hover {
  border-color: var(--clr-primary);
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-chevron {
  color: var(--clr-text-secondary);
  transition: transform 0.2s;
}

.profile-dropdown.open .profile-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem 0;
  display: none;
  z-index: 200;
  animation: fadeInScale 0.15s ease;
}

.profile-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-header {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-primary);
  border-bottom: 1px solid var(--clr-border-light);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--clr-text-primary);
  text-decoration: none;
  text-align: left;
  transition: background 0.15s;
  line-height: 1.3;
}

.dropdown-item:hover {
  background: var(--clr-primary-light);
}

.dropdown-item svg {
  flex-shrink: 0;
  color: var(--clr-text-secondary);
}

.dropdown-item-danger {
  color: var(--clr-accent-coral);
}

.dropdown-item-danger svg {
  color: var(--clr-accent-coral);
}

.dropdown-item-danger:hover {
  background: rgba(232, 141, 124, 0.1);
}

.dropdown-divider {
  height: 1px;
  background: var(--clr-border-light);
  margin: 0.25rem 0;
}

/* ---- File upload custom styling ---- */
.file-upload {
  position: relative;
  margin-top: 0.25rem;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1.5px dashed var(--clr-border);
  border-radius: var(--radius-sm);
  background: var(--clr-card);
  color: var(--clr-text-secondary);
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
  pointer-events: none;
}

.file-upload:hover .file-upload-label {
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
  color: var(--clr-primary);
}

.file-upload-label svg {
  flex-shrink: 0;
}

.file-preview {
  margin-top: 0.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 200px;
}

.file-preview img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border-light);
}

/* ---- Responsive profile dropdown ---- */
@media (max-width: 768px) {
  .dropdown-menu {
    position: fixed;
    top: auto;
    right: 1rem;
    left: 1rem;
    width: auto;
    min-width: 0;
  }

  .profile-dropdown.open .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: 200px;
    width: auto;
  }
}

/* ---- Admin tables ---- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-text-secondary);
  border-bottom: 2px solid var(--clr-border-light);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--clr-border-light);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(0,0,0,0.02);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---- Admin responsive ---- */
@media (max-width: 768px) {
  .dashboard-sidebar {
    display: none;
  }

  .dashboard-main {
    margin-left: 0 !important;
  }

  .admin-table {
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.6rem;
  }

  #vendor-search,
  #product-search {
    width: 100% !important;
  }

  /* Admin overview: 2-col at tablet */
  .admin-page .overview-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .admin-page .overview-cards {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Storefront Nav ---- */
.store-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.store-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.store-nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.store-nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.store-nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.store-nav-cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-nav-cart-btn:hover {
  background: var(--clr-primary-light);
}

.store-nav-categories {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  justify-content: center;
  margin: 0 1rem;
}
.store-nav-categories::-webkit-scrollbar {
  display: none;
}

.store-nav-cat-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--clr-text-secondary);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  flex-shrink: 0;
}
.store-nav-cat-link:hover {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
}
.store-nav-cat-link.active {
  color: var(--clr-primary);
  font-weight: 600;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--clr-primary);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 0.3rem;
  border: 2px solid var(--clr-white);
}

/* ---- Storefront Hero ---- */
.store-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.store-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.store-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.store-hero-name {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
  line-height: 1.15;
}

.store-hero-slogan {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 1rem;
  color: white;
}

.store-hero-description {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  color: white;
  line-height: 1.6;
  max-width: 640px;
}

.store-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.9;
  color: white;
  flex-wrap: wrap;
}

.store-hero-meta svg {
  vertical-align: middle;
  margin-right: 0.2rem;
  width: 14px;
  height: 14px;
}

/* ---- Storefront Toolbar ---- */
.store-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  padding-bottom: 3rem;
}

.store-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.store-search-wrap {
  flex: 1;
  position: relative;
}

.store-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-secondary);
  pointer-events: none;
}

.store-search-input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border: 1.5px solid var(--clr-border-light);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--clr-surface);
  color: var(--clr-text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.store-search-input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-light);
}
.store-search-input::placeholder { color: #aaa; }

.store-filter-wrap {
  position: relative;
}

.store-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--clr-border-light);
  border-radius: var(--radius-full);
  background: var(--clr-surface);
  cursor: pointer;
  color: var(--clr-text-secondary);
  transition: all 0.2s;
  flex-shrink: 0;
}
.store-filter-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-light);
}
.store-filter-btn.active {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-primary-light);
}

.store-filter-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem 0;
  display: none;
  z-index: 50;
  animation: fadeInScale 0.15s ease;
}
.store-filter-dropdown.open {
  display: block;
}

.store-filter-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--clr-text-primary);
  text-align: left;
  transition: background 0.15s;
}
.store-filter-dropdown-item:hover {
  background: var(--clr-primary-light);
}
.store-filter-dropdown-item.active {
  font-weight: 600;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
}

/* ---- Store Products Grid ---- */
.store-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.store-products-empty {
  display: none;
  text-align: center;
  padding: 3rem;
  color: var(--clr-text-secondary);
}

/* ---- Store Footer ---- */
.store-footer {
  border-top: 1px solid var(--clr-border-light);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--clr-text-secondary);
}

.store-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Storefront Responsive ---- */
@media (max-width: 768px) {
  .store-hero {
    min-height: 240px !important;
  }

  .store-hero-content {
    padding: 2rem 1.25rem !important;
  }

  .store-hero-name {
    font-size: 1.4rem !important;
  }

  .store-hero-slogan {
    font-size: 0.9rem !important;
  }

  .store-nav-inner {
    padding: 0 1rem !important;
    height: 54px !important;
  }

  .store-main {
    padding: 1rem !important;
    padding-bottom: 2rem !important;
  }

  .store-nav-categories {
    display: none !important;
  }

  .store-toolbar {
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  .store-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .store-hero {
    min-height: 200px !important;
  }

  .store-hero-content {
    padding: 1.5rem 1rem !important;
  }

  .store-hero-name {
    font-size: 1.2rem !important;
  }

  .store-hero-slogan {
    font-size: 0.8rem !important;
  }

  .store-nav-inner {
    height: 48px !important;
  }

  .store-nav-logo {
    width: 30px !important;
    height: 30px !important;
  }

  .store-nav-brand {
    font-size: 0.95rem !important;
  }

  .store-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .store-search-input {
    font-size: 0.85rem !important;
    padding: 0.6rem 1rem 0.6rem 2.2rem !important;
  }

  .store-filter-btn {
    width: 38px !important;
    height: 38px !important;
  }
}

/* ---- Hide scrollbar ---- */
html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none;
}
