/*
    New Top Header Styles — Optimized & Cleaned
    Structure: Top Bar > Inner (Marquee + Right Section)
*/

:root {
    --th-bg: #f2f2f2;
    --th-text: #000000;
    --th-font: 'Montserrat', sans-serif;
    --th-radius: 2.21px;
    --th-font-size: 14px;
}

/* ============================================
   Top Header Main Bar
   ============================================ */
.new-top-header {
    background: var(--th-bg);
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    z-index: 1001;
    padding: 8px 40px;
    overflow: visible;
}

.top-header-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 20px;
    box-sizing: border-box;
}

/* ============================================
   Marquee Styles
   ============================================ */
.top-header-marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    will-change: transform; width: 100%;
    animation-duration: 14s !important;
}

.marquee-content span {
    font-family: var(--th-font);
    font-size: 13px;
    line-height: normal;
    color: var(--th-text) !important;
    margin-right: 60px;
}

@keyframes scroll-left {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Right Section (Social + Lang + Currency)
   ============================================ */
.top-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--th-bg);
    z-index: 10;
    flex-shrink: 0;
    padding-right: 2px;
}

/* Social Icons */
.top-header-social {
    display: flex;
    align-items: center;
    gap: 11px;
}

.top-header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: var(--th-font-size);
    height: var(--th-font-size);
}

.top-header-social i,
.top-header-social svg {
    color: var(--th-text);
    font-size: var(--th-font-size);
    width: 100%;
    height: 100%;
    display: block;
}

.top-header-social i {
    font-family: 'Font Awesome 5 Brands';
}

/* ============================================
   Switchers (Language & Currency)
   ============================================ */
.top-header-currency,
.top-header-language {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 3px 8px;
    gap: 6px;
    border: 1px solid var(--th-text);
    border-radius: var(--th-radius);
    cursor: pointer;
    background: transparent;
    height: 22px;
    position: relative;
    white-space: nowrap;
}

/* Shared Arrow SVG Styles */
.top-header-currency > svg,
.top-header-language > svg {
    pointer-events: none;
    flex-shrink: 0;
}

.top-header-currency > svg path,
.top-header-language > svg path {
    stroke: var(--th-text);
}

/* ============================================
   Language Switcher (Google) — Clean Overrides
   ============================================ */
#google_language_translator,
.skiptranslate.goog-te-gadget,
#google_language_translator .skiptranslate {
    display: flex !important;
    align-items: center !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.goog-te-gadget {
    font-size: 0 !important;
    color: transparent !important;
}

.goog-te-gadget img,
.goog-logo-link,
.goog-te-gadget span {
    display: none !important;
}

#google_language_translator select.goog-te-combo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: var(--th-font) !important;
    font-size: var(--th-font-size) !important;
    color: var(--th-text) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    font-weight: 400 !important;
    line-height: normal !important;
    display: block !important;
}

/* ============================================
   Currency Switcher (wSelect) — Clean Overrides
   ============================================ */

/* Outer structure */
.top-header-currency #alg_currency_selector,
.top-header-currency .wSelect,
.top-header-currency .wSelect.wSelect-theme-classic,
.top-header-currency .wSelect.wSelect-active {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.top-header-currency .wSelect-arrow {
    display: none !important;
}

/* Selected Label */
.top-header-currency .wSelect-selected {
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    border: none !important;
    font-family: var(--th-font) !important;
    font-size: var(--th-font-size) !important;
    font-weight: 400 !important;
    color: var(--th-text) !important;
    line-height: normal !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
}

/* Dropdown Panel */
.top-header-currency .wSelect-options-holder {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 99999 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10) !important;
    min-width: 120px !important;
    width: auto !important;
    overflow: hidden !important;
}

.top-header-currency .wSelect-options {
    height: auto !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    padding: 4px 0 !important;
}

/* Option Items */
.top-header-currency .wSelect-option {
    padding: 7px 12px !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.top-header-currency .wSelect-option:hover {
    background: #f5f5f5 !important;
}

.top-header-currency .wSelect-option-selected {
    background: #f0f0f0 !important;
}

.top-header-currency .wSelect-option-value {
    font-family: var(--th-font) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--th-text) !important;
    line-height: normal !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    min-height: 20px !important;
    padding-left: 22px !important;
    background-position: left center !important;
    background-size: 16px auto !important;
    background-repeat: no-repeat !important;
}

/* ============================================
   Responsive (Mobile & Tablets)
   ============================================ */

/* Tablets */
@media (max-width: 991px) {
    .top-header-marquee {
        margin-right: 0;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .new-top-header {
        height: auto;
        padding: 8px 10px;
    }

    .top-header-inner {
        flex-direction: column;
        gap: 8px;
    }

    .top-header-marquee {
        height: 24px;
        order: 1;
    }

    .top-header-right {
        position: static;
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 8px;
        order: 2;
    }

    .top-header-social {
        gap: 8px;
    }

    .top-header-language, 
    .top-header-currency {
        padding: 2px 4px;
        font-size: 11px;
        gap: 3px;
    }
}

/* Small Phonse */
@media (max-width: 480px) {
    .marquee-content span{margin-right: 0px;}
    .top-header-right {
        gap: 15px;
    }
    
    .top-header-social a:nth-child(n+4) {
        display: none; /* Hide non-critical icons to save space */
    }

    #google_language_translator select.goog-te-combo {
        max-width: 90px !important;
        font-size: 11px !important;
    }
}