/*==================================================
                NAVBAR
==================================================*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;           /* ← سفید */
    border-bottom: 1px solid #e5e5e5;
    z-index: 9999;
    padding: 0;
    height: auto;
    transition: box-shadow 0.3s ease;
}

.navbar.sticky {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/*==================================================
                ردیف اول (لوگو + EN)
==================================================*/
.navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.logo img {
    display: block;
    height: 100px;                /* ← کاهش یافت از 80px */
    width: auto;
    object-fit: contain;
}

.lang-btn {
    font-size: 13px;
    font-weight: 600;
}

.lang-btn a {
    color: #333;
    border: 1px solid #ccc;
    padding: 5px 14px;
    border-radius: 6px;
    transition: all 0.3s;
    text-decoration: none;
}

.lang-btn a:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/*==================================================
                ردیف دوم (منو + جستجو)
==================================================*/
.navbar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 20px;
    flex-wrap: nowrap;
}

/*==================================================
                منو
==================================================*/
.menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;                 /* ← تیره (برای پس‌زمینه سفید) */
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
    padding: 8px 0;
}

.menu > li > a:hover {
    color: var(--gold);
}

.menu > li > a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: 0.3s;
}

.menu > li > a:hover::after {
    width: 100%;
}

/*==================================================
                زیرمنو (دسکتاپ)
==================================================*/
.submenu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    background: #ffffff;          /* ← سفید */
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
    border: 1px solid #eee;
}

.dropdown:hover > .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu li {
    position: relative;
    margin-bottom: 4px;
    list-style: none;
}

.submenu li:last-child {
    margin-bottom: 0;
}

.submenu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    color: #333;                 /* ← تیره */
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s;
    font-size: 14px;
}

.submenu a:hover {
    background: rgba(214, 177, 95, 0.1);
    color: var(--gold);
}

.submenu .dropdown {
    position: relative;
}

.submenu .dropdown > .submenu {
    top: 0;
    right: 100%;
    margin-right: 10px;
}

.submenu-arrow {
    font-size: 11px;
    color: #999;
}

/*==================================================
                باکس جستجو (دسکتاپ)
==================================================*/
.search-box {
    position: relative;
    width: 260px;
    flex: 0 0 260px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 44px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f8f8f8;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(214, 177, 95, 0.1);
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    color: var(--gold);
}

/* ===== دکمه همبرگری (فقط موبایل) ===== */
.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 22px;
    color: #333;
    background: none;
    border: none;
}

/* ===== چرخش فلش در دسکتاپ ===== */
@media (min-width: 993px) {
    .dropdown:hover > a .fa-angle-down {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .dropdown:hover > a .submenu-arrow {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    .submenu .dropdown:hover > a .submenu-arrow {
        transform: rotate(90deg);
    }
}