/* =========================
   SHOP HEADER PRO
========================= */

.site-header {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f6f6f6, #1e293b);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 50px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}



/* =========================
   TOP BAR
========================= */

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between; /* لوگو سمت چپ، برند سمت راست */
    z-index: 2;
}

.header-logo img {
    height: 45px;
    width: 120px;
    display: block;
}

.header-brand {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* =========================
   NAVIGATION / MENU
========================= */

.header-nav {
    display: flex;
    justify-content: flex-start; /* همیشه منوها سمت راست RTL */
    margin-top: auto;
    z-index: 2;
}

.header-nav ul,
.menu-list {
    display: flex;
    gap: 20px; /* فاصله واقعی بین آیتم‌ها */
    list-style: none !important;
    padding: 0;
    margin: 0;     /* مهم: حذف auto یا center */
    align-items: center;
    justify-content: flex-start; /* همیشه سمت راست */
    width: auto;   /* جلوگیری از کشیده شدن به 100% */
}

.header-nav ul li,
.menu-item {
    list-style: none !important;
}

/* ===== LINK STYLE ===== */

.header-nav a,
.menu-link {
    display: flex;
    align-items: center;
    gap: 8px;        /* فاصله آیکون تا متن */
    color: #e2e8f0;
    text-decoration: none;
    font-size: 16px;
    padding: 6px 10px; /* جمع و استاندارد */
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.menu-link .menu-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Hover Effect */
.header-nav a:hover,
.menu-link:hover {
    background: rgba(255,255,255,0.08);
    text-decoration:none;
    color: #fff;
    transform: translateY(-2px);
}

/* Active Item */
.header-nav .active a {
    background: rgba(59,130,246,0.18);
    color: #fff;
}

/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-toggle {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    align-items: center;
    justify-content: center;
}

/* =========================
   TABLET
========================= */

@media (max-width: 992px) {

    .site-header {
        height: auto;
        padding: 20px 25px;
    }

    .header-brand {
        font-size: 24px;
    }

    .header-nav ul {
        gap: 15px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .header-top {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .header-nav {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: #020617;
        border-top: 1px solid rgba(255,255,255,0.08);
        max-height: 0;
        overflow: hidden;
        transition: 0.4s ease;
    }

    .header-nav.active {
        max-height: 500px;
    }

    .header-nav ul,
    .menu-list {
        flex-direction: column;
        padding: 15px;
        gap: 12px; /* فاصله جمع‌تر موبایل */
        align-items: stretch;
        width: 100%; /* برای موبایل منو کامل پهن شود */
    }

    .header-nav a,
    .menu-link {
        width: 100%;
        font-size: 15px;
        padding: 10px;
        border-radius: 10px;
        justify-content: flex-start;
    }

    .menu-link .menu-icon {
        width: 18px;
        height: 18px;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .header-brand {
        font-size: 20px;
    }

    .header-logo img {
        height: 50px;
    }

    .menu-link .menu-icon {
        width: 16px;
        height: 16px;
    }
}
