/* ── Tee-Luxe Produkt-Template v3: Frontend-Styles ───────────────────── */

:root {
  --tlpt-gold:       #a08050;
  --tlpt-gold-light: #c9a96e;
  --tlpt-gold-pale:  #f0e8d8;
  --tlpt-bg:         #faf8f5;
  --tlpt-bg-section: #f4f0ea;
  --tlpt-border:     #e0d8cc;
  --tlpt-text:       #2c2c2c;
  --tlpt-muted:      #888;
  --tlpt-radius:     4px;
}

/* ════════════════════════════════════════════════════════════════════════
   GESCHMACKSPROFIL (vor Warenkorb)
   ════════════════════════════════════════════════════════════════════════ */
.tlpt-flavour-section {
  margin: 0 0 22px;
  padding: 20px 0 0;
  border-top: 1px solid var(--tlpt-border);
}

.tlpt-section-label {
  font-size: 11px !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tlpt-muted) !important;
  margin: 0 0 10px !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  border: none !important;
  padding: 0 !important;
}

.tlpt-flavour-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.tlpt-flavour-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tlpt-flavour-label {
  font-size: 12px;
  color: var(--tlpt-muted);
  width: 90px;
  flex-shrink: 0;
  line-height: 1;
}

.tlpt-flavour-track {
  flex: 1;
  height: 5px;
  background: var(--tlpt-border);
  border-radius: 99px;
  overflow: hidden;
}

.tlpt-flavour-fill {
  height: 100%;
  background: var(--tlpt-gold);
  border-radius: 99px;
  transition: width .4s ease;
}

.tlpt-flavour-val {
  font-size: 11px;
  color: var(--tlpt-muted);
  width: 26px;
  text-align: right;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   BIO-BADGE
   ════════════════════════════════════════════════════════════════════════ */
.tlpt-bio-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--tlpt-bg-section);
  border: 1px solid var(--tlpt-border);
  border-radius: var(--tlpt-radius);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tlpt-muted);
  margin-top: 4px;
}

.tlpt-bio-badge--desc {
  margin-top: 16px;
  padding: 8px 14px;
  font-size: 12px;
}

.tlpt-bio-dot {
  width: 8px;
  height: 8px;
  background: #5aad6a;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   LAGER-BADGES CH / DE  (nach Warenkorb)
   Exakt wie im Mockup: kleiner farbiger Punkt + Text, kein Box-Rahmen
   ════════════════════════════════════════════════════════════════════════ */
.tlpt-stock-row {
  display: flex;
  gap: 14px;
  margin: 14px 0 20px;
  flex-wrap: wrap;
}

.tlpt-stock-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--tlpt-muted);
  line-height: 1;
}

.tlpt-stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tlpt-stock-dot.green { background: #5aad6a; }
.tlpt-stock-dot.red   { background: #e05050; }

/* ════════════════════════════════════════════════════════════════════════
   BESCHREIBUNGS-TAB: 2×2 GRID  (nach WP-Beschreibungstext)
   ════════════════════════════════════════════════════════════════════════ */
/* Äusserer Container: 2 gleichbreite Spalten */
.tlpt-desc-grid {
  display: flex !important;
  gap: 40px !important;
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}

/* Jede Spalte */
.tlpt-desc-col {
  flex: 1 1 0 !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Einzelner Inhaltsblock innerhalb einer Spalte */
.tlpt-desc-block {}

/* Abstand zwischen zwei Blöcken in derselben Spalte */
.tlpt-desc-block--mt {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--tlpt-border);
}

/* Goldenes Oberlabel (z. B. "HERKUNFT" / "ZUBEREITUNG") */
.tlpt-desc-label {
  font-size: 11px !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tlpt-gold) !important;
  margin: 0 0 6px !important;
  font-weight: 400 !important;
  font-family: inherit !important;
  border: none !important;
  padding: 0 !important;
  display: block;
}

/* Serif-Überschrift je Block */
.tlpt-desc-heading {
  font-size: 20px !important;
  font-weight: 400 !important;
  color: var(--tlpt-text) !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: none !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  line-height: 1.3 !important;
}

/* ── Beschreibungstext (Block 1) ──────────────────────────────────── */
.tlpt-desc-text {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
}

.tlpt-desc-text p   { margin-bottom: 1em; }
.tlpt-desc-text p:last-child { margin-bottom: 0; }
.tlpt-desc-text h1,
.tlpt-desc-text h2,
.tlpt-desc-text h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--tlpt-text);
  margin-bottom: .5em;
}

.tlpt-caffeine-note {
  margin-top: 1em;
  padding: 0;
  border: 0;
}

.tlpt-caffeine-value {
  margin: 0;
  color: #555;
  line-height: 1.75;
}

/* ── Herkunft Kurztext ────────────────────────────────────────────── */
.tlpt-origin-text {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin: 0 0 14px;
}

/* ── Terroir-Matrix unterhalb Herkunft ────────────────────────────── */
.tlpt-terroir-dl {
  display: flex;
  flex-direction: column;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid var(--tlpt-border);
}

.tlpt-terroir-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tlpt-border);
  font-size: 14px;
}

.tlpt-terroir-row dt {
  font-weight: 600;
  width: 150px;
  flex-shrink: 0;
  color: var(--tlpt-muted);
  font-size: 13px;
}

.tlpt-terroir-row dd {
  color: var(--tlpt-text);
  margin: 0;
  line-height: 1.45;
}

/* ── Karten-Wrapper (wpgmza Shortcode) ────────────────────────────── */
.tlpt-map-wrap {
  margin-top: 14px;
  border-radius: var(--tlpt-radius);
  overflow: hidden;
}

.tlpt-map-wrap > * {
  display: block !important;
  width: 100% !important;
}

/* ── Herkunftskarte Placeholder (wenn kein Shortcode) ─────────────── */
.tlpt-map-placeholder {
  background: #e8e2d8;
  border-radius: var(--tlpt-radius);
  height: 180px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--tlpt-muted);
  gap: 8px;
}

/* ── Herkunft-Liste (dt/dd) ────────────────────────────────────────── */
.tlpt-origin-dl {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.tlpt-origin-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tlpt-border);
  font-size: 14px;
}

.tlpt-origin-row:last-child {
  border-bottom: none;
}

.tlpt-origin-row dt {
  font-weight: 600;
  width: 130px;
  flex-shrink: 0;
  color: var(--tlpt-muted);
  font-size: 13px;
}

.tlpt-origin-row dd {
  color: var(--tlpt-text);
  margin: 0;
}

/* ── Brew-Cards (3 nebeneinander) ─────────────────────────────────── */
.tlpt-brew-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.tlpt-brew-card {
  background: #fff;
  border: 1px solid var(--tlpt-border);
  border-radius: var(--tlpt-radius);
  padding: 18px 10px;
  text-align: center;
}

.tlpt-brew-icon {
  font-size: 26px;
  margin-bottom: 7px;
  line-height: 1;
}

.tlpt-brew-label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tlpt-muted);
  margin-bottom: 4px;
}

.tlpt-brew-value {
  font-size: 16px;
  color: var(--tlpt-text);
  font-family: Georgia, serif;
}

/* ── Verpackungshinweis ────────────────────────────────────────────── */
.tlpt-packaging-note {
  background: var(--tlpt-gold-pale);
  border-radius: var(--tlpt-radius);
  padding: 14px 18px;
  font-size: 13px;
  color: #6b5a3a;
  line-height: 1.65;
  margin: 0;
}

.tlpt-packaging-note strong {
  color: var(--tlpt-gold);
}

/* ════════════════════════════════════════════════════════════════════════
   THEME-OVERRIDES
   Verstecke doppelte / unerwünschte Theme-Elemente wenn unser Template aktiv ist
   ════════════════════════════════════════════════════════════════════════ */

/* Unsere tlpt-stock-row verstecken — dws-stock-info hat die richtigen Daten */
.tlpt-stock-row { display: none !important; }

/* ── dws-stock-info: gleich stylen wie Mockup-Verfügbarkeit ──────────── */
/* Anzeigen + im gleichen Look wie tlpt-stock-badges (Punkt + Text) */
.dws-stock-info {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0 20px;
}

.dws-stock-info p {
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-size: 12px !important;
  color: var(--tlpt-muted) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Grüner Punkt vor jedem <p> via ::before */
.dws-stock-info p::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5aad6a;
  flex-shrink: 0;
}

/* ── Karte: Pre-render Container (wpgmza-Workaround) ─────────────────── */
/* Sichtbar im DOM damit wpgmza initialisiert, aber optisch unsichtbar   */
#tlpt-map-prerender {
  position: fixed;
  left: 0;
  top: 0;
  width: 600px;
  height: 220px;
  overflow: hidden;
  opacity: 0;
  z-index: -9999;
  pointer-events: none;
}

#tlpt-map-prerender .wpgmza_map,
#tlpt-map-prerender [id^="wpgmza_map_"] {
  width: 600px !important;
  height: 220px !important;
}

/* ── Karten-Ziel im Tab ──────────────────────────────────────────────── */
.tlpt-map-target {
  margin-top: 14px;
  border-radius: var(--tlpt-radius);
  overflow: visible;
  min-height: 220px;
  position: relative;
}

.tlpt-map-target .wpgmza_map,
.tlpt-map-target [id^="wpgmza_map_"] {
  width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  border-radius: var(--tlpt-radius);
}

/* Ladeanzeige bis JS die Karte verschoben hat */
.tlpt-map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: #f0ece6;
  border-radius: var(--tlpt-radius);
  font-size: 13px;
  color: var(--tlpt-muted);
}

.tlpt-map-target.tlpt-map-ready .tlpt-map-loading {
  display: none;
}

/* ── product_meta (Artikelnr., Kategorie, Schlagwörter) ───────────────── */
.summary .product_meta {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}

.summary .product_meta .sku_wrapper,
.summary .product_meta .posted_in,
.summary .product_meta .tagged_as {
  display: block;
  font-size: 12px !important;
  color: var(--tlpt-muted) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.summary .product_meta .sku_wrapper .sku,
.summary .product_meta .posted_in a,
.summary .product_meta .tagged_as a {
  color: var(--tlpt-text) !important;
  font-size: 12px !important;
  text-decoration: none;
}

.summary .product_meta .posted_in a:hover,
.summary .product_meta .tagged_as a:hover {
  color: var(--tlpt-gold) !important;
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .tlpt-desc-grid { flex-direction: column !important; gap: 0 !important; }
  .tlpt-desc-col  { flex: none !important; width: 100% !important; }
  .tlpt-desc-col + .tlpt-desc-col { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--tlpt-border); }
  .tlpt-brew-cards { gap: 10px; }
}

@media (max-width: 600px) {
  .tlpt-flavour-label  { width: 70px; }
  .tlpt-brew-cards     { grid-template-columns: 1fr; }
  .tlpt-origin-row dt  { width: 110px; }
  .tlpt-terroir-row    { flex-direction: column; gap: 4px; }
  .tlpt-terroir-row dt { width: auto; }
  .tlpt-stock-row      { gap: 10px; }
  .tlpt-map-placeholder { height: 140px; }
}

/* TLPT H2 custom */
.tlpt-active .tlpt-desc-text h2,
.tlpt-desc-text h2 {
  font-size: 24px !important;
  margin-top: 6px !important;
}
