/**
 * Theme Name: Astra Child
 * Template:   astra
 * 
 */

hr.wp-block-separator {
    border-top: 1px solid;
}

.ast-builder-grid-row:has(#menu-secondary-menu) {
    min-height: inherit;
}

aside:has(#menu-secondary-menu) {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

aside:has(#menu-secondary-menu) section,
aside:has(#menu-secondary-menu) section nav {
    width: 100%;
    height: 100%;
}

#menu-secondary-menu {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: relative;
    height: 100%;
    font-size: 0.8rem;
    text-transform: capitalize;
    max-width: 1200px;
    margin: 0 auto;
    font-weight: bold;
}


#menu-secondary-menu>li>a {
    color: #fff;
}

#menu-secondary-menu li {
    display: flex;
    align-items: center;
}

#menu-secondary-menu li>ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    padding: 2rem;
    grid-template-columns: repeat(6, auto);
    row-gap: 1rem;
    margin-top: 0;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
}

#menu-secondary-menu>li:hover:after {
    z-index: 100;
    content: '';
    background-color: #fff;
    width: 15px;
    height: 15px;
    display: block;
    position: absolute;
    margin-left: 20px;
    transform: rotate(45deg);
    margin-top: -6px;
    top: 100%;
}

#menu-secondary-menu li:hover>ul.sub-menu {
    display: grid;
}

header .ast-header-account-wrap .ast-header-account-text {
    font-weight: 600;
}



/**
Footer Styles
**/

footer.site-footer {
    background-color: #333;
    padding: 2rem 0;
}

footer.site-footer .footer-column a, footer.site-footer .footer-column p {
    font-size: 0.8rem;
}

footer.site-footer p {
    margin: 0;
}

footer.site-footer .footer-top {
    display: flex;
    justify-content: space-between;
    color: #fff;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

footer.site-footer .footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer.site-footer .footer-column b {
    color: #fff;
    font-size: 1.1rem;
}

footer.site-footer .footer-column a {
    color: #fff;
}


/**
Single Post Styles
**/
.ast-stock-detail {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.ast-stock-detail .stock {
    border: 2px solid #707070;
    padding: 0.5rem;
}

.ast-stock-detail span.stock {
    color: #707070 !important;
    font-weight: bold;
}

.ast-stock-detail .ast-stock-avail{
    display: none;
}


/**
Product Loop 
**/

.astra-shop-thumbnail-wrap {
    flex-basis: 250px;
    max-height: 250px;
    display: flex;
    justify-content: center;
}

.woocommerce-js ul.products li.product .woocommerce-loop-product__link, .woocommerce-page ul.products li.product .woocommerce-loop-product__link a {
    max-height: inherit;
    display: flex;
    justify-content: center;
}

.woocommerce-js ul.products li.product a img {
    object-fit: contain;
    height: 100%;
    width: auto;
    max-height: inherit;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{
    justify-content: space-between;
}

