/* Header Global Styles */

/* Fix horizontal scroll issue */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    position: relative;
}

/* Prevent specific elements from causing overflow */
* {
    box-sizing: border-box;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Responsive top header */
@media (max-width: 991px) {
    #top-header {
        text-align: center;
        padding: 10px 5px;
    }
    
    .header-links {
        display: inline-block;
        padding: 0;
        margin: 5px 0;
    }
    
    .header-links.pull-left,
    .header-links.pull-right {
        float: none !important;
        width: 100%;
    }
    
    .header-links li {
        display: inline-block;
        margin: 0 5px;
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    #top-header {
        padding: 8px 5px;
    }
    
    .header-links li {
        font-size: 10px;
        margin: 0 3px;
    }
    
    .header-links li a {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    /* Extra small devices - show only icons */
    #top-header {
        padding: 5px;
    }
    
    .header-links li {
        margin: 0 8px;
    }
    
    .header-links li a {
        font-size: 0;
    }
    
    .header-links li a i {
        font-size: 18px;
        margin-right: 0;
    }
    
    .header-links li a i::after {
        content: '';
    }
}

/* Responsive search bar */
#search-bar .header-search form {
    display: flex;
    width: 100%;
}

#search-bar .input {
    flex-grow: 1;
    max-width: 450px;
    width: 100%;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
}

.search-btn {
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
}

@media (max-width: 991px) {
    #search-bar .input {
        max-width: 100%;
    }
}

/* Responsive logo sizing */
.responsive-logo {
    max-width: 250px;
    height: auto;
}

@media (max-width: 991px) {
    .responsive-logo {
        max-width: 180px;
    }
}

@media (max-width: 767px) {
    .responsive-logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .responsive-logo {
        max-width: 120px;
    }
}

/* Cart visibility - hide cart in responsive nav on desktop, hide cart icon in header on mobile */
@media only screen and (min-width: 992px) {
    #responsive-nav .cart-menu-item {
        display: none !important;
    }
}

@media only screen and (max-width: 991px) {
    /* Eltünteti a Kosár ikont és dropdownt mobilon a header-ből */
    .header-ctn .fa-shopping-cart {
        display: none !important;
    }
    
    .header-ctn .dropdown .qty {
        display: none !important;
    }
    
    .header-ctn .dropdown .fa-shopping-cart + span {
        display: none !important;
    }
    
    .header-ctn .cart-dropdown {
        display: none !important;
    }
}

/* Hide cart menu item in main navigation on ALL screen sizes */
.main-nav .cart-menu-item {
    display: none !important;
}

