/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description: Astra Child Theme
 Author:      Your Name
 Author URI:  https://yourwebsite.com
 Template:    astra
 Version:     1.0.0
*/

/* Your custom CSS goes below */

/* ================================
   MAX MEGA MENU – BLACK / GREY THEME
   ================================ */

/* Main menu bar background */
#mega-menu-wrap-primary {
    background: #111;
}

/* Top level menu items */
#mega-menu-wrap-primary .mega-menu > li.mega-menu-item > a.mega-menu-link {
    color: #e5e5e5;
    font-weight: 500;
    padding: 14px 18px;
    transition: all 0.3s ease;
}

/* Hover / Active menu item */
#mega-menu-wrap-primary .mega-menu > li.mega-menu-item > a.mega-menu-link:hover,
#mega-menu-wrap-primary .mega-menu > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link {
    background: #222;
    color: #ffffff;
}

/* Mega dropdown container */
#mega-menu-wrap-primary .mega-sub-menu {
    background: #1a1a1a;
    padding: 30px 35px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* Column heading (parent items) */
#mega-menu-wrap-primary .mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Child menu links */
#mega-menu-wrap-primary .mega-sub-menu li ul li a.mega-menu-link {
    color: #bfbfbf;
    font-size: 14px;
    padding: 6px 0;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Hover effect for child links */
#mega-menu-wrap-primary .mega-sub-menu li ul li a.mega-menu-link:hover {
    color: #ffffff;
    padding-left: 6px;
}

/* Remove default borders */
#mega-menu-wrap-primary .mega-sub-menu li {
    border: none;
}

/* Mobile menu background */
@media (max-width: 992px) {
    #mega-menu-wrap-primary {
        background: #111;
    }

    #mega-menu-wrap-primary .mega-menu > li > a {
        border-bottom: 1px solid #222;
    }
}
/* Mega menu dropdown only */
#mega-menu-wrap-primary .mega-sub-menu {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

#mega-menu-wrap-primary .mega-menu > li.mega-menu-item {
	background: #f0f5fa !important;
	margin: 0px 30px !important;
}

#mega-menu-wrap-primary .mega-menu {
	background: #f0f5fa !important;
} 

/* Footer titles */
.footer-title {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Footer links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #000;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #000;
}

/* ===============================
   HOME – FEATURED PRODUCTS
================================ */

.home-featured-products {
    padding: 40px 0;
}

/* Product grid */
.home-featured-products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Product card */
.home-featured-products ul.products li.product {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.home-featured-products ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* Product image */
.home-featured-products ul.products li.product img {
    max-height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Product title */
.home-featured-products ul.products li.product h2,
.home-featured-products ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    min-height: 45px;
}

/* Price */
.home-featured-products .price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 10px 0;
}

/* Old price */
.home-featured-products .price del {
    color: #888;
    font-weight: 400;
}

/* Add to cart button */
.home-featured-products a.button {
    background: #000;
    color: #fff !important;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 4px;
    display: inline-block;
    transition: 0.3s ease;
}

.home-featured-products a.button:hover {
    background: #d71920; /* red accent */
}

/* Hide default Woo spacing issues */
.home-featured-products .woocommerce ul.products li.product {
    margin: 0 !important;
}
