/* ============================================================
   BACK TO BACHPAN — COMPONENT LIBRARY
   Buttons · Nav · Cards · Forms · Modals · Overlays · Toast
   ============================================================ */

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: var(--transition);
  user-select: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 2px;
}

.btn:active  { transform: scale(0.97); }
.btn:disabled, .btn[disabled] { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.38);
  transform: translateY(-2px);
  color: var(--white);
}
.btn-primary:active { transform: scale(0.97); }

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.35);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  
  
  box-shadow: var(--shadow-sm), var(--shadow-inset);
}
.btn-secondary:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  color: var(--white);
}

.btn-icon {
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-icon-sm { width: 32px; height: 32px; }

/* Loading state */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--primary); }
.nav-logo-dot { color: var(--accent); }

.search-bar {
  background: var(--surface-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  padding: 0.45rem 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-inset);
  cursor: pointer;
  gap: 0.5rem;
}
.search-bar:hover {
  background: var(--surface-strong);
  border-color: rgba(79,70,229,0.15);
}
.search-bar:focus-within {
  background: var(--white);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9375rem;
  color: var(--text-primary);
  min-width: 0;
}
.search-bar input::placeholder { color: var(--text-muted); }

.nav-icon-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  position: relative;
}
.nav-icon-link:hover {
  background: var(--surface-strong);
  color: var(--primary);
}

.nav-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  transition: var(--transition);
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-avatar:hover {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.nav-link:hover { background: var(--surface-strong); color: var(--text-primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }

/* ── CATEGORY PILLS ──────────────────────────────────────── */
.category-pills-container {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-pills-container::-webkit-scrollbar { display: none; }

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}
.category-pill:hover {
  background: var(--white);
  color: var(--text-primary);
  border-color: rgba(79,70,229,0.15);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: var(--text-primary);
}
.category-pill.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}
.category-pill.active:hover { color: var(--white); }

.category-pill-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ── PRODUCT CARD ────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: none;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-subtle);
}

.product-card-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-secondary);
  overflow: hidden;
  text-decoration: none;
  padding: 1rem;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}
.product-card:hover .product-card-img {
  transform: scale(1.05);
}

.product-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.product-card-fallback .fallback-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.product-card-fallback .fallback-text {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 10;
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.product-card:hover .wishlist-btn,
.wishlist-btn.active {
  opacity: 1;
  transform: translateY(0);
}
.wishlist-btn:hover { color: var(--danger); transform: scale(1.1); }
.wishlist-btn.active { color: var(--danger); }
.wishlist-btn.active i { fill: var(--danger); }

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  z-index: 5;
  pointer-events: none;
}
.product-badge.discount { background: var(--danger); color: #fff; }
.product-badge.new { background: var(--success); color: #fff; }

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-card-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.product-card-title-link {
  text-decoration: none;
  color: inherit;
}
.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.product-card-title-link:hover .product-card-title {
  color: var(--primary);
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
}
.product-card-rating .stars {
  display: flex;
  align-items: center;
  gap: 2px;
}
.product-card-rating.empty {
  opacity: 0.5;
}
.product-card-rating .rating-val {
  font-weight: 600;
  color: var(--text-primary);
  margin-left: 0.25rem;
}
.product-card-rating .rating-count {
  color: var(--text-muted);
}

.product-card-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.price-old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-btn {
  margin-top: 1rem;
  padding: 0.6rem;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  width: calc(100% - 2.5rem);
  transition: all 0.2s;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}
.product-card-btn:hover {
  background: var(--primary-dark);
}
.product-card:hover .product-card-btn {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.product-card:hover .product-card-price-row {
  opacity: 0;
}

/* ── SECTION HEADINGS ────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.section-header h2 { margin-bottom: 0; }
.section-header a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3.5rem;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}
.hero__blob--1 {
  width: 500px; height: 500px;
  background: rgba(79, 70, 229, 0.08);
  top: -150px; left: -150px;
}
.hero__blob--2 {
  width: 400px; height: 400px;
  background: rgba(217, 119, 6, 0.07);
  bottom: -100px; right: -50px;
}
.hero__container {
  position: relative;
  z-index: 1;
}
.hero__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.hero__eyebrow-icon { color: var(--accent); }
.hero__headline {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.hero__headline span { color: var(--primary); }
.hero__break { display: inline; }
.hero__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.hero__trust-icon { color: var(--success); flex-shrink: 0; }
.hero__trust-sep { color: var(--text-muted); }
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__image-tile {
  position: relative;
  background: var(--surface-strong);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 380px;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}
.hero__img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}
.hero__badge-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
}
.hero__pill {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.hero__pill-icon { font-size: 1rem; }

/* Hero image fallback — emoji grid */
.hero__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.hero__fallback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 220px;
}
.hero__fallback-item {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.hero__fallback-item:hover { transform: scale(1.06); }

/* ── TRUST BAR ───────────────────────────────────────────── */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.trust-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.trust-item-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.trust-item h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.trust-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── FILTER SIDEBAR ──────────────────────────────────────── */
.filter-sidebar {
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.filter-group {
  margin-bottom: 1.5rem;
}
.filter-group:last-child { margin-bottom: 0; }
.filter-group-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 1.25rem 0;
}
.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.35rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.filter-checkbox-label:hover { color: var(--text-primary); }
.filter-checkbox-label input[type="checkbox"],
.filter-checkbox-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── SEARCH OVERLAY ──────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1.5rem 1.5rem;
  background: rgba(15, 15, 25, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.search-overlay-card {
  width: 100%;
  max-width: 640px;
  background: var(--surface-overlay);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.22s var(--ease-spring);
}
.search-overlay.active .search-overlay-card {
  transform: translateY(0) scale(1);
}
.search-overlay-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
}
.search-overlay-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.0625rem;
  color: var(--text-primary);
  font-weight: 500;
}
.search-overlay-input input::placeholder { color: var(--text-muted); }
.search-overlay-body { padding: 1rem 1.25rem 1.25rem; max-height: 400px; overflow-y: auto; }
.search-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-primary);
}
.search-result-item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.search-result-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: contain;
  background: rgba(0,0,0,0.03);
  flex-shrink: 0;
}
.search-result-name { font-size: 0.9375rem; font-weight: 500; }
.search-result-price { font-size: 0.8125rem; color: var(--text-muted); }
.search-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  flex-shrink: 0;
}
.search-close-btn:hover { background: rgba(0,0,0,0.06); color: var(--text-primary); }

/* ── CART DRAWER ─────────────────────────────────────────── */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(15,15,25,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 94vw;
  z-index: var(--z-modal);
  background: var(--surface-overlay);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-left: 1px solid var(--border-soft);
  box-shadow: -12px 0 48px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.active {
  transform: translateX(0);
}
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.cart-drawer-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.cart-drawer-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: flex-start;
}
.cart-drawer-item:last-child { border-bottom: none; }
.cart-drawer-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: rgba(0,0,0,0.03);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.cart-drawer-item-info { flex: 1; min-width: 0; }
.cart-drawer-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-drawer-item-price {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.qty-stepper button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  transition: background 0.15s;
}
.qty-stepper button:hover { background: var(--primary-soft); color: var(--primary); }
.qty-stepper input {
  width: 36px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.cart-subtotal-label { font-size: 0.9rem; color: var(--text-secondary); }
.cart-subtotal-value { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.cart-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
}
.cart-drawer-empty svg { opacity: 0.35; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--surface-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  background: var(--white);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

/* ── TABS ────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border-soft);
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius) var(--radius) 0 0;
}
.tab-btn:hover { color: var(--text-primary); background: rgba(0,0,0,0.03); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(79,70,229,0.04);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.page-btn:hover { background: var(--white); color: var(--primary); border-color: rgba(79,70,229,0.2); }
.page-btn.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
  font-weight: 700;
}
.page-btn.active:hover { color: var(--white); }
.page-btn:disabled { opacity: 0.4; pointer-events: none; }

/* ── TABLES ──────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table th {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border-soft);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0,0,0,0.01);
  white-space: nowrap;
}
.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-size: 0.9375rem;
}
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: rgba(79, 70, 229, 0.02); }
.table tbody tr:last-child td { border-bottom: none; }

/* ── ALERTS ──────────────────────────────────────────────── */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-secondary);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.alert.success { background: var(--success-soft); border-color: rgba(22,163,74,0.2); color: var(--success); }
.alert.error   { background: var(--danger-soft);  border-color: rgba(239,68,68,0.2);  color: var(--danger);  }
.alert.warning { background: var(--warning-soft); border-color: rgba(245,158,11,0.2); color: var(--accent-dark); }
.alert.info    { background: var(--info-soft);    border-color: rgba(59,130,246,0.2); color: var(--info); }

/* ── TOAST ───────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--surface-overlay);
  
  
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  transform: translateX(120%);
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
  pointer-events: all;
  max-width: 340px;
  min-width: 220px;
}
.toast.show { transform: translateX(0); }
.toast.hide { transform: translateX(120%); opacity: 0; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger);  }
.toast.info    { border-left: 3px solid var(--info);    }
.toast-icon-success { color: var(--success); flex-shrink: 0; }
.toast-icon-error   { color: var(--danger);  flex-shrink: 0; }
.toast-icon-info    { color: var(--info);    flex-shrink: 0; }

/* ── EMPTY STATES ────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 1rem;
}
.empty-state-icon {
  width: 72px;
  height: 72px;
  background: var(--surface-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.empty-state h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
}
.empty-state p {
  color: var(--text-muted);
  max-width: 300px;
  margin: 0;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-secondary);
  
  
  border-top: 1px solid var(--border-soft);
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-link {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.2rem 0;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--primary); }
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.5; }
.breadcrumb span { color: var(--text-primary); font-weight: 500; }

/* ── RATING STARS ────────────────────────────────────────── */
.star-rating {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--warning);
  font-size: 1rem;
}
.star-rating-input span {
  cursor: pointer;
  font-size: 1.75rem;
  color: var(--border-soft);
  transition: color 0.12s;
}
.star-rating-input span.lit { color: var(--warning); }

/* ── PRODUCT PAGE SPECIFICS ──────────────────────────────── */
.product-gallery-main {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(240,240,255,0.8), rgba(255,248,230,0.6));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.product-gallery-main img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.38s var(--ease-spring);
}
.product-gallery-main:hover img { transform: scale(1.04); }

.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(240,240,255,0.8), rgba(255,248,230,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  overflow: hidden;
  flex-shrink: 0;
}
.product-thumb:hover { border-color: var(--primary-light); }
.product-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.product-thumb img { max-width: 80%; max-height: 80%; object-fit: contain; }

/* ── MISC ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 1.5rem 0;
}
.section-gap { padding: 4rem 0; }
.section-gap-sm { padding: 2.5rem 0; }

/* Sticky header offset for anchor links */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ── LAYOUT CLASSES ──────────────────────────────────────── */
/* Account page 2-column layout */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
/* Cart page layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
/* Checkout layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
/* Product listing layout */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
/* Product detail layout */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 4rem;
}
.page-hero-inner {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 3rem;
}

/* ── CARD (solid white, not glass) ───────────────────────── */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
}
.card-body { padding: 1.5rem; }
.card-sm .card-body { padding: 1rem; }

/* ── STAT CARD ───────────────────────────────────────────── */
.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card-value {
  font-size: 1.75rem; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.03em; line-height: 1;
}
.stat-card-label {
  font-size: 0.8125rem; color: var(--text-muted); font-weight: 500;
}
.stat-card-change {
  font-size: 0.8rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.15rem 0.5rem; border-radius: var(--radius-pill);
}
.stat-card-change.up { color: var(--success); background: var(--success-soft); }
.stat-card-change.down { color: var(--danger); background: var(--danger-soft); }

/* ── ACCOUNT SIDEBAR NAV ─────────────────────────────────── */
.account-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.account-sidebar-header {
  padding: 1rem 0.875rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.5rem;
}
.account-sidebar-user-name {
  font-weight: 700; font-size: 0.9375rem;
  color: var(--text-primary);
}
.account-sidebar-user-email {
  font-size: 0.8rem; color: var(--text-muted);
}
.account-nav-link {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.6rem 0.875rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500; font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}
.account-nav-link:hover { background: var(--primary-soft); color: var(--primary); }
.account-nav-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.account-nav-link svg, .account-nav-link i { flex-shrink: 0; }
.account-nav-divider { height: 1px; background: #e2e8f0; margin: 0.4rem 0; }
.account-nav-section-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  padding: 0.5rem 0.875rem 0.25rem;
}

/* ── CHECKOUT STEP INDICATOR ──────────────────────────────── */
.checkout-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 2.5rem;
}
.checkout-step {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted);
}
.checkout-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #e2e8f0; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
  transition: var(--transition);
}
.checkout-step.active .checkout-step-num {
  background: var(--primary); color: #fff;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.checkout-step.active { color: var(--text-primary); }
.checkout-step.done .checkout-step-num {
  background: var(--success); color: #fff;
}
.checkout-step-line {
  width: 60px; height: 2px;
  background: #e2e8f0; flex-shrink: 0;
  margin: 0 0.25rem;
}
.checkout-step.done + .checkout-step-line { background: var(--success); }

/* ── TRUST STRIP (checkout/product) ──────────────────────── */
.trust-strip {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
}
.trust-strip-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500;
}
.trust-strip-icon { color: var(--success); flex-shrink: 0; }

/* ── PROMO BANNER ────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  position: relative;
}
.promo-banner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -100px; right: -100px;
  pointer-events: none;
}
.promo-banner-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800; margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
.promo-banner-sub { font-size: 0.9375rem; opacity: 0.85; margin: 0; }
.promo-banner .btn-white {
  background: #fff; color: var(--primary);
  font-weight: 700; padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap; flex-shrink: 0;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.promo-banner .btn-white:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px); color: var(--primary);
}

/* ── AUTH SPLIT LAYOUT ───────────────────────────────────── */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
}
.auth-split-left {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 60%, #1e1b4b 100%);
  display: flex; flex-direction: column;
  justify-content: center; padding: 4rem 3rem;
  position: relative; overflow: hidden;
}
.auth-split-left::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(217,119,6,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.auth-split-right {
  background: #f5f6fa;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 2rem;
  overflow-y: auto;
}
.auth-split-logo {
  font-size: 2rem; font-weight: 800;
  color: #fff; letter-spacing: -0.04em;
  margin-bottom: 2rem; display: flex; align-items: center;
  position: relative; z-index: 1;
}
.auth-split-logo span { color: var(--accent); }
.auth-split-tagline {
  font-size: 1.75rem; font-weight: 800;
  color: #fff; letter-spacing: -0.03em; line-height: 1.2;
  margin-bottom: 1.25rem; position: relative; z-index: 1;
}
.auth-split-sub {
  font-size: 0.9375rem; color: rgba(255,255,255,0.75);
  line-height: 1.7; max-width: 360px;
  margin-bottom: 2.5rem; position: relative; z-index: 1;
}
.auth-split-perks {
  display: flex; flex-direction: column; gap: 0.875rem;
  position: relative; z-index: 1;
}
.auth-split-perk {
  display: flex; align-items: center; gap: 0.75rem;
  color: rgba(255,255,255,0.9); font-size: 0.9375rem;
}
.auth-split-perk-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 1px 0 rgba(255,255,255,0.8);
  padding: 2.5rem;
}
.auth-card-title {
  font-size: 1.625rem; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}
.auth-card-sub {
  font-size: 0.9375rem; color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.5rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.auth-divider span { font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; }

/* ── ERROR PAGE ──────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 1.5rem; text-align: center;
}
.error-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
  margin-bottom: 0.5rem;
}
.error-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700; color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.error-sub {
  font-size: 1rem; color: var(--text-muted);
  max-width: 420px; line-height: 1.7; margin-bottom: 2.5rem;
}

/* ── RESPONSIVE ADDITIONS ────────────────────────────────── */
@media (max-width: 1024px) {
  .account-layout { grid-template-columns: 200px 1fr; }
  .products-layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 768px) {
  .account-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .products-layout { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .promo-banner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-split-left { display: none; }
  .auth-card { box-shadow: none; background: transparent; padding: 0; }
  .checkout-step-line { width: 30px; }
  .checkout-step span { display: none; }
  .trust-strip { gap: 0.75rem; }
}
@media (max-width: 480px) {
  .auth-split-right { padding: 1.5rem 1.25rem; }
  .auth-card { padding: 0; }
  .checkout-steps { gap: 0; }
}

/* ── PROMO BANNER ─────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(79,70,229,0.25), var(--shadow-inset);
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -100px; right: -80px;
  pointer-events: none;
}
.promo-banner-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 0.375rem;
}
.promo-banner-sub {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.5;
}

/* ── BTN WHITE (for use on dark backgrounds) ──────────────── */
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: var(--primary-dark);
}

/* ── SECTION GAP ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .promo-banner { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
}

/* -- COMPONENT GRIDS ----------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .category-grid { grid-template-columns: repeat(6, 1fr); gap: var(--space-5); }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}
.category-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
  box-shadow: var(--shadow-sm);
}
.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover .category-image {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.category-card:hover .category-image img {
  transform: scale(1.05);
}
.category-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  transition: color 0.2s;
}
.category-card:hover .category-name {
  color: var(--primary);
}
