/*
Theme Name: Astra Child
Template: astra
Version: 1.0
-----------------------------------------------
Eigene Styles für WooCommerce & Astra Child Theme
Struktur nach Themenblöcken
-----------------------------------------------
*/


/* =====================================================
   1. Produktseite
   ===================================================== */

/* Kurzbeschreibung auf der Produktseite ausblenden */
.single-product .woocommerce-product-details__short-description {
  display: none;
}

/* Produktgalerie-Bilder auf max. 300px Breite begrenzen */
.single-product .product .woocommerce-product-gallery__image img {
  max-width: 300px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: 50px;
}

/* Tab "Zusätzliche Informationen" komplett ausblenden */
.woocommerce-tabs .additional_information_tab,
.woocommerce-Tabs-panel--additional_information {
  display: none !important;
}

/* Automatisch generierte Überschrift im Tab-Inhalt verstecken */
.woocommerce-Tabs-panel h2:first-child {
  display: none;
}

/* Lagerstatus-Text (z. B. "Nicht vorrätig – Jetzt vorbestellen") stylen */
.woocommerce div.product .stock {
  color: #454F5E;       /* Dunkles Grau-Blau */
  font-weight: bold;    /* Fett dargestellt */
}


/* =====================================================
   2. Checkout
   ===================================================== */

/* Überschrift im Bestellbereich (rechte Spalte) korrekt ausrichten */
#order_review_heading {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  box-sizing: border-box;
}

/* Checkbox-Feld für AGB im Checkout mit Abstand + Trennlinie */
.woocommerce-checkout p.legal.form-row.checkbox-legal.validate-required {
  margin-bottom: 40px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}


/* =====================================================
   3. Header & Navigation
   ===================================================== */

/* Menüeinträge im mobilen Header – Abstand unten entfernen */
.ast-header-break-point .main-header-menu .menu-item {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Hauptmenü – vertikalen Abstand & Zeilenhöhe optimieren */
.main-header-menu .menu-item {
  line-height: 1.2 !important;
  padding-top: 3px !important;
  padding-bottom: 5px !important;
}


/* =====================================================
   4. Responsive Anpassungen (Mobile / Tablet)
   ===================================================== */

@media (max-width: 768px) {
  
  /* Shop- & Kategorien-Seiten: Preise mittig unter dem Produkt */
  .woocommerce ul.products li.product .price {
    text-align: center;
    display: block;
    width: 100%;
  }

  /* Ähnliche Produkte auf Einzelproduktseite: Preis ebenfalls mittig */
  .woocommerce .related ul.products li.product .price {
    text-align: center;
    display: block;
    width: 100%;
  }
}
