/* Pauls Produktdesign 1.0: ausschließlich WooCommerce-Einzelproduktseiten */
body.single-product .woocommerce,
body.single-product .woocommerce-page {
  box-sizing: border-box;
}
body.single-product div.product,
body.single-product .woocommerce div.product,
body.single-product .woocommerce-page div.product {
  width: min(100% - 48px, 1160px) !important;
  max-width: 1160px !important;
  margin: 32px auto 64px !important;
  box-sizing: border-box;
  display: flow-root;
}
body.single-product div.product .woocommerce-product-gallery,
body.single-product .woocommerce div.product div.images {
  width: 40% !important;
  max-width: 440px !important;
  float: left !important;
  margin: 0 0 28px !important;
  padding: 12px !important;
  box-sizing: border-box;
  background: rgba(255,250,236,.58);
  border: 1px solid rgba(104,74,44,.22);
  border-radius: 12px;
}
body.single-product div.product .woocommerce-product-gallery img,
body.single-product .woocommerce div.product div.images img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 6px;
}
body.single-product div.product .summary,
body.single-product .woocommerce div.product div.summary {
  width: 55% !important;
  float: right !important;
  margin: 0 0 32px !important;
  box-sizing: border-box;
}
body.single-product div.product .product_title,
body.single-product .woocommerce div.product .product_title {
  font-size: clamp(28px, 3vw, 44px) !important;
  line-height: 1.13 !important;
  letter-spacing: -.025em !important;
  overflow-wrap: anywhere;
  margin: 0 0 18px !important;
}
body.single-product div.product .summary .price,
body.single-product .woocommerce div.product p.price {
  font-size: clamp(21px, 2.2vw, 28px) !important;
  line-height: 1.3 !important;
  margin-bottom: 16px !important;
}
body.single-product div.product .summary .woocommerce-product-details__short-description {
  font-size: 16px;
  line-height: 1.65;
}
body.single-product div.product .summary .woocommerce-product-details__short-description p {
  margin: 0 0 12px;
}
body.single-product div.product .summary form.cart {
  margin-top: 20px;
}
body.single-product div.product .woocommerce-tabs,
body.single-product div.product .related,
body.single-product div.product .upsells {
  clear: both;
}
@media (max-width: 767px) {
  body.single-product div.product,
  body.single-product .woocommerce div.product {
    width: calc(100% - 32px) !important;
    margin: 20px auto 42px !important;
  }
  body.single-product div.product .woocommerce-product-gallery,
  body.single-product .woocommerce div.product div.images {
    width: 100% !important;
    max-width: 460px !important;
    float: none !important;
    margin: 0 auto 22px !important;
    padding: 10px !important;
  }
  body.single-product div.product .summary,
  body.single-product .woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
  }
  body.single-product div.product .product_title,
  body.single-product .woocommerce div.product .product_title {
    font-size: clamp(26px, 7vw, 34px) !important;
  }
}

/* Version 1.1: dezenter Abstand zwischen Hauptbild und Galerievorschau */
body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs,
body.single-product .woocommerce div.product div.images .flex-control-thumbs {
  margin-top: 12px !important;
  padding-top: 0 !important;
}
body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
  margin-bottom: 8px !important;
}

/* 1.2: 15px Abstand auch bei Themes mit eigener Galerie-Markup-Struktur. */
body.single-product .woocommerce-product-gallery__wrapper + .flex-control-thumbs,
body.single-product .woocommerce-product-gallery .flex-control-nav,
body.single-product .woocommerce div.product div.images .flex-control-thumbs,
body.single-product .woocommerce div.product div.images .thumbnails,
body.single-product .woocommerce-product-gallery .thumbnails {
  margin-top: 15px !important;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li,
body.single-product .woocommerce div.product div.images .thumbnails a {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
/* Fallback: einzelne Vorschaubilder unmittelbar unter dem Hauptbild. */
body.single-product .woocommerce-product-gallery > img + img,
body.single-product .woocommerce-product-gallery__wrapper > img + img {
  margin-top: 15px !important;
}
/* Standard-WordPress-Widgetspalte nur auf Shop- und Produktansichten ausblenden.
   Keine globalen Widget-, Footer- oder Startseiten-Regeln. */
body.single-product #secondary,
body.single-product aside#secondary,
body.single-product .widget-area:not(.footer-widget-area),
body.post-type-archive-product #secondary,
body.post-type-archive-product aside#secondary,
body.post-type-archive-product .widget-area:not(.footer-widget-area),
body.tax-product_cat #secondary,
body.tax-product_cat .widget-area:not(.footer-widget-area),
body.tax-product_tag #secondary,
body.tax-product_tag .widget-area:not(.footer-widget-area) {
  display: none !important;
}
/* Die Hauptspalte darf nach Wegfall der Sidebar den Platz nutzen. */
body.single-product #primary,
body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
