/* ==========================================================================
   tierportrait.css – Tierportrait Foto-Aufkleber Produktseite (FADESING2026)
   Produkt 2850: Tierportrait Foto-Aufkleber
   ========================================================================== */

/* --- Gesamtlayout: Bild links, Konfig rechts --- */
.tp-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

/* --- Linke Spalte: Produktbild --- */
.tp-preview {
  flex: 0 0 42%;
  max-width: 42%;
  position: sticky;
  top: 80px;
}

.tp-preview__wrap {
  position: relative;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}

.tp-preview__img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tp-preview__zoom {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #888;
  padding: 6px 0 0;
}

.tp-preview .morepics {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tp-preview .morepics img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

/* --- Rechte Spalte: Info + Konfig + Kauf --- */
.tp-info {
  flex: 1 1 58%;
  min-width: 0;
}

.tp-info h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
  color: #1a1a1a;
}

.tp-short-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* --- Meta-Infos (Lieferzeit, Art.-Nr.) --- */
.tp-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
}

.tp-meta p {
  margin: 2px 0;
}

.tp-meta strong {
  color: #333;
}

/* --- Anleitung (4 Schritte) --- */
.tp-guide {
  display: flex;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.tp-guide li {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}

.tp-guide__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6b8e23;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* --- Konfigurator-Bereich --- */
.tp-config {
  background: #fafafa;
  border: 2px solid #6b8e23;
  border-radius: 8px;
  padding: 0;
  margin: 0 0 16px;
  overflow: hidden;
}

.tp-config__header {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  padding: 10px 16px;
  background: #6b8e23;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tp-config__body {
  padding: 16px;
}

/* Schritt-Gruppen innerhalb des Konfigurators */
.tp-step {
  margin-bottom: 16px;
}

.tp-step:last-child {
  margin-bottom: 0;
}

.tp-step__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tp-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.tp-step__hint {
  font-size: 12px;
  color: #888;
  margin: -4px 0 8px 30px;
}

.tp-step__content {
  padding-left: 30px;
}

/* Trennlinie zwischen Schritten */
.tp-step + .tp-step {
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* --- Grundform-Karten (4 Spalten Grid) --- */
.tp-shape-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.tp-shape-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px 8px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  text-align: center;
}

.tp-shape-card:hover {
  border-color: #6b8e23;
  background: #fcfdf8;
}

.tp-shape-card--active {
  border-color: #6b8e23;
  background: #f0f5e0;
  box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.2);
}

.tp-shape-card__img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 6px;
}

.tp-shape-card__label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

/* --- Upload-Box (Dropzone) --- */
.tp-upload-box .textConfigBoxHead {
  display: none;
}

.tp-upload-box .textConfigBoxContent {
  padding: 0;
}

.tp-upload-box .dropzone {
  min-height: 120px;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  background: #fff;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.tp-upload-box .dropzone:hover,
.tp-upload-box .dropzone.dz-drag-hover {
  border-color: #6b8e23;
  background: #f8faf0;
}

/* --- Material / Veredelung / Bemerkung --- */
.tp-material-box .textConfigBoxHead,
.tp-veredlung-box .textConfigBoxHead {
  display: none;
}

.tp-material-box select,
.tp-veredlung-box select {
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.tp-material-box select:focus,
.tp-veredlung-box select:focus {
  border-color: #6b8e23;
  outline: none;
}

.tp-material-box label,
.tp-veredlung-box label,
.tp-remark-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.tp-remark-box input[type="text"] {
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.tp-remark-box input[type="text"]:focus {
  border-color: #6b8e23;
  outline: none;
}

/* --- Staffelpreise --- */
.tp-staffel-wrap {
  margin-bottom: 14px;
}

.tp-staffel-toggle {
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #6b8e23;
  cursor: pointer;
  transition: background 0.15s;
}

.tp-staffel-toggle:hover {
  background: #f8f9fa;
}

.tp-staffel-wrap.is-empty {
  display: none;
}

/* --- Options-Source Container (versteckt, JS verteilt Inhalte) --- */
.tp-options-source {
  display: none;
}

/* --- Flaechen-Modul: technische Details ausblenden --- */
.tp-config .flaeche-head,
.tp-config .flaeche-result-row,
.tp-config .flaeche-hidden-meta {
  display: none;
}

/* --- Flaechen-Modul Anpassungen --- */
.tp-config .flaeche_options {
  margin-bottom: 0;
}

.tp-config .flaeche_options label,
.tp-config .flaeche_options .flaeche-text-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.tp-config .flaeche_options select,
.tp-config .flaeche_options input[type="text"],
.tp-config .flaeche_options input[type="number"] {
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.tp-config .flaeche_options select:focus,
.tp-config .flaeche_options input:focus {
  border-color: #6b8e23;
  outline: none;
}

/* --- textConfigBox innerhalb Konfigurator --- */
.tp-config .textConfigBox {
  margin-bottom: 0;
}

.tp-config .textConfigBoxHead {
  display: none;
}

.tp-config .textConfigBoxContent select {
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
}

.tp-config .textConfigBoxContent input.selectbutton {
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
}

/* --- Mengen-Buttons (ersetzen +/- und freie Eingabe) --- */
.tp-has-picks .fa-addtobasket__row {
  flex-wrap: wrap;
}

.tp-has-picks .fa-addtobasket__qty {
  flex: 0 0 100%;
  width: 100%;
  margin-bottom: 12px;
}

.tp-qty-picks {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.tp-qty-pick {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 6px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.tp-qty-pick:hover {
  border-color: #6b8e23;
  background: #fcfdf8;
}

.tp-qty-pick--active {
  border-color: #6b8e23;
  background: #f0f5e0;
  box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.2);
}

.tp-qty-pick__num {
  font-size: 1.3em;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.tp-qty-pick__label {
  font-size: 0.75em;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tp-qty-pick__price {
  font-size: 0.78em;
  color: #6b8e23;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

/* Preis + Warenkorb nebeneinander unter den Buttons */
.tp-has-picks .fa-addtobasket__price {
  flex: 1;
}

.tp-has-picks .fa-addtobasket__btn {
  flex: 0 0 auto;
}

/* --- Rating --- */
.tp-rating {
  margin-top: 12px;
  font-size: 13px;
}

.tp-rating img {
  vertical-align: middle;
}

/* ================================================================
   RESPONSIVE  max-width: 768px
   ================================================================ */
@media (max-width: 768px) {
  .tp-layout {
    flex-direction: column;
    gap: 12px;
  }

  .tp-preview {
    flex: 0 0 100%;
    max-width: 100%;
    position: static;
  }

  .tp-preview__wrap {
    max-width: 280px;
    margin: 0 auto;
  }

  .tp-info {
    flex: 0 0 100%;
  }

  .tp-info h1 {
    font-size: 18px;
  }

  .tp-guide {
    flex-direction: column;
    gap: 6px;
  }

  .tp-guide li {
    font-size: 12px;
  }

  .tp-step__content {
    padding-left: 0;
  }

  .tp-step__hint {
    margin-left: 0;
  }

  /* Grundform-Karten: 2x2 Grid auf Mobile */
  .tp-shape-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-qty-picks {
    flex-wrap: wrap;
  }

  .tp-qty-pick {
    flex: 0 0 calc(33.33% - 4px);
  }
}
