﻿
/* =====================================
   هدر اصلی سایت رازان
===================================== */

#myHeader {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    transition: all .35s ease;
    z-index: 9999;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* لوگو */
#myHeader img {
    height: 75px;
    width: auto;
    transition: all .35s ease;
}

/* =====================================
   منوی اصلی
===================================== */

#myHeader .mcontainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    opacity: 1;
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
}

/* لینک‌های منو */
.mcontainer > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: auto;
    min-width: max-content;
    height: 45px;
    padding: 10px 13px;
    color: #580c20;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.3px;
    text-decoration: none;
    float: none;
    transition: all .3s ease;
}

/* هاور لینک‌ها */
.mcontainer > a:hover {
    color: #a77b83;
}

/* =====================================
   منوی دسته‌بندی
===================================== */

.dropdown {
    position: relative;
    float: none;
    overflow: visible;
    font-family: 'Vazirmatn', sans-serif;
}

.dropdown .dropbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: auto;
    min-width: max-content;
    height: 45px;
    padding: 10px 13px;
    color: #580c20;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.3px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all .3s ease;
}

.dropdown:hover .dropbtn {
    color: #a77b83;
}

.dropbtn i {
    margin-right: 7px;
    font-size: 10px;
}

/* زیرمنوی دسته‌بندی */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 175px;
    background: #fff;
    border: 1px solid #f1e8ea;
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,.07);
    z-index: 10000;
    text-align: right;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #580c20;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: #faf6f7;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* =====================================
   حالت هدر هنگام اسکرول
===================================== */

#myHeader.scrolled {
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(255,255,255,.97);
    box-shadow: 0 3px 15px rgba(0,0,0,.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 0;
}

#myHeader.scrolled img {
    width: auto;
    height: 60px;
}

/* =====================================
   نمایش موبایل و تبلت
===================================== */

@media only screen and (max-width: 1200px) {
    #myHeader .mcontainer {
        display: none !important;
    }
}
