/**
 * Theme Name: Astra child
 * Template:   astra
 * ...other header fields
 */




/* Hide Cart/ text from headed menu */
.ast-woo-header-cart-info-wrap {
    visibility: hidden;
}

.ast-woo-header-cart-total {
    visibility: visible;
    position: relative;
    left: 0;
}

/* Hide "update cart" button on cart page */
.woocommerce-cart button[name="update_cart"] {
    display: none !important;
}

 /* Hide coupon entry from cart page */
.woocommerce-cart-form__contents .coupon { 
	display: none!important;
}


/* Shop page had two groups of same products, this hides top one */
.woocommerce-products-header {
    display: none !important;
}

/* Hide order total from cart page */
.woocommerce-cart .order-total {
    display: none !important;
}

/* Make check out page review order responsive on mobile. Long text do not wrap */
@media (max-width: 768px) {
    .woocommerce-checkout-review-order-table td,
    .woocommerce-checkout-review-order-table th {
        max-width: 100px;
        word-break: break-word;
    }
}

/* Sticky menu on desktop and mobile */
.ast-mobile-header-wrap,
.ast-main-header-wrap {
    transition: background 0.3s ease-in-out;
}

/* Sticky menu background to white */
.ast-mobile-header-wrap.scrolled,
.ast-main-header-wrap.scrolled
 {
    background: #fff !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Home page logo invert on scroll */
.ast-mobile-header-wrap.scrolled .ast-site-identity img,
.ast-main-header-wrap.scrolled .ast-site-identity img {
    filter: brightness(1) invert(1); /* Makes the logo black */
}

/* Default menu items (white) */
.ast-.ast-main-header-wrap.scrolled .main-navigation a {
    color: white;
    transition: color 0.3s ease-in-out;
}

/* Change menu items to black when scrolling */
.ast-main-header-wrap.scrolled .main-navigation a:not(.current-menu-item a) {
    color: black !important;
}


/* Cart price to one line on mobile view */
.ast-woo-header-cart-total .woocommerce-Price-amount {
    white-space: nowrap; /* Ensures price stays in one line */
    display: inline-flex; /* Keeps it aligned */
    align-items: center;
}

.ast-woo-header-cart-info-wrap {
    display: flex;
	  white-space: nowrap;
}

/* Hide review date from product page */
.woocommerce div.woocommerce-Reviews .woocommerce-review__published-date {
    display: none !important;
}

/* Hide review star rating */
.review-rating {
    display: none !important;
}

/* Change scroll to top arrow background to black */
#ast-scroll-top {
    background-color: black !important;
}

/* Change widget title (footer H2 headers) color */
.widget-title {
    color: white;
}

/* Underline links except shop items and header menu */
a:not([class*="button"]):not(.ast-loop-product__link):not(.main-navigation .menu-link):not(.plus):not(.minus) {
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}

/* Added to cart message text and buttons alignment */
.woocommerce-message {
    display: flex;
    align-items: center; /* Centers the content vertically */
    gap: 10px; /* Adds spacing between the buttons */
    text-align: center; /* Ensures the text is centered */
}

.woocommerce-message .button {
    display: inline-block; /* Ensures buttons are inline within the flex container */
}


/* Ensure the sticky add to cart button layout works for both price and button on mobile also */
.ast-sticky-add-to-cart-content {
    display: flex;
    align-items: center; /* Vertically align content (price, image, button) */
    justify-content: space-between; /* Spread the content across the container */
}

/* Ensure price is shown correctly */
.ast-sticky-add-to-cart-action-price {
    display: inline-block;
    margin-right: 10px; /* Space between price and the add to cart button */
}

/* Responsive layout for small screens */
@media screen and (max-width: 767px) {
    .ast-sticky-add-to-cart-content {
        flex-direction: column; /* Stack elements vertically on small screens */
        text-align: center; /* Center the content */
    }

    .ast-sticky-add-to-cart-action-price {
        margin-bottom: 10px; /* Add space between price and the button on small screens */
    }

    .ast-sticky-add-to-cart-action-price .woocommerce-Price-amount {
        display: inline-block; /* Ensure price is visible */
    }
}

/* Add bottom margin to scroll to top button on mobile */
@media screen and (max-width: 767px) {
    body.single-product #ast-scroll-top {
        position: fixed;      /* Fixed positioning so it stays in place when scrolling */
        bottom: 70px;         /* Space from the bottom (adjust as needed) */
        right: 10px;          /* Space from the right edge (adjust as needed) */
        margin-bottom: 0;     /* Remove any additional bottom margin */
    }

}


  /* Caroussel ovelay */
  .fixed-carousel::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2;
  }

  /* Add padding to contact form page on mobile */
  @media (max-width: 768px) {
    body.page-id-1659 .entry-header {
      padding-top: 50px; /* Adjust based on your menu height */
    }
  }
  
  