﻿/* ==============================================
   custom-header.css — تولیدی پوشاک امید
   ============================================== */

/* ===== HEADER ===== */
.site-header {
    width: 100%;
    direction: rtl;
}

.top-bar {
    background-color: #2c2c2c;
    color: #fff;
    font-size: 10px;
    padding: 4px 0;
}

.top-bar-text {
    opacity: 0.9;
    padding:0px 15px;
}

.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.header-container {
    width: 98%;
    margin: auto;
    padding: 0 12px;
}

.logo {
    flex-shrink: 0;
    padding-right: 4px;
}

    .logo img {
        max-height: 36px;
    }

@media (min-width: 768px) {
    .logo img {
        max-height: 44px;
    }

    .top-bar {
        font-size: 15px;
    }
}


/* ===== NAVIGATION — دسکتاپ ===== */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .nav-list li {
        position: relative;
        white-space: nowrap;
    }

    .nav-list a {
        position: relative;
        display: inline-block;
        padding: 10px 12px;
        text-decoration: none;
        color: #222;
        font-size: 17px;
        font-weight: 540;
        transition: color 0.25s ease;
    }

        .nav-list a::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 10px;
            left: 10px;
            height: 2px;
            background: #c0392b;
            transform: scaleX(0);
            transition: transform 0.25s ease;
        }

        .nav-list a:hover {
            color: #c0392b;
        }

            .nav-list a:hover::after,
            .nav-list .active a::after {
                transform: scaleX(1);
            }

    .nav-list .active a {
        color: #c0392b;
    }

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}


/* ===== NAVIGATION — موبایل ===== */
.mobile-nav-bar {
    display: flex;
    background: transparent;
    border-bottom: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .mobile-nav-bar::-webkit-scrollbar {
        display: none;
    }

    .mobile-nav-bar .nav-list {
        flex-wrap: nowrap;
        width: 100%;
        justify-content: space-around;
    }

        .mobile-nav-bar .nav-list a {
            font-size: 11px;
            padding: 10px 6px;
            white-space: nowrap;
        }

@media (min-width: 768px) {
    .mobile-nav-bar {
        display: none;
    }
}


/* ===== CONTACT ===== */
.header-contact .phone-number {
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

    .header-contact .phone-number:hover {
        color: #a93226;
    }

@media (min-width: 768px) {
    .header-contact .phone-number {
        font-size: 17px;
    }
}
