﻿/* Header styles */
.header-container {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: solid 1px #B5B5B5;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo-img {
    height: 112px;
    transition: all 0.3s ease;
}

/* Top utility bar */
.utility-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-links .divider,
.scrolled-search .divider {
    width: 1px;
    height: 30px;
    background-color: var(--secondary);
}


.header-links {
    gap: 15px;
}


.header-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.header-links span {
    line-height: 0;
    white-space: nowrap;
    direction: ltr;
}

.header-links span.link-content {
    font-size: 17px;
}

.whatsapp-link {
    font-weight: 500;
    font-size: 18px;
    color: var(--dark);
    line-height: 0px;
}

.whatsapp-link i {
    color: #1FC16B;
}

.language-link {
    padding: 12px;
    border-radius: 4px;
    border: solid 1px var(--secondary);
    color: var(--dark);
    max-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.flag-icon {
    width: 20px;
    margin-left: 5px;
}

.icon-link {
    color: var(--secondary);
    font-size: 20px;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--trans-speed);
}

.icon-link:hover {
    color: var(--secondary-hover);
}

.badge-circle {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: var(--secondary);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main navigation */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.scrolled .main-navigation {
    padding: 0px;
}

.nav-section {
    display: flex;
    align-items: center;
}

.categories-btn {
    background: none;
    color: var(--secondary);
    border: solid 1px var(--secondary);
    font-size: 18px;
    font-weight: 500;
    padding: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-height: 45px;
    transition: var(--trans-speed);
}

.categories-btn:hover,
.show-categories .categories-btn {
    background-color: var(--secondary);
    color: #fff;
}

.search-box {
    position: relative;
    /* overflow: hidden; */
}

.search-input {
    border: 1px solid var(--secondary);
    border-radius: 8px;
    padding: 12px;
    padding-left: 35px;
    max-width: 280px;
    font-size: 14px;
    max-height: 45px;
}

.search-btn {
    position: absolute;
    left: 0px;
    top: 0px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background-color: var(--secondary);
    color: #fff;
    height: 100%;
    width: 40px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 8px 10px;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    letter-spacing: 0px;
    color: var(--dark);
    transition: color 0.3s;
}

.nav-link:hover,
.dropdown-open .nav-link {
    color: var(--primary);
}

.has-dropdown .nav-link.dropdown-toggle::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    border: none;
    vertical-align: middle;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: none;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    padding: 10px 0;
}

.show-categories .dropdown-menu,
.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
    text-align: right;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--primary);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
    height: 100%;
}


.scrolled-search {
    gap: 15px;
    display: none;
}

.header-container.scrolled .scrolled-search {
    display: flex;
    align-items: center;
}

.scrolled-search .search-input {
    max-height: 35px;
}

.scrolled-search .search-btn {
    font-size: 13px;
}

.scrolled-search .language-link {
    max-height: 35px;
}

@media (max-width:992px) {
    .scrolled-search {
        display: none !important;
    }
}



/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 2000;
    overflow-y: auto;
    transition: left 0.3s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-logo {
    height: 40px;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #777;
    cursor: pointer;
}

.sidebar-nav {
    margin-bottom: 20px;
}

.sidebar-link {
    display: block;
    padding: 12px 0;
    color: var(--dark);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.sidebar-submenu .sidebar-link {
    font-size: 14px;
}

.sidebar-link:hover {
    color: var(--primary);
}

.sidebar-toggle {
    position: absolute;
    left: 0;
    top: 12px;
    background: none;
    border: none;
    color: #777;
    transition: transform 0.3s;
}

.sidebar-submenu {
    padding-right: 15px;
    display: none;
}

.sidebar-submenu.active {
    display: block;
}

.sidebar-util {
    padding-top: 20px;
}

.sidebar-util-item {
    margin-bottom: 15px;
}

.sidebar .icon-link {
    padding: 10px;
}

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

/* Header on scroll */
.header-container.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container.scrolled .utility-bar {
    display: none;
}

.header-container.scrolled .logo-img {
    height: 45px;
}

/* Responsive styles */

@media (max-width: 1440px) {
    .link-content {
        display: none;
    }
}


@media (max-width: 1200px) {
    .logo-img {
        height: 85px;
    }
}


@media (max-width: 991px) {
    .logo-img {
        height: 45px;
    }

    .utility-bar {
        display: none;
    }

    .search-box,
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-navigation {
        padding: 10px 0;
        justify-content: flex-end;
    }
}

@media (max-width: 520px) {

    .header-links.mob .whatsapp-link,
    .header-links.mob #wishlistdiv {
        display: none;
    }

    .header-links span {
        font-size: 11px;
    }

    .language-link {
        padding: 8px;
    }
}

@media (max-width:400px) {

    .icon-link {
        font-size: 18px;
    }

    .mobile-toggle {
        font-size: 24px;
    }

    .logo-img {
        height: 36px;
    }

}