/* 
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 */
/* Container styling for the links */
.custom-header-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333; /* Change to your header text color */
    text-decoration: none;
    font-weight: 500;
    font-family: inherit;
    transition: color 0.3s ease;
}

.custom-header-icon:hover {
    color: #007cba; /* Change to your brand hover color */
}

/* Cart Specific Styling */
.custom-cart-link {
    position: relative;
}

/* The Cart Bubble */
.custom-cart-count {
    position: absolute;
    top: -8px;
    left: 12px;
    background-color: #e2401c; /* Notification Red */
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    height: 18px;
    min-width: 18px;
    line-height: 18px;
    border-radius: 50%;
    text-align: center;
    padding: 0 4px;
}

/* Hide the text on smaller screens for a cleaner mobile header */
@media (max-width: 768px) {
    .custom-header-icon .icon-text {
        display: none;
    }
}


/* 1. Force the container to handle absolute positioning correctly */
.custom-account-dropdown-container {
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 15px !important; /* Invisible hover bridge */
    margin-bottom: -15px !important;
    vertical-align: middle !important;
}

/* 2. Style the main Account Text/Icon Link */
.custom-account-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
}

/* 3. Aggressive Dropdown Reset (Kills theme styles & bullets) */
ul.custom-account-dropdown {
    display: none !important; /* Completely hides it by default */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: #ffffff !important;
    min-width: 160px !important;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15) !important;
    border-radius: 4px !important;
    border: 1px solid #e5e5e5 !important;
    
    /* Hard core bullet removal tricks */
    list-style: none !important;
    list-style-type: none !important; 
    text-indent: 0 !important;
    
    padding: 6px 0 !important;
    margin: 0 !important;
    z-index: 99999 !important;
}

/* 4. Reset individual list elements inside dropdown */
ul.custom-account-dropdown li {
    list-style: none !important;
    list-style-type: none !important;
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* 5. Dropdown Text Links */
ul.custom-account-dropdown li a {
    display: block !important;
    padding: 10px 16px !important;
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    transition: background-color 0.2s ease !important;
}

/* 6. Hover States */
.custom-account-dropdown-container:hover ul.custom-account-dropdown {
    display: block !important; /* Forces it to show up on hover */
}

ul.custom-account-dropdown li a:hover {
    background-color: #f5f5f5 !important;
    color: #b82d62 !important; /* Matches your site's custom theme color accent */
}

/* 7. Ensure mobile security (turns off dropdown so mobile taps just click through to my-account) */
@media (max-width: 768px) {
    .custom-account-dropdown-container:hover ul.custom-account-dropdown {
        display: none !important;
    }
}