/* =========================================================
   DESIGN
   Farben änderst du ganz einfach in :root
   ========================================================= */
:root {
  --bg: #120a16;
  --bg-2: #1c1024;
  --card: #1b1121;
  --border: #3b2348;
  --text: #fbefff;
  --muted: #bfa3cf;
  --accent: #a855f7;     /* Hauptfarbe (lila) */
  --accent-2: #ec4899;   /* Zweitfarbe (pink) */
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* Dunkel ab dem ersten Moment – kein weißes Aufblitzen beim Seitenwechsel */
:root { color-scheme: dark; }
html { background: #0d0811; }

/* ---------- Weicher Seitenwechsel ----------
   Moderne Browser (Chrome/Edge, Safari 18.2+) blenden Seiten weich
   ineinander über, statt hart umzuschalten. Da der Hintergrund auf
   jeder Seite an derselben Stelle weiterfließt, sieht man nur den
   Inhalt wechseln. Ältere Browser ignorieren das einfach. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .22s; }
/* Navbar-Höhe reservieren, bevor das Menü per JS eingefügt wird */
#site-header { min-height: 69px; }

/* ---------- Ruhiger Seitenwechsel (alle Seiten außer Home) ----------
   1) Scrollleiste ausgeblendet (Scrollen mit Mausrad, Touchpad und
      Tastatur geht weiter). Dadurch ist jede Seite gleich breit und
      nichts springt beim Wechsel seitlich.
   2) Die Fußleiste beim Seitenwechsel nicht überblenden, sondern direkt
      an ihren Platz setzen – sonst sieht man sie kurz doppelt. */
html { scrollbar-width: none; }               /* Firefox */
html::-webkit-scrollbar { display: none; }     /* Chrome, Edge, Safari */
/* 3) Fußleiste auf allen Unterseiten erst beim Scrollen sichtbar:
      Inhaltsbereich mindestens so hoch, dass die Fußleiste genau am
      unteren Bildschirmrand beginnt (gerade so nicht mehr zu sehen).
      100vh − Navbar 69px − Abstand 40px */
body:not([data-page="home"]) main { min-height: calc(100vh - 69px - 40px); }
body:not([data-page="home"]) #site-footer { view-transition-name: site-footer; }
::view-transition-group(site-footer),
::view-transition-new(site-footer) { animation: none; }
::view-transition-old(site-footer) { display: none; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Dunkler Grund – die Flüssigkeit kommt aus js/background.js */
  background-color: #0d0811;
}
/* Links lila, rechts pink (weicher Übergang in der Mitte) + dunkler Rand für Tiefe */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .6) 100%),
    linear-gradient(90deg,
      rgba(168, 85, 247, .14) 0%, rgba(168, 85, 247, .10) 47%,
      rgba(236, 72, 153, .10) 53%, rgba(236, 72, 153, .14) 100%);
}
/* Effekt-Ebene aus js/background.js */
#bg-fx { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }
main, #site-footer { position: relative; z-index: 1; }
main { flex: 1; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title p { color: var(--muted); margin: 0; }

/* ---------- Header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 10, 22, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--text); }
.logo:hover { text-decoration: none; }
/* Diamant-Logo in der Navbar */
.logo-gem { width: 1.15em; height: 1.15em; vertical-align: -0.2em; filter: drop-shadow(0 0 6px rgba(168, 85, 247, .45)); }
.logo-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { color: var(--muted); padding: 8px 14px; border-radius: 10px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-2); text-decoration: none; }
/* Login im Stil des Shop-Buttons (lila-pinker Verlauf) */
.nav-links a.login-link {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; padding: 8px 20px; border-radius: 10px; margin-left: 6px;
  transition: transform .15s, box-shadow .15s;
}
.nav-links a.login-link:hover, .nav-links a.login-link.active {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(236, 72, 153, .35); transform: translateY(-1px);
}
.cart-link {
  border: 1px solid var(--border);
  /* Symbol, "Cart" und Zahl als Reihe, alles exakt auf die Mitte der Box ausgerichtet */
  display: inline-flex; align-items: center; gap: 6px;
}
.cart-count {
  /* Ovale Pille mit fester Breite: Zahl mittig, und die Navbar
     verschiebt sich nicht, wenn die Zahl zweistellig wird (ab 100: "99+") */
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 20px; padding: 0; box-sizing: border-box;
  line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
}
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 10px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(236, 72, 153, .35); text-decoration: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-small { padding: 8px 14px; font-size: .875rem; }
.btn-big { padding: 14px 28px; font-size: 1.05rem; }
.full { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px; text-align: center;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(168, 85, 247, .28), transparent),
    radial-gradient(600px 300px at 80% 10%, rgba(236, 72, 153, .2), transparent);
}
/* Home: Willkommensbereich füllt den ganzen Bildschirm, alles darunter erst beim Scrollen */
body[data-page="home"] .hero {
  min-height: calc(100vh - 69px);   /* Bildschirmhöhe minus Navbar */
  display: flex; align-items: center; justify-content: center;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Home: etwas größere Schrift, breitere und flachere Buttons */
body[data-page="home"] .hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
body[data-page="home"] .hero .lead { font-size: 1.3rem; max-width: 820px; }
body[data-page="home"] .hero-buttons .btn { min-width: 190px; padding: 10px 48px; font-size: 1.1rem; text-align: center; }
.hero h1 .hero-name { display: table; margin: 0 auto .3em; }

/* Home: grüne Leiste über dem Namen */
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 26px;
  padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: #4ade80; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35);
  transition: background .15s, border-color .15s;
}
.hero-badge:hover { text-decoration: none; background: rgba(34, 197, 94, .16); border-color: rgba(34, 197, 94, .6); }
.hero-badge svg { width: 15px; height: 15px; flex: none; }
.hero-badge-arrow { transition: transform .15s; }
.hero-badge:hover .hero-badge-arrow { transform: translateX(3px); }

/* Home: Maus-Symbol unten, zeigt dass es weiter unten mehr gibt (Klick = runterscrollen) */
body[data-page="home"] .hero { position: relative; }
html:has(body[data-page="home"]) { scroll-behavior: smooth; }
#popular { scroll-margin-top: 69px; }   /* nicht unter der Navbar landen */
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); opacity: .8; transition: opacity .2s, color .2s;
}
.scroll-hint:hover { opacity: 1; color: var(--text); text-decoration: none; }
.scroll-mouse {
  width: 24px; height: 38px; border: 2px solid currentColor; border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-wheel {
  width: 3px; height: 7px; border-radius: 2px; background: currentColor;
  animation: scroll-wheel 1.6s ease-in-out infinite;
}
.scroll-arrow {
  width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); animation: scroll-arrow 1.6s ease-in-out infinite;
}
@keyframes scroll-wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
@keyframes scroll-arrow { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(4px) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) {
  .scroll-wheel, .scroll-arrow { animation: none; }
  html:has(body[data-page="home"]) { scroll-behavior: auto; }
}   /* Shopname über der Zeile darunter, mit Abstand */
.hero p { max-width: 620px; margin: 0 auto 28px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stats { display: flex; gap: 40px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 1.8rem; }

/* ---------- Karten ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* Beliebte Produkte auf Home: nur so viele Spalten wie Karten, mittig */
#featured { grid-template-columns: repeat(auto-fit, minmax(260px, 280px)); justify-content: center; }
.product-card { display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.product-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.product-img img { aspect-ratio: 5 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { color: var(--text); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.card-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-weight: 700; color: var(--text); }
.price.big { font-size: 2rem; }
.tag { background: var(--bg-2); border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; font-size: .8rem; color: var(--muted); }
.badge { font-size: .8rem; font-weight: 600; }
.badge-online { color: var(--green); }
.badge-update { color: var(--yellow); }
.badge-offline { color: var(--red); }

.features-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { padding: 24px; }
.feature .icon { font-size: 1.8rem; margin-bottom: 8px; }
/* Seite "Account" */
.account-panel { margin: 16px 0 32px; }
#account-auth:not([hidden]) { display: grid; grid-template-columns: 1fr 1.15fr; }
.account-intro {
  padding: 40px; border-right: 1px solid var(--border);
  background: radial-gradient(120% 90% at 0% 0%, rgba(168, 85, 247, .22), transparent 60%),
              radial-gradient(90% 80% at 100% 100%, rgba(236, 72, 153, .14), transparent 60%);
}
.account-intro h2 { font-size: 1.9rem; margin: 10px 0 12px; }
.account-intro > p { margin: 0 0 28px; max-width: 420px; }
.account-kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.account-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.account-perks li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.account-perks li::before {
  content: "✓"; flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; font-size: .8rem; font-weight: 700;
  background: rgba(168, 85, 247, .18); color: var(--accent); border: 1px solid rgba(168, 85, 247, .4);
}
.account-main { padding: 40px; }
.account-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
}
.account-tab {
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
  padding: 10px 14px; border: 0; border-radius: 9px; background: transparent;
  transition: color .15s, background .15s;
}
.account-tab:hover { color: var(--text); }
.account-tab[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.account-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-panel .account-form { padding: 28px 0 0; gap: 18px; }
.account-form label { color: var(--text); font-weight: 500; }
.account-form input { width: 100%; padding: 13px 16px; background: var(--bg); }
.account-form input::placeholder { color: var(--muted); opacity: .6; }
.account-hint { margin-top: -6px; }
.account-form .field { display: grid; gap: 6px; }
.account-form .field label { font-size: .9rem; }
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
.password-field input::-ms-reveal, .password-field input::-ms-clear { display: none; }
.nav-links a.login-link.signed-in { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links a.login-link.signed-in::before { content: "👤 "; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--muted); transition: color .15s, border-color .15s;
}
.password-toggle:hover, .password-toggle[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.password-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-form .btn { margin-top: 6px; }
.account-profile { display: flex; align-items: center; gap: 20px; padding: 28px 32px; flex-wrap: wrap; }
.account-avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.account-profile-text { flex: 1; min-width: 0; }
.account-profile-text p { margin: 4px 0 0; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.account-profile-text #account-email { display: block; margin-top: 2px; font-size: .9rem; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  #account-auth:not([hidden]) { grid-template-columns: 1fr; }
  .account-intro { border-right: 0; border-bottom: 1px solid var(--border); padding: 28px 24px; }
  .account-main { padding: 28px 24px; }
  .account-profile { padding: 24px; }
  .account-profile #account-logout { flex-basis: 100%; }
}
.account-status { min-height: 1.5em; margin: 10px 0 0; }
[data-page="account"] [hidden] { display: none; }
.btn.disabled { opacity: .45; pointer-events: none; cursor: not-allowed; }
.account-cards .card, .account-cards h2 { scroll-margin-top: 90px; }
.account-cards .card:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* Seite "Payment Methods" */
/* Laufzeit-Auswahl auf der Produktseite */
.plan-label { font-weight: 600; margin: 22px 0 10px; }
.plan-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.plan {
  flex: 1 1 120px; display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 12px 16px; border-radius: 12px; cursor: pointer; font: inherit;
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.plan:hover { border-color: var(--accent); }
.plan.active { border-color: var(--accent); background: rgba(168, 85, 247, .14); box-shadow: inset 0 0 0 1px var(--accent); }
.plan:disabled { opacity: .5; cursor: not-allowed; }
.plan-time { color: var(--muted); font-size: .9rem; }
.plan.active .plan-time { color: var(--text); }
.plan-price { font-size: 1.15rem; }
.payment-intro { max-width: 680px; margin: 0 0 32px; }
.payment-subtitle { margin: 48px 0 20px; }
.payment-note { margin-top: 32px; }

/* ---------- Shop-Filter ---------- */
.toolbar { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.toolbar input, .toolbar select, .form input, .form textarea, .form select {
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; font: inherit;
}
.toolbar input { flex: 1; min-width: 200px; }
/* Shop-Auswahlfelder: eigener Pfeil mit mehr Abstand zum Rand */
.toolbar select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23bfa3cf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 8px;
}
.toolbar input:focus, .toolbar select:focus, .form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* ---------- Produktdetail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; align-items: start; }
.features { list-style: none; padding: 0; margin: 20px 0; }
.features li { padding: 6px 0; border-bottom: 1px solid var(--border); }
#buy-slot { display: flex; gap: 10px; flex-wrap: wrap; }
.price-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 20px 0 10px; }

/* ---------- Warenkorb ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: 16px; align-items: center; padding: 12px; margin-bottom: 12px; }
.cart-row img { border-radius: 8px; aspect-ratio: 5/3; object-fit: cover; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button, .remove { background: var(--bg-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; }
.remove:hover { border-color: var(--red); color: var(--red); }
.summary { padding: 22px; position: sticky; top: 90px; }
.sum-line { display: flex; justify-content: space-between; padding: 8px 0; }
.sum-line.total { border-top: 1px solid var(--border); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; color: var(--muted); }
.empty { padding: 48px; text-align: center; }

/* ---------- FAQ ---------- */
details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: border-color .15s; }
details:hover, details[open] { border-color: var(--accent); }
/* Die ganze Box ist klickbar: der Abstand sitzt in der Frage selbst, nicht in der Box */
summary { display: block; list-style: none; cursor: pointer; font-weight: 600; padding: 16px 20px; user-select: none; }
summary::-webkit-details-marker { display: none; }   /* Dreieck in Chrome/Safari */
summary::marker { content: ""; }                     /* Dreieck in Firefox */
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
details[open] summary { padding-bottom: 8px; }
details > p { margin: 0; padding: 0 20px 16px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; }
.form { display: grid; gap: 14px; padding: 24px; }
.form label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.info-box { padding: 24px; }
.contact-intro { max-width: 680px; margin: 0 0 28px; }
.support-way { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.support-way h4 { margin: 0 0 6px; font-size: 1rem; }
.support-way p { margin: 0 0 12px; }

/* ---------- Rechtliches ---------- */
.legal { max-width: 820px; }
.legal h2 { margin-top: 1.8em; font-size: 1.3rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 4px; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .9rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cookie-table th { color: var(--muted); font-weight: 600; }
.placeholder { background: rgba(234, 179, 8, .12); border: 1px dashed var(--yellow); padding: 12px 16px; border-radius: 10px; color: var(--yellow); }

/* ---------- Footer ---------- */
#site-footer { border-top: 1px solid var(--border); background: rgba(28, 16, 36, .75); backdrop-filter: blur(6px); padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h4 { margin: 0 0 10px; }
.footer-grid a { display: block; color: var(--muted); padding: 2px 0; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; font-size: .85rem; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--card); border: 1px solid var(--accent); padding: 12px 20px; border-radius: 10px;
  transition: transform .25s; z-index: 100;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Handy ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px; }
  .nav-open .nav-links { display: flex; }
  .product-detail, .cart-layout, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 70px 1fr; }
  .summary { position: static; }
}

