/* =========================================
   Mobile Menu Slider & Tabs
   ========================================= */

/* هدر اسلایدر (شامل تب‌های متنی) */
.awh-mob-slider-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
}

.awh-mob-header-tabs {
    display: flex;
    align-items: center;
    gap: 20px; /* فاصله بین تب‌ها */
}

.awh-mob-tab-link {
    font-size: 15px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    position: relative;
}

.awh-mob-tab-link.active {
    color: #000;
    font-weight: 800; /* پررنگ برای تب فعال */
    transform: scale(1.05);
}

.awh-mob-single-title {
    font-size: 16px;
    font-weight: 800;
    color: #000;
}

.awh-mob-close-btn {
    cursor: pointer;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

/* =========================================
   Menu Body & Navigation (Drill Down)
   ========================================= */
.awh-mob-menu-body {
    position: relative;
    flex-grow: 1;
    overflow: hidden; /* مهم برای مخفی کردن لایه‌های دیگر */
    min-height: 200px; /* حداقل ارتفاع */
}

.awh-mob-tab-content {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.awh-mob-tab-content.active {
    display: block;
}

/* سطوح منو (Level) */
.awh-mob-menu-level {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    width: 100%;
    height: 100%; /* پر کردن فضای والد */
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: auto; /* اسکرول داخلی */
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    padding-bottom: 20px;
}

/* انیمیشن‌ها */
/* لایه فعلی که دیده می‌شود */
.awh-mob-menu-level.level-in {
    transform: translateX(0);
    z-index: 20;
}

/* لایه‌ای که به سمت چپ رفته (والد) */
.awh-mob-menu-level.level-out {
    transform: translateX(-100%); /* برای RTL برعکس عمل می‌کند اگر direction ست شده باشد */
}

/* زیرمنویی که هنوز وارد نشده (سمت راست) */
.awh-mob-submenu {
    transform: translateX(100%);
    background: #fff; /* پوشاندن لایه زیرین */
}

/* آیتم‌های منو */
.awh-mob-item {
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.awh-mob-link-title {
    flex-grow: 1;
    padding: 14px 15px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.awh-mob-item-title {
    flex-grow: 1;
}

.awh-mob-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.awh-mob-item-icon img, .awh-mob-item-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* دکمه فلش جلو */
.awh-mob-item-nav {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f9f9f9;
    cursor: pointer;
    color: #888;
    background: #fff;
}

/* دکمه بازگشت */
.awh-mob-back-button {
    background: #fcfcfc;
    border-bottom: 1px solid #eee;
}
.awh-mob-back-button .awh-mob-link {
    width: 100%;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
}
.awh-mob-back-icon {
    transform: rotate(180deg); /* چرخش فلش */
}

/* لینک نمایش همه */
.awh-mob-show-all-link {
    background: #fdfdfd;
}
.awh-mob-show-all-link .awh-mob-link {
    width: 100%;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a73e8; /* رنگ متمایز */
    font-size: 13px;
    font-weight: 500;
}

/* =========================================
   Search in Menu
   ========================================= */
.awh-mob-menu-search-wrapper {
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    flex-shrink: 0;
}

.awh-mob-menu-search-input {
    width: 100%;
    background: #f5f5f5;
    border: none;
    padding: 10px 40px 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.awh-mob-menu-search-clear {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    display: none;
}

.awh-mob-menu-search-results {
    background: #fff;
    max-height: 100%;
    overflow-y: auto;
    display: none; /* پیشفرض مخفی */
    position: absolute;
    top: 55px; /* ارتفاع تقریبی اینپوت */
    left: 0;
    width: 100%;
    height: calc(100% - 55px);
    z-index: 50;
    padding-bottom: 20px;
}

.awh-mob-search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
}
.awh-mob-breadcrumb {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.awh-mob-breadcrumb-part {
    cursor: pointer;
}
.awh-mob-breadcrumb-part:hover {
    color: #000;
    text-decoration: underline;
}
.awh-mob-result-link {
    display: block;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

/* =========================================
   Offer Slider
   ========================================= */
.awh-mob-offer-slider {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #eee;
    height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.awh-mob-offer-slider.visible {
    height: 120px; /* ارتفاع ثابت برای اسلایدر */
    padding-top: 10px;
    padding-bottom: 10px;
    opacity: 1;
}

.awh-mob-offer-slider .swiper {
    width: 100%;
    height: 100%;
}

.awh-mob-offer-product {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #eee;
}

.awh-mob-offer-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}
.awh-mob-offer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.awh-mob-offer-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
}

.awh-mob-offer-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.awh-mob-offer-price {
    font-size: 12px;
    color: #fb743e; /* رنگ اصلی */
    font-weight: bold;
}
.awh-mob-offer-price del {
    color: #999;
    margin-left: 5px;
    font-size: 11px;
}

.awh-mob-offer-cat-label {
    font-size: 10px;
    color: #777;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
}