/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */



/* Keep the main dropdown styling */
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu {
    background: rgba(0, 0, 0, 0.8) !important;
    min-width: 230px !important;
    padding: 15px 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    z-index: 9999;
}

/* Position second-level and deeper dropdowns to the right */
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu ul.sub-menu {
    margin-top: 0 !important;
    margin-left: 0 !important;
    top: 0 !important;
    left: 100% !important;
}

/* Ensure parent items provide a positioning reference */
.elementor-nav-menu--main .elementor-nav-menu ul.sub-menu li.menu-item-has-children {
    position: relative;
}




/* Elementor Loop - Out of stock button */
.elementor .out-of-stock {
    display: inline-block !important;
    background: #ff0000 !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    text-align: center !important;
    text-decoration: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}


/* Elementor WooCommerce Loop Add to Cart */
.elementor .add_to_cart_button,
.elementor a.button.add_to_cart_button,
.elementor .ajax_add_to_cart {
    display: inline-block !important;
    background: #ffff00 !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* Hover effect */
.elementor .add_to_cart_button:hover,
.elementor a.button.add_to_cart_button:hover,
.elementor .ajax_add_to_cart:hover {
    background: #eeee00 !important;
    color: #000000 !important;
}


.ld-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ld-brand-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #d0d0d0;
    background: #fff;
    text-decoration: none !important;
}

.ld-brand-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    transition: transform 0.3s ease;
}

.ld-brand-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ld-brand-name {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.ld-brand-card:hover .ld-brand-overlay,
.ld-brand-card:focus-visible .ld-brand-overlay {
    opacity: 1;
}

.ld-brand-card:hover .ld-brand-image {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .ld-brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ld-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ld-brand-name {
        font-size: 15px;
    }

    .ld-brand-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.45);
    }
}



.stock.in-stock {
  display: none;
}