/* ==========================================================
   VIVERE VITAL – SINGLE PRODUCT LAYOUT (GRID)
   - Desktop: Left 3/4 (Hero + Main), Right 1/4 (Sticky Summary)
   - Mobile: Hero -> Summary -> Main
   - Does NOT change slider styling (leave vv-product-slider.css as-is)
   - Keeps your label tweaks
   ========================================================== */

/* --- MAIN GRID WRAPPER --- */
.vv-product-grid{
  width: 100%;
  max-width: 1240px;
  padding: 0 20px;
  margin-top:33px;
  margin-bottom:33px;

  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;

  grid-template-areas:
    "hero summary"
    "main summary";
}

.vv-product-hero{
  grid-area: hero;
  min-width: 0;
}

.vv-product-main{
  grid-area: main;
  min-width: 0;
}

.vv-product-summary{
  grid-area: summary;
  min-width: 0;
  width: 100%;
  max-width: 380px;
  justify-self: end;
}

/* --- STICKY SUMMARY --- */
.vv-product-summary .summary.entry-summary{
  position: sticky;
  top: 32px;

  background: #fff;
  padding: 0 0 24px;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

/* Padding für ALLE Kinder (Default) */
.vv-product-summary .summary.entry-summary > *{
  padding-left: 26px;
  padding-right: 26px;
}

/* AUSNAHME: we-event-label ist full-width und braucht KEIN padding */
.vv-product-summary .summary.entry-summary > .we-event-label{
  padding-left: 0;
  padding-right: 0;
}

/* --- MOBILE ORDER (GRID AREAS, NO FLEX) --- */
@media (max-width: 767px){
  .vv-product-grid{
    padding: 0 16px;
    gap: 20px;

    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "summary"
      "main";
  }

  .vv-product-summary{
    max-width: 100%;
    justify-self: stretch;
  }

  .vv-product-summary .summary.entry-summary{
    position: static;
    top: auto;
    box-shadow: none;
    border-radius: 12px;
    padding: 0 0 18px;
  }

  .vv-product-summary .summary.entry-summary > *{
    padding-left: 18px;
    padding-right: 18px;
  }

  .vv-product-summary .summary.entry-summary > .we-event-label{
    padding-left: 0;
    padding-right: 0;
  }
}

  /* AB 768px IMMER 2-SPALTIG */
@media (min-width: 768px){
  .vv-product-grid{
    grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
    grid-template-areas:
      "hero summary"
      "main summary";
  }
}

/* ==========================================================
   ENSURE: No Woo thumbnails strip (safety net)
   (won’t affect your Swiper slider)
   ========================================================== */
.woocommerce-product-gallery .flex-control-thumbs,
.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs,
.woocommerce-product-gallery .woocommerce-product-gallery__thumbnails,
.woocommerce-product-gallery .woocommerce-product-gallery__thumbnails-wrapper{
  display: none !important;
}

/* ==========================================================
   KEEP YOUR EXISTING LABEL / SHOP CHANGES (unchanged)
   ========================================================== */
.single-product-category{
  display: none;
}

/* Out-of-stock text hidden (your existing selector) */
#main > div > div.vv-product-grid > aside > div > p.stock.out-of-stock{
  display: none;
}

/* Event label full width + rounded top (your existing selector) */
#main > div > div.vv-product-grid > aside > div > span.we-event-label{
  width: 100% !important;
  border-radius: 15px 15px 0 0;
}

/* ===========================================================
   VIVERE VITAL – PRODUCT SLIDER (RESTORE)
   Quelle: vv-product-layout_bk.css (08.12.2025)
   =========================================================== */

.vv-full-slider-wrap {
  width: 100%;
  margin-bottom: 0px;
}

/* NATÜRLICHES SEITENVERHÄLTNIS statt force-height */
.vv-fullwidth-gallery-slider {
  width: 100%;
  aspect-ratio: 16 / 9;       /* Desktop */
  max-height: 650px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .vv-fullwidth-gallery-slider {
    aspect-ratio: 4 / 3;      /* Mobile */
  }
}

/* Slider-Innenbereich */
.vv-fullwidth-gallery-slider .swiper-wrapper {
  width: 100%;
  height: 100%;
}

/* Bilder – korrekt */
.vv-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;         /* verhindert Zoom */
  background-color: #f3f3f3;   /* neutraler Backdrop */
  display: block;
}

/* Pagination unter dem Slider */
.vv-fullwidth-gallery-slider .swiper-pagination {
  position: relative !important;
  margin-top: 12px;
}

.vv-fullwidth-gallery-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(125, 186, 39, 0.4);
  opacity: 1;
}

.vv-fullwidth-gallery-slider .swiper-pagination-bullet-active {
  background: #7DBA27;
}

/* Navigation Arrows */
.vv-fullwidth-gallery-slider .swiper-button-prev,
.vv-fullwidth-gallery-slider .swiper-button-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.vv-fullwidth-gallery-slider .swiper-button-prev:hover,
.vv-fullwidth-gallery-slider .swiper-button-next:hover {
  background: #FF7E00;
}

.vv-fullwidth-gallery-slider .swiper-button-prev::after,
.vv-fullwidth-gallery-slider .swiper-button-next::after {
  font-size: 16px;
}


/* ==========================================================
   MOBILE FIX – Slider sauber zentrieren & begrenzen
   ========================================================== */
@media (max-width: 992px){

  /* Hero darf NICHT breiter sein als Viewport */
  .vv-product-hero{
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }

  /* Slider Wrapper exakt auf Content-Breite zentrieren */
  .vv-full-slider-wrap{
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  /* Der eigentliche Slider */
  .vv-fullwidth-gallery-slider{
    width: 100%;
    max-width: 100%;
    margin: 0 auto;       /* ← DAS zentriert ihn visuell */
    border-radius: 16px;
    overflow: hidden;
  }

  /* Swiper interne Breiten begrenzen */
  .vv-fullwidth-gallery-slider .swiper,
  .vv-fullwidth-gallery-slider .swiper-wrapper{
    width: 100%;
    max-width: 100%;
  }

  .vv-fullwidth-gallery-slider .swiper-slide{
    width: 100% !important;
    max-width: 100%;
  }

  /* Bilder exakt einpassen */
  .vv-slide-img{
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
  }
}

/* ==========================================================
   DESKTOP FIX: Slider sichtbar machen (falls irgendwo versteckt)
   Pack das GANZ ans Ende von vv-product-layout.css
   ========================================================== */

.vv-product-hero,
.vv-full-slider-wrap,
.vv-fullwidth-gallery-slider{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Falls der Slider “0 Höhe” hat: */
.vv-fullwidth-gallery-slider{
  height: auto;
  min-height: 420px;
  aspect-ratio: 16 / 9;
}

/* ==========================================================
   FEINSCHLIFF: Whitespace unter dem Slider reduzieren
   (besonders Mobile)
   ========================================================== */

/* Mobile: noch kompakter */
@media (max-width: 992px){

  .vv-full-slider-wrap{
    margin-bottom: 0.75rem;
  }

  /* Falls Astra zusätzlich Abstand erzeugt */
  .vv-product-hero{
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* Grid-Gap minimal enger */
  .vv-product-grid{
    row-gap: 14px; /* statt 20px */
  }
}

main > div.we-icl-import.exwt-col12 {
    display:none;
}

main > div.we-social-share.exwt-col12 {
    display:none;
}

/* ==========================================================
   SINGLE PRODUCT – "Beschreibung" Tab-Titel ausblenden
   (Content bleibt sichtbar)
   ========================================================== */

/* Tab-Navigation komplett ausblenden */
.woocommerce-tabs ul.tabs{
  display: none !important;
}

/* Optional: kleinen Abstand nach oben entfernen */
.woocommerce-tabs{
  margin-top: 0;
  padding-top: 0;
}

/* Nur den Beschreibung-Tab ausblenden */
.woocommerce-tabs ul.tabs li.description_tab{
  display: none;
}

.woo-event-schedu {
    margin-bottom: 0px;
    border-radius:16px;
    display:none !important;
}

.cart {
    display:flex;
    gap:12px;
    margin-bottom:24px;
    margin-top:20px;
}

/* ==========================================================
   SINGLE PRODUCT – "JETZT BUCHEN" Button volle Breite
   ========================================================== */

.single-product .entry-summary form.cart button.single_add_to_cart_button{
  width: 100% !important;
  display: block;
}

.single-product .entry-summary .ast-stock-detail{
  margin-bottom: 0 !important;
}

/* OPTION A (empfohlen): 3/4 links, 1/4 rechts */
@media (min-width: 768px) and (max-width: 991px){
  .vv-product-grid{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  .vv-product-summary{
    max-width: 420px;
  }
}

/* ==========================================================
   ASTRA FIX – kein Top-Margin im Plain Container
   NUR für Single Product Seiten (alle Media Sizes)
   ========================================================== */

.single-product.ast-plain-container.ast-no-sidebar #primary{
  margin-top: 0 !important;
}

/* 1) DESKTOP: harte rechte Spalte 380px */
@media (min-width: 992px){
  .vv-product-grid{
    grid-template-columns: minmax(0, 1fr) 380px !important;
  }

  .vv-product-summary{
    max-width: 380px !important;
  }
}

/* 2) TABLET (768–991): mach links breiter (3/4) UND rechts fix (380px) */
@media (min-width: 768px) and (max-width: 991px){
  .vv-product-grid{
    grid-template-columns: minmax(0, 1fr) 380px !important;
  }

  .vv-product-summary{
    max-width: 380px !important;
  }
}

.wc-gzd-additional-info {
    text-align: center;
}

aside > div > h1 {
    margin-top:1rem;
}