﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Font', sans-serif;
}

.main-header {
    background-color: #151b2d;
    box-shadow: 0 5px 8px rgba(255, 107, 187, 0.5);
    position: static;
    display: flex;
    justify-content: center;
    margin: 0;
    width: 100%;
    background-image: 
        radial-gradient(circle 5000px at 10% 640px, rgba(255, 107, 187, 0.1) 0%, transparent 20%),
        radial-gradient(circle 5000px at 10% 424px, rgba(46, 60, 255, 0.1) 0%, transparent 25%);
    z-index: 10;
}

.header-container {
    width: 100%;
    max-width: 1600px;
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 60px;
    max-height: 100%;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 470px;
}

.search-box {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border-radius: 200px;
    border: none;
    background-color: #202733;
    color: white;
    outline: none;
    transition: background-color 0.3s;
    font-family: 'Font', sans-serif;
    font-size: 14px;
}

.search-box:hover,
.search-box:focus {
    background-color: #222d45;
}

.search-btn {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: none;
    border: none;
    border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.search-btn img {
    height: 18px;
}

.search-btn:hover img {
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-btn {
    color: white;
    text-decoration: none;
    position: relative;
    padding: 5px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
}

.header-btn:hover {
    opacity: 0.8;
}

.custom-links {
    font-family: 'Font', sans-serif;
}

.language-btn {
    font-family: 'Font', sans-serif;
    font-size: 14px;
    padding: 8px 13px;
    border-radius: 200px;
    background-color: rgba(255, 255, 255, 0.1);
}

.header-btn img {
    height: 24px;
}

.counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff6bbb;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-family: 'Font', sans-serif;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 200px;
    overflow: hidden;
    transition: transform 0.3s;
    display: block;
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    background-color: rgba(90, 92, 94, 0.8);
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 107, 187, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown:hover .profile-dropdown-content {
    display: block;
}

.profile-dropdown-item {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Font', sans-serif;
    font-size: 14px;
    transition: background-color 0.3s;
}

.profile-dropdown-item:hover {
    background-color: #6d6f71;
}

.mobile-menu-overlay,
.mobile-menu,
.mobile-menu-btn {
    display: none;
}

.cart-btn {
    display: flex;
}

@media (max-width: 1224px) {
    .header-container {
        height: 70px;
        padding: 0 15px;
        z-index: 99;
    }
    
    .logo img {
        height: 50px;
    }
    
    .search-container,
    .custom-links,
    .language-btn,
    .wishlist-btn,
    .profile-img {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        background: none;
        border: none;
        padding: 5px;
        cursor: pointer;
    }
    
    .mobile-menu-btn img {
        height: 24px;
        width: 24px;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .cart-btn {
        display: flex !important;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: linear-gradient(to left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
        backdrop-filter: blur(5px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -350px;
        width: 300px;
        height: 100%;
        background-color: rgb(21, 27, 45);
        box-shadow: -2px 0 8px rgba(255, 107, 187, 0.5);
        z-index: 999;
        transition: right 0.3s ease;
        display: flex;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-close-btn {
        position: absolute;
        top: 15px;
        left: -45px;
        width: 40px;
        height: 40px;
        background: rgba(30, 38, 61, 1);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1000;
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    }

    .mobile-close-btn img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }
    
    .mobile-menu-container {
        width: 100%;
        background-color: #1e263d;
        border-radius: 30px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-search-container {
        position: relative;
    }
    
    .mobile-search-box {
        width: 100%;
        padding: 12px 20px 12px 50px;
        border-radius: 200px;
        border: none;
        background-color: #2a344a;
        color: white;
        outline: none;
        font-family: 'Font', sans-serif;
        font-size: 14px;
    }
    
    .mobile-search-btn {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 50px;
        background: none;
        border: none;
        border-top-left-radius: 200px;
        border-bottom-left-radius: 200px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-search-btn img {
        height: 18px;
    }

    .menu-divider {
        height: 1px;
        background-color: #2a344a;
        margin: 0;
    }
    
    .menu-items {
        display: flex;
        flex-direction: column;
        padding: 15px;
        overflow-y: auto;
        flex-grow: 1;
    }
    
    .menu-item {
        display: flex;
        align-items: center;
        padding: 12px 0;
        color: white;
        text-decoration: none;
        border-radius: 8px;
        transition: background-color 0.3s;
        position: relative;
    }
    
    .menu-item:hover {
        background-color: #162b53;
    }
    
    .menu-icon {
        width: 24px;
        height: 24px;
        margin-left: 10px;
    }
    
    .menu-counter {
        background-color: #ff6bbb;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: auto;
    }

    .profile-dropdown-content {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .cart-btn img,
    .mobile-menu-btn img {
        height: 22px;
        width: 22px;
    }
    
    .counter {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}