/* /shop/assets/overlay.css – ensure close button clickable */
.modal-root {
  position: fixed;
  display: grid;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal-root.active {
  display: grid;
  grid-template-rows: 1fr;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.modal-panel {
  position: absolute;
  margin: 6vh auto;
  max-width: 1100px;
  width: calc(100% - 10px); /* z.B. Seitenabstand */
  background: #fff;
  color: #0c0f14;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 1001;

  /* Vertikale Positionierung */
  margin-top: 15vh; /* Abstand vom oberen Rand */
  position: relative; /* nicht mehr absolute */
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 1002;
}

button.modal-close {
  color: black;
}

.modal-content {
  max-height: 72vh;
  overflow: auto;
}

@media (max-width: 768px) {
  .modal-panel {
    width: calc(100% - 18px); /* mehr Abstand links/rechts */
    margin-top: 17vh;
    border-radius: 12px;
    padding: 8px;
  }

  .modal-content {
    max-height: 80vh; /* mehr Scrollbereich */
  }

  .modal-close {
    top: 8px;
    right: 8px;
    padding: 6px 8px;
  }
}

.overlay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.ov-main {
  width: 100%;

  object-fit: contain;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;

  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-image-frame {
  aspect-ratio: 4 / 3; /* quadratisch */
  width: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #f5f5f5; /* optionaler Platzhalter */
}

.thumbs {
  display: flex;
  flex-wrap: wrap; /* Umbruch */
  gap: 8px;
  padding-top: 8px;
}

.thumb {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
}

.thumb:hover {
  border-color: var(--farbe1);
  transform: scale(1.03);
  transition: all 0.2s ease;
}

.thumb img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.thumbs img {
  cursor: pointer;
  border-right: 14px solid transparent;
  transition: border-color 0.2s ease;
}

.thumbs img.active {
  border-right: 4px solid var(--farbe1); /* deine Shopfarbe */
}

.overlay-info {
  padding: 5vh;
}

.ov-title {
  margin: 0 0 8px;
  font-size: 5vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--farbe1);
  color: black;
}

/*Tabelle für Variante, Menge, Preis*/
.variantentabelle {
  width: 100%;
  border-collapse: collapse;
}

.variantentabelle td {
  vertical-align: top;
  padding: 4px 8px;
}

.variantentabelle .links {
  width: 50%;
}

.variantentabelle .rechts {
  width: 50%; /* Rechts für Preis */
  text-align: center;
  padding-left: 16px;
}

.preisblock {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

/* Hauptpreis groß */
.preis-hauptzeile {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* kg Preis kleiner & dezenter */
.kg-preis-value {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
  font-size: 0.75rem;
  color: #888;
}

/* Versandhinweis klein */
.preis-hinweis {
  font-size: 0.75rem;
  color: #888;
}

/* Optional: Preis etwas größer */
.preis.preis-anzeige {
  font-size: 1.5rem;
  font-weight: bold;
}

.ov-short {
  color: #6b7280;
  margin: 0 0 10px;
}

.beschreibung {
  font-size: 3vh;
  font-family: Georgia, "Times New Roman", serif;
  color: black;
  padding: 5vh;
  padding-bottom: 0vh;
  padding-top: 0vh;
}

.ov-detail {
  white-space: pre-wrap;
  /*border: 1px solid #e5e7eb;*/
  border-radius: 12px;
  padding: 5vh;
  padding-top: 0.5vh;
}

/*Warenkorb*/
.WKImg {
  width: 80px; /* feste Breite */
  height: 80px; /* feste Höhe */
  object-fit: cover; /* Bild wird sauber zugeschnitten */
  border-radius: 8px;
  flex-shrink: 0; /* verhindert Zusammendrücken im Flex-Container */
}
