/* translate-dropdown.css */
/* Completely hide Google's default interface */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Hide all Google Translate elements except our custom dropdown */
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-menu-value,
.goog-te-menu-value span {
    display: none !important;
}

/* Show and style ONLY the language dropdown */
.goog-te-combo {
    display: block !important;
    background: #f5f5f5 !important;
    border: 2px solid #ddd !important;
    border-radius: 20px !important;
    color: #333 !important;
    padding: 8px 32px 8px 16px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    min-width: 70px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.goog-te-combo:hover {
    background: #c52c2c !important;
    border-color: #c52c2c !important;
    color: white !important;
}

/* Style dropdown options */
.goog-te-combo option {
    background: white !important;
    color: #333 !important;
    padding: 10px !important;
    font-weight: 500 !important;
}

/* Language selector container */
#google_translate_element {
    display: inline-block !important;
    margin-left: 15px !important;
    vertical-align: middle !important;
    height: 40px !important;
}

/* Ensure navbar items don't move */
.nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
}

.nav-menu {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    justify-content: flex-end !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #google_translate_element {
        position: absolute !important;
        right: 110px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        height: 36px !important;
    }
    
    .goog-te-combo {
        padding: 6px 28px 6px 12px !important;
        font-size: 0.8rem !important;
        min-width: 60px !important;
        background-position: right 10px center !important;
        background-size: 14px !important;
    }
    
    /* Adjust cart icon position */
    .cart-icon-menu {
        position: absolute !important;
        right: 60px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    /* Adjust hamburger position */
    .hamburger {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    /* Allow mobile menu to be hidden - don't override display */
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    #google_translate_element {
        right: 95px !important;
    }
    
    .cart-icon-menu {
        right: 50px !important;
    }
    
    .hamburger {
        right: 10px !important;
    }
}

/* Hide Google's powered by text */
.goog-logo-link,
.goog-te-gadget span:nth-of-type(2) {
    display: none !important;
}

/* Fix any layout issues */
.goog-te-gadget img {
    display: none !important;
}