/*
Theme Name: Vita Peptides
Description: 1:1-Port des Vita-Peptides-Prototyps. Markup und Werte stammen aus
  der gemessenen Vorlage - nicht nachempfunden, sondern uebernommen.
Author: Vita Peptides
Version: 1.0.0
Requires PHP: 8.0
Text Domain: vita-peptides
*/

/* ============================================================
   VITA PEPTIDES — 1:1-Port von aminoclub.com/us/store
   Alle Werte LIVE GEMESSEN am 30.08.2026 (browser-harness, computed styles).
   Quelle der Messung: references/amino-club/_mess-desktop.json
   Regel 0 des build-Skills: PORTIEREN, NICHT INTERPRETIEREN.
   ============================================================ */
:root{
  /* --- Schrift: vier Familien, jede mit klarer Aufgabe (gemessen) --- */
  --f-base:'Anek Telugu', system-ui, sans-serif;   /* 820× — Fließtext, Nav, Headlines */
  --f-num:'Poppins', system-ui, sans-serif;        /* 250× — Preise, Badges, Zahlen-UI */
  --f-mono:'IBM Plex Mono', ui-monospace, monospace;/* 129× — Messwerte, Chargen */
  --f-accent:'Fraunces', Georgia, serif;           /*  36× — kursiver Akzent in Headlines */
  --f-logo:'Quicksand', 'Poppins', system-ui, sans-serif;  /* Wortmarke — geometrische Rundschrift */

  /* --- Basis-Schriftgröße 17px; alle krummen Werte sind rem darauf --- */
  --fs-base:17px;

  /* --- Farben (gemessen, nach Häufigkeit/Rolle) --- */
  --c-ink:#131315;          /* Marken-Schwarz */
  --c-black:#000000;        /* Text, 928× */
  --c-line:#E4E4E7;         /* Rahmen — 1863×, die häufigste Farbe überhaupt */
  --c-line-soft:rgba(0,0,0,.08);
  --c-gray-400:#9CA3AF;
  --c-gray-500:#6B7280;
  --c-gray-50:#FAFAFA;
  --c-neutral-100:#F5F5F5;  /* Karten-Fläche */

  --c-sale:#C2183A;         /* Preis-Rot */
  --c-sale-badge:#571224;   /* Rabatt-Badge, weinrot */
  --c-sale-badge-t:#F2D9A4; /* Rabatt-Badge, Gold-Text */
  --c-butter:#FBEDCB;       /* Bestseller-Badge */
  --c-mint:#E9FCE6;         /* „Neu"-Badge in der Navigation */
  --c-green:#166534;        /* COA-Häkchen */

  --c-club-bg:#0C1A14;      /* Club-Banner dunkelgrün */
  --c-club-gold:#C8A968;
  --c-club-cream:#F2ECDD;

  --c-footer:#0A192F;       /* Footer-Marineblau (gemessen) */

  /* --- Marke Vita Peptides ---
     Gemessen aus dem echten Produktetikett (Vita Label.pdf, 01.09.2026):
     zwei Farben, mehr braucht es nicht. Das Teal des ersten Logo-Sheets
     ist damit hinfaellig - hier zaehlt, was auf dem Vial klebt. */
  --c-brand:#22332D;        /* Tannengruen - Schrift, Logo, gefuellte Pillen */
  --c-brand-dark:#1A2823;   /* eine Stufe tiefer fuer Hover */
  --c-label:#ECF2F0;        /* Etikettgrund - hell, grau-gruen */
  --vp-logo:#22332D;

  /* --- Form: Pillen dominieren (9999px, 94×), Karten 20/24px --- */
  --r-pill:9999px;
  --r-card:20px;
  --r-card-lg:24px;
  --r-sm:12.75px;

  --container:1360px;
  --gutter:20px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
/* Das hidden-Attribut muss jede display-Regel schlagen - sonst bleiben
   Elemente sichtbar, die per JS versteckt werden sollen (Mobil-Menue!). */
[hidden]{display:none !important}
/* Grid-/Flex-Kinder duerfen unter ihre Inhaltsbreite schrumpfen.
   Ohne min-width:0 sprengt langer Inhalt mobil das Layout. */
.content-container > *{min-width:0}
html{-webkit-text-size-adjust:100%;overflow-x:hidden}
body{overflow-x:hidden}
body{
  margin:0;
  font-family:var(--f-base);
  font-size:var(--fs-base);
  line-height:1.5;
  color:var(--c-black);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  margin:0;color:var(--c-ink);font-weight:600;line-height:1.15;
  overflow-wrap:break-word;         /* deutsche Komposita brechen statt zu ueberlaufen */
}
p,li,td,span,a{overflow-wrap:break-word}
p{margin:0}
a{color:inherit;text-decoration:none}
img,svg{max-width:100%;display:block}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}

/* iOS zoomt beim Fokus in jedes Feld unter 16px hinein und verschiebt das Layout.
   16px ist deshalb Untergrenze fuer alle Eingaben - nicht verhandelbar auf Mobil. */
input,select,textarea{font-size:16px !important}
@media (min-width:1024px){
  /* Am Desktop gibt es das Zoom-Problem nicht - dort darf es feiner sein. */
  input,select,textarea{font-size:inherit !important}
}
ul{margin:0;padding:0;list-style:none}

/* content-container — der Layout-Träger des Vorbilds */
.content-container{
  width:100%;max-width:var(--container);margin:0 auto;
  padding-left:var(--gutter);padding-right:var(--gutter);
}
@media (min-width:1024px){:root{--gutter:32px}}

/* ============================================================
   WORTMARKE — eine Quelle für Header, Footer und alle weiteren Stellen.
   Vorlage: Logo-Datei vom 31.08.2026 (Kleinbuchstaben, sehr fette
   geometrische Rundschrift, darunter gesperrtes „peptides").
   Als Schrift gesetzt statt als Bild: scharf in jeder Größe, jede Farbe.
   ============================================================ */
.wordmark{
  display:inline-flex;flex-direction:column;align-items:center;
  line-height:1;color:var(--vp-logo);--wm:34px;
}
.wordmark b{
  font-family:var(--f-logo);font-weight:700;font-size:var(--wm);
  letter-spacing:-.012em;line-height:.92;
}
.wordmark i{
  font-style:normal;font-family:var(--f-logo);font-weight:500;
  font-size:calc(var(--wm) * .30);letter-spacing:.30em;
  margin-top:calc(var(--wm) * .07);margin-right:-.30em;
  align-self:flex-end;
}
.wordmark--light{color:#fff}

.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.num{font-family:var(--f-num)}
.accent{font-family:var(--f-accent);font-style:italic;font-weight:500}

/* ---- Fokus sichtbar für Tastatur ---- */
:where(a,button,input,select,[tabindex]):focus-visible{
  outline:2px solid rgba(0,0,0,.25);outline-offset:2px;
}

/* ============================================================
   PILL-BUTTON — die Signatur des Vorbilds (9999px, 94 Vorkommen)
   ============================================================ */
.pill{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border-radius:var(--r-pill);font-weight:500;
  transition:background .2s var(--ease),color .2s var(--ease),
             border-color .2s var(--ease),transform .12s var(--ease);
}
.pill:active{transform:scale(.97)}

/* Kleine Bedienelemente behalten ihr Aussehen, bekommen aber eine
   Trefferflaeche von mind. 44px - Fingerbedienung braucht das. */
@media (max-width:1023px){
  .vp-coa,.vp-ann__cta,.vp-chip,.vp-size{position:relative}
  .vp-coa::after,.vp-ann__cta::after,.vp-chip::after,.vp-size::after{
    content:"";position:absolute;left:0;right:0;
    top:50%;transform:translateY(-50%);height:44px;
  }
}
.pill--dark{background:var(--c-ink);color:#fff;height:40px;padding:0 18px;font-size:14px}
.pill--dark:hover{background:#2C2C30}
.pill--ghost{
  border:1px solid rgba(0,0,0,.15);color:rgba(0,0,0,.7);
  height:40px;padding:0 18px;font-size:14px;
}
.pill--ghost:hover{border-color:#000;color:#000}

/* ============================================================
   SCROLL-REVEAL — dezent, nur wo es trägt
   ============================================================ */
.rv{opacity:0;transform:translateY(14px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.rv.in{opacity:1;transform:none}
.rv-stagger > *{opacity:0;transform:translateY(14px);transition:opacity .55s var(--ease),transform .55s var(--ease)}
.rv-stagger.in > *{opacity:1;transform:none}
.rv-stagger.in > *:nth-child(1){transition-delay:.03s}
.rv-stagger.in > *:nth-child(2){transition-delay:.06s}
.rv-stagger.in > *:nth-child(3){transition-delay:.09s}
.rv-stagger.in > *:nth-child(4){transition-delay:.12s}
.rv-stagger.in > *:nth-child(n+5){transition-delay:.15s}
@media (prefers-reduced-motion:reduce){
  .rv,.rv-stagger > *{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}
html{scroll-behavior:smooth}



/* ============================================================
   PRODUKT-PLATZHALTER (Vial) mit dem ECHTEN Etikett.
   Aufbau 1:1 aus `Vita Label.pdf` gemessen (01.09.2026):
     Grund #ECF2F0 · Schrift #22332D
     Produktname  20 % der Etiketthoehe
     Mengen-Pille 15 %, gefuellt, weisse Schrift
     Purity-Pille 15 %, nur Kontur
     "Research Use Only" 8 %
     Logo rechts, um 90 Grad gedreht, 20 % der Breite
   Auf dem Vial sieht man die Frontansicht: Name, Pillen, RUO untereinander.
   ============================================================ */
.vp-vial{
  width:33%;min-width:64px;aspect-ratio:1/1.72;
  display:flex;flex-direction:column;align-items:center;
  position:relative;margin-top:-4%;
  filter:drop-shadow(0 14px 14px rgba(30,45,45,.16));
}
.vp-vial::after{
  content:"";position:absolute;left:-24%;right:-24%;bottom:-7%;height:9%;
  background:radial-gradient(50% 50% at 50% 50%, rgba(30,50,50,.20), rgba(30,50,50,0) 70%);
}
.vp-vial__cap{
  width:60%;height:15%;border-radius:2px 2px 1px 1px;
  background:linear-gradient(100deg,#9EAFAF 0%,#F2F6F6 22%,#B6C4C4 46%,#E8EFEF 68%,#93A5A5 100%);
  box-shadow:inset 0 -1.5px 0 rgba(0,0,0,.16);
}
.vp-vial__neck{
  width:44%;height:4.5%;
  background:linear-gradient(100deg,#DCE7E7,#F8FBFB 45%,#D2E0E0);
}
.vp-vial__body{
  flex:1;width:100%;border-radius:2px 2px 7px 7px;
  background:linear-gradient(100deg,
    rgba(190,210,210,.85) 0%, rgba(255,255,255,.97) 16%,
    rgba(246,251,251,.92) 46%, #FFFFFF 66%, rgba(196,216,216,.88) 100%);
  box-shadow:inset 0 0 0 1px rgba(140,168,168,.5);
  display:flex;align-items:center;justify-content:center;padding:9% 0 14%;
}
/* Das Etikett selbst - Grund und Schrift wie gedruckt */
.vp-vial__label{
  width:94%;border-radius:1px;padding:9% 7%;
  background:var(--c-label);color:var(--c-brand);
  box-shadow:0 1px 0 rgba(0,0,0,.07);
  display:flex;flex-direction:column;gap:5%;align-items:flex-start;
}
.vp-vial__label b{            /* Produktname */
  display:block;font-size:10px;font-weight:700;letter-spacing:-.02em;
  line-height:1;color:var(--c-brand);word-break:break-word;
}
.vp-vial__label i{            /* Menge - gefuellte Pille wie auf dem Etikett */
  display:inline-block;font-style:normal;
  padding:2px 6px;border-radius:999px;
  background:var(--c-brand);color:var(--c-label);
  font-size:6.5px;font-weight:700;letter-spacing:.02em;line-height:1;
  text-transform:uppercase;
}
.vp-vial__label em{           /* Reinheit - nur Kontur */
  display:inline-block;font-style:normal;
  padding:2px 6px;border-radius:999px;
  box-shadow:inset 0 0 0 1px var(--c-brand);
  font-size:6px;font-weight:600;line-height:1;
}
.vp-vial__label s{            /* Research Use Only - ohne Rahmen */
  display:block;text-decoration:none;
  font-size:5.5px;font-weight:500;line-height:1;opacity:.9;
}
@media (min-width:768px){
  .vp-vial__label b{font-size:12px}
  .vp-vial__label i{font-size:7.5px;padding:3px 7px}
  .vp-vial__label em{font-size:7px;padding:3px 7px}
  .vp-vial__label s{font-size:6.5px}
}
@media (min-width:1024px){
  .vp-vial{width:31%}
  .vp-vial__label b{font-size:13px}
  .vp-vial__label i{font-size:8px}
  .vp-vial__label em{font-size:7.5px}
  .vp-vial__label s{font-size:7px}
}






/* ============================================================
   WARENKORB — Drawer. Eine Quelle fuer alle Seiten.
   WooCommerce: ersetzt spaeter der Theme-Cart (wc-cart-fragments),
   die Struktur bleibt. Bis dahin haelt localStorage den Stand.
   ============================================================ */
.vp-cart__scrim{
  position:fixed;inset:0;z-index:90;background:rgba(19,19,21,.45);
  opacity:0;pointer-events:none;transition:opacity .28s var(--ease);
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
}
.vp-cart__scrim.is-open{opacity:1;pointer-events:auto}

.vp-cart{
  position:fixed;top:0;right:0;bottom:0;z-index:91;width:min(420px,100vw);
  background:#fff;display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .32s var(--ease);
  box-shadow:-16px 0 48px rgba(19,19,21,.14);
}
.vp-cart.is-open{transform:none}

.vp-cart__top{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:18px 20px;border-bottom:1px solid var(--c-line);flex:none;
}
.vp-cart__top h2{font-size:18px;font-weight:600}
.vp-cart__n{font-size:13px;color:var(--c-gray-500)}
.vp-cart__zu{
  width:40px;height:40px;display:grid;place-items:center;border-radius:var(--r-pill);
  color:var(--c-gray-500);transition:background .2s var(--ease),color .2s var(--ease);
}
.vp-cart__zu:hover{background:rgba(0,0,0,.04);color:var(--c-ink)}

.vp-cart__liste{flex:1;overflow-y:auto;padding:8px 20px}
.vp-cart__leer{padding:56px 20px;text-align:center;color:var(--c-gray-500)}
.vp-cart__leer p{margin-bottom:18px;font-size:15px}

.vp-cart__pos{
  display:grid;grid-template-columns:64px 1fr auto;gap:14px;align-items:start;
  padding:16px 0;border-bottom:1px solid var(--c-line);
}
.vp-cart__bild{
  width:64px;aspect-ratio:4/5;border-radius:12px;overflow:hidden;
  background:var(--tint,#E8EDEE);display:grid;place-items:center;
}
.vp-cart__bild .vp-vial{width:56%;max-height:none;margin:0}
.vp-cart__bild .vp-vial__label{padding:8% 4%}
.vp-cart__bild .vp-vial__label b{font-size:6px;letter-spacing:0}
.vp-cart__bild .vp-vial__label i{display:none}
.vp-cart__name{font-size:14.5px;font-weight:600;color:var(--c-ink);line-height:1.25}
.vp-cart__meta{font-size:12px;color:var(--c-gray-500);margin-top:2px}
.vp-cart__weg{
  font-size:12px;color:var(--c-gray-500);margin-top:8px;
  text-decoration:underline;text-underline-offset:2px;
}
.vp-cart__weg:hover{color:var(--c-sale)}
.vp-cart__re{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.vp-cart__preis{font-size:15px;font-weight:700;color:var(--c-ink);white-space:nowrap}

.vp-cart__step{
  display:inline-flex;align-items:center;gap:2px;
  border:1px solid var(--c-line);border-radius:var(--r-pill);padding:2px;
}
.vp-cart__step button{
  width:30px;height:30px;display:grid;place-items:center;border-radius:var(--r-pill);
  font-size:16px;line-height:1;color:var(--c-ink);
  transition:background .18s var(--ease);
}
.vp-cart__step button:hover{background:rgba(0,0,0,.05)}
.vp-cart__step span{min-width:26px;text-align:center;font-size:14px;font-weight:600}

.vp-cart__fuss{
  flex:none;padding:18px 20px calc(18px + env(safe-area-inset-bottom));
  border-top:1px solid var(--c-line);background:#fff;
}
.vp-cart__zeile{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  font-size:14px;color:var(--c-gray-500);margin-bottom:8px;
}
.vp-cart__summe{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  font-size:15px;font-weight:600;color:var(--c-ink);
  padding-top:10px;margin-bottom:14px;border-top:1px solid var(--c-line);
}
.vp-cart__summe b{font-size:21px;font-weight:700}
.vp-cart__cta{width:100%;height:50px;font-size:15px}
.vp-cart__hinweis{
  margin-top:12px;font-size:11.5px;line-height:1.45;color:var(--c-gray-500);text-align:center;
}

@media (max-width:520px){
  .vp-cart{width:100vw}
  .vp-cart__pos{grid-template-columns:56px 1fr auto;gap:12px}
  .vp-cart__bild{width:56px}
}
