
/* ===================================
   MENA CHIA - HEADER
=================================== */

/* HEADER */

.site-header {
    position: relative;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid rgba(40, 31, 30, 0.12);
}

.header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* LOGO */

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-image {
    display: block;
    width: 300px;
    max-width: none;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.main-nav > a,
.nav-dropdown > summary {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.main-nav > a:hover,
.nav-dropdown > summary:hover {
    color: var(--dark);
    opacity: 0.7;
}

/* DROPDOWN */

.nav-dropdown {
    position: relative;
    flex-shrink: 0;
}

.nav-dropdown > summary {
    display: flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    list-style-type: none;
}

.nav-dropdown > summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown > summary::marker {
    content: "";
}

/* DROPDOWN ARROW */

.dropdown-arrow {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.nav-dropdown[open] .dropdown-arrow,
.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* DROPDOWN PANEL */

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    padding: 12px 0;
    background: #FFFAF9;
    border: 1px solid rgba(40, 31, 30, 0.06);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(27, 9, 38, 0.08);
    z-index: 200;
}

/* Invisible hover bridge */

.dropdown-menu::before {
    content: "";
    position: absolute;
    height: 12px;
    top: -12px;
    right: 0;
    left: 0;
}

/* DROPDOWN LINKS */

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--text);
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--pink);
    opacity: 1;
}

/* DESKTOP HOVER */

@media (hover: hover) and (min-width: 769px) {

    .nav-dropdown:not([open]) .dropdown-menu {
        display: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* CART */

.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cart-placeholder {
    font-size: 13px;
    color: var(--dark);
    white-space: nowrap;
}

/* TABLET */

@media (max-width: 1000px) {

    .header-inner {
        gap: 18px;
    }

    .main-nav {
        gap: 18px;
    }

    .site-logo {
        width: 170px;
        height: 70px;
    }

    .logo-image {
        width: 235px;
    }
}

/* MOBILE */

@media (max-width: 768px) {

    .header-inner {
        min-height: 75px;
        flex-wrap: wrap;
        gap: 15px;
        padding-block: 15px;
    }

    .site-logo {
        width: 160px;
        height: 65px;
    }

    .logo-image {
        width: 220px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 20px;
    }

    .main-nav > a,
    .nav-dropdown > summary {
        font-size: 13px;
    }

    .dropdown-menu {
        top: 100%;
        min-width: 180px;
    }

    .dropdown-menu a {
        font-size: 13px;
    }
}
