/*
Theme Name: Elessi Theme Child
Theme URI: https://elessi.nasatheme.com
Description: This is a child theme for Elessi Theme
Author: NasaTheme team
Author URI: https://nasatheme.com
Template: elessi-theme
Version: 1.0
*/

/* Fix Product Image Consistency */
.product-img .main-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Enforce square ratio */
    object-fit: cover;   /* Crop fits without distortion */
}

.ga a {
    color: #ffaf11;
}

#nasa-footer .nasa-footer-bottom {
    background-color: #212529;
}

#nasa-footer .nasa-nav-sc-menu.ga-white {
    color: #fff;
}

#nasa-footer .nasa-footer-bottom {
    border-top: 1px solid #353535;
}

/* Social Icons Styles */
.ns-social .follow-icon a i,
.ns-social .follow-icon a svg,
.follow-icon a i, 
.follow-icon a svg {
    color: #fff !important;
    opacity: 1 !important; /* Ensure full visibility */
}

/* Social Icons Hover Styles */
.ns-social .follow-icon a:hover i,
.ns-social .follow-icon a:hover svg,
.follow-icon a:hover i, 
.follow-icon a:hover svg {
    color: #ffaf11 !important;
}

/* WhatsApp Button Global Styles */
.btn-whatsapp-order.button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    background-color: #128C7E !important; /* WhatsApp Green */
    color: #fff !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    text-decoration: none !important;
    border-color: #128C7E !important;
    min-height: 45px !important; /* Ensure reasonable height */
}

.btn-whatsapp-order.button i {
    margin-right: 8px !important; /* Space between icon and text */
    font-size: 1.2em !important;
}

.btn-whatsapp-order.button:hover {
    background-color: #128C7E !important; /* Darker Green */
    border-color: #128C7E !important;
    color: #fff !important;
}

/* Remove bottom margin from cart form as requested */
.product-info .cart {
    margin-bottom: 10px !important;
}

/* FORCE Remove letter spacing from buttons */
body #submit,
body button,
body .button,
body input[type="submit"],
body .single_add_to_cart_button,
body .nasa-buy-now,
body .btn-whatsapp-order {
    letter-spacing: 0 !important;
}

/* Custom Buy Now Button Color */
body .nasa-buy-now {
    background-color: #1ebc50 !important;
    border-color: #1ebc50 !important;
    color: #fff !important;
}

body .nasa-buy-now:hover {
    background-color: #169e42 !important; /* Slightly darker for hover */
    border-color: #169e42 !important;
}

/* Mobile Cart Overrides */
.nasa-in-mobile .mini_cart_mobile_view_hidden.nasa-minicart-footer .btn-mini-cart .woocommerce-mini-cart__buttons a:not(.checkout) {
    display: flex;
}

.nasa-in-mobile .mini_cart_mobile_view_hidden.nasa-minicart-footer .btn-mini-cart .woocommerce-mini-cart__buttons .checkout {
    max-width: 100% !important;
}

/* Custom Navigation Menu Styles */
/* 1. Main Menu Background Color */
.nasa-elements-wrap.nasa-elements-wrap-main-menu.nasa-hide-for-mobile.nasa-elements-wrap-bg {
    background-color: #212529 !important;
	border-top: 0;
	border-bottom: 0;
}

#nasa-menu-vertical-header,
.nasa-menu-vertical-header {
    border-radius: 0;
}

/* 2. Main Menu Anchor Text Color */
.nav-wrapper.main-menu-warpper .header-nav > li > a.nasa-title-menu {
    color: #fff !important;
}

/* 3. Hover and Active Effects (Text and Border) */
.nav-wrapper.main-menu-warpper .header-nav > li > a.nasa-title-menu:hover,
.nav-wrapper.main-menu-warpper .header-nav > li.current-menu-item > a.nasa-title-menu,
.nav-wrapper.main-menu-warpper .header-nav > li.current-menu-ancestor > a.nasa-title-menu,
.nav-wrapper.main-menu-warpper .header-nav > li.active > a.nasa-title-menu {
    color: #ffaf11 !important;
}

/* Specific Root Item Hover Effects (User Requested) */
.nav-wrapper .root-item:hover > a:after,
.nav-wrapper .root-item.current-menu-ancestor > a:after,
.nav-wrapper .root-item.current-menu-item > a:after,
.nav-wrapper.main-menu-warpper .root-item:hover > a:after,
.nav-wrapper.main-menu-warpper .root-item.current-menu-ancestor > a:after,
.nav-wrapper.main-menu-warpper .root-item.current-menu-item > a:after {
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-color: #ffaf11 !important;
}

/* .woocommerce .checkout-group, .woocommerce .order-review, .woocommerce-checkout #payment  {
    border: 8px solid #F8F8F8;
    padding: 10px 20px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
} */

.nasa-product-details-page.nasa-layout-full .product-info.text-center .variations .nasa-attr-ux_wrap {
    display: block;
}

.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper {
    display: none;
}