/* ============================================================
   TANGIER FURNISH — styles.css
   Warm, editorial, luxury-minimal aesthetic
============================================================ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Palette */
  --bg:            #f8f7f5;
  --bg-alt:        #f2efea;
  --bg-card:       #ffffff;
  --surface:       #ede9e2;
  --border:        #e5e0d8;
  --border-strong: #cfc9bf;

  --text-primary:  #1c1915;
  --text-secondary:#5a5349;
  --text-muted:    #9a9189;
  --text-light:    #c4bdb3;

  --accent:        #c4703a;
  --accent-light:  #f2e8e0;
  --accent-hover:  #b3602d;

  --sage:          #7a8c78;
  --sage-light:    #edf0ec;

  --white:         #ffffff;

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Jost', system-ui, sans-serif;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:100px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(28, 25, 21, 0.06);
  --shadow-md:  0 4px 16px rgba(28, 25, 21, 0.08);
  --shadow-lg:  0 12px 40px rgba(28, 25, 21, 0.12);
  --shadow-xl:  0 24px 64px rgba(28, 25, 21, 0.15);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   280ms ease;
  --transition-slow:   500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Nav height */
  --nav-height: 72px;
}

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

/* ─── LOADER ─── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.loader-mark {
  width: 48px;
  height: 48px;
  color: var(--accent);
  animation: loaderPulse 1.4s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.95); }
}
.loader-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.loader-bar-wrap {
  width: 120px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
  margin-top: var(--space-sm);
}
.loader-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  animation: loaderFill 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ─── NAVIGATION ─── */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.4s ease,
              backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}
.nav-wrap.scrolled {
  background: rgba(18, 14, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
/* Opaque state for non-hero pages */
.nav-wrap.nav-opaque {
  background: rgba(248, 247, 245, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-wrap.nav-opaque.scrolled {
  background: rgba(248, 247, 245, 0.99);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-xl);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.nav-logo:hover { color: var(--accent); }
.nav-logo-mark { color: var(--accent); flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-base);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
}
.nav-cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
.nav-cart-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) var(--space-xl);
  flex-direction: column;
  gap: var(--space-md);
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

/* White elements when nav is transparent (home hero) */
.nav-wrap:not(.nav-opaque) .nav-logo            { color: #fff; }
.nav-wrap:not(.nav-opaque) .nav-logo:hover       { color: rgba(255,255,255,0.75); }
.nav-wrap:not(.nav-opaque) .nav-logo-mark        { color: #f5c9a4; }
.nav-wrap:not(.nav-opaque) .nav-links a          { color: rgba(255,255,255,0.82); }
.nav-wrap:not(.nav-opaque) .nav-links a:hover,
.nav-wrap:not(.nav-opaque) .nav-links a.active   { color: #fff; }
.nav-wrap:not(.nav-opaque) .nav-links a::after   { background: rgba(255,255,255,0.65); }
.nav-wrap:not(.nav-opaque) .nav-cart-btn         { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.9); }
.nav-wrap:not(.nav-opaque) .nav-cart-btn:hover   { border-color: rgba(255,255,255,0.75); color: #fff; background: rgba(255,255,255,0.10); }
.nav-wrap:not(.nav-opaque) .nav-icon-btn         { color: rgba(255,255,255,0.9); }
.nav-wrap:not(.nav-opaque) .nav-icon-btn:hover   { color: #fff; background: rgba(255,255,255,0.10); }
.nav-wrap:not(.nav-opaque) .nav-mobile-toggle span { background: #fff; }
.nav-wrap:not(.nav-opaque) .nav-actions .btn-outline {
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.40);
}
.nav-wrap:not(.nav-opaque) .nav-actions .btn-outline:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.70);
  color: #fff;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196, 112, 58, 0.3);
}
.btn-primary.large { padding: 0.9rem 2rem; font-size: 0.9rem; }
.btn-primary.small { padding: 0.5rem 1.1rem; font-size: 0.78rem; }
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(28, 25, 21, 0.04);
}
.btn-outline.light {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline.light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline.large { padding: 0.9rem 2rem; font-size: 0.9rem; }
.btn-outline.small { padding: 0.5rem 1.1rem; font-size: 0.78rem; }
.btn-outline.full-width { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(28, 25, 21, 0.06); }
.btn-ghost.light { color: rgba(255,255,255,0.7); }
.btn-ghost.light:hover { color: #fff; background: rgba(255,255,255,0.1); }
.btn-ghost.large { padding: 0.9rem 1.6rem; font-size: 0.9rem; }
.btn-ghost.full-width { width: 100%; justify-content: center; }

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 0;
}
.btn-text:hover { color: var(--accent-hover); text-decoration: underline; }
.btn-text.small { font-size: 0.78rem; }

/* ─── PAGES ─── */
.page { display: none; padding-top: var(--nav-height); }
.page.active { display: block; }
/* Home page: nav is transparent over hero, no offset needed */
#page-home { padding-top: 0; }

/* ─── CONTAINER ─── */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

/* ─── SECTIONS ─── */
.section { padding: var(--space-5xl) 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-3xl);
  gap: var(--space-lg);
}
.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}
.section-title em { font-style: italic; }
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-top: var(--space-md);
  line-height: 1.7;
}

/* ─── HERO ─── */
/* ─── HERO — 3D split layout ─── */
.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-height));
}
.hero--3d {
  display: grid;
  grid-template-columns: 45fr 55fr;
  height: 100vh;
}
/* Left text pane */
.hero-text-pane {
  background: var(--text-primary);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content {
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-4xl) var(--space-3xl);
  max-width: 540px;
  width: 100%;
}
/* Right image pane */
.hero-img-pane {
  position: relative;
  background: #f5f0e8;
  overflow: hidden;
}
.hero-sofa-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
/* Subtle left-edge vignette to blend with dark left pane */
.hero-img-pane::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(28,25,21,0.18) 0%, transparent 25%);
  pointer-events: none;
  z-index: 1;
}
.hero-img-badge {
  position: absolute;
  bottom: var(--space-2xl);
  left: var(--space-2xl);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(28,25,21,0.18), 0 2px 8px rgba(28,25,21,0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  z-index: 2;
}
.hero-badge-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-badge-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}
.hero-badge-price {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Ghost button variant for dark background */
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.6rem;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-full);
  background: transparent;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.btn-ghost-light:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.btn-ghost-light.large { padding: 0.9rem 2rem; font-size: 0.95rem; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.8vw, 4.6rem);
  font-weight: 500;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
}
.hero-title em { font-style: italic; color: #f5c9a4; }
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { text-align: left; }
.hero-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
}
.hero-stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollBob 2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.2); }
}

/* ─── HERO — Full-Width Immersive variant ─── */
.hero--fullwidth {
  display: block;
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  margin-top: 0;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(18, 14, 10, 0.86) 0%,
    rgba(18, 14, 10, 0.64) 42%,
    rgba(18, 14, 10, 0.20) 100%
  );
  z-index: 1;
}
.hero-content-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) var(--space-4xl) var(--space-3xl);
}
.hero--fullwidth .hero-content {
  padding: 0;
  max-width: 580px;
}
.hero--fullwidth .hero-img-badge {
  position: absolute;
  right: var(--space-4xl);
  bottom: var(--space-3xl);
  left: auto;
  z-index: 3;
}
@media (max-width: 900px) {
  .hero-content-wrap { padding: var(--nav-height) var(--space-xl) var(--space-2xl); }
  .hero--fullwidth .hero-img-badge { right: var(--space-xl); bottom: var(--space-2xl); }
}

/* ─── MARQUEE ─── */
/* ─── CATEGORY GRID ─── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  transition: transform var(--transition-slow);
}
.category-card.large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: contrast(1.04) saturate(0.90) brightness(1.0);
}
.category-card:hover img { transform: scale(1.08); filter: contrast(1.06) saturate(0.93) brightness(1.02); }
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(196, 112, 58, 0.15) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}
.category-card:hover::after { opacity: 1; }
.category-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(28,25,21,0.75) 0%, transparent 100%);
  color: #fff;
}
.category-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.category-card-body p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-sm);
}
.category-count {
  display: inline-block;
  background: rgba(196, 112, 58, 0.25);
  border: 1px solid rgba(196, 112, 58, 0.5);
  color: #f5c9a4;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* ─── PRODUCT CARDS ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(28,25,21,0.13), 0 4px 16px rgba(28,25,21,0.07);
  border-color: transparent;
}
.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: contrast(1.03) saturate(0.92) brightness(1.02);
}
.product-card:hover .product-card-image img {
  transform: scale(1.06);
  filter: contrast(1.05) saturate(0.95) brightness(1.04);
}
/* Render-style vignette: soft depth on all product images */
.product-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(28, 25, 21, 0.10) 100%);
  pointer-events: none;
  z-index: 1;
}
.product-card:hover .product-card-image::after {
  background: radial-gradient(ellipse at 50% 40%, transparent 60%, rgba(28, 25, 21, 0.06) 100%);
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.product-badge.new    { background: var(--sage); }
.product-badge.sale   { background: #c46b3a; }

.product-wishlist-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(248, 247, 245, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0;
  transform: scale(0.8);
}
.product-card:hover .product-wishlist-btn {
  opacity: 1;
  transform: scale(1);
}
.product-wishlist-btn:hover, .product-wishlist-btn.active {
  color: #e84040;
  background: #fff;
}

.product-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}
.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-city {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
  transition: color var(--transition-fast);
}
.product-card:hover .product-name {
  color: var(--accent);
}
.product-vendor {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-md);
}
.product-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #e8a844;
}
.product-rating-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}
.product-price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 2px;
}
.add-to-cart-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.add-to-cart-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(196, 112, 58, 0.4);
}

/* Skeleton loading */
.product-card.skeleton {
  pointer-events: none;
}
.skeleton-block {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── HOW IT WORKS ─── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  padding-top: var(--space-lg);
}
.how-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.how-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.how-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.how-card:hover::before { opacity: 1; }
.how-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  margin-bottom: var(--space-lg);
}
.how-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}
.how-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
}
.how-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── EDITORIAL BANNER ─── */
.editorial-banner {
  background: var(--text-primary);
  padding: 0;
  overflow: hidden;
}
.editorial-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.editorial-text {
  padding: var(--space-5xl) var(--space-4xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.editorial-text .section-eyebrow { color: var(--accent); opacity: 0.8; }
.editorial-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin-bottom: var(--space-xl);
}
.editorial-text h2 em { font-style: italic; color: #f5c9a4; }
.editorial-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 400px;
  font-weight: 300;
}
.editorial-image {
  overflow: hidden;
}
.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.editorial-image:hover img { transform: scale(1.04); }

/* ─── TESTIMONIALS ─── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.testimonial-stars {
  display: flex;
  gap: 3px;
  color: #e8a844;
  margin-bottom: var(--space-lg);
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-weight: 400;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-author strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}
.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── CTA BANNER ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-5xl) var(--space-xl);
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.cta-banner p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: var(--space-4xl) 0 var(--space-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: var(--space-lg);
}
.footer-logo svg { color: var(--accent); }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-xl);
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: var(--space-md);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(196,112,58,0.1);
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-lg);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-md); }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom-links {
  display: flex;
  gap: var(--space-xl);
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.3);
  transition: color var(--transition-fast);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ─── MARKETPLACE ─── */
#page-marketplace {
  padding-top: var(--nav-height);
}
.marketplace-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - var(--nav-height));
  align-items: start;
}
.filters-sidebar {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: var(--space-2xl);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.filters-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.filter-group {
  margin-bottom: var(--space-2xl);
}
.filter-group h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.filter-options { display: flex; flex-direction: column; gap: var(--space-sm); }
.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}
.filter-option:hover { color: var(--text-primary); }
.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.price-range-wrap { padding-top: var(--space-sm); }
.price-inputs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.price-input-group { flex: 1; }
.price-input-group label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.price-input-group input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  background: var(--bg);
  transition: border-color var(--transition-fast);
}
.price-input-group input:focus { border-color: var(--accent); }
.price-range-sep { color: var(--text-muted); font-size: 0.85rem; margin-top: 16px; }
.mobile-filters-btn {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.mobile-filters-btn:hover { border-color: var(--accent); color: var(--accent); }
.mobile-filter-apply { display: none; margin-top: var(--space-lg); }

.marketplace-main {
  padding: var(--space-2xl);
  min-height: calc(100vh - var(--nav-height));
}
.marketplace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}
.toolbar-left { display: flex; align-items: center; gap: var(--space-lg); }
.results-count { font-size: 0.85rem; color: var(--text-muted); }
.sort-select {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9189' stroke-width='2'%3E%3Cpath d='M5 8L12 15L19 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.sort-select:focus { outline: none; border-color: var(--accent); }
.sort-select.small { padding: 0.3rem 2rem 0.3rem 0.7rem; font-size: 0.78rem; }

.active-filters {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.active-filter-label { font-size: 0.78rem; color: var(--text-muted); }
.active-filter-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--accent-light);
  border: 1px solid rgba(196,112,58,0.2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.filter-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  display: flex;
  padding: 0;
  line-height: 0;
}

.empty-state {
  text-align: center;
  padding: var(--space-5xl) var(--space-xl);
  color: var(--text-muted);
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-md);
}
.empty-state p {
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
}

/* ─── PRODUCT DETAIL ─── */
.product-page-wrap {
  padding: var(--space-2xl) 0 var(--space-5xl);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}
.breadcrumb a:hover { color: var(--accent); }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  margin-bottom: var(--space-4xl);
  align-items: start;
}

.product-gallery-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  margin-bottom: var(--space-md);
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
.thumb-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.thumb-img:hover, .thumb-img.active { border-color: var(--accent); }


.product-info-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.product-info-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}
.product-info-rating {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.product-info-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}
.price-current {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text-primary);
}
.price-old {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-info-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}
.product-options { margin-bottom: var(--space-2xl); }
.product-options-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.color-options {
  display: flex;
  gap: var(--space-sm);
}
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.color-swatch:hover, .color-swatch.active {
  transform: scale(1.2);
  border-color: var(--text-primary);
}
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  width: fit-content;
  margin-bottom: var(--space-xl);
}
.qty-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.qty-btn:hover { background: var(--bg-alt); color: var(--text-primary); }
.qty-value {
  min-width: 44px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 40px;
}
.product-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}
.product-actions .btn-primary { flex: 1; justify-content: center; }
.product-actions .btn-outline { width: 48px; padding: 0; justify-content: center; }

.product-vendor-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  border: 1px solid var(--border);
}
.product-vendor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.product-vendor-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.product-vendor-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.related-section { margin-top: var(--space-5xl); }
.related-section .section-title { margin-bottom: var(--space-2xl); }

/* ─── AUTH ─── */
#page-auth { padding-top: 0; }

/* Centred full-screen wrapper — animated gradient background */
.auth-centered-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(-45deg, #1a1714, #2c2420, #c47a45, #1f1c18);
  background-size: 400% 400%;
  animation: authGradientBG 12s ease infinite;
}

@keyframes authGradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* The card — glass morphism + entrance animation */
.auth-card {
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.10);
  padding: var(--space-3xl) var(--space-2xl);
  width: 100%;
  max-width: 520px;
  animation: authCardIn 0.55s cubic-bezier(0.22,1,0.36,1) both;
  /* Force light text on dark variables to dark text on light card */
  --text-primary: #1c1917;
  --text-secondary: #4a453f;
  --text-muted: #8a847c;
  --border: rgba(28,25,21,0.12);
  --border-strong: rgba(28,25,21,0.25);
  --bg: rgba(255,255,255,0.7);
  --bg-alt: rgba(245,242,237,0.8);
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.auth-back-btn:hover {
  color: var(--accent-hover);
  transform: translateX(-2px);
}
.auth-back-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Logo inside card */
.auth-card-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: var(--space-2xl);
}
.auth-card-logo svg { color: var(--accent); }

/* Social buttons */
.auth-social-btns {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.auth-social-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* Demo button */
.auth-demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  margin-top: var(--space-md);
  padding: 0.6rem 1rem;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: none;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.auth-demo-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Footer credit */
.footer-credit {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0;
  color: rgba(255,255,255,0.55);
}


.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}
.auth-logo svg { color: var(--accent); }
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-2xl);
  gap: var(--space-xl);
}
.auth-tab {
  background: none;
  border: none;
  padding: var(--space-sm) 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}
.auth-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}
.auth-tab.active { color: var(--text-primary); }
.auth-tab.active::after { transform: scaleX(1); }
.auth-form-section { max-width: 520px; width: 100%; }
.auth-form-title h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}
.auth-form-title p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: var(--bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,112,58,0.1);
}
textarea.form-input { resize: vertical; min-height: 100px; }
.form-row {
  display: flex;
  align-items: center;
}
.form-row.space-between { justify-content: space-between; }
.form-row.gap { gap: var(--space-md); }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input { accent-color: var(--accent); width: 16px; height: 16px; }
.link-text { color: var(--accent); font-size: 0.85rem; }
.link-text:hover { text-decoration: underline; }
.auth-divider {
  position: relative;
  text-align: center;
  margin: var(--space-xl) 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.role-selector { margin: var(--space-lg) 0; }
.role-label { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-sm); }
.role-options { display: flex; gap: var(--space-md); }
.role-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-family: inherit;
}
.role-option:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.role-option.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* Elevated auth and dashboard motion */
.auth-centered-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(120deg, rgba(18, 15, 12, 0.88), rgba(46, 34, 26, 0.74)),
    url("https://images.pexels.com/photos/1571457/pexels-photo-1571457.jpeg?w=1800&q=85") center/cover no-repeat;
  animation: authSceneDrift 18s ease-in-out infinite alternate;
}
.auth-centered-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(196,112,58,0.00) 0%, rgba(196,112,58,0.26) 42%, rgba(122,140,120,0.18) 67%, rgba(196,112,58,0.00) 100%);
  mix-blend-mode: screen;
  transform: translateX(-18%) skewX(-10deg);
  animation: authLightSweep 8s ease-in-out infinite;
}
.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.34), 0 8px 22px rgba(0,0,0,0.14);
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.04) 38%, rgba(196,112,58,0.18));
  opacity: 0.74;
}
.auth-card > * { position: relative; z-index: 1; }
.auth-tab::after {
  height: 3px;
  border-radius: var(--radius-full);
}
.role-option {
  position: relative;
  overflow: hidden;
}
.role-option::after {
  content: '';
  position: absolute;
  inset: auto 14px 10px;
  height: 2px;
  border-radius: var(--radius-full);
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity var(--transition-fast), transform var(--transition-base);
}
.role-option.active::after,
.role-option:hover::after {
  opacity: 0.5;
  transform: scaleX(1);
}

@keyframes authSceneDrift {
  from { background-position: center center; }
  to { background-position: center 42%; }
}
@keyframes authLightSweep {
  0%, 100% { opacity: 0.22; transform: translateX(-22%) skewX(-10deg); }
  50% { opacity: 0.58; transform: translateX(18%) skewX(-10deg); }
}

/* ─── VENDOR DASHBOARD ─── */
#page-vendor { padding-top: 0; }
.vendor-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.vendor-sidebar {
  background: var(--text-primary);
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.vendor-sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  padding: var(--space-sm) 0 var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-2xl);
  cursor: pointer;
}
.vendor-sidebar-logo svg { color: var(--accent); }
.vendor-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}
.vendor-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.7rem var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}
.vendor-nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); }
.vendor-nav-item.active { background: rgba(196,112,58,0.2); color: var(--accent); }

.vendor-sidebar-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
}
.vendor-profile {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.vendor-profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.vendor-profile strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.vendor-profile span { font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.vendor-sidebar-bottom .btn-text {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.vendor-sidebar-bottom .btn-text:hover { color: rgba(255,255,255,0.7); text-decoration: none; }

.vendor-main { background: var(--bg); padding: var(--space-3xl); }

.vendor-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}
.vendor-page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
}
.vendor-page-header p { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all var(--transition-base);
}
.stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.stat-trend.up { color: var(--sage); }
.stat-trend.down { color: #c44e3a; }

.vendor-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
.vendor-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.vendor-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border);
}
.vendor-panel-header h3 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.orders-table.full { display: block; overflow-x: auto; }
.orders-table th {
  text-align: left;
  padding: 0.75rem var(--space-xl);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.orders-table td {
  padding: 0.9rem var(--space-xl);
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--bg-alt); }
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}
.order-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.order-status.delivered { background: var(--sage-light); color: var(--sage); }
.order-status.delivered::before { background: var(--sage); }
.order-status.processing { background: var(--accent-light); color: var(--accent); }
.order-status.processing::before { background: var(--accent); }
.order-status.pending { background: #fef3e2; color: #b97a15; }
.order-status.pending::before { background: #b97a15; }

.verification-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  max-width: 760px;
}
.verification-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.verification-icon.pending {
  background: #fef3e2;
  color: #b97a15;
}
.verification-icon.rejected {
  background: #fde8e3;
  color: #c44e3a;
}
.verification-panel h2 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.verification-panel p {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
}
.verification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.verification-meta span,
.verification-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: capitalize;
}

.admin-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-vendor-list {
  display: flex;
  flex-direction: column;
}
.admin-vendor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
}
.admin-vendor-row:last-child { border-bottom: none; }
.admin-vendor-main strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.admin-vendor-main span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.verification-status.pending {
  background: #fef3e2;
  color: #b97a15;
}
.verification-status.approved {
  background: var(--sage-light);
  color: var(--sage);
}
.verification-status.rejected {
  background: #fde8e3;
  color: #c44e3a;
}
.admin-vendor-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

#page-vendor,
#page-admin {
  background:
    linear-gradient(135deg, rgba(248,247,245,1) 0%, rgba(242,239,234,0.92) 48%, rgba(237,240,236,0.82) 100%);
}
.vendor-layout {
  background:
    linear-gradient(115deg, rgba(255,255,255,0.36), rgba(255,255,255,0) 42%),
    radial-gradient(1200px 640px at 78% -18%, rgba(196,112,58,0.16), transparent 58%),
    radial-gradient(900px 520px at 88% 112%, rgba(122,140,120,0.13), transparent 62%);
}
.vendor-sidebar {
  background:
    linear-gradient(180deg, rgba(36,30,25,0.98), rgba(20,17,14,0.98)),
    var(--text-primary);
  box-shadow: 16px 0 50px rgba(28,25,21,0.14);
}
.vendor-sidebar-logo {
  position: relative;
}
.vendor-sidebar-logo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.vendor-nav-item {
  position: relative;
  overflow: hidden;
}
.vendor-nav-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transform: scaleY(0);
  transition: transform var(--transition-base);
}
.vendor-nav-item.active::before,
.vendor-nav-item:hover::before {
  transform: scaleY(1);
}
.vendor-main {
  background: transparent;
}
.vendor-page-header {
  position: relative;
  border-bottom: none;
}
.vendor-page-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(196,112,58,0.45), rgba(229,224,216,0.9), transparent);
}
.stat-card,
.vendor-panel,
.verification-panel {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(28,25,21,0.08);
}
.stat-card::before,
.vendor-panel::before,
.verification-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,255,255,0) 42%);
}
.stat-card > *,
.vendor-panel > *,
.verification-panel > * {
  position: relative;
  z-index: 1;
}
.stat-card {
  transform-origin: center bottom;
}
.stat-card:hover {
  box-shadow: 0 24px 62px rgba(28,25,21,0.13);
  transform: translateY(-6px);
}
.stat-icon {
  box-shadow: inset 0 0 0 1px rgba(196,112,58,0.18);
}
.stat-value {
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vendor-tab,
#vendorVerificationGate,
#page-admin .vendor-main > * {
  animation: dashboardFadeUp 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stats-grid .stat-card:nth-child(1) { animation-delay: 0.04s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.10s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.16s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.22s; }
.vendor-section-grid .vendor-panel:nth-child(1) { animation-delay: 0.12s; }
.vendor-section-grid .vendor-panel:nth-child(2) { animation-delay: 0.20s; }
.admin-vendor-row {
  background: rgba(255,255,255,0.38);
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.admin-vendor-row:hover {
  background: rgba(255,255,255,0.78);
  transform: translateX(6px);
  box-shadow: inset 3px 0 0 var(--accent);
}
.verification-status {
  position: relative;
  overflow: hidden;
}
.verification-status.pending::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-120%);
  animation: statusSweep 2.4s ease-in-out infinite;
}
.verification-icon.pending {
  animation: verificationPulse 2.2s ease-in-out infinite;
}
.verification-icon.rejected {
  animation: verificationShake 0.44s ease both;
}
.page-enter .auth-card,
.page-enter .vendor-sidebar,
.page-enter .vendor-main {
  animation: dashboardFadeUp 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-enter .vendor-sidebar {
  animation-name: dashboardSlideIn;
}
.page-enter .admin-vendor-row {
  animation: dashboardFadeUp 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--row-delay, 0ms);
}

@keyframes dashboardFadeUp {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dashboardSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes statusSweep {
  0% { transform: translateX(-120%); }
  48%, 100% { transform: translateX(120%); }
}
@keyframes verificationPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185,122,21,0.22); }
  50% { box-shadow: 0 0 0 12px rgba(185,122,21,0); }
}
@keyframes verificationShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-centered-wrap,
  .auth-centered-wrap::before,
  .vendor-tab,
  #vendorVerificationGate,
  #page-admin .vendor-main > *,
  .page-enter .auth-card,
  .page-enter .vendor-sidebar,
  .page-enter .vendor-main,
  .page-enter .admin-vendor-row,
  .verification-icon.pending,
  .verification-icon.rejected,
  .verification-status.pending::after {
    animation: none !important;
  }
}

.top-products-list { padding: var(--space-md) var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md); }
.top-product-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}
.top-product-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}
.top-product-info { flex: 1; }
.top-product-name { font-size: 0.85rem; font-weight: 500; color: var(--text-primary); }
.top-product-views { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.top-product-rank {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 28px;
  text-align: right;
}


.chart-area {
  padding: var(--space-xl);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
  border-top: 1px solid var(--border);
}
.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.chart-bar {
  width: 100%;
  background: var(--accent);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: opacity var(--transition-fast);
  opacity: 0.7;
  min-height: 4px;
}
.chart-bar:hover { opacity: 1; }
.chart-month { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

/* ADD PRODUCT FORM */
.add-product-form { max-width: 680px; }
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
}
.form-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-light); }
.upload-zone svg { color: var(--text-muted); margin: 0 auto var(--space-md); }
.upload-zone p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: var(--space-sm); }
.upload-zone span { font-size: 0.75rem; color: var(--text-muted); }
.form-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* ─── CART DRAWER ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 21, 0.4);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  background: var(--bg);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-xl);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 1px solid var(--border);
}
.cart-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}
.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.cart-close-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.cart-items { flex: 1; overflow-y: auto; padding: var(--space-xl) var(--space-2xl); }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  gap: var(--space-lg);
  color: var(--text-muted);
}
.cart-empty p { font-size: 0.9rem; color: var(--text-secondary); }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}
.cart-item-vendor { font-size: 0.75rem; color: var(--text-muted); margin-bottom: var(--space-sm); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  line-height: 1;
}
.cart-qty-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.cart-qty-value { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-right { text-align: right; }
.cart-item-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 3px;
}
.cart-remove-btn:hover { color: #e04040; }
.cart-footer {
  padding: var(--space-xl) var(--space-2xl);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.cart-summary { margin-bottom: var(--space-xl); }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.cart-summary-row.total {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-top: var(--space-md);
}
.cart-footer .btn-primary { margin-bottom: var(--space-md); }
.cart-footer .btn-ghost { font-size: 0.82rem; color: var(--text-muted); }

/* ─── TOASTS ─── */
.toast-container {
  position: fixed;
  bottom: var(--space-2xl);
  right: var(--space-2xl);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--text-primary);
  color: rgba(255,255,255,0.9);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  pointer-events: all;
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  max-width: 360px;
}
.toast.removing { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(20px) scale(0.95); }
}
.toast-icon { flex-shrink: 0; color: var(--accent); }
.toast-success .toast-icon { color: var(--sage); }
.toast-error .toast-icon { color: #e04040; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--delay, 0s);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .vendor-section-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card.large { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16/9; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-inner { padding: 0 var(--space-xl); grid-template-columns: 1fr auto; }
  /* Hero: stack vertically on tablet */
  .hero--3d { grid-template-columns: 1fr; grid-template-rows: auto 44vh; height: auto; }
  .hero-text-pane { min-height: unset; }
  .hero-content { padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-xl) var(--space-2xl); }
  .hero-title { font-size: 2.3rem; }
  .hero-img-pane { height: 44vh; min-height: 300px; }
  .hero-img-badge { bottom: var(--space-lg); left: var(--space-lg); }
  .hero-scroll-indicator { display: none; }
  .marketplace-layout { grid-template-columns: 1fr; }
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    z-index: 1500;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
  }
  .filters-sidebar.open { transform: translateX(0); }
  .mobile-filters-btn { display: flex; }
  .mobile-filter-apply { display: block; }
  .marketplace-toolbar { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-wrap { padding: var(--space-2xl); padding-top: calc(var(--nav-height) + var(--space-2xl)); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .vendor-layout { grid-template-columns: 1fr; }
  .vendor-sidebar { position: relative; height: auto; }
  .vendor-main { padding: var(--space-xl); }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-vendor-row { grid-template-columns: 1fr; align-items: flex-start; }
  .admin-vendor-actions { width: 100%; }
  .admin-vendor-actions .btn-primary,
  .admin-vendor-actions .btn-outline { flex: 1; }
  .verification-panel { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-content { grid-template-columns: 1fr; }
  .editorial-image { display: none; }
  .cart-drawer { width: 100%; max-width: 420px; }
}

@media (max-width: 600px) {
  .hero--3d { grid-template-rows: auto 38vh; }
  .hero-img-pane { height: 38vh; min-height: 260px; }
  .hero-title { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-wrap: wrap; gap: var(--space-lg); }
  .section { padding: var(--space-4xl) 0; }
  .container { padding: 0 var(--space-lg); }
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .category-card.large { grid-column: 1; }
  .section-header { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .dark-section-inner { grid-template-columns: 1fr; }
  .dark-section-images { display: none; }
  .confirmation-body { grid-template-columns: 1fr; }
  .tracking-info-grid { grid-template-columns: 1fr; }
}

/* ─── SEARCH BAR ─── */
.marketplace-search-wrap {
  padding: var(--space-lg) var(--space-2xl) 0;
}
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.2rem;
  gap: var(--space-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 112, 58, 0.1);
}
.search-icon { color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  min-width: 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.search-clear:hover { background: var(--border-strong); color: var(--text-primary); }
.search-clear.visible { display: flex; }

/* ─── DARK SECTION ─── */
.dark-section {
  background: var(--text-primary);
  padding: var(--space-5xl) 0;
  overflow: hidden;
}
.dark-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5xl);
  align-items: center;
}
.dark-section-text {
  color: rgba(255,255,255,0.85);
}
.dark-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: var(--space-xl);
}
.dark-section-title em { font-style: italic; color: #f5c9a4; }
.dark-section-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}
.dark-section-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dark-stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}
.dark-stat-l {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.dark-section-images {
  position: relative;
  height: 500px;
}
.dark-img-primary {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.dark-img-primary img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) saturate(0.88) brightness(0.96); }
.dark-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 4px solid var(--text-primary);
  box-shadow: var(--shadow-xl);
}
.dark-img-secondary img { width: 100%; height: 100%; object-fit: cover; }

/* ─── ORDER CONFIRMATION PAGE ─── */
.confirmation-wrap {
  min-height: 100vh;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-5xl);
  background: var(--bg-alt);
}
.confirmation-card {
  max-width: 1000px;
  margin: 0 auto;
}
.confirmation-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sage-light);
  border: 2px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  margin-bottom: var(--space-xl);
}
.confirmation-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: var(--space-sm);
}
.confirmation-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.confirmation-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}
.confirmation-headline {
  margin-bottom: var(--space-3xl);
}
.confirmation-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}
.confirmation-items-panel,
.confirmation-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}
.conf-panel-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.confirmation-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.confirm-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.confirm-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.confirm-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.confirm-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}
.confirm-item-vendor {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.confirm-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.confirm-item-qty {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.confirm-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.confirmation-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 1rem;
}
.conf-total-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
}
.conf-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}
.conf-info-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.conf-info-row svg { color: var(--sage); flex-shrink: 0; }
.confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ─── DELIVERY TRACKING PAGE ─── */
.tracking-wrap {
  min-height: 100vh;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-5xl);
  background: var(--bg-alt);
}
.tracking-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3xl);
  gap: var(--space-xl);
}
.tracking-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.tracking-order-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--text-primary);
}
.tracking-steps-card,
.tracking-order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
}
.tracking-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
}
.tracking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  min-width: 110px;
  flex-shrink: 0;
}
.tracking-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-base);
  flex-shrink: 0;
}
.tracking-step.completed .tracking-step-icon {
  background: var(--sage-light);
  border-color: var(--sage);
  color: var(--sage);
}
.tracking-step.active .tracking-step-icon {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  animation: trackingPulse 2s ease-in-out infinite;
}
@keyframes trackingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 112, 58, 0); }
  50%       { box-shadow: 0 0 0 8px rgba(196, 112, 58, 0.15); }
}
.tracking-step-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.tracking-step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.tracking-step.completed .tracking-step-label { color: var(--sage); }
.tracking-step.active .tracking-step-label { color: var(--accent); }
.tracking-step-date {
  font-size: 0.72rem;
  color: var(--text-light);
}
.tracking-step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 25px;
  min-width: 40px;
  position: relative;
  overflow: hidden;
}
.tracking-connector-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--sage);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tracking-progress-bar {
  border-top: 1px solid var(--border);
  padding-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.tracking-bar-bg {
  height: 6px;
  background: var(--surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.tracking-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tracking-progress-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.tracking-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.tracking-order-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.tracking-order-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.tracking-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.tracking-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.tracking-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.tracking-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 1rem;
}
.tracking-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.tracking-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}
.tracking-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tracking-info-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.tracking-info-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── IMPROVED MOBILE TOUCH TARGETS ─── */
@media (max-width: 900px) {
  .tracking-steps { gap: 0; }
  .marketplace-search-wrap { padding: var(--space-md) var(--space-lg) 0; }
  .dark-section-inner { grid-template-columns: 1fr; }
  .dark-section-images { display: none; }
  .confirmation-body { grid-template-columns: 1fr; }
  .tracking-info-grid { grid-template-columns: 1fr; }
  .tracking-steps-card, .tracking-order-card { padding: var(--space-lg); }
  .filter-option input { width: 20px; height: 20px; }
  .nav-cart-btn { width: 48px; height: 48px; }
  .hero-content { padding: 0 var(--space-lg); padding-top: var(--nav-height); }
}

@media (max-width: 600px) {
  .tracking-step { min-width: 80px; }
  .tracking-step-connector { min-width: 20px; }
  .tracking-info-grid { grid-template-columns: 1fr; }
  .tracking-steps-card { padding: var(--space-md); }
  .confirmation-wrap, .tracking-wrap {
    padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-3xl);
  }
}

/* ─── UPDATED EDITORIAL / DARK SECTION RESPONSIVE ─── */
@media (min-width: 1100px) {
  .dark-section-inner { gap: var(--space-4xl); }
}
@media (max-width: 1100px) {
  .dark-section-images { height: 380px; }
}
@media (max-width: 900px) {
  .dark-section { padding: var(--space-4xl) 0; }
  .dark-section-images { display: none; }
}

/* ═══════════════════════════════════════════════════════
   WOW UPGRADE — MAJOR EXPERIENCE ENHANCEMENTS
═══════════════════════════════════════════════════════ */

/* ─── CUSTOM CURSOR ─── */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  left: -100px; top: -100px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.2s, height 0.2s, opacity 0.3s;
  will-change: left, top;
}
.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(196,112,58,0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  left: -100px; top: -100px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
              height 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.25s, opacity 0.3s;
  will-change: left, top;
}
body.cursor-hover .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--accent);
  opacity: 0.85;
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ─── COLLECTIONS SALON SECTION ─── */
.salon-section {
  padding: var(--space-5xl) 0 0;
  background: var(--bg-alt);
}
.salon-inner {
  position: relative;
  overflow: hidden;
}
.salon-img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 40%;
}
.salon-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(28,25,21,0.65) 0%, rgba(28,25,21,0.20) 55%, transparent 100%);
  display: flex;
  align-items: center;
}
.salon-content {
  padding: var(--space-3xl) var(--space-4xl);
  max-width: 520px;
}
.salon-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.salon-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  margin-bottom: var(--space-2xl);
}
@media (max-width: 600px) {
  .salon-img { height: 420px; object-position: center center; }
  .salon-overlay { background: rgba(28,25,21,0.52); align-items: flex-end; }
  .salon-content { padding: var(--space-2xl) var(--space-xl); max-width: 100%; }
}

/* ── 360° Gallery Badge ── */
.gallery-360-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(28,25,21,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  user-select: none;
}
.product-gallery-main {
  transition: none;
}
.product-gallery-main img {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* ─── ARTISAN STORYTELLING SECTION ─── */
.artisan-section {
  padding: var(--space-5xl) 0;
  background: var(--bg);
  overflow: hidden;
}
.artisan-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-5xl);
  align-items: center;
}
.artisan-media { position: relative; }
.artisan-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-xl);
}
.artisan-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.artisan-img-wrap:hover img { transform: scale(1.05); }
.artisan-img-badge {
  position: absolute;
  bottom: var(--space-xl);
  right: calc(-1 * var(--space-xl));
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 210px;
  border: 1px solid var(--border);
}
.artisan-badge-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.artisan-badge-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.artisan-badge-text span { font-size: 0.72rem; color: var(--text-muted); }

.artisan-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}
.artisan-title em { font-style: italic; color: var(--accent); }
.artisan-story {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: var(--space-lg);
  max-width: 500px;
}
.artisan-signature {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-xl) 0 var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}
.artisan-signature-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.artisan-signature-name strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}
.artisan-signature-name span { font-size: 0.78rem; color: var(--text-muted); }

/* ─── PRODUCT PAGE: STICKY GALLERY + TABS ─── */
.product-gallery-sticky {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  align-self: start;
}
.product-gallery-main {
  overflow: hidden;
  position: relative;
}
.product-gallery-main img {
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.15s ease;
}
.product-gallery-main:hover img { transform: scale(1.06); }
.gallery-badge {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Product Info Tabs */
.product-tabs {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}
.product-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: var(--space-xl);
}
.product-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  padding: var(--space-sm) var(--space-xl) var(--space-sm) 0;
  margin-right: var(--space-xl);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}
.product-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}
.product-tab-btn:hover:not(.active) { color: var(--text-secondary); }
.product-tab-panel { display: none; animation: tabFadeIn 0.3s ease; }
.product-tab-panel.active { display: block; }
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.materials-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.material-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.material-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.material-label strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.material-label span { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.dimension-card {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.dimension-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.dimension-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  line-height: 1;
}
.dimension-unit { font-size: 0.7rem; color: var(--text-muted); }
.dimension-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-sm);
  display: block;
}

.delivery-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.delivery-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.delivery-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.delivery-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.delivery-text span { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ─── ENHANCED PRODUCT CARD ─── */
.product-card { position: relative; }
.product-card-image { overflow: hidden; }
.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(28,25,21,0.7) 0%, transparent 100%);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}
.product-card:hover .product-card-overlay { opacity: 1; }
.product-card-overlay span {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

/* ─── SECTION DIVIDER / TEXTURE ─── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 0;
}

/* ─── DARK SECTION AMBIENT GLOW ─── */
.dark-section {
  position: relative;
}
.dark-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196,112,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── HERO STAT COUNTER ANIMATION ─── */
.hero-stat-number {
  transition: opacity 0.5s ease;
}

/* ════════════════════════════════════════
   WISHLIST NAV BUTTON
════════════════════════════════════════ */
.nav-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
.nav-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.wishlist-nav-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* ════════════════════════════════════════
   INPUT ERROR STATE
════════════════════════════════════════ */
.form-input.input-error {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.12);
}
.required { color: var(--accent); font-weight: 600; }

/* ════════════════════════════════════════
   CHECKOUT PAGE
════════════════════════════════════════ */
.checkout-wrap {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
  background: var(--bg-alt);
}
.checkout-breadcrumb {
  margin-bottom: var(--space-lg);
}
.checkout-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
}
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-3xl);
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}
.checkout-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition-base);
}
.checkout-step.active { color: var(--text-primary); }
.checkout-step.active .step-num {
  background: var(--accent);
  color: #fff;
}
.checkout-step.completed .step-num {
  background: var(--sage);
  color: #fff;
}
.checkout-step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 var(--space-md);
  max-width: 60px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: start;
}
.checkout-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
}
.checkout-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.delivery-option {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.delivery-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}
.delivery-option input[type="radio"] { display: none; }
.delivery-option-content { flex: 1; }
.delivery-option-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.delivery-option-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.delivery-option-price {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
}
.delivery-option-price.free { color: var(--sage); }
.payment-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.payment-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}
.payment-option input[type="radio"] { display: none; }
.payment-option svg { color: var(--accent); flex-shrink: 0; }
.payment-option strong { display: block; font-size: 0.88rem; }
.payment-option span { font-size: 0.78rem; color: var(--text-secondary); }
.checkout-summary-col { position: sticky; top: calc(var(--nav-height) + var(--space-xl)); }
.checkout-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}
.checkout-summary-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.checkout-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.checkout-item-img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--text-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-item-vendor { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.checkout-item-price { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.checkout-summary-rows { margin: var(--space-xl) 0; }
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
}
.checkout-total-row {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
}
.checkout-trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.trust-item svg { color: var(--sage); flex-shrink: 0; }
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary-col { position: static; }
  .checkout-steps { gap: 0; }
  .checkout-step-line { max-width: 30px; }
}

/* ════════════════════════════════════════
   WISHLIST PAGE
════════════════════════════════════════ */
.wishlist-wrap {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}
.wishlist-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3xl);
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.wishlist-page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
}
.wishlist-count-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}
.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-5xl) var(--space-xl);
  text-align: center;
}
.wishlist-empty svg { color: var(--border-strong); }
.wishlist-empty h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
}
.wishlist-empty p { font-size: 0.9rem; color: var(--text-secondary); max-width: 360px; }

/* ════════════════════════════════════════
   CONTACT PAGE
════════════════════════════════════════ */
.contact-page-wrap {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + var(--space-4xl));
  padding-bottom: var(--space-5xl);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5xl);
  align-items: start;
}
.contact-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}
.contact-title em { color: var(--accent); font-style: italic; }
.contact-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-detail-item > div { display: flex; flex-direction: column; gap: 2px; }
.contact-detail-item strong { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.contact-detail-item span { font-size: 0.85rem; color: var(--text-secondary); }
.contact-detail-note { font-size: 0.78rem !important; color: var(--text-muted) !important; }
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-md);
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-3xl); }
  .contact-title { font-size: 2rem; }
  .contact-page-wrap { padding-top: calc(var(--nav-height) + var(--space-2xl)); }
}

/* ════════════════════════════════════════
   VENDOR PROFILE AVATAR (no photo)
════════════════════════════════════════ */
.vendor-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* ─── RESPONSIVE ADDITIONS ─── */
@media (max-width: 1200px) {
  .artisan-inner { gap: var(--space-3xl); }
  .artisan-img-badge { right: var(--space-md); }
}
@media (max-width: 900px) {
  .artisan-inner { grid-template-columns: 1fr; }
  .artisan-img-badge { position: static; margin-top: var(--space-lg); max-width: none; }
  .iroom-scene { height: 400px; }
}
@media (max-width: 600px) {
  .iroom-scene { height: 280px; }
  .iroom-popup { width: 185px; }
  .iroom-popup-img { height: 105px; }
  .materials-list { grid-template-columns: 1fr; }
  .artisan-section { padding: var(--space-4xl) 0; }
}

/* ============================================================
   TANGIER FURNISH — ENHANCED STYLES v2.0
   Matching reference design: 6-col categories, warm premium UI
============================================================ */

/* ─── REFERENCE-MATCHED CATEGORY GRID (6 equal columns) ─── */
.categories-6col {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 12px !important;
}

.category-card.cat-equal {
  aspect-ratio: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.category-card.cat-equal:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 48px rgba(28,25,21,0.13);
}

.cat-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}

.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: saturate(0.9) brightness(1.02);
}

.category-card.cat-equal:hover .cat-img-wrap img {
  transform: scale(1.07);
}

.category-card.cat-equal .category-card-body {
  position: static;
  background: #fff;
  padding: 14px 14px 16px;
  color: var(--text-primary);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-card.cat-equal .category-card-body h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cat-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.2s;
  display: block;
}

.category-card.cat-equal:hover .cat-link {
  color: var(--accent);
}

/* ─── ENHANCED PRODUCT GRID (matches reference layout) ─── */
#featuredGrid {
  grid-template-columns: repeat(6, 1fr) !important;
}

@media (max-width: 1400px) {
  .categories-6col {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  #featuredGrid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .categories-6col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #featuredGrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 500px) {
  .categories-6col {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  #featuredGrid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ─── HERO TEXT ANIMATIONS ─── */
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-title {
  animation: fadeSlideLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-subtitle {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero-actions {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}
.hero-stats {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

/* ─── SCROLL REVEAL SYSTEM ─── */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ENHANCED NAVBAR ─── */
.nav-wrap {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease !important;
}
.nav-wrap.scrolled {
  box-shadow: 0 2px 20px rgba(28,25,21,0.1) !important;
}
.nav-links a {
  transition: color 0.22s ease !important;
}
.nav-links a::after {
  transition: width 0.3s ease !important;
}

/* Icon button bounce on hover */
.nav-icon-btn,
.nav-cart-btn {
  transition: all 0.22s ease !important;
}
.nav-icon-btn:hover,
.nav-cart-btn:hover {
  transform: scale(1.1) !important;
}

/* ─── ENHANCED BUTTONS ─── */
.btn-primary {
  transition: all 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 10px 30px rgba(196, 112, 58, 0.35) !important;
}
.btn-primary:active {
  transform: translateY(0) scale(0.98) !important;
}
.btn-outline:hover {
  transform: translateY(-1px) !important;
}
.btn-outline:active {
  transform: translateY(0) scale(0.98) !important;
}

/* ─── ENHANCED PRODUCT CARDS ─── */
.product-card {
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.28s ease !important;
}
.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 50px rgba(28,25,21,0.14) !important;
}
.product-card-image img {
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}
.product-card:hover .product-card-image img {
  transform: scale(1.08) !important;
}
.add-to-cart-btn {
  transition: all 0.22s ease !important;
}
.add-to-cart-btn:hover {
  transform: scale(1.15) rotate(-5deg) !important;
  box-shadow: 0 6px 20px rgba(196,112,58,0.45) !important;
}
.add-to-cart-btn:active {
  transform: scale(0.95) !important;
}

/* ─── SECTION HEADER ENHANCEMENT ─── */
.section-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
}

/* ─── FEATURED GRID COMPACT CARDS ─── */
#featuredGrid .product-card {
  border-radius: 12px;
}

#featuredGrid .product-card-body {
  padding: 12px 14px 14px;
}

#featuredGrid .product-name {
  font-size: 0.92rem;
}

#featuredGrid .product-price {
  font-size: 1rem;
}

/* ─── DARK SECTION IMAGES PARALLAX FEEL ─── */
.dark-img-primary img,
.dark-img-secondary img {
  transition: transform 0.8s ease !important;
}
.dark-img-primary:hover img,
.dark-img-secondary:hover img {
  transform: scale(1.04) !important;
}

/* ─── ARTISAN SECTION ─── */
.artisan-img-wrap img {
  transition: transform 0.8s ease !important;
}
.artisan-img-wrap:hover img {
  transform: scale(1.03) !important;
}

/* ─── TESTIMONIALS ANIMATION ─── */
.testimonial-card {
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.22s ease !important;
}
.testimonial-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 48px rgba(28,25,21,0.1) !important;
}

/* ─── HOW CARDS ANIMATION ─── */
.how-card {
  transition: transform 0.32s ease, box-shadow 0.32s ease !important;
}
.how-card:hover {
  transform: translateY(-4px) !important;
}

/* ─── CART DRAWER ANIMATION ─── */
.cart-drawer {
  transition: transform 0.42s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}

/* ─── LOADER ENHANCEMENT ─── */
.loader-bar {
  animation: loaderFill 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

/* ─── SECTION SPACING REFINEMENT ─── */
#categories {
  padding: 5rem 0 4rem;
}

#featured {
  padding: 5rem 0;
}

/* ─── TOAST REFINEMENT ─── */
.toast {
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── CATEGORY SECTION EYEBROW ─── */
#categories .section-header {
  margin-bottom: 2rem;
  align-items: flex-end;
}
#categories .section-header .section-title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

/* ─── PRODUCT WISHLIST BTN REFINEMENT ─── */
.product-wishlist-btn {
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.2s ease, background 0.2s ease !important;
}
.product-wishlist-btn:hover {
  transform: scale(1.15) !important;
}
.product-wishlist-btn.active {
  animation: heartBeat 0.4s ease;
}
@keyframes heartBeat {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.35); }
  60%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ─── MOBILE REFINEMENTS ─── */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 var(--space-xl) !important;
  }
  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.8rem) !important;
  }
  .categories-6col {
    gap: 8px !important;
  }
  .cat-img-wrap {
    aspect-ratio: 1/1;
  }
  .category-card.cat-equal .category-card-body h3 {
    font-size: 0.82rem;
  }
  .cat-link {
    font-size: 0.7rem;
  }
  .section { padding: var(--space-4xl) 0 !important; }
}

@media (max-width: 480px) {
  .categories-6col {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .category-card.cat-equal .category-card-body {
    padding: 8px 10px 10px;
  }
}

/* ─── SMOOTH SCROLLING ENHANCEMENT ─── */
html {
  scroll-behavior: smooth;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* ─── PERFORMANCE: GPU HINTS ─── */
.product-card,
.category-card,
.hero-sofa-img,
.btn-primary,
.btn-outline {
  will-change: transform;
}

/* ─── FOCUS STATES (ACCESSIBILITY) ─── */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── SEARCH BAR ENHANCEMENT ─── */
.marketplace-search-wrap {
  margin-bottom: var(--space-xl);
}

/* ─── PRODUCT GRID MARKETPLACE (keep 4 col) ─── */
#marketplaceGrid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  #marketplaceGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  #marketplaceGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  #marketplaceGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}


/* ─── REVEAL COMPATIBILITY (original script uses .visible) ─── */
.reveal-up.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Remove duplicate observer - original script handles this */

/* ═══════════════════════════════════════════════════════════
   ENHANCEMENT v3.0 — Price Slider · Fly-to-Cart · Navbar Search
═══════════════════════════════════════════════════════════ */

/* ─── PRICE RANGE SLIDER ─── */
.price-slider-track-wrap {
  padding: 12px 4px 8px;
}
.price-slider-track {
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin: 18px 0 8px;
}
.price-slider-range {
  position: absolute;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  pointer-events: none;
  left: 0%;
  width: 100%;
}
.price-slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(196,112,58,.28);
  cursor: grab;
  transition: box-shadow 150ms, transform 150ms;
  z-index: 2;
  padding: 0;
  touch-action: none;
  appearance: none;
  -webkit-appearance: none;
}
.price-slider-thumb:hover,
.price-slider-thumb:focus-visible {
  box-shadow: 0 0 0 6px rgba(196,112,58,.15);
  outline: none;
}
.price-slider-thumb:active,
.price-slider-thumb.dragging {
  cursor: grabbing;
  transform: translate(-50%,-50%) scale(1.18);
  z-index: 3;
  box-shadow: 0 0 0 8px rgba(196,112,58,.12);
}
.price-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  user-select: none;
}

/* ─── FLY-TO-CART CLONE ─── */
.fly-clone {
  position: fixed;
  border-radius: var(--radius-md);
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
  box-shadow: var(--shadow-lg);
}
.fly-clone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── CART ICON BOUNCE ─── */
@keyframes cartBounce {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.38) rotate(-9deg); }
  50%  { transform: scale(.88) rotate(5deg); }
  70%  { transform: scale(1.14) rotate(-3deg); }
  85%  { transform: scale(.96) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.nav-cart-btn.bounce {
  animation: cartBounce .62s cubic-bezier(.36,.07,.19,.97) both;
}

/* ─── NAVBAR SEARCH ─── */
.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* The expanding panel */
.nav-search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  width: 380px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(28,25,21,.12), 0 2px 8px rgba(28,25,21,.06);
  z-index: 1100;
  overflow: hidden;
  /* Closed state */
  opacity: 0;
  transform: translateY(-10px) scale(.96);
  pointer-events: none;
  transition: opacity var(--transition-base),
              transform var(--transition-base);
}
.nav-search-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Search input row */
.nav-search-inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.nav-search-icon-sm {
  color: var(--text-muted);
  flex-shrink: 0;
}
.nav-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: .9rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  min-width: 0;
  padding: 0;
}
.nav-search-input::placeholder { color: var(--text-light); }
.nav-search-input::-webkit-search-cancel-button { display: none; }
.nav-search-input:focus { outline: none; }

.nav-search-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
  padding: 0;
}
.nav-search-close:hover {
  background: var(--border-strong);
  color: var(--text-primary);
}

/* Results dropdown */
.nav-search-dropdown {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* Empty state */
.nav-search-empty {
  padding: 1.5rem 1.25rem;
  font-size: .84rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* "See all results" footer */
.nav-search-footer {
  padding: .75rem 1.25rem;
  font-size: .82rem;
  color: var(--accent);
  font-weight: 500;
  text-align: center;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.nav-search-footer:hover { background: var(--accent-light); }

/* Individual result row */
.nav-search-result {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .7rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}
.nav-search-result:last-of-type { border-bottom: none; }
.nav-search-result:hover,
.nav-search-result.focused {
  background: var(--bg-alt);
}

/* Product thumbnail in result */
.nav-search-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.nav-search-info {
  flex: 1;
  min-width: 0;
}
.nav-search-name {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  font-style: normal;
}
/* Highlighted matched text */
.nav-search-name mark {
  background: rgba(196,112,58,.15);
  color: var(--accent);
  font-weight: 700;
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}
.nav-search-meta {
  font-size: .73rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-search-price {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Backdrop overlay (for closing on outside click) */
.nav-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1099;
  background: transparent;
  cursor: default;
}

/* Mobile: full-width panel */
@media (max-width: 700px) {
  .nav-search-panel {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }
}

/* --- UX MICRO-ANIMATIONS --- */

/* Demo release: preserve the editorial palette and improve small-screen controls. */
:root { --demo-height: 40px; --text-muted: #756c63; }
body { padding-top: var(--demo-height); }
.demo-banner { position: fixed; inset: 0 0 auto; min-height: var(--demo-height); z-index: 1200; padding: 8px 16px; background: #2c241e; color: #fff3e7; font: 500 12px/24px var(--font-body); text-align: center; }
.nav-wrap { top: var(--demo-height); }
.demo-note, .demo-page-note { padding: 12px 18px; background: var(--accent-light); color: #593d2c; font: 400 14px/1.6 var(--font-body); border-radius: 4px; }
.demo-page-note { margin: 90px auto 0; width: min(1100px, calc(100% - 32px)); }
.demo-page-note + .checkout-wrap, .demo-page-note + .contact-page-wrap, .demo-page-note + .confirmation-wrap, .demo-page-note + .tracking-wrap { padding-top: 32px; }
#page-auth .demo-page-note, #page-vendor .demo-page-note, #page-admin .demo-page-note { margin-top: 16px; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 9999; background: white; padding: 12px; color: #1c1915; }
.skip-link:focus { top: 4px; }
:focus-visible { outline: 3px solid #985129; outline-offset: 4px; }
.page:focus { outline: none; }
button:disabled { cursor: not-allowed; opacity: .65; }
.product-card { display: flex; flex-direction: column; }
.product-card-body { flex: 1; display: flex; flex-direction: column; }
.product-card-footer { margin-top: auto; gap: 8px; }
.product-name { min-height: 2.8em; }
.thumb-img { padding: 0; background: none; }
.color-swatch { padding: 0; }
.cart-drawer { visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cart-qty-btn, .cart-close-btn, .filter-tag-remove { min-width: 32px; min-height: 32px; }
.demo-note button { white-space: normal; }
@media (max-width: 1024px) {
  .vendor-layout { grid-template-columns: 1fr; }
  .vendor-sidebar { position: relative; width: 100%; height: auto; min-height: 0; }
  .vendor-main { margin-left: 0; min-width: 0; padding: 24px 16px; }
  .vendor-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .vendor-nav-item { width: auto; }
  .vendor-main table { display: block; overflow-x: auto; max-width: 100%; }
}
@media (max-width: 700px) {
  :root { --demo-height: 64px; }
  .demo-banner { line-height: 18px; padding: 12px; }
  .nav-search-panel { top: calc(var(--nav-height) + var(--demo-height)); }
  .nav-actions { gap: 8px; }
  .nav-actions > .btn-primary { display: none; }
  .nav-actions > .btn-outline { font-size: 11px; padding: 8px; }
  .nav-logo { gap: 6px; font-size: 16px; }
  .mobile-menu { max-height: calc(100dvh - var(--nav-height) - var(--demo-height)); overflow-y: auto; background: #2c241e; }
  .mobile-menu a { color: #fff !important; }
  .cart-drawer { width: min(100%, 440px); max-height: 100dvh; z-index: 1400; }
  .cart-overlay { z-index: 1300; }
  .demo-page-note { margin-top: 84px; }
  .checkout-grid, .confirmation-body, .contact-grid { grid-template-columns: 1fr; min-width: 0; }
  .checkout-summary-card { position: static; }
  .admin-vendor-row { flex-wrap: wrap; gap: 12px; }
  .admin-vendor-main { overflow-wrap: anywhere; min-width: 0; }
  .product-info, .checkout-form-col, .checkout-summary-col { min-width: 0; }
}
/* The filter sheet must cover navigation and the demo banner on small tablets too. */
.mobile-filter-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(28,25,21,.5); }
@media (max-width: 900px) {
  .filters-sidebar { visibility: hidden; }
  .filters-sidebar.open { visibility: visible; z-index: 1501; top: 0; bottom: 0; max-height: 100dvh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .reveal-up, .reveal-in, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 360px) {
  .demo-banner { font-size: 10px; line-height: 16px; padding: 8px; }
}

/* Category cards lift */
.category-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 12px 32px rgba(28,25,21,0.12); }

/* How-it-works cards */
.how-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.how-card:hover { transform: translateY(-6px); }

/* Testimonial cards */
.testimonial-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.testimonial-card:hover { transform: translateY(-6px); }

/* Auth card depth */
.auth-card { transition: box-shadow 0.3s ease; }
.auth-card:hover { box-shadow: 0 8px 48px rgba(28,25,21,0.14), 0 2px 8px rgba(28,25,21,0.08); }

/* Social buttons scale */
.auth-social-btn, .auth-demo-btn {
  transition: border-color var(--transition-fast), background var(--transition-fast), transform 0.18s ease, color var(--transition-fast);
}
.auth-social-btn:hover, .auth-demo-btn:hover { transform: scale(1.03); }

/* Primary / outline button lift */
.btn-primary:not(:disabled):hover { transform: translateY(-1px) scale(1.03); }
.btn-outline:not(:disabled):hover { transform: translateY(-1px); }
