/*
Theme Name: Astra Child
Description: Child theme of Astra
Author: Your Name
Template: astra
Version: 1.0.0
*/

@import url("../astra/style.css");

/* Logged in & out conditions */

.logged-in-condition .hide-logged-in {
	display: none!important;
}

.logged-out-condition .hide-logged-out {
	display: none!important;
} 

/* === Mega-Panel: Optik + absolute Position (Desktop) === */
@media (min-width:1025px){
  #ast-desktop-header .main-header-menu .astra-megamenu{
    position: absolute !important;   /* WICHTIG: wieder absolut */
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.14);
    border: 1px solid rgba(0,0,0,.06);
    z-index: 2000;                    /* Panel über dem Inhalt */
  }
}

/* Header vor den Seiteninhalt stapeln (ohne das Panel umzupositionieren) */
#ast-desktop-header,
#ast-desktop-header .main-header-bar{
  position: relative;
  z-index: 1500;
}

/* Sicherheitshalber: nichts abschneiden */
.site-header,
.ast-main-header-wrap,
.main-header-bar,
.ast-primary-header-bar{
  overflow: visible;
}

/* Falls deine Hero-Section einen hohen z-index besitzt – bewusst niedriger setzen */
.elementor-element-fa99053{
  position: relative;
  z-index: 1;
}

/* Astra Mega Menu – Spaltenüberschriften (Desktop) */
@media (min-width: 1025px){
  #ast-desktop-header .astra-megamenu > li > a .menu-text{
    font-size: 1.2em;
    font-weight: 600;
  }
	
	/* Ebene 2: Items direkt unter der Spalten-Überschrift */
  #ast-desktop-header .astra-megamenu > li > .sub-menu > li > a{
    padding-left: 30px;     /* leicht einrücken */
    display: block;         /* saubere Klickfläche */
  }

  /* Ebene 3: Kinder von Ebene 2 – gleiches Einrücken, kleiner/leichter */
  #ast-desktop-header .astra-megamenu > li > .sub-menu > li > .sub-menu > li > a{
    padding-left: 50px;     /* genauso eingerückt wie Ebene 2 */
    font-size: 0.95em;      /* etwas kleiner */
    font-weight: 400;       /* leichter */
    display: block;
  }
}



/* Hide cart hover widget when empty - Updated selectors */
.astra-icon[data-cart-total="0"] ~ .ast-site-header-cart-data {
    display: none !important;
}

/* Alternative: Target the parent container */
.ast-site-header-cart:has(.astra-icon[data-cart-total="0"]) .ast-site-header-cart-data {
    display: none !important;
}

/* Fallback: Hide dropdown containing empty message */
.ast-site-header-cart-data:has(.woocommerce-mini-cart__empty-message) {
    display: none !important;
}

/* If the above don't work, target specifically when empty message exists */
.widget_shopping_cart_content .woocommerce-mini-cart__empty-message {
    display: none !important;
}
