/* =========================================================
   SCALE 64 — Production Design System
   British Racing Green · Heritage Yellow · Crisp Alabaster
   Architectural Syne Display + Plus Jakarta Sans UI
   ========================================================= */

:root {
  /* Surface Hierarchy (Tonal Elevation, Zero Visual Noise) */
  --bg-base: #06130e;
  --bg-surface-1: #0b1e16;
  --bg-surface-2: #102a1f;
  --bg-surface-3: #163729;
  --bg-input: #071710;

  /* Hairline Borders */
  --border-subtle: rgba(247, 245, 239, 0.085);
  --border-default: rgba(247, 245, 239, 0.14);
  --border-strong: rgba(247, 245, 239, 0.24);
  --border-accent: rgba(229, 184, 66, 0.42);

  /* Brand Accent (Heritage Racing Yellow) */
  --accent: #e5b842;
  --accent-hover: #f0c75a;
  --accent-muted: rgba(229, 184, 66, 0.12);
  --accent-ink: #07150f;

  /* Typography Colors */
  --text-primary: #f7f5ef;
  --text-secondary: rgba(247, 245, 239, 0.72);
  --text-tertiary: rgba(247, 245, 239, 0.48);

  /* Semantic Status */
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);

  /* Typography Families */
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing Scale (8px baseline) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Consistent Radii */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Restrained Elevation Shadows */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.46);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.22s;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth Spring Scroll Progress Bar */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #fae08c 100%);
  box-shadow: 0 0 12px rgba(229, 184, 66, 0.65);
  will-change: width;
}

/* Subtle Ambient Physics Canvas */
#physics-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

header, main, footer {
  position: relative;
  z-index: 2;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Keyboard Accessibility Focus Rings */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Refined Signature Motorsport Checkered Rule (Subtle 6px Detail) */
.checkered-rule {
  height: 6px;
  width: 100%;
  background-color: rgba(247, 245, 239, 0.72);
  background-image:
    linear-gradient(45deg, var(--bg-base) 25%, transparent 25%),
    linear-gradient(-45deg, var(--bg-base) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--bg-base) 75%),
    linear-gradient(-45deg, transparent 75%, var(--bg-base) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  opacity: 0.65;
}

/* =========================================================
   MICRO-INTERACTIONS & REDUCED MOTION
   ========================================================= */
.reveal-spring {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.65s var(--ease-out);
  transition-delay: var(--stagger, 0ms);
}

.reveal-spring.in-view {
  opacity: 1;
  transform: translateY(0);
}

.view-enter {
  animation: viewFade 0.34s var(--ease-out);
}

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

.physics-card,
.product-card,
.series-row-card {
  position: relative;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-spring { opacity: 1; transform: none; transition: none; }
  .view-enter { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =========================================================
   NAVIGATION BAR — Linear/Stripe Precision
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 19, 14, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.nav-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-pills {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
}

/* Spring-Physics Sliding Active Pill (Inspired by Still & Stroke navIndicator) */
.nav-spring-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 68px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: transform, width;
}

.nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--duration) ease;
}

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

.nav-link.active {
  color: var(--accent-ink);
  font-weight: 700;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--bg-base);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cart-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-surface-1);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration) ease, background var(--duration) ease;
}

.cart-pill-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-surface-2);
}

.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-surface-1);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration) ease;
}

.user-pill:hover {
  border-color: var(--border-accent);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: var(--bg-surface-1);
  cursor: pointer;
  align-items: center;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* =========================================================
   BUTTON SYSTEM — Consistent Heights & Tactile Feedback
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    transform 0.15s ease;
  white-space: nowrap;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.8rem;
}

.btn-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.btn-yellow {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-yellow:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 8px 22px rgba(229, 184, 66, 0.24);
}

.btn-surface {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-surface:hover:not(:disabled) {
  background: var(--bg-surface-3);
  border-color: var(--border-strong);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-outline-white:hover:not(:disabled) {
  border-color: var(--text-primary);
  background: rgba(247, 245, 239, 0.06);
}

.btn-outline-yellow {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: var(--border-accent);
}

.btn-outline-yellow:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-danger {
  background: var(--danger-bg);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: #ef4444;
  color: #fff;
}

/* =========================================================
   HERO SECTION — Dynamic Paint-Synced Glow + Masked Choreography
   ========================================================= */
.hero-section {
  position: relative;
  padding: 56px 0 68px;
  --hero-glow: rgba(229, 184, 66, 0.2);
  overflow: hidden;
}

.hero-ambient-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(660px circle at 76% 42%, var(--hero-glow), transparent 64%),
    radial-gradient(520px circle at 14% 82%, rgba(22, 55, 41, 0.5), transparent 65%);
  transition: background 0.8s var(--ease-out);
  z-index: 0;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

/* Masked Line-by-Line Hero Reveal */
.hero-line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}

.hero-line-inner {
  display: inline-block;
  animation: heroLineReveal 0.82s var(--ease-out) both;
  animation-delay: var(--line-delay, 0ms);
}

@keyframes heroLineReveal {
  from {
    opacity: 0;
    transform: translateY(104%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle Showroom Float & Specular Sheen on Hero Stage */
.hero-stage-card {
  position: relative;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 64px -12px var(--hero-glow);
  transition: box-shadow 0.8s var(--ease-out), border-color var(--duration) ease;
}

.hero-stage-img-wrap img.car-swap-anim {
  animation: carSwapIn 0.55s var(--ease-out);
}

@keyframes carSwapIn {
  from {
    opacity: 0.25;
    transform: scale(1.06);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* Specular Showroom Spotlight on Cards (Still & Stroke inspired) */
.product-card::before,
.series-row-card::before,
.hero-stage-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(229, 184, 66, 0.14), transparent 58%);
  transition: opacity 0.28s ease;
  z-index: 2;
}

.product-card:hover::before,
.series-row-card:hover::before,
.hero-stage-card:hover::before {
  opacity: 1;
}

/* Subtle Diagonal Sheen on Primary Yellow CTAs */
.btn-yellow {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-yellow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.38) 50%, transparent 80%);
  transform: skewX(-18deg);
  transition: left 0.65s var(--ease-out);
  pointer-events: none;
}

.btn-yellow:hover::after {
  left: 140%;
}

/* Smooth Motorsport Series Ticker (Marquee) */
.ticker-band {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-1);
  overflow: hidden;
  padding: 13px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 36px;
  animation: tickerScroll 34s linear infinite;
}

.ticker-band:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.series-row-link .arrow-glide,
.btn .arrow-glide {
  display: inline-block;
  transition: transform 0.26s var(--ease-out);
}

.series-row-card:hover .arrow-glide,
.btn:hover .arrow-glide {
  transform: translateX(4px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.3vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 14px 0 18px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  padding: 6px 6px 6px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-default);
  margin-bottom: 20px;
  transition: border-color var(--duration) ease, box-shadow var(--duration) ease;
}

.hero-search-pill:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 184, 66, 0.14);
}

.hero-search-pill input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.hero-search-pill input::placeholder {
  color: var(--text-tertiary);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-trust-item strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-trust-item span {
  font-size: 0.76rem;
  color: var(--text-tertiary);
}

/* Right Column: Museum-Grade Featured Hot Wheels Stage */
.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-stage-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-stage-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #081811;
  overflow: hidden;
}

.hero-stage-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.hero-stage-card:hover .hero-stage-img-wrap img {
  transform: scale(1.03);
}

.hero-stage-footer {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stage-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 3px;
}

.hero-stage-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-thumbs-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hero-thumb-btn {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-1);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  padding: 0;
  opacity: 0.65;
  transition: opacity var(--duration) ease, border-color var(--duration) ease, transform var(--duration) ease;
}

.hero-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-thumb-btn:hover,
.hero-thumb-btn.active {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* =========================================================
   SECTION ARCHITECTURE — Generous Rhythm & Clear Hierarchy
   ========================================================= */
.band {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
}

.band-tinted {
  background: var(--bg-surface-1);
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-top: 6px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 540px;
  margin-top: 8px;
}

/* Curated Series Architectural Index (3 Columns, Hairline Separators) */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.series-row-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  transition: border-color var(--duration) ease, background var(--duration) ease;
}

.series-row-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-surface-2);
}

.series-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.series-code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.series-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.series-row-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.series-row-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.series-row-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   EDITORIAL PRODUCT GRID (#01 – #08) — Clean, Restrained Cards
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  min-width: 0;
  transition: border-color var(--duration) ease, box-shadow var(--duration) ease, background var(--duration) ease;
}

.product-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-surface-2);
  box-shadow: var(--shadow-md);
}

.product-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #081811;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

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

.product-card:hover .product-thumb-wrap img {
  transform: scale(1.045);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.card-index {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(6, 19, 14, 0.82);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pill-dark {
  background: rgba(6, 19, 14, 0.86);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.pill-yellow {
  background: var(--accent);
  color: var(--accent-ink);
}

.pill-soft-yellow {
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.pill-green {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.pill-amber {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.pill-red {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

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

.product-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   CIRCLE-STYLE PROCESS STRIP (Airy Architectural 4-Column)
   ========================================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
}

.process-step.is-key {
  border-top: 2px solid var(--accent);
}

.process-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}

.process-step h3 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   SELLER CTA BAND — Asymmetric Dark Surface + Checkered Accent
   ========================================================= */
.seller-banner {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.seller-banner-body {
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

/* =========================================================
   CATALOG / SUBPAGE HEADER & FILTERS
   ========================================================= */
.page-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-1);
}

.page-section {
  padding: 36px 0 76px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}

.search-input-wrap {
  flex: 1 1 260px;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.88rem;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.filter-select {
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.84rem;
  cursor: pointer;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-1);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) ease;
}

.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 700;
}

/* =========================================================
   PRODUCT DETAIL VIEW
   ========================================================= */
.detail-page {
  padding: 32px 0 76px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: color var(--duration) ease;
}

.breadcrumb:hover {
  color: var(--accent);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.detail-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--bg-surface-1);
  box-shadow: var(--shadow-md);
}

.detail-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.seller-mini-card {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
}

.seller-mini-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.seller-avatar-lg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.detail-info-panel {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 18px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-price {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.spec-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
}

.spec-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.spec-value {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 3px;
}

.speedpost-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-base);
  border: 1px solid var(--border-default);
}

.speedpost-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.speedpost-brand {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.pin-row {
  display: flex;
  gap: 8px;
}

.pin-row input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-surface-1);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.speedpost-result {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.speedpost-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

/* =========================================================
   OFFERS HUB & INDIA SPEED POST TRACKER
   ========================================================= */
.tabs-bar {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.tab-btn {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--duration) ease;
}

.tab-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.offers-list {
  display: grid;
  gap: 16px;
}

.offer-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  align-items: start;
}

.offer-card-img {
  width: 112px;
  height: 84px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.offer-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.offer-prices-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
}

.offer-history {
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

.offer-msg {
  font-size: 0.84rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  border-left: 2px solid var(--accent);
}

.offer-msg.seller-msg {
  border-left-color: var(--text-primary);
}

.offer-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.inline-counter-input {
  width: 128px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  color: var(--text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Speed Post Tracker */
.track-search-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.track-input-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.track-input-row input {
  flex: 1 1 260px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tracking-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tracking-card-inner {
  padding: 28px;
}

.tracking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 22px;
}

.consignment-code {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.tracking-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.tracking-meta-item {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.tracking-meta-item span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.tracking-meta-item strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.timeline {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 26px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-step {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  border: 2px solid var(--border-default);
}

.timeline-step.done::before {
  background: var(--success);
  border-color: var(--success);
}

.timeline-step.current {
  border-color: var(--border-accent);
  background: var(--bg-surface-2);
}

.timeline-step.current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 184, 66, 0.22);
}

/* =========================================================
   SELLER STUDIO
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 4px;
}

.seller-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 330px);
  gap: 28px;
  align-items: start;
}

.seller-preview-sticky {
  position: sticky;
  top: 90px;
  width: 100%;
  max-width: 330px;
}

.form-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: border-color var(--duration) ease;
}

.form-group textarea {
  min-height: 84px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.upload-zone {
  border: 1.5px dashed var(--border-default);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  background: var(--bg-base);
  cursor: pointer;
  transition: border-color var(--duration) ease;
}

.upload-zone:hover {
  border-color: var(--accent);
}

.preset-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.preset-thumb {
  width: 52px;
  height: 38px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--bg-base);
}

.preset-thumb.active,
.preset-thumb:hover {
  border-color: var(--accent);
}

.preset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* =========================================================
   MODALS, CART DRAWER & RAZORPAY CHECKOUT
   ========================================================= */
.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 11, 8, 0.78);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color var(--duration) ease;
}

.close-btn:hover {
  border-color: var(--accent);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.segmented-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin: 18px 0 20px;
}

.seg-tab {
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.seg-tab.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.form-error {
  background: var(--danger-bg);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(410px, 100%);
  background: var(--bg-base);
  border-left: 1px solid var(--border-default);
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
}

.drawer-header,
.drawer-footer {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.drawer-footer {
  border-bottom: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-1);
}

.cart-item-row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
}

.cart-item-row img {
  width: 68px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

.quick-offer-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
}

.quick-offer-btn {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--duration) ease, background var(--duration) ease;
}

.quick-offer-btn:hover,
.quick-offer-btn.active {
  border-color: var(--accent);
  background: var(--accent-muted);
}

/* Razorpay Modal */
.razorpay-shell {
  width: min(430px, 100%);
  background: var(--bg-surface-1);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.rzp-header {
  background: var(--bg-base);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.rzp-merchant {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rzp-logo-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.rzp-amount-bar {
  background: var(--bg-surface-2);
  color: var(--accent);
  padding: 11px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border-subtle);
}

.rzp-body {
  padding: 20px 22px;
}

.rzp-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.rzp-method-btn {
  height: 36px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.rzp-method-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.rzp-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.rzp-pay-btn {
  width: 100%;
  height: 46px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--duration) ease;
}

.rzp-pay-btn:hover {
  background: var(--accent-hover);
}

.rzp-footer {
  padding: 12px 22px;
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-tertiary);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #040d09;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding: 52px 0 38px;
}

.footer h4 {
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.86rem;
  color: var(--text-tertiary);
  max-width: 320px;
  line-height: 1.65;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-pill-btn {
  cursor: pointer;
  transition: border-color var(--duration) ease, color var(--duration) ease;
}

.trust-pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* =========================================================
   TOASTS & EMPTY STATES
   ========================================================= */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.toast {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.28s var(--ease-out);
}

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

.empty-state {
  text-align: center;
  padding: 52px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-1);
  border: 1px dashed var(--border-default);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (1440 / 1024 / 768 / 375)
   ========================================================= */
@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid,
  .tracking-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .hero-grid,
  .detail-grid,
  .seller-layout,
  .series-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .seller-preview-sticky {
    position: static;
    max-width: 360px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-pills {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-surface-1);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-lg);
  }
  .nav-spring-pill {
    display: none;
  }
  .nav-pills .nav-link.active {
    background: var(--accent);
    color: var(--accent-ink);
  }
  .nav-pills.open {
    display: flex;
  }
  .nav-link {
    padding: 11px 16px;
    justify-content: space-between;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .offer-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .container {
    width: calc(100% - 32px);
  }
  .hero-section {
    padding: 36px 0 48px;
  }
  .band {
    padding: 44px 0;
  }
  .product-grid,
  .process-grid,
  .detail-actions,
  .form-row,
  .stats-grid,
  .tracking-meta-grid {
    grid-template-columns: 1fr;
  }
  .seller-banner-body {
    padding: 28px 22px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .user-pill {
    padding: 0 6px;
  }
  .nav-actions .user-pill span:last-child,
  #nav-logout-btn {
    display: none;
  }
  .cart-pill-btn {
    padding: 0 9px;
  }
  .cart-pill-btn span:first-child {
    display: none;
  }
  .hero-stage-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
