/* ===== HEADER STYLES (matching original greendeal-ltd.com) ===== */

/* ========== CONTAINER ========== */
.container {
    width: 100%;
    max-width: 1650px;
    position: relative;
    z-index: 1;
    padding: 0 32px;
    margin: 0 auto;
}

/* ========== HEADER DEFAULT (TWO ROWS) ========== */
.header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    padding: 20px 0;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.header-row {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

/* ========== HEADER TOP ROW ========== */
.header-top {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-top__language {
    min-width: 300px;
}

.header-top__button.button-pink {
    width: auto;
    max-width: 300px;
}

.header-top__icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ========== LANGUAGE SWITCHER ========== */
.header-language {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
}

.header-language__icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
}

.header-language__icon img {
    width: 100%;
}

.header-language__list {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.header-language__list a {
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    text-align: center;
    color: #ffffff;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s;
}

.header-language__list a:hover {
    color: #f586aa;
}

.header-language__list a.active {
    color: #ea5183;
    font-weight: 700;
}

.header-language__list a::after {
    content: '/';
    color: #ffffff;
}

.header-language__list a:last-child::after {
    display: none;
}

/* ========== LOGO ========== */
.header-logo {
    width: 110px;
    position: relative;
    display: flex;
}

.header-logo img {
    width: 100%;
}

/* ========== BUTTON PINK ========== */
.button-pink {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    line-height: 100%;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 18px 16px;
    border-radius: 10px;
    background-color: #ea5183;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

.button-pink:hover {
    background-color: #c03664;
}

/* ========== HEADER BOTTOM ROW (NAV) ========== */
.header-bottom {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease-in-out;
}

/* Hidden by default on desktop — shown only in fixed state */
.header-bottom__language.header-language {
    display: none;
}

.header-bottom__button.button-pink {
    display: none;
}

.header-bottom__icons {
    display: none;
    align-items: center;
    gap: 15px;
}

.header-icon-link--logout {
    cursor: pointer;
}

/* ========== NAV MENU ========== */
.nav {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 23px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
    display: flex;
}

.nav-menu li a {
    position: relative;
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    text-align: center;
    color: #ffffff;
    white-space: nowrap;
    padding: 0 4px 2px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.nav-menu li a::after {
    content: '';
    width: 0;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #ea5183;
    transition: all 0.3s ease-in-out;
}

.nav-menu li a:hover {
    color: #ea5183;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu li a.active {
    color: #ea5183;
    font-weight: 700;
}

.nav-menu li a.active::after {
    width: 100%;
}

/* Nav logo (hidden by default, shown in fixed state) */
.nav-menu .nav-menu__logo {
    width: 90px;
    position: relative;
    display: none;
}

.nav-menu__logo img {
    width: 100%;
}

.nav-menu__logo a::after {
    display: none;
}

/* ========== FIXED HEADER (ONE ROW - on scroll) ========== */
.header.fixed .header-bottom {
    max-width: 1800px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: #000000;
    border-radius: 0 0 50px 50px;
    padding: 15px 32px;
}

.header.fixed .nav-menu {
    gap: 20px;
    flex: 1 1 auto;
    justify-content: space-around;
}

.header.fixed .nav-menu__logo {
    display: flex;
}

.header.fixed .header-bottom__language.header-language {
    display: flex;
}

.header.fixed .header-bottom__button.button-pink {
    width: unset;
    max-width: unset;
    display: block;
}

.header.fixed .header-bottom__icons {
    display: flex;
}

/* ========== NAV DROPDOWN ARROW ========== */
.nav-dropdown-arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s;
}

/* ========== SUBMENU DROPDOWN ========== */
.menu-item-has-children {
    position: relative;
}

.submenu-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 4px;
    background: transparent;
    padding: 0;
    min-width: 200px;
    z-index: 1000;
}

.submenu-item {
    display: block;
    padding: 8px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.submenu-item:hover {
    color: rgba(234, 81, 131, 1);
}

/* ========== HAMBURGER BUTTON ========== */
.header-burger {
    width: 38px;
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header-burger span {
    width: 100%;
    height: 4px;
    background-color: #EA5183;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
    display: block;
}

.header-burger span:nth-child(2) {
    align-self: flex-end;
}

.header-burger.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #fff;
}

.header-burger.active span:nth-child(2) {
    display: none;
}

.header-burger.active span:last-child {
    transform: rotate(-45deg) translate(0px, 0);
    background-color: #fff;
}

/* ========== MOBILE MENU BOTTOM ========== */
.mobile-menu-bottom {
    display: none;
}

.mobile-only-language {
    display: none;
}

/* ========== HEADER ICON LINKS (favorites, cart) ========== */
.header-icon-link {
    position: relative;
    display: flex;
    align-items: center;
}

.header-icon-link img {
    width: 24px;
    height: 24px;
}

.header-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: rgba(234, 81, 131, 1);
    color: #fff;
    font-size: 10px;
    font-weight: 300;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== PROFILE DROPDOWN ========== */
.user-profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 25px;
    background: rgba(234, 81, 131, 0.1);
    transition: background 0.3s;
}

.profile-trigger:hover {
    background: rgba(234, 81, 131, 0.2);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(234, 81, 131, 0.3);
}

.profile-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(234, 81, 131, 1);
}

.profile-arrow {
    transition: transform 0.3s;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border-radius: 10px;
    padding: 10px 0;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.profile-dropdown-item:hover {
    background: rgba(234, 81, 131, 0.1);
}

.profile-dropdown-item--primary {
    color: rgba(234, 81, 131, 1);
    font-weight: 600;
}

.profile-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

/* ========== AUTH HEADER (login/register page) ========== */
.header-auth {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 32px;
    z-index: 1000;
}

.header-top-auth {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1650px;
    margin: 0 auto;
}

/* ========== MOBILE AUTH BUTTON ========== */
.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(234, 81, 131, 1);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    width: 100%;
    margin-bottom: 20px;
}

.mobile-auth-btn:hover {
    background: rgba(214, 61, 111, 1);
}

/* ========== RESPONSIVE: 1600px ========== */
@media screen and (max-width: 1600px) {
    .header.fixed .nav-menu {
        gap: 16px;
    }

    .header.fixed .nav-menu li a {
        font-size: 18px;
    }

    .header-language__list a {
        font-size: 18px;
    }

    .header.fixed .header-bottom__button.button-pink {
        font-size: 14px;
    }
}

/* ========== RESPONSIVE: 1400px ========== */
@media screen and (max-width: 1400px) {
    .header.fixed .nav-menu__logo {
        width: 80px;
    }

    .header.fixed .nav-menu {
        gap: 12px;
    }

    .header.fixed .nav-menu li a {
        font-size: 16px;
    }
}

/* ========== RESPONSIVE: 1250px ========== */
@media screen and (max-width: 1250px) {
    .header.fixed .header-bottom__language.header-language {
        display: none;
    }

    .header.fixed .header-bottom__button.button-pink {
        display: none;
    }

    .header-row {
        gap: 32px;
    }

    .nav-menu li a {
        font-size: 18px;
        padding: 2px 0;
    }
}

/* ========== RESPONSIVE: MOBILE 992px ========== */
@media screen and (max-width: 992px) {
    .header {
        position: fixed;
    }

    .header.fixed-mobile {
        background-color: #000000;
        border-radius: 0 0 32px 32px;
    }

    .header-top {
        transition: all 0.3s ease-in-out;
        z-index: 21;
    }

    .header.fixed-mobile .header-top {
        background-color: #000000;
    }

    .header-top__language.header-language {
        display: none;
    }

    .header-top__button.button-pink {
        display: none;
    }

    .header-top__icons {
        display: none;
    }

    .header-burger {
        display: flex;
    }

    .header-bottom {
        width: 100%;
        height: 100vh;
        overflow-y: auto;
        position: fixed;
        top: 0;
        left: 150%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 64px;
        transition: all 0.3s ease-in-out;
        z-index: 20;
        background-color: #000000;
        padding: 160px 60px;
    }

    .header-bottom.active {
        left: 0;
    }

    .nav {
        order: 1;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-menu li a {
        font-size: 20px;
    }

    .header-bottom__language.header-language {
        display: none;
    }

    .header-bottom__icons {
        display: none !important;
    }

    .mobile-only-language {
        display: flex;
        order: 2;
    }

    .mobile-menu-bottom {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        order: 4;
    }

    .header-bottom__button.button-pink {
        display: block;
        order: 3;
    }

    /* Mobile submenu dropdown */
    .submenu-dropdown {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-top: 5px !important;
    }

    .submenu-item {
        padding: 8px 0 !important;
        color: #fff !important;
    }

    .submenu-item:hover {
        color: rgba(234, 81, 131, 1) !important;
    }

    .menu-item-has-children > a {
        min-height: 44px;
        display: flex !important;
        align-items: center !important;
    }
}

/* ========== RESPONSIVE: SMALL MOBILE 660px ========== */
@media screen and (max-width: 660px) {
    .header.fixed-mobile {
        border-radius: 0 0 24px 24px;
        padding: 16px 0;
    }

    .header-logo {
        width: 100px;
        transition: all 0.3s ease-in-out;
    }

    .header.fixed-mobile .header-logo {
        width: 90px;
    }

    .header-bottom {
        padding: 160px 30px;
    }

    .container {
        padding: 0 16px;
    }
}
