/* =========================================================
   PRODUCT PAGE
   ========================================================= */
/* ===== GENERAL ===== */

.product .intro {
  max-width: 700px;
  margin-top: 15px;
  color: var(--text-muted);
}

/* ===== PRODUCT INTRO GRID ===== */

.product-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.product-intro-text {
  max-width: 650px;
}

.product-intro-image {
  display: flex;
  justify-content: center;
}

.product-intro-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;

  /* 🔥 premium look */
  box-shadow: var(--card-shadow);
}

/* MOBILE */
@media (max-width: 900px) {
  .product-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-intro-image {
    order: -1; /* image on top */
  }
}

/* =========================================================
   PRODUCT
   ========================================================= */

.product {
  position: relative;
}

/* ===== INTRO ===== */

.product .intro {
  max-width: 100%;
  margin-top: 15px;
  color: var(--text-muted);
}

/* ===== VISUAL ===== */

.product-intro-visual {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.product-intro-visual img {
  max-width: 1250px;
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}

/* ===== GRID ===== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.product .support-card {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 25px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.product .support-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--color-overlay);
}

/* ===== NOTE ===== */

.product .note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-intro-visual img {
    max-width: 100%;
    opacity: 0.95;
  }
}

/* ===== GRID ===== */

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-top: 40px;
  align-items: center;
}

.product-text h3 {
  margin-top: 25px;
}

.product-text ul {
  margin-left: 20px;
}

.product-image img {
  width: 100%;
  border-radius: 12px;
}

/* =========================================================
   PRODUCT CARD (3RD PARTY)
   ========================================================= */

.product-card {
  width: 100%;
  max-width: 300px;

  background: var(--color-overlay);
  border: 1px solid var(--border-soft);
  border-radius: var(--card-radius);

  padding: 16px;

  display: flex;              /* 🔥 */
  flex-direction: column;     /* 🔥 */
  justify-content: space-between; /* 🔥 */

  min-height: 220px;          /* 🔥 gleichmäßige Basis */

  transition: all 0.25s ease;

  position: relative;
  overflow: hidden;
}

/* hover */
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: var(--color-accent-soft);
}

/* glow */
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--color-accent-soft), var(--color-transparent) 60%);
  opacity: 0;
  transition: 0.3s;
}

.product-card:hover::after {
  opacity: 1;
}

.product-category {
  font-size: 11px;
  opacity: 0.6;
  margin-bottom: 6px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-model {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-suppliers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-suppliers .supplier {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-suppliers a {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 12px;
  background: var(--color-overlay);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--text-main);
}

.product-suppliers a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.supplier-id {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

.support-3rdparty-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.support-3rdparty-text {
  max-width: 650px;
}

/* IMAGE */

.support-3rdparty-image {
  display: flex;
  justify-content: center;
}

.support-3rdparty-image img {
  width: 100%;
  max-width: 480px;   /* 🔥 leicht kleiner als product */
  border-radius: var(--card-radius);

  box-shadow: var(--card-shadow);
}

@media (max-width: 900px) {
  .support-3rdparty-grid {
    grid-template-columns: 1fr;   /* 👉 untereinander */
    gap: 40px;
  }

  .support-3rdparty-text {
    max-width: 100%;
    text-align: left;
  }

  .support-3rdparty-image {
    justify-content: flex-start;  /* optional: links statt center */
  }

  .support-3rdparty-image img {
    max-width: 100%;
  }
}

/* ===== BLOCK LAYOUT ===== */

.product-block {
  padding: 80px 0;
}

.product-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--color-accent-soft), var(--color-transparent) 60%);
  pointer-events: none;
}

.product-block.alt {
  background: var(--color-surface-light);
}

.product-block-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* ===== LIGHT SECTION FIX ===== */

.product-block.alt h2 {
  color: var(--color-text-on-light);
}

.product-block.alt .preheadline {
  color: var(--accent);
}

.product-block.alt p {
  color: var(--color-text-on-light-muted);
}

.product-block.alt li {
  color: var(--color-text-on-light-muted);
}

.product-block.alt strong {
  color: var(--color-text-on-light);
}

/* ===== TEXT ===== */

.product-block-text ul {
  margin: 20px 0 20px 20px;
}

.product-block-text p + p {
  margin-top: 18px;
}

/* DEFAULT = DARK SECTIONS */
.product-block-text p,
.product-block-text li {
  color: var(--text-muted);
}

.product-block-text strong {
  color: var(--text-main);
}

/* LIGHT SECTION (ALT) */
.product-block.alt {
  background: var(--color-surface-light);
  background: linear-gradient(180deg, var(--color-surface-light), var(--color-surface-light-alt));
}

.product-block.alt .product-block-text p,
.product-block.alt .product-block-text li {
  color: var(--color-text-on-light-muted);
}

.product-block.alt .product-block-text strong {
  color: var(--color-text-on-light);
}

/* ===== IMAGE ===== */

.product-block-image {
  display: flex;
  justify-content: center;
}

.product-block-image img {
  width: 100%;
  max-width: 420px;   /* 🔥 wichtig */
  border-radius: 14px;
  box-shadow: 0 10px 30px var(--shadow-card-soft);
}
/* =========================
   PRODUCT MODAL LAYOUT
   ========================= */
   
.product-modal .supplier-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* 🔥 wichtig */
}

/* =========================
   HARD RESET FOR MODAL BUTTONS
   ========================= */

/* hover */
.product-modal .supplier-item a:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

/* optional: better readability */
.product-modal .supplier-item a {
  text-shadow: 0 1px 2px var(--shadow-card);
}


.product-modal .supplier-id {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.8;
}

.product-desc-short {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.product-desc-long {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}   
   

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

/* wenn Bild vorhanden */
.product-modal-grid.has-image {
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: center;
}

/* IMAGE */
.product-modal-image {
  display: flex;
  justify-content: center;
}

.product-modal-image img {
  width: 100%;
  max-width: 70%;      
  height: auto;

  border-radius: 14px;
  box-shadow: 0 10px 30px var(--shadow-card);
}

/* TEXT */
.product-modal-content h2 {
  margin-bottom: 10px;
}

.product-modal-description {
  margin-top: 10px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* SUPPLIERS */
.product-modal-suppliers {
  margin-top: 25px;
}

/* MOBILE */
@media (max-width: 900px) {
  .product-modal-grid.has-image {
    grid-template-columns: 1fr;
  }

  .product-modal-image {
    order: -1;
    text-align: center;
  }

  .product-modal-image img {
    max-width: 80%;
  }
}


/* 3rd party product modal */

/* Container */
.supplier-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

/* Einzelner Supplier Block */
.supplier-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* BUTTON */
.supplier-item a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;

  background: var(--accent);
  border: 1px solid var(--accent);

  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;

  transition: all 0.2s ease;
}

.supplier-item a:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

/* Product ID */
.supplier-id {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
  padding-left: 2px;
}
