:root {
  --bg: #0b0f14;
  --bg-card: #151c26;
  --bg-card-hover: #1a2330;
  --bg-image: #f5f5f5;
  --text: #e8edf3;
  --text-muted: #8b9aab;
  --accent: #2dd4bf;
  --accent-dark: #14b8a6;
  --price: #38bdf8;
  --price-old: #64748b;
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --warning: #d97706;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient 3D background */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: #14b8a6;
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: #0ea5e9;
  top: 45%;
  right: -8%;
  animation-delay: -4s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: #8b5cf6;
  bottom: 15%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.grid-floor {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 45%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(45, 212, 191, 0.03) 100%),
    repeating-linear-gradient(90deg, rgba(45,212,191,0.04) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(45,212,191,0.04) 0 1px, transparent 1px 60px);
  transform: perspective(500px) rotateX(72deg);
  transform-origin: center top;
  opacity: 0.5;
}

.site-header,
.hero-video-wrap,
.trust-bar,
.age-banner,
.products-section,
.site-footer {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
}

/* Header — premium glass bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(18, 26, 36, 0.92) 0%, rgba(11, 15, 20, 0.88) 100%);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(45, 212, 191, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(45, 212, 191, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 100% at 100% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(8, 12, 18, 0.96);
  border-bottom-color: rgba(45, 212, 191, 0.22);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(45, 212, 191, 0.06);
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.header-glow-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 70%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.7), transparent);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.45);
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.logo-mark {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  padding: 6px;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(45, 212, 191, 0.28);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 20px rgba(45, 212, 191, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, #f8fafc 0%, #2dd4bf 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(45, 212, 191, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-shop-link {
  display: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.header-shop-link:hover {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.5);
}

.header-shop-link:active {
  transform: scale(0.97);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18) 0%, rgba(20, 184, 166, 0.08) 100%);
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
}

.cart-btn:hover {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.28) 0%, rgba(20, 184, 166, 0.14) 100%);
  box-shadow:
    0 6px 24px rgba(45, 212, 191, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cart-btn:active { transform: scale(0.96); }

.cart-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
}

.cart-label {
  display: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
  border: 2px solid rgba(11, 15, 20, 0.9);
}

.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

@media (min-width: 400px) {
  .logo-name { font-size: 1.22rem; }
  .logo-tag { font-size: 0.65rem; }
}

@media (min-width: 520px) {
  .cart-label { display: inline; }
  .cart-btn { padding: 0 18px 0 14px; }
}

@media (min-width: 640px) {
  :root { --header-h: 76px; }

  .header-shop-link { display: inline-flex; }
  .header-inner { padding: 0 20px; }
  .logo-mark { width: 50px; height: 50px; border-radius: 15px; }
  .logo-name { font-size: 1.35rem; }
}

/* Hero Video */
.hero-video-wrap {
  position: relative;
  height: clamp(220px, 42vw, 380px);
  overflow: hidden;
  margin-bottom: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,15,20,0.35) 0%, rgba(11,15,20,0.75) 55%, var(--bg) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(11,15,20,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
}

.hero-content h1,
.hero-title {
  font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: rgba(232, 237, 243, 0.85);
  font-size: 0.95rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.section-head {
  text-align: center;
  padding: 8px 16px 16px;
  max-width: 720px;
  margin: 0 auto;
}

.section-head h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--price));
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.age-banner {
  margin: 16px;
  padding: 12px 16px;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #fbbf24;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  margin: 0 16px 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #94a3b8;
  backdrop-filter: blur(8px);
}

.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.trust-bar strong {
  color: var(--accent);
  font-weight: 700;
}

/* Product image — full-bleed e-commerce style (like Shopify / Amazon) */
.product-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0c1018;
  overflow: hidden;
}

.product-showcase-glow,
.product-showcase-pedestal,
.product-showcase-brand {
  display: none;
}

.product-showcase-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.product-showcase.is-broken {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  font-size: 3rem;
}

.product-showcase.is-broken .product-showcase-img {
  display: none;
}

.product-showcase.is-broken::after {
  content: '📦';
}

.product-card:hover .product-showcase-img {
  transform: scale(1.04);
}

/* Product Grid */
.products-section {
  padding: 8px 12px 100px;
  perspective: 1200px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  perspective: 1000px;
}

/* Mobile: full-width showcase cards (perfect for 6 products) */
@media (max-width: 639px) {
  .products-section {
    padding: 4px 10px 80px;
    perspective: none;
  }

  .products-grid,
  .products-grid--showcase {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 100%;
  }

  .product-card {
    transform: none;
    animation: mobileCardReveal 0.45s ease forwards;
  }

  @keyframes mobileCardReveal {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .product-card-inner {
    border-radius: 20px;
    border-color: rgba(45, 212, 191, 0.12);
  }

  .product-card-inner::after {
    display: none;
  }

  .product-image-wrap {
    padding: 0;
    overflow: hidden;
  }

  .product-showcase {
    aspect-ratio: 1 / 1;
  }

  .product-info {
    padding: 12px 16px 6px;
    text-align: center;
  }

  .product-name {
    font-size: 1.05rem;
  }

  .product-price {
    justify-content: center;
  }

  .product-teaser {
    text-align: center;
  }

  .product-actions {
    padding: 8px 14px 14px;
  }
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 600px) {
  .products-grid:not(.products-grid--showcase) { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (min-width: 900px) {
  .products-grid--showcase {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    gap: 20px;
  }

  .product-image-wrap {
    overflow: hidden;
  }
}

.product-card {
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(24px) rotateX(8deg);
  animation: cardReveal 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.product-card-inner {
  background: linear-gradient(160deg, #1a2330 0%, #121820 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.45),
    0 1px 0 rgba(255,255,255,0.04) inset;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

.product-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 3;
}

.product-card:hover .product-card-inner::after {
  transform: translateX(100%);
}

.product-card:active .product-card-inner {
  transform: scale(0.97) translateZ(-4px);
}

.product-card:hover .product-card-inner {
  box-shadow:
    0 18px 40px rgba(0,0,0,0.55),
    0 0 0 1px rgba(45, 212, 191, 0.15);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  background: #0c1018;
}

.product-image-tap {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.product-image-tap:active .product-showcase-img {
  transform: scale(0.98);
  opacity: 0.92;
}

.product-image-tap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.product-placeholder {
  width: 60%;
  height: 70%;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.badge-18 {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #92400e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.badge-stock {
  position: absolute;
  top: auto;
  bottom: 10px;
  left: auto;
  right: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.badge-stock.low {
  background: rgba(217, 119, 6, 0.85);
}

.btn-add {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s, background 0.15s;
  line-height: 1;
}

.btn-add:active { transform: scale(0.9); background: var(--accent); }

.btn-add.added {
  background: #22c55e;
  animation: pop 0.4s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.btn-add:disabled {
  background: #475569;
  cursor: not-allowed;
  opacity: 0.6;
}

.product-info { padding: 12px 14px 10px; }

.product-brand-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 4px;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.product-actions {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}

.btn-card-details {
  flex: 1;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1.5px solid rgba(45, 212, 191, 0.45);
  transition: background 0.2s, transform 0.15s;
}

.btn-card-details:active {
  background: rgba(45, 212, 191, 0.12);
  transform: scale(0.98);
}

.btn-card-order {
  flex: 1;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
  transition: transform 0.15s, opacity 0.2s;
}

.btn-card-order:active {
  transform: scale(0.98);
}

.btn-card-order:disabled {
  background: #475569;
  color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 639px) {
  .product-actions {
    gap: 10px;
    padding: 0 12px 12px;
  }

  .btn-card-details,
  .btn-card-order {
    padding: 14px 12px;
    font-size: 0.92rem;
  }
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.price-current {
  color: var(--price);
  font-size: 1rem;
  font-weight: 700;
}

.price-old {
  color: var(--price-old);
  font-size: 0.78rem;
  text-decoration: line-through;
}

.product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* Modals — fixed layer above all page content */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.modal-root.modal-open {
  pointer-events: auto;
}

.modal-root .overlay:not(.active) {
  pointer-events: none;
}

.modal-root .drawer:not(.active) {
  pointer-events: none;
  visibility: hidden;
}

/* Cart Drawer */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.overlay.active { opacity: 1; visibility: visible; }

body.modal-open .site-header {
  z-index: 199;
}

body.modal-open .site-footer,
body.modal-open .products-section,
body.modal-open .hero-video-wrap,
body.modal-open .trust-bar,
body.modal-open .age-banner {
  pointer-events: none;
}

.drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 90dvh;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-bottom);
  border-top: 1px solid rgba(45, 212, 191, 0.12);
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
}

.drawer.active {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-tall {
  max-height: 88dvh;
}

.product-detail.drawer {
  z-index: 3;
  max-height: 92dvh;
}

.panel-drag-zone {
  flex-shrink: 0;
}

.drawer-handle {
  touch-action: none;
}

.drawer-hint {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0 0 6px;
  opacity: 0.85;
}

.header-spacer {
  width: 36px;
  flex-shrink: 0;
}

.panel-drag-zone .btn-close,
.panel-drag-zone .btn-back,
.panel-drag-zone .drawer-back {
  position: relative;
  z-index: 5;
  touch-action: manipulation;
}

.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.checkout-scroll {
  padding-top: 4px;
  padding-bottom: 8px;
}

.drawer-handle {
  width: 44px;
  height: 5px;
  background: rgba(255,255,255,0.35);
  border-radius: 3px;
  margin: 10px auto 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, width 0.2s;
}

.drawer-handle:active {
  background: rgba(45, 212, 191, 0.8);
  width: 52px;
}

.product-detail .drawer-handle {
  margin-top: 8px;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.drawer-header h2 {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
}

.drawer-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.btn-close:active { transform: scale(0.92); background: rgba(239, 68, 68, 0.25); }

.btn-close-lg {
  width: auto;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 20px;
  gap: 4px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.btn-close-lg .close-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-close-lg .close-x {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 380px) {
  .btn-close-lg .close-label { display: none; }
  .btn-close-lg { width: 36px; padding: 0; border-radius: 50%; }
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #0a0e12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.cart-item-details { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price { color: var(--price); font-size: 0.85rem; font-weight: 600; }

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-value { font-size: 0.9rem; min-width: 20px; text-align: center; }

.drawer-footer {
  padding: 16px 20px calc(16px + var(--safe-bottom));
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

.cart-total span:last-child { color: var(--price); }

.btn-primary {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:active { transform: scale(0.98); opacity: 0.9; }

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* CTA — opposite accent (warm coral vs teal) */
.btn-cta {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn-cta:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid rgba(45, 212, 191, 0.35);
  transition: background 0.2s;
}

.btn-ghost:active {
  background: rgba(45, 212, 191, 0.1);
}

/* Checkout popup (drawer) */
.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
  flex-shrink: 0;
}

.checkout-header h2 {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
}

.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.checkout-steps span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-steps .step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.checkout-steps .step-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.5);
}

.checkout-steps .step-sep {
  color: rgba(255,255,255,0.15);
}

/* Product Detail */
.detail-hero {
  padding: 0;
  margin: 0 -4px;
}

.detail-image-stage {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0 -4px;
  overflow: hidden;
}

.detail-image-stage .product-showcase {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.detail-image-stage .product-showcase-img {
  object-position: center 40%;
}

.detail-content {
  padding: 16px 4px 12px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.detail-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.detail-name {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}

.detail-price .price-current {
  font-size: 1.35rem;
}

.detail-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.detail-authentic {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.9;
}

.detail-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-highlights--compact {
  justify-content: center;
  margin-bottom: 4px;
}

.detail-highlight {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.detail-specs-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-spec-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.detail-spec-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.detail-spec-value {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

.detail-meta--footer {
  margin-top: 4px;
}

.detail-nicotine-warning {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
}

.product-teaser {
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.35;
}

.detail-badges .badge-18 {
  position: static;
}

.detail-badges .badge-stock {
  position: static;
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-meta-item {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.detail-meta-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.detail-meta-item strong {
  font-size: 0.95rem;
  color: var(--accent);
}

.product-detail-footer {
  padding: 14px 16px calc(14px + var(--safe-bottom));
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-card);
  flex-shrink: 0;
}

.detail-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.detail-order-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.detail-order-row .detail-qty {
  flex-shrink: 0;
}

.detail-order-row .btn-cta {
  flex: 1;
  padding: 14px 16px;
  font-size: 1rem;
}

.detail-qty {
  flex-shrink: 0;
  background: var(--bg-card);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
}

.detail-qty-row .btn-primary {
  flex: 1;
}

.detail-footer-actions .btn-cta {
  flex-shrink: 0;
}

.btn-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
}

.checkout-form { padding: 12px 16px 16px; max-width: 520px; margin: 0 auto; }

.form-section { margin-bottom: 24px; }

.form-section h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b9aab' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.checkout-summary {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 6px 0;
  color: var(--text-muted);
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.checkout-summary-total span:last-child { color: var(--price); }

.checkout-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.checkout-footer {
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-bottom));
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.checkout-footer .btn-primary { max-width: 520px; margin: 0 auto; display: block; }

.form-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.form-error.visible { display: block; }

/* Success */
.success-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px 24px;
  min-height: 280px;
}

.success-screen.active { display: flex; }

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-screen h2 { font-size: 1.3rem; margin-bottom: 8px; }

.success-screen p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 4px; }

.order-number {
  color: var(--price);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 12px 0 24px;
}

/* Loading */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 12px;
}

.skeleton {
  background: var(--bg-card);
  border-radius: var(--radius);
  aspect-ratio: 0.75;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px 16px 36px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(131, 58, 180, 0.15));
  border: 1px solid rgba(225, 48, 108, 0.3);
  color: #f9a8d4;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-instagram:active {
  transform: scale(0.97);
  box-shadow: 0 4px 20px rgba(225, 48, 108, 0.2);
}

.site-footer p { margin-top: 6px; }

/* SEO & accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.noscript-notice {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 16px;
  font-size: 0.88rem;
}

.seo-content,
.seo-faq {
  padding: 32px 16px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.seo-content-inner,
.seo-faq-inner {
  background: rgba(21, 28, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.seo-content h2,
.seo-faq h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.seo-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.seo-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-benefits {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-answer {
  padding-top: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer-nav a {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
