/* BeTroll Store — Estilos principales */

:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-card: #1a1a1a;
  --red: #ef4444;
  --red-dark: #dc2626;
  --lime: #a3e635;
  --lime-dark: #84cc16;
  --white: #ffffff;
  --gray: #a3a3a3;
  --gray-light: #d4d4d4;
  --text-muted: #b3b3b3;
  --gray-dark: #525252;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 16px 48px rgba(239, 68, 68, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --touch-min: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

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

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

button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
}

button:focus-visible,
a:focus-visible,
.size-btn:focus-visible,
.qty-btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.pressable:active:not(:disabled) {
  transform: scale(0.97);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: height 0.3s var(--ease-out-expo), background 0.3s ease, box-shadow 0.3s ease;
  padding-top: var(--safe-top);
}

.navbar--compact .navbar-inner {
  height: 52px;
}

.navbar--compact .brand-logo {
  height: 32px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: height 0.3s var(--ease-out-expo);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.logo--image {
  font-size: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  transition: height 0.3s var(--ease-out-expo);
}

.brand-logo--footer {
  height: 32px;
  max-width: 140px;
  margin: 0 auto;
}

.brand-logo--hero {
  height: clamp(3rem, 12vw, 6rem);
  max-width: min(90vw, 520px);
  margin: 0 auto;
}

.hero h1.hero-title--logo {
  font-size: 0;
  line-height: 0;
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.login-brand .brand-logo {
  height: 56px;
  max-width: 200px;
}

.logo span {
  color: var(--red);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  touch-action: manipulation;
}

.cart-btn svg {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.cart-count.bump {
  transform: scale(1.4);
  background: var(--lime);
  color: var(--black);
}

/* ─── Hero ─── */
.hero {
  padding: calc(8rem + var(--safe-top)) 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 65%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.5;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(163, 230, 53, 0.1);
  color: var(--lime);
  border: 1px solid rgba(163, 230, 53, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .accent {
  color: var(--red);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--red);
  color: var(--white);
  padding: 0.875rem 2.25rem;
  min-height: 52px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  animation: fadeInUp 0.6s ease 0.3s both;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

.hero-cta:active {
  transform: scale(0.97);
}

.social-proof {
  margin-top: 2.5rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.social-proof-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  max-width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.social-proof-pill.visible {
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.social-proof-pill .stars {
  color: var(--lime);
  letter-spacing: 2px;
}

/* ─── Trust bar ─── */
.trust-bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.trust-bar::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .trust-bar {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
  scroll-snap-align: center;
  padding: 0.35rem 0.5rem;
}

.trust-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(163, 230, 53, 0.12);
  flex-shrink: 0;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--lime);
}

/* ─── Products ─── */
.products-section {
  padding: 2rem 0 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--gray);
  font-size: 1rem;
}

.urgency-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(163, 230, 53, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: pulse-border 3s ease infinite;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.product-grid.is-loaded {
  animation: gridFadeIn 0.4s var(--ease-out-expo);
}

/* Product card */
.product-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

.product-card.card-enter {
  animation: cardEnter 0.5s var(--ease-out-expo) both;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(239, 68, 68, 0.25);
  }

  .product-card:hover .product-image-wrap img {
    transform: scale(1.05);
  }
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--black-soft);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.badge-limited {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.product-info {
  padding: 1.25rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.product-price-note {
  font-size: 0.75rem;
  color: var(--gray-dark);
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.size-btn {
  background: var(--black-soft);
  color: var(--white);
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 44px;
  min-height: 44px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.size-btn.active {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.25);
}

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

.btn-add-cart {
  width: 100%;
  background: var(--red);
  color: var(--white);
  padding: 0.875rem 1rem;
  min-height: var(--touch-min);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

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

.btn-add-cart:disabled {
  background: var(--gray-dark);
  cursor: not-allowed;
}

.btn-add-cart.adding {
  pointer-events: none;
}

.btn-add-cart.adding::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  animation: shimmer 0.6s ease;
}

.btn-add-cart.added {
  background: var(--lime-dark);
  color: var(--black);
}

/* Skeleton loaders */
.skeleton-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.skeleton-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 90px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(110deg, var(--black-soft) 30%, #2a2a2a 50%, var(--black-soft) 70%);
  background-size: 200% 100%;
  animation: shimmer-bg 1.5s ease infinite;
}

.skeleton-image {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(110deg, var(--black-soft) 30%, #2a2a2a 50%, var(--black-soft) 70%);
  background-size: 200% 100%;
  animation: shimmer-bg 1.5s ease infinite;
}

.skeleton-body {
  padding: 1.25rem;
}

.skeleton-sizes {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.skeleton-size {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(110deg, var(--black-soft) 30%, #2a2a2a 50%, var(--black-soft) 70%);
  background-size: 200% 100%;
  animation: shimmer-bg 1.5s ease infinite;
}

.skeleton-btn {
  height: 44px;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  background: linear-gradient(110deg, var(--black-soft) 30%, #2a2a2a 50%, var(--black-soft) 70%);
  background-size: 200% 100%;
  animation: shimmer-bg 1.5s ease infinite;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  background: linear-gradient(110deg, var(--black-soft) 30%, #2a2a2a 50%, var(--black-soft) 70%);
  background-size: 200% 100%;
  animation: shimmer-bg 1.5s ease infinite;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }

/* ─── Cart drawer ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out-expo), visibility 0.35s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: var(--black-soft);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (max-width: 480px) {
  .cart-drawer {
    max-width: 100%;
    border-left: none;
  }
}

.cart-drawer.open {
  transform: translateX(0);
}

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

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.cart-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  touch-action: manipulation;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray);
}

.cart-empty p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--black-card);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  animation: slideInRight 0.35s var(--ease-out-expo);
  transition: transform 0.2s ease, opacity 0.25s ease;
}

.cart-item.removing {
  opacity: 0;
  transform: translateX(20px);
}

.cart-item.qty-bump {
  transform: scale(1.02);
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--black);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--gray);
}

.cart-item-price {
  font-weight: 700;
  color: var(--lime);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.qty-btn {
  width: var(--touch-min);
  height: var(--touch-min);
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  touch-action: manipulation;
  flex-shrink: 0;
}

.cart-item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.8rem;
  min-height: var(--touch-min);
  padding: 0.5rem 0.75rem;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  touch-action: manipulation;
}

.cart-footer {
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--black-soft);
  flex-shrink: 0;
}

.cart-summary {
  margin-bottom: 1rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.35rem;
}

.cart-summary-note span:last-child {
  font-size: 0.8rem;
  color: var(--gray-dark);
  text-align: right;
  max-width: 65%;
  line-height: 1.35;
}

.cart-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--gray-dark);
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(163, 230, 53, 0.06);
  border-radius: var(--radius-sm);
  text-align: center;
  line-height: 1.4;
}

.cart-trust-row svg {
  width: 14px;
  height: 14px;
  color: var(--lime);
  flex-shrink: 0;
}

.cart-continue {
  width: 100%;
  background: transparent;
  color: var(--gray);
  padding: 0.875rem;
  min-height: var(--touch-min);
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition);
  touch-action: manipulation;
}

.cart-checkout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.cart-checkout-loading {
  text-align: center;
  padding: 2rem;
}

.cart-checkout-loading p {
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}

.cart-checkout-loading small {
  color: var(--gray);
  font-size: 0.8rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 1.1rem;
}

.cart-total span:last-child {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--lime);
}

.btn-checkout {
  width: 100%;
  background: var(--lime);
  color: var(--black);
  padding: 1rem;
  min-height: var(--touch-min);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  touch-action: manipulation;
}

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

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

.btn-checkout.loading {
  pointer-events: none;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ─── Toast ─── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: min(100% - 2rem, 380px);
}

@media (min-width: 768px) {
  .toast-container {
    left: auto;
    right: 1.5rem;
    transform: none;
    width: min(380px, calc(100% - 3rem));
  }
}

.toast {
  background: var(--black-card);
  border: 1px solid rgba(163, 230, 53, 0.3);
  color: var(--white);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: toastIn 0.4s var(--ease-out-expo);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.toast.toast-out {
  animation: toastOut 0.35s var(--ease-out-expo) forwards;
}

.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.35);
}

.toast-icon {
  width: 20px;
  height: 20px;
  color: var(--lime);
  flex-shrink: 0;
  animation: checkBounce 0.5s var(--ease-spring);
}

.toast-error .toast-icon {
  color: var(--red);
  animation: none;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-message {
  line-height: 1.4;
}

.toast-action {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lime);
  cursor: pointer;
  background: none;
  padding: 0;
}

.toast-action:hover {
  text-decoration: underline;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--lime);
  animation: toastProgress 3s linear forwards;
}

.toast-error .toast-progress {
  background: var(--red);
}

/* Fly-to-cart animation element */
.fly-item {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  z-index: 250;
  pointer-events: none;
  transition: left 0.65s var(--ease-out-expo), top 0.65s var(--ease-out-expo), opacity 0.65s ease, transform 0.65s var(--ease-out-expo);
  box-shadow: var(--shadow);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-logo span { color: var(--red); }

.footer-text {
  color: var(--gray);
  font-size: 0.85rem;
  max-width: 400px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: 50%;
  background: var(--black-card);
  border: 1px solid var(--border);
  color: var(--gray);
  transition: var(--transition);
  touch-action: manipulation;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  color: var(--gray-dark);
  font-size: 0.75rem;
}

.footer-credit {
  color: var(--gray-dark);
  font-size: 0.72rem;
  margin: 0;
}

.footer-credit a {
  color: var(--gray);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.footer-credit a:hover {
  color: var(--lime);
}

.footer-orders-link {
  margin: 0;
  font-size: 0.8rem;
}

.footer-orders-link a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-orders-link a:hover {
  color: var(--lime);
}

.footer--compact {
  padding: 1.5rem 0;
  margin-top: 0;
}

.nav-back-link {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.nav-back-link:hover {
  color: var(--white);
}

/* ─── Success page ─── */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.success-page::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.success-card {
  max-width: 520px;
  animation: fadeInUp 0.6s var(--ease-out-expo);
  position: relative;
  z-index: 1;
}

.success-icon {
  width: 88px;
  height: 88px;
  background: rgba(163, 230, 53, 0.15);
  border: 2px solid rgba(163, 230, 53, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 44px;
  height: 44px;
  color: var(--lime);
}

.success-icon .check-path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheck 0.6s var(--ease-out-expo) 0.3s forwards;
}

.success-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.success-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.success-trust {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-dark);
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.success-actions .hero-cta {
  width: 100%;
  max-width: 280px;
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  max-width: 280px;
}

.btn-secondary-outline:hover {
  color: var(--white);
  border-color: var(--gray);
}

a.btn-secondary-outline {
  text-decoration: none;
}

.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  top: -10px;
  opacity: 0;
  animation: confettiFall 2.5s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

.order-summary {
  text-align: left;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.order-summary.is-loading {
  opacity: 0.6;
}

.order-summary-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.order-meta-label {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-dark);
  margin-bottom: 0.2rem;
}

.order-status-pill {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.order-status-pill.status-paid,
.order-status-pill.status-production {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.order-status-pill.status-shipped {
  color: var(--lime);
  border-color: rgba(163, 230, 53, 0.35);
  background: rgba(163, 230, 53, 0.08);
}

.order-status-pill.status-delivered {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(134, 239, 172, 0.08);
}

.order-status-pill.status-canceled {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.order-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
}

.order-timeline-step {
  font-size: 0.68rem;
  color: var(--gray-dark);
  text-align: center;
  padding: 0.45rem 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.order-timeline-step.active {
  color: var(--lime);
  border-color: rgba(163, 230, 53, 0.35);
  background: rgba(163, 230, 53, 0.08);
}

.order-timeline-step.done {
  color: var(--gray);
}

.order-items-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.order-tracking,
.order-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-tracking-link,
.order-receipt-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
}

.order-tracking-link:hover,
.order-receipt-link:hover {
  text-decoration: underline;
}

.order-fallback {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.order-fallback a {
  color: var(--lime);
}

.order-canceled {
  color: var(--red);
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}

.orders-page {
  padding: 2rem 0 3rem;
  min-height: calc(100vh - 120px);
}

.orders-inner {
  max-width: 720px;
}

.orders-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.orders-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin: 1.5rem 0;
  align-items: end;
}

.orders-form-group {
  margin: 0;
}

.orders-form-group span {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.35rem;
}

.orders-submit {
  min-height: var(--touch-min);
  white-space: nowrap;
}

.orders-empty {
  color: var(--gray);
  font-size: 0.9rem;
}

.orders-results {
  display: grid;
  gap: 1rem;
}

.orders-results.is-loading {
  opacity: 0.55;
}

.order-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.order-card-head h2 {
  font-size: 1.05rem;
  margin: 0;
}

.order-card-date {
  font-size: 0.8rem;
  color: var(--gray-dark);
  margin: 0.2rem 0 0;
}

.order-card-items {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.order-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .order-meta {
    grid-template-columns: 1fr;
  }

  .order-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .orders-form {
    grid-template-columns: 1fr;
  }
}

/* ─── Admin ─── */
.admin-body {
  background: var(--black);
  min-height: 100vh;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.login-card p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--gray);
}

.form-input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.form-input:focus {
  border-color: var(--red);
}

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

.btn-primary {
  width: 100%;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover { background: var(--red-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gray);
}

.btn-lime {
  background: var(--lime);
  color: var(--black);
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-lime:hover { background: var(--lime-dark); }
.btn-lime:disabled, .btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.admin-layout {
  display: none;
}

.admin-layout.active { display: block; }

.admin-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.admin-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: opacity var(--transition);
}

.admin-brand:hover {
  opacity: 0.85;
}

.admin-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
  background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
}

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

.admin-store-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 520px) {
  .admin-store-link {
    display: none;
  }

  .admin-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
  }
}

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

/* Admin tabs */
.admin-tabs-wrap {
  position: sticky;
  top: calc(64px + var(--safe-top));
  z-index: 90;
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.65rem 0;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  flex-shrink: 0;
  background: transparent;
  color: var(--gray);
  border: 1px solid transparent;
  padding: 0.55rem 1rem;
  min-height: var(--touch-min);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.admin-tab:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.admin-tab.active {
  color: var(--white);
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.admin-panel {
  display: none;
  animation: fadeInUp 0.35s var(--ease-out-expo);
}

.admin-panel.active {
  display: block;
}

/* Analytics */
.analytics-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.analytics-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.analytics-demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime);
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.3);
}

.analytics-live-badge {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.75rem;
  font-weight: 600;
}

.analytics-kpi-grid.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

#analyticsWarnings {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

#analyticsError {
  margin-bottom: 1rem;
}

.analytics-filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.analytics-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.analytics-filter-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

.analytics-range-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.analytics-range-btn {
  background: var(--black-card);
  color: var(--gray);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  min-height: var(--touch-min);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.analytics-range-btn:hover {
  border-color: var(--gray);
  color: var(--white);
}

.analytics-range-btn.active {
  background: rgba(163, 230, 53, 0.12);
  border-color: rgba(163, 230, 53, 0.4);
  color: var(--lime);
}

.analytics-month-nav {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.analytics-month-picker {
  background: var(--black-card);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  min-height: var(--touch-min);
  font-size: 0.85rem;
  min-width: min(100%, 220px);
  flex: 1;
  max-width: 280px;
}

.analytics-month-btn,
.analytics-month-clear {
  background: var(--black-card);
  color: var(--gray);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  min-height: var(--touch-min);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.analytics-month-btn {
  min-width: var(--touch-min);
  padding: 0.5rem;
}

.analytics-month-btn:hover:not(:disabled),
.analytics-month-clear:hover {
  border-color: var(--gray);
  color: var(--white);
}

.analytics-month-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.analytics-period-label {
  font-size: 0.85rem;
  color: var(--white);
  margin: 0;
}

.analytics-alltime-hint {
  font-size: 0.78rem;
  color: var(--gray-dark);
  margin: 0;
}

.analytics-kpi-grid {
  margin-bottom: 1.5rem;
}

.analytics-kpi .value {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.analytics-kpi-delta {
  font-size: 0.75rem;
  margin-top: 0.35rem;
  color: var(--gray-dark);
}

.analytics-kpi-delta.positive {
  color: var(--lime);
}

.analytics-kpi-hint {
  font-size: 0.72rem;
  color: var(--gray-dark);
  margin-top: 0.35rem;
}

.analytics-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .analytics-charts {
    grid-template-columns: 1.4fr 1fr;
  }
}

.analytics-chart-card h2 {
  margin-bottom: 0.35rem;
}

.chart-wrap {
  position: relative;
  height: 280px;
  margin-top: 1rem;
}

.chart-wrap--compact {
  height: 260px;
}

.analytics-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Documentation */
.docs-header {
  margin-bottom: 1.5rem;
}

.docs-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.docs-toc a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.docs-toc a:hover {
  color: var(--white);
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.docs-section {
  scroll-margin-top: calc(140px + var(--safe-top));
}

.docs-list {
  margin: 1rem 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.docs-list li {
  margin-bottom: 0.5rem;
}

.docs-list--ordered {
  list-style: decimal;
}

.docs-inline,
.docs-code {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  font-size: 0.82em;
}

.docs-inline {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--lime);
}

.docs-diagram {
  margin: 1rem 0;
}

.docs-code {
  display: block;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--gray-light);
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.docs-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  -webkit-overflow-scrolling: touch;
}

.docs-table code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--lime);
}

.docs-table td:first-child {
  white-space: nowrap;
}

.docs-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(163, 230, 53, 0.06);
  border: 1px solid rgba(163, 230, 53, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.docs-troubleshoot {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.docs-trouble-item {
  padding: 1rem;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.docs-trouble-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--white);
}

.docs-trouble-item p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.55;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.stat-card .value.red { color: var(--red); }
.stat-card .value.lime { color: var(--lime); }

.admin-section {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.admin-section .desc {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  color: var(--gray);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

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

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

.table-product {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-product img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--black);
}

.limit-input {
  width: 80px;
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.status-badge.ok {
  background: rgba(163, 230, 53, 0.15);
  color: var(--lime);
}

.status-badge.warn {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.status-badge.neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--black);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.settings-full {
  grid-column: 1 / -1;
}

.admin-subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--white);
}

.admin-subtitle:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.links-editor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .links-editor {
    grid-template-columns: repeat(2, 1fr);
  }
}

.link-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.link-field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
}

.link-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--lime);
  flex-shrink: 0;
}

.link-field-icon svg {
  width: 14px;
  height: 14px;
}

.products-editor {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-editor-card {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.product-editor-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.product-editor-head h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.product-editor-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--black-card);
  flex-shrink: 0;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.3);
  color: var(--lime);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red);
}

.alert-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--gray);
}

.hidden { display: none !important; }

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

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes shimmer-bg {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px); }
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(239, 68, 68, 0.3); }
  50% { border-color: rgba(163, 230, 53, 0.4); }
}

@keyframes heroGlow {
  from { opacity: 0.7; transform: translateX(-50%) scale(1); }
  to { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@keyframes ctaBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

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

@keyframes gridFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes checkBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

@keyframes imageCrossfade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fly-item {
    display: none !important;
  }

  .confetti-piece {
    display: none !important;
  }
}

/* ─── Product page (PDP) ─── */
.pdp-page {
  padding-top: calc(64px + var(--safe-top));
  min-height: 60vh;
  padding-bottom: calc(5.5rem + var(--safe-bottom));
}

.pdp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--gray);
}

.pdp-breadcrumb a:hover {
  color: var(--white);
}

.pdp-breadcrumb span:last-child {
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.pdp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .pdp-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.pdp-gallery {
  position: relative;
  top: auto;
}

@media (min-width: 900px) {
  .pdp-gallery {
    position: sticky;
    top: calc(80px + var(--safe-top));
  }
}

.pdp-image-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-card);
  border: 1px solid var(--border);
}

.pdp-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.pdp-image-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  z-index: 2;
}

.pdp-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.pdp-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--black-card);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  touch-action: manipulation;
}

.pdp-thumb.active {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.35);
}

.pdp-image-wrap img.is-changing {
  animation: imageCrossfade 0.3s var(--ease-out-expo);
}

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

.pdp-details {
  animation: fadeInUp 0.5s ease;
}

.pdp-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.pdp-short {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.pdp-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 1rem;
}

.pdp-stock {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  color: var(--gray);
}

.pdp-stock-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdp-stock-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.pdp-stock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--lime));
  border-radius: 2px;
  transition: width 0.5s var(--ease-out-expo);
}

.pdp-stock-urgent {
  border-color: var(--red);
  color: var(--white);
}

.pdp-stock strong {
  color: var(--red);
}

.pdp-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.pdp-sizes {
  margin-bottom: 1.25rem;
}

.pdp-cta {
  padding: 1rem;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.pdp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.pdp-description h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.pdp-description p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.pdp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out-expo);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.pdp-sticky-bar.visible {
  transform: translateY(0);
}

.pdp-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pdp-sticky-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--lime);
}

.pdp-sticky-inner .btn-add-cart {
  width: auto;
  padding: 0.75rem 1.5rem;
  flex-shrink: 0;
}

.pdp-skeleton {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.pdp-skeleton-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.pdp-skeleton-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: linear-gradient(110deg, var(--black-soft) 30%, #2a2a2a 50%, var(--black-soft) 70%);
  background-size: 200% 100%;
  animation: shimmer-bg 1.5s ease infinite;
}

@media (min-width: 900px) {
  .pdp-skeleton { grid-template-columns: 1fr 1fr; }
}

.pdp-skeleton-gallery {
  border-radius: var(--radius);
}

.pdp-not-found {
  text-align: center;
  padding: 6rem 1rem;
}

.pdp-not-found h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.pdp-not-found p {
  color: var(--gray);
  margin-bottom: 2rem;
}

/* Product card links */
.product-image-link {
  display: block;
}

.product-name a:hover {
  color: var(--red);
}

.product-view-link {
  display: block;
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  transition: color var(--transition);
}

.product-view-link:hover {
  color: var(--lime);
}

/* ─── Responsive & mobile-first ─── */

/* Tablet */
@media (max-width: 768px) {
  .hero::before {
    animation: none;
    opacity: 0.65;
    width: 100%;
    max-width: 500px;
  }

  .cart-overlay,
  .navbar,
  .admin-nav,
  .pdp-sticky-bar,
  .cart-checkout-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cart-overlay {
    background: rgba(0, 0, 0, 0.78);
  }

  .navbar,
  .admin-nav {
    background: rgba(10, 10, 10, 0.97);
  }

  .social-proof-pill {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .product-card.card-enter {
    animation-duration: 0.35s;
  }

  .products-section {
    padding-bottom: 4rem;
  }

  .footer {
    padding-bottom: calc(2rem + var(--safe-bottom));
  }

  .toast-container {
    bottom: calc(1rem + var(--safe-bottom));
    width: min(100% - 1.5rem, 380px);
  }

  .admin-content {
    padding: 1rem;
  }

  .admin-section {
    padding: 1.25rem;
  }

  .admin-nav-inner {
    height: auto;
    min-height: 56px;
    padding: 0.5rem 0;
  }

  .admin-tabs-wrap {
    top: calc(56px + var(--safe-top));
  }

  .admin-tab {
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
  }

  .analytics-header {
    flex-direction: column;
  }

  .analytics-month-nav {
    width: 100%;
  }

  .analytics-month-picker {
    max-width: none;
    flex: 1 1 100%;
  }

  .chart-wrap {
    height: 240px;
  }

  .chart-wrap--compact {
    height: 220px;
  }

  .docs-toc {
    gap: 0.4rem;
    padding: 0.75rem;
  }

  .docs-toc a {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  .admin-nav-actions .btn-secondary {
    padding: 0.65rem 0.85rem;
    min-height: var(--touch-min);
    font-size: 0.8rem;
  }

  .admin-section:has(.admin-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 560px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .form-input,
  .form-textarea,
  .btn-primary,
  .btn-secondary,
  .btn-lime {
    min-height: var(--touch-min);
  }

  .limit-input {
    min-height: var(--touch-min);
    width: 72px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: calc(6.5rem + var(--safe-top)) 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
    line-height: 1.05;
  }

  .hero-badge {
    font-size: 0.72rem;
    max-width: 100%;
    line-height: 1.4;
    padding: 0.4rem 0.85rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    width: 100%;
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .social-proof {
    margin-top: 2rem;
    padding: 0 0.25rem;
  }

  .social-proof-pill {
    font-size: 0.8rem;
    border-radius: var(--radius);
    padding: 0.65rem 0.85rem;
  }

  .trust-bar {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .urgency-banner {
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
    line-height: 1.45;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .product-grid {
    gap: 1rem;
  }

  .product-info {
    padding: 1rem;
  }

  .product-name {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .product-desc {
    font-size: 0.78rem;
  }

  .product-price {
    font-size: 1.35rem;
  }

  .cart-header {
    padding: 1rem 1rem 1rem 1.25rem;
    padding-top: calc(1rem + var(--safe-top));
  }

  .cart-items {
    padding: 0.75rem;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item img {
    width: 64px;
    height: 64px;
  }

  .cart-item-name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35;
  }

  .cart-item-actions {
    width: 100%;
    padding-top: 0.25rem;
  }

  .cart-summary-note span:last-child {
    max-width: 100%;
    text-align: left;
  }

  .cart-total {
    font-size: 1rem;
  }

  .cart-total span:last-child {
    font-size: 1.2rem;
  }

  .pdp-breadcrumb span:last-child {
    max-width: 140px;
  }

  .pdp-price {
    font-size: 1.65rem;
  }

  .pdp-sticky-inner {
    gap: 0.65rem;
  }

  .pdp-sticky-inner .btn-add-cart {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .pdp-page {
    padding-bottom: calc(6.5rem + var(--safe-bottom));
  }

  .login-card {
    margin: 1rem;
    padding: 1.5rem;
  }

  .success-page {
    padding: calc(1.5rem + var(--safe-top)) 1rem calc(1.5rem + var(--safe-bottom));
    min-height: 100dvh;
  }

  .success-actions {
    flex-direction: column;
    width: 100%;
  }

  .success-actions .btn-primary,
  .success-actions .btn-secondary-outline {
    width: 100%;
    min-height: var(--touch-min);
  }

  .admin-brand .brand-logo {
    height: 32px;
  }

  .admin-badge {
    display: none;
  }

  .action-row {
    flex-direction: column;
  }

  .action-row .btn-secondary,
  .action-row .btn-lime {
    width: 100%;
    justify-content: center;
  }
}

/* Very small screens */
@media (max-width: 374px) {
  .container {
    padding: 0 0.875rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .brand-logo {
    height: 34px;
    max-width: 130px;
  }

  .navbar--compact .brand-logo {
    height: 28px;
  }

  .cart-btn svg {
    width: 22px;
    height: 22px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .size-selector {
    gap: 0.35rem;
  }

  .size-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0.4rem 0.55rem;
    font-size: 0.7rem;
  }

  .pdp-sticky-price {
    font-size: 1.1rem;
  }

  .pdp-sticky-inner .btn-add-cart {
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Hover effects only on fine pointers */
@media (hover: hover) and (pointer: fine) {
  .hero-cta:hover {
    background: var(--red-dark);
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.45);
  }

  .hero-cta:hover svg {
    animation: ctaBounce 0.5s var(--ease-spring);
  }

  .social-link:hover {
    color: var(--white);
    border-color: var(--red);
    transform: translateY(-2px);
  }

  .cart-btn:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .cart-close:hover {
    color: var(--white);
  }

  .qty-btn:hover {
    border-color: var(--gray);
  }

  .cart-item-remove:hover {
    color: var(--red);
    background: rgba(239, 68, 68, 0.08);
  }

  .cart-continue:hover {
    color: var(--white);
  }

  .btn-checkout:hover:not(:disabled) {
    background: var(--lime-dark);
    transform: scale(1.02);
  }

  .btn-add-cart:hover:not(:disabled) {
    background: var(--red-dark);
    transform: scale(1.02);
  }

  .size-btn:hover {
    border-color: var(--gray);
  }

  .pdp-thumb:hover {
    border-color: var(--gray);
  }
}
