/* ======================================================
   devCon Store - Shared Styles (Luxury Black/Orange Edition)
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* --- Colors: luxuriöses Schwarz/Grau mit Orange-Akzent --- */
  --bg: #050505;
  --bg-elevated: #0c0c0d;
  --bg-card: #0e0e10;
  --bg-card-hover: #131316;

  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.15);

  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-dim: #5a5a5a;
  --text-faint: #1f1f1f;

  /* Orange-Palette aus dem Logo */
  --orange: #ff8c1a;
  --orange-bright: #ffa338;
  --orange-deep: #e5700f;
  --orange-glow: rgba(255, 140, 26, 0.25);
  --orange-dim: rgba(255, 140, 26, 0.08);

  --success: #22c55e;

  /* Typography */
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --font-serif: 'Instrument Serif', serif;

  /* Layout */
  --max-width: 1320px;
  --header-height: 76px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 220ms var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtile Textur + Orange-Glow im Hintergrund */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 140, 26, 0.03), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  display: none;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.eyebrow.eyebrow-orange { color: var(--orange); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.section-title .accent {
  background: linear-gradient(180deg, var(--orange-bright) 0%, var(--orange-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title .dim { color: var(--text-muted); }

.section-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  line-height: 1.6;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
}

.logo-mark {
  width: 52px;
  height: 52px;
  display: block;
  transition: transform var(--transition);
}

.logo:hover .logo-mark { transform: scale(1.05); }

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Logo ist schon auf schwarzem BG - passt direkt */
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav-link svg { display: none; }

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

.nav-link.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Separator element zwischen nav items */
.nav-separator {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  margin: 0 6px;
  flex-shrink: 0;
}

/* Highlighted nav item (Docs ganz rechts) */
.nav-link.nav-highlight {
  /* nothing special - just a marker class if we want to style differently later */
}

/* Highlighted + active combined - kein box-shadow weil das die Breite aufbläht */
.nav-link.nav-highlight.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* Base: alle Header-Action-Buttons haben gleiche Höhe + Form */
.header-actions > button,
.header-actions > a,
.header-actions > .lang-switcher > button {
  height: 40px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}

.icon-btn svg { width: 18px; height: 18px; }

.icon-btn:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.login-btn svg { width: 16px; height: 16px; }

.login-btn:hover { color: var(--text); background: var(--bg-elevated); }

/* ---------- Language Switcher: Flag Buttons ---------- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  height: 40px;
}

.lang-flag-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition);
  opacity: 0.55;
  position: relative;
}

.lang-flag-btn svg {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform 200ms var(--ease);
}

.lang-flag-btn:hover {
  opacity: 0.85;
}

.lang-flag-btn:hover svg {
  transform: scale(1.08);
}

.lang-flag-btn.active {
  opacity: 1;
  border-color: rgba(255, 140, 26, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 140, 26, 0.08);
}

/* ensure flag-btn has correct height in header */
.header-actions > .lang-switcher > button { height: auto; }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  line-height: 1;
  border: 2px solid var(--bg);
}


/* Search expandable */
.search-expand { position: relative; }

.search-expand input {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  opacity: 0;
  padding: 10px 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 13px;
  transition: all var(--transition);
  pointer-events: none;
}

.search-expand.open input {
  width: 240px;
  opacity: 1;
  padding: 10px 18px;
  pointer-events: all;
}

.search-expand input::placeholder { color: var(--text-dim); }
.search-expand input:focus { outline: none; border-color: var(--border-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn svg { width: 14px; height: 14px; transition: transform var(--transition); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--orange);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--orange-bright);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-lg { padding: 17px 32px; font-size: 15px; }

/* Badge im Button (wie Discord online count) */
.btn-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(34, 197, 94, 0.14);
  color: var(--success);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
}

.btn-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--success);
}

/* ---------- Footer ---------- */

/* ========== User Dropdown (logged-in) ========== */
.user-dropdown {
  position: relative;
  height: 40px;
}

.user-trigger {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  max-width: 200px;
}

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

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-avatar-fallback svg { width: 14px; height: 14px; }

.user-name {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chev {
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.user-dropdown.open .user-chev {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 200ms var(--ease);
  z-index: 100;
}

.user-dropdown.open .user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.user-menu-item:hover {
  background: var(--bg-card);
  color: var(--text);
}

.user-menu-item svg { flex-shrink: 0; }

.footer {
  padding: 72px 0 28px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr auto;
  gap: 48px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-powered {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
}

.footer-tebex-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 13.5px;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-col a svg {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--orange);
}
.footer-col a:hover svg {
  color: var(--orange);
}

.footer-contact-line {
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-mail {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

/* Payments column */
.footer-payments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.footer-payments-grid {
  display: grid;
  grid-template-columns: repeat(4, 38px);
  gap: 8px;
  justify-items: end;
}

.footer-pay {
  width: 38px;
  height: 24px;
  display: block;
  border-radius: 3px;
}

/* Bottom legal */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-legal-text {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 920px;
  margin: 0;
}

.footer-legal-text-sub {
  font-size: 11.5px;
  opacity: 0.85;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  }
  .footer-payments {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 8px;
  }
  .footer-payments-grid {
    grid-template-columns: repeat(6, auto);
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-payments { grid-column: 1 / -1; }
  .footer-payments-grid { grid-template-columns: repeat(4, auto); }
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.badge > span,
.badge {
  position: relative;
  z-index: 1;
}

/* NEW - Orange solid mit Shimmer */
.badge-new {
  background: var(--orange);
  color: #ffffff;
}

.badge-new::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  animation: shimmer 2.5s infinite;
}

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

.badge-new svg {
  animation: sparklePulse 1.8s ease-in-out infinite;
}

@keyframes sparklePulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.25) rotate(20deg); }
}

/* HOT - Rot solid mit Pulse-Animation */
.badge-hot {
  background: #ef4444;
  color: #fff;
  animation: hotPulse 2s ease-in-out infinite;
}

@keyframes hotPulse {
  0%, 100% { background: #ef4444; }
  50% { background: #f87171; }
}

.badge-hot svg {
  animation: flameFlicker 1s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

@keyframes flameFlicker {
  0%, 100% { transform: scale(1) translateY(0) rotate(-2deg); }
  25% { transform: scale(1.15, 0.95) translateY(-1px) rotate(2deg); }
  50% { transform: scale(0.95, 1.1) translateY(0) rotate(-1deg); }
  75% { transform: scale(1.08, 0.98) translateY(-0.5px) rotate(3deg); }
}

/* FREE - Grün solid mit Shimmer */
.badge-free {
  background: #22c55e;
  color: #ffffff;
}

.badge-free::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.3) 50%, transparent 65%);
  animation: shimmer 3s infinite;
}

.badge-free svg {
  animation: giftBounce 2s ease-in-out infinite;
}

@keyframes giftBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-5deg); }
}

/* SALE - clean (falls später gebraucht) */
.badge-sale {
  background: var(--orange-deep);
  color: #fff;
}

/* LIVE - Grünlicher Live-Dot */
.badge-live {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--success);
  animation: livePulse 2s infinite;
  position: static;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ---------- Product Card ---------- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: rgba(255, 140, 26, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -20px var(--orange-glow);
}

.product-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a1c, #0a0a0c);
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 55%);
}

.product-image-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  z-index: 1;
  text-align: center;
  padding: 20px;
}

.product-image-subtitle {
  position: absolute;
  bottom: 42%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  z-index: 1;
  text-transform: uppercase;
}

.product-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-external {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: var(--text);
  z-index: 2;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-external:hover {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
}

.product-price {
  position: absolute;
  bottom: 20px;
  left: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  z-index: 2;
  letter-spacing: -0.02em;
}

.product-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.25;
}

.product-description {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.product-details {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition);
}

.product-details:hover {
  color: var(--orange);
  border-color: rgba(255, 140, 26, 0.3);
  background: var(--orange-dim);
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--orange);
  color: #0a0a0a;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all var(--transition);
}

.btn-buy:hover {
  background: var(--orange-bright);
  transform: translateY(-1px);
}

.btn-buy svg { width: 14px; height: 14px; }

/* ---------- Feature / Stat Card ---------- */
.feature-card {
  position: relative;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.feature-number {
  position: absolute;
  top: 30px;
  right: 30px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--orange);
  margin-bottom: 22px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  border-color: rgba(255, 140, 26, 0.25);
  background: var(--orange-dim);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }

.feature-description {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.stat-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.stat-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--orange);
}

.stat-icon svg { width: 20px; height: 20px; }

.stat-value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-dim);
}

/* ---------- Cart Modal (Popup) ---------- */
.cart-drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 520px;
  max-width: calc(100vw - 40px);
  max-height: min(720px, calc(100vh - 80px));
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -45%) scale(0.92);
  transition:
    opacity 300ms var(--ease),
    transform 400ms var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform, opacity;
}

.cart-drawer.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* Items beim Öffnen gestaffelt einfaden */
.cart-drawer.open .cart-item {
  animation: cartItemIn 400ms var(--ease) backwards;
}

.cart-drawer.open .cart-item:nth-child(1) { animation-delay: 100ms; }
.cart-drawer.open .cart-item:nth-child(2) { animation-delay: 160ms; }
.cart-drawer.open .cart-item:nth-child(3) { animation-delay: 220ms; }
.cart-drawer.open .cart-item:nth-child(4) { animation-delay: 280ms; }
.cart-drawer.open .cart-item:nth-child(5) { animation-delay: 340ms; }

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

.cart-drawer.open .cart-summary {
  animation: cartItemIn 400ms var(--ease) backwards;
  animation-delay: 200ms;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.cart-head a {
  color: var(--orange);
  font-size: 13px;
  font-weight: 500;
  transition: opacity var(--transition);
}

.cart-head a:hover { opacity: 0.8; }

.cart-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}

.cart-close:hover { color: var(--text); background: var(--bg-card-hover); }

.cart-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  gap: 14px;
  overflow-y: auto;
}

/* Empty state */
.cart-body .cart-empty-icon ~ h4,
.cart-body .cart-empty-icon {
  text-align: center;
}

.cart-body .cart-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.cart-body > h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.cart-body > p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
  margin: 0 auto;
  text-align: center;
}

.cart-body > a.btn {
  align-self: center;
}

/* Cart items list */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.cart-item:hover {
  border-color: var(--border-hover);
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-align: center;
  padding: 4px;
  line-height: 1.1;
}

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

.cart-item-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

.cart-item-qty {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  transition: all var(--transition);
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* Summary */
.cart-summary {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

.cart-total-main {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.cart-total-main span:last-child {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cart-checkout {
  width: 100%;
  margin-top: 8px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

/* ---------- Modal (Login) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  transform: scale(0.95);
  transition: transform 250ms var(--ease);
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.modal-close:hover { background: var(--bg-card); color: var(--text); }

.modal-eyebrow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.modal-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.modal-actions { display: flex; flex-direction: column; gap: 10px; }

.modal-btn-primary {
  width: 100%;
  padding: 14px 20px;
  background: var(--orange);
  color: #0a0a0a;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
}

.modal-btn-primary:hover { background: var(--orange-bright); transform: translateY(-1px); }

.modal-btn-primary svg {
  width: 16px;
  height: 16px;
}

.modal-btn-secondary {
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.modal-btn-secondary:hover { color: var(--text); background: var(--bg-card); }

.modal-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.modal-footer svg { width: 12px; height: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .currency-btn, .search-expand { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .login-btn span { display: none; }
}
