/*
Theme Fix: compactshop-single-fix.css
Version: 1.6s (vollständig)
Date: 2025-07-16
Author: ChatGPT + Kai
Purpose:
– Basis: Stand 1.6j (Produktseitenstruktur)
– Plus: Slider-Fix mit einheitlicher Breite und Scrollbarkeit (Related, Upsells, Recently Viewed)
*/

/* BASIS: Stand 1.6j */
.single-product .product {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.single-product .product .woocommerce-product-gallery {
  flex: 0 0 380px;
  max-width: 380px;
}

.single-product .product .summary {
  flex: 1;
  max-width: calc(100% - 400px);
}

p {
  margin-top: 0;
  margin-bottom: 0.4em;
  line-height: 1.3em;
  letter-spacing: -0.015em;
}

.single-product .summary p:last-of-type {
  margin-bottom: 0.3em;
}

.single-product .product_meta > span {
  display: block;
  margin-bottom: 0.8em;
  line-height: 1.5em;
}

.single-product .summary .variations_form,
.single-product .summary .cart {
  margin-top: 0.6rem;
}

.single-product .cart {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.single-product .cart .quantity {
  flex: 0 0 auto;
  min-width: 80px;
}

.single-product .cart button {
  flex: 1;
  min-width: 150px;
}

@media screen and (max-width: 1024px) {
  .single-product .product {
    flex-direction: column;
  }

  .single-product .product .woocommerce-product-gallery,
  .single-product .product .summary {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

@media screen and (max-width: 767px) {
  .single-product .product {
    flex-direction: column;
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .single-product .product .woocommerce-product-gallery {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .single-product .product .summary {
    width: 100%;
    max-width: 100%;
  }

  .single-product .product .summary p,
  .woocommerce-Tabs-panel p {
    font-size: 1rem;
  }

  .single-product .cart {
    flex-direction: column;
    gap: 1rem;
  }

  .single-product .cart .quantity,
  .single-product .cart button {
    width: 100%;
  }
}

/* SLIDER-FIX 1.6s (bereinigt): einheitliches Layout mit Scrollen */
/* Universeller Slider-Fix für alle Produkt-Slider auf Einzelproduktseiten */
body.single-product ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 2rem;
  padding: 0 0.5rem 1rem 0.5rem;
  scroll-behavior: smooth;
  max-width: 100%;
}

body.single-product ul.products li.product {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
}

/* Begrenzung: Zeige in .recently-viewed nur 5 Produkte */
ul.products.recently-viewed li.product:nth-of-type(n+6) {
  display: none !important;
}

/* Startseiten-Slider: horizontal scrollen mit fixer Breite */
#pressmart-grid-slider-6362 ul.products,
#pressmart-grid-slider-9665 ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  gap: 2rem;
  padding: 0 0.5rem 1rem 0.5rem;
  max-width: 100%;
}

#pressmart-grid-slider-6362 ul.products li.product,
#pressmart-grid-slider-9665 ul.products li.product {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
}
/* Notlösung: Erzwinge horizontale Anordnung direkt via .products-carousel */
body.home .products-carousel ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  gap: 2rem;
  padding: 0 1rem 1rem 1rem;
}

body.home .products-carousel ul.products li.product {
  flex: 0 0 240px !important;
  width: 240px !important;
  max-width: 240px !important;
}

