.icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: all 0.2s;
}





/* موبایل */
@media (max-width: 576px) {

    .menu-toggler .icon-img {
        width: 30px;
        height: 30px;
    }
}

/* ==================== نوار تاریخ ==================== */
.date-strip {
    background: #0f2f1f;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.date-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    font-weight: 500;
}
.date-strip .date-text { font-weight: 700; }
.date-strip .date-greeting {
    color: #F7CB2D;
    font-weight: 600;
}

/* ==================== هدر ==================== */
header {
    width: 100%;
    padding: 0;
    background: #163E2C;
    position: relative;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

/* لوگو */
.header-logo { flex-shrink: 0; }
.header-logo img {
    height: 65px;
    margin-top: 15px;
    width: auto;
}

/* جستجو دسکتاپ */
.header-search-desktop {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}
.header-search-desktop .input-group {
    width: 30rem !important;
    text-align: center;
    margin: 0 auto;
}
.header-search-desktop .search-txt {
    padding: 10px 15px;
    font-size: 13px;
    width: 100%;
    border: none;
    outline: none;
}
.header-search-desktop .search-btn {
    background: transparent;
    position: absolute;
    top: 0;
    left: 10px;
    border: none;
    z-index: 10;
}
.header-search-desktop .search-btn i {
    color: #333;
    font-size: 22px;
}

/* آیکون‌های کاربری */
.header-icons {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #cead2a;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
    padding-top: 4px;
}
.icon-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #F7CB2D;
}

/* بج سبد خرید */
.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    background: #F7CB2D;
    color: #163E2C;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(247,203,45,0.3);
    animation: cartPop 0.4s ease;
}

@keyframes cartPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* بج علاقه‌مندی */
.wishlist-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(255,71,87,0.3);
}

/* دکمه ورود */
.auth-btn-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    background: linear-gradient(135deg, #cead2a 0%, #e6b800 100%);
    padding: 8px 16px;
    border-radius: 30px;
    color: #0B1C48;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.auth-btn-desktop:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(247,203,45,0.3);
    color: #0B1C48;
}
.auth-btn-desktop i {
    color: #0B1C48;
    font-size: 1rem;
}

/* همبرگر منو */
.menu-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
    padding-top: 4px;
}
.menu-toggler:hover {
    background: rgba(255,255,255,0.1);
}

/* ==================== منوی دسکتاپ ==================== */
.top-menu-menu ul {
    display: flex;
    flex-direction: row;
}
.top-menu-menu ul li { margin-left: 20px; }
.top-menu-menu>ul>li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}
.top-menu-menu ul>li>a {
    font-size: 13px;
    color: #fff;
    transition: 0.2s all ease-in-out;
}
.top-menu-menu ul li a i {
    margin-right: 4px;
    font-size: 18px;
    vertical-align: middle;
    transition: 0.3s all ease-in;
}
.top-menu-menu ul>li>a:hover { color: #cead2a; }

.top-menu-menu ul>li>ul {
    position: absolute;
    top: 98%;
    right: 0;
    left: 0;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    height: 400px;
    padding: 20px 50px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s all ease-in-out;
}
.back-menu {
    background-position: bottom left !important;
    background-size: 300px !important;
}
.top-menu-menu ul>li>ul>li { display: inline; margin: 0 50px 7px; }
.top-menu-menu ul>li>ul>li>a {
    color: #6c757d;
    display: block;
    transition: 0.3s all ease;
}
.top-menu-menu ul>li>ul>li>a.title {
    color: #333;
    font-weight: bold;
    position: relative;
}
.top-menu-menu ul>li>ul>li>a.title::before {
    content: '';
    position: absolute;
    right: -10px;
    width: 2.5px;
    height: 100%;
    background: #F7CB2D;
}
.top-menu-menu ul>li>ul>li>a:hover {
    color: #eaaf00;
    transform: translateX(-5px);
}

/* main menu */
.top-menu-menu ul.main-menu {
    display: none;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    height: auto;
    min-width: 200px;
    position: absolute;
    top: 98%;
    left: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    transition: 0.4s all ease-in-out;
    border-radius: 10px;
}
.top-menu-menu ul.main-menu.active { display: flex; }
.main-menu-head { color: #fff !important; }
.top-menu-menu ul.main-menu li {
    width: 200px;
    margin: 0;
    padding: 15px 0;
    border-radius: 10px;
}
.top-menu-menu ul.main-menu li a { display: block; padding: 0 10px; }
.top-menu-menu ul.main-menu li:hover { background: #f3f3f3; }
.top-menu-menu li:hover ul.main-menu {
    opacity: 1;
    visibility: visible;
}
.top-menu-menu ul.main-menu>li>ul.main-menu-sub {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    height: 100%;
    min-width: 200px;
    background: #ffffff;
    position: absolute;
    top: 0;
    right: 200px;
    opacity: 0;
    visibility: hidden;
    padding: 10px;
    transition: 0.4s all ease-in-out;
    border-radius: 10px;
}
.main-menu-sub-active {
    opacity: 1 !important;
    visibility: visible !important;
}
.main-menu-sub-active-li {
    background: #ebbd1873;
    box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
}
.main-menu-sub-active-li>a { color: #333 !important; }

/* level one/two */
.top-menu-menu ul.level-one {
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    height: auto;
    min-width: 200px;
    position: absolute;
    top: 98%;
    left: auto;
    right: auto;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    transition: 0.4s all ease-in-out;
    border-radius: 10px;
}
.top-menu-menu ul.level-one li { width: 100%; margin: 0; padding: 15px 0; border-radius: 10px; }
.top-menu-menu ul.level-one li a { display: block; padding: 0 10px; }
.top-menu-menu ul.level-one li:hover { background: #ebbd1873; }
.top-menu-menu ul.level-one li:hover a { color: #333; }
.top-menu-menu ul.level-one>li>ul.level-two {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    height: auto;
    min-width: 200px;
    background: #f7f7f7;
    position: absolute;
    top: 0;
    right: 100%;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    transition: 0.4s all ease-in-out;
    border-radius: 10px;
}
.top-menu-menu li:hover ul.level-one {
    opacity: 1;
    visibility: visible;
}
.top-menu-menu li ul li:hover ul.level-two {
    opacity: 1;
    visibility: visible;
}

/* ==================== منوی موبایل ==================== */
.rm-overlay {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
    z-index: 8888;
    transition: .3s all ease-in-out;
}
.rm-overlay.open {
    opacity: 1;
    visibility: visible;
}
.rm-items {
    overflow-y: scroll;
    padding: 20px 5px;
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    width: 0;
    background: #fff;
    z-index: 99999;
    transition: .3s;
}
.rm-items.open {
    right: 0;
    width: 300px;
}
.rm-item-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}
.rm-item-img { text-align: center; margin-bottom: 10px; }
.rm-item-img img { height: 50px; }
.rm-item-menu ul {
    height: auto;
    width: 100%;
    background: #fff;
    transition: all .5s ease;
}
.rm-item-menu li {
    padding: 10px 0;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0f0f0;
}
.rm-item-menu li a {
    display: inline-block;
    font-size: 14px;
    padding: 0 10px;
    color: #333;
}
.showSubMenu { cursor: pointer; float: left; margin-left: auto; }
.h-0 { display: none !important; height: 0 !important; }
ul.show { display: flex !important; height: auto !important; }
.bg-ul-f7 { background: #f7f7f7 !important; }

/* ==================== نوار پایین موبایل ==================== */
.bottom-nav-mobile {
    background: #fff;
    border-top: 1px solid #e2e6e3;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 1050;
}
.bottom-nav-mobile .nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}
.bottom-nav-mobile .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    color: #cead2a;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
}
.bottom-nav-mobile .nav-link.active,
.bottom-nav-mobile .nav-link:hover {
    color: #163E2C;
}
.bottom-nav-mobile .nav-link i { font-size: 1.2rem; }

/* ==================== ریسپانسیو ==================== */
@media (max-width: 991px) {
    .header-logo img { height: 45px; margin-top: 10px }
    .icon-btn { width: 34px; height: 34px; font-size: 1.05rem; }
    .auth-btn-desktop { padding: 6px 12px; font-size: 0.75rem; }
}
@media (max-width: 576px) {
    .header-logo img { height: 45px; margin-top: 10px }
    .icon-btn { width: 30px; height: 30px; font-size: 0.95rem; border-radius: 8px; }
    .cart-badge, .wishlist-badge {
        min-width: 16px; height: 16px; line-height: 16px;
        font-size: 8px; top: -3px; right: -4px;
    }
    .menu-toggler { width: 34px; height: 34px; font-size: 1.2rem; }
}
