/*--- HEADER ---*/

* {
    box-sizing: border-box;
}

header {
    background-color: white;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 99999;
    /* border: 1px solid red; */
    width: 100%;
    box-sizing: border-box;
    /* max-width: 100%; */
}

.mainHeader {
    max-width: 1720px;
    width: 100%;
    height: 100px;
    margin: 0 auto;
    display: flex;
    justify-content: end;
    align-items: center;
    font-family: susee, arial, sans-serif;
    box-shadow: 0 2px 5px 0px rgba(0, 0, 0, 0.1);
    border-radius: 0px 0px 10px 10px;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0 2rem;
    transition: all 0.3s ease;
    /* border: 1px solid red; */
    position: relative;
}

.mainHeader>a {
    height: 100%;
    /* border: 1px solid red; */
    position: absolute;
    left: 1rem;
}

.mainHeader>a .logo {
    height: 100%;
}

/*--- MAIN NAV COMMON ---*/
.mainHeader nav {
    /* max-width: calc(80% - 100px); */
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    /* border: 1px solid black; */
    /* position: relative; */
}

.MainNav {
    width: 100%;
    display: flex;
    align-items: center;
    /* gap: 10px; */
    margin: 0;
    padding: 0;
    list-style: none;
    /* border: 1px solid red; */
}

.nav-link {
    color: #333;
    padding: 1rem;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
    display: block;
    font-size: 18px;
    /* border: 1px solid red; */
}

.nav-link:hover {
    color: #e72025;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e72025;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Search and Icons Container */
.search-container {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    /* overflow: hidden; */
    /* border: 1px solid green; */
}

.search-form {
    position: relative;
    width: 350px;
    transition: width 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: 2px solid #f0f0f0;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f8f8;
    font-family: susee, arial, sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #e72025;
    background: #fff;
    box-shadow: 0 0 15px rgba(231, 32, 37, 0.1);
}

.search-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 5px 8px;
    /* border: 1px solid red; */
}

.search-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.search-button:hover .search-icon {
    transform: scale(1.1);
}

/* Cart and Wishlist Styles */
.cart-link,
.wishlist-link {
    position: relative;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    /* border: 1px solid red; */
}

.cart-link {
    margin-right: 1.5rem;
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e72025;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.cart-link:hover .cart-count,
.wishlist-link:hover .wishlist-count {
    transform: scale(1.1);
}

.cart-link:hover,
.wishlist-link:hover {
    color: #e72025;
}

/* User Dropdown Styles */
.user-status {
    position: relative;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
    height: 80px;
    display: flex;
}

.user-menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-menu-toggle:hover {
    color: #e72025;
}

.user-menu-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-dropdown-menu {
    position: absolute;
    top: 80%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f8f8;
    color: #e72025;
    padding-left: 1.75rem;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Login/Logout Buttons */
.login-btn,
.logout-btn {
    color: white !important;
    padding: 8px 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.login-btn {
    background: #f44336;
}

.login-btn:hover {
    background: rgb(205, 46, 35);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(43, 108, 212, 0.2);
}

.logout-btn {
    background: #e72025;
    border: none;
    cursor: pointer;
}

.logout-btn:hover {
    background: #c41a1e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(196, 26, 30, 0.2);
}

/*--- MOBILE MENU BUTTON ---*/
.navMobile {
    display: none;
    position: absolute;
    right: 1rem;
    z-index: 1;
    /* right: 0px; */
    /* top: 50%; */
    /* transform: translateY(-50%); */
    /* padding-right: 5%; */
    /* border: 1px solid red; */
}

.navMobile a {
    display: block;
    height: 30px;
    width: 30px;
    /* border: 1px solid red; */
    position: relative;
}

.hamburger {
    /* border:1px solid red; */
    width: 30px;
    height: 2px;
    background: #333;
    position: absolute;
    top: 50%;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 3px;
    /* border:1px solid red; */
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.hamburger.active {
    background: transparent;
}

.hamburger.active::before {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Styles */
@media (max-width: 1024px) {
    .mainHeader {
        /* padding: 0 6rem 0 1.5rem; */
        height: 70px;
    }

    .mainHeader {
        justify-content: center;
    }

    .MainNav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #111;
        /* color: #fff; */
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .MainNav.active {
        right: 0;
    }

    .MainNav li {
        width: 100%;
        border-bottom: 1px solid #eeeeee62;
    }

    .MainNav li:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
        color: #fff;
        width: 100%;
    }

    .search-container {
        width: 90%;
        /* gap:2rem; */
    }

    .search-form {
        width: 100%;
        max-width: 100%;
        order: 1;
        /* border: 1px solid red; */
    }

    .navMobile {
        display: block;
        cursor: pointer;
    }

    .user-status {
        margin-left: 0;
        order: 2;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }

    .user-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .user-menu-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 0;
        color: #fff;
    }

    .user-dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    button:focus {
        outline: none;
        border: none;
    }

    .user-dropdown-menu.active {
        display: block;
    }

    .dropdown-item {
        padding: 0.75rem 0;
        border-top: 1px solid #eee;
        color: #fff;
    }

    .dropdown-item:hover {
        padding-left: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 1320px) {
    .mainHeader nav {
        width: 80%;
    }
}

@media (max-width: 780px) {
    .mainHeader>a {
        left: 0;
    }
}



@media (max-width: 768px) {
    .mainHeader {
        padding: 0 1rem;
    }

    .search-form {
        width: 100%;
        max-width: 300px;
    }

    .nav-link {
        padding: 0.8rem 1rem;
    }

    .search-container {
        gap: 0.5rem;
    }

    .cart-link,
    .wishlist-link {
        font-size: 1.2rem;
        margin-right: 1rem;
    }

    .cart-count,
    .wishlist-count {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        right: -10px;
    }
}

@media (max-width: 630px) {
    .search-form {
        max-width: 200px;
    }
}

@media (max-width: 480px) {

    .mainHeader nav {
        width: 70%;
    }

    .mainHeader {
        /* max-width: 480px; */
    }

    .search-container {
        width: 100%;
    }

    .mainHeader nav {
        /* width: 60%; */
    }

    .logo {
        max-width: 120px;
    }

    .search-input {
        padding: 0.7rem 1.2rem;
    }

    .login-btn,
    .logout-btn {
        width: 100%;
        text-align: center;
    }

    .search-form {
        max-width: 180px;
    }

    .search-input {
        padding: 0.6rem 0.5rem;
        font-size: 0.9rem;
    }

    .search-button {
        right: 8px;
    }

    .cart-link,
    .wishlist-link {
        margin-right: 0.5rem;
    }

    .search-container {
        gap: 0.25rem;
    }
}

/*animation stopper*/
.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}