/*
Theme Name: parsino child
Theme URI: https://digimarkettheme.ir
Author: The parsino team
Author URI: https://digimarkettheme.ir
template: parsino
Description: چمپیون، فروشگاه برتر ایران با طراحی قدرتمند و امکانات حرفه‌ای، تجربه‌ای بی‌رقیب در مدیریت فروشگاه آنلاین شما ارائه می‌دهد.
Version: 1.0.0
Tags: ابر پوسته وردپرسی فروشگاهی ووکامرس
Text Domain: parsino-child
*/

/* ==========================================
   DEEP MENU STYLES - اعمال به منوی اصلی
   ========================================== */

/* استایل اصلی منو */
.deep-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-family: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.deep-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.deep-menu > li {
    border-bottom: 1px solid #eee;
}

.deep-menu > li:last-child {
    border-bottom: none;
}

.deep-menu a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    background: #fff;
    font-weight: 500;
    border-right: 3px solid transparent;
}

.deep-menu a:hover {
    background: #f8f9fa;
    color: #e74c3c;
    border-right-color: #e74c3c;
}

/* ==========================================
   آیتم‌های دارای زیرمجموعه (سطح ۱)
   ========================================== */

.deep-menu .menu-item-has-children > a {
    padding-right: 50px;
    position: relative;
    background: #fafafa;
    font-weight: 600;
}

.deep-menu .menu-item-has-children > a:hover {
    background: #f0f0f0;
}

/* ==========================================
   دکمه‌های (+)/(-) برای باز و بسته کردن
   ========================================== */

.deep-menu .toggle-submenu {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #555;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.deep-menu .toggle-submenu:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    transform: translateY(-50%) scale(1.1);
}

.deep-menu .toggle-submenu.expanded {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

/* ==========================================
   زیرمجموعه‌ها (سطح ۲ و بیشتر)
   ========================================== */

.deep-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    display: none;
    border-top: 1px solid #eee;
}

.deep-menu .sub-menu.open {
    display: block;
}

.deep-menu .sub-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.deep-menu .sub-menu li:last-child {
    border-bottom: none;
}

.deep-menu .sub-menu a {
    padding: 12px 20px 12px 40px;
    font-size: 14px;
    color: #555;
    background: #f8f9fa;
    font-weight: 400;
    border-right-color: transparent;
}

.deep-menu .sub-menu a:hover {
    background: #f0f0f0;
    color: #e74c3c;
    border-right-color: #e74c3c;
}

/* ==========================================
   سطح ۳ (نوه‌ها) - مثل پرسپولیس، استقلال، سپاهان
   ========================================== */

.deep-menu .sub-menu .sub-menu a {
    padding: 10px 20px 10px 55px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
}

.deep-menu .sub-menu .sub-menu a:hover {
    background: #ebebeb;
}

.deep-menu .sub-menu .sub-menu .sub-menu a {
    padding-left: 70px;
    font-size: 12px;
    background: #f0f0f0;
}

/* ==========================================
   پشتیبانی از زبان فارسی (RTL)
   ========================================== */

.deep-menu * {
    direction: rtl;
    text-align: right;
}

/* ==========================================
   ریسپانسیو برای موبایل
   ========================================== */

@media (max-width: 768px) {
    .deep-menu {
        border-radius: 5px;
    }
    
    .deep-menu a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .deep-menu .menu-item-has-children > a {
        padding-right: 45px;
    }
    
    .deep-menu .toggle-submenu {
        width: 26px;
        height: 26px;
        font-size: 16px;
        left: 10px;
    }
    
    .deep-menu .sub-menu a {
        padding: 10px 15px 10px 25px;
        font-size: 13px;
    }
    
    .deep-menu .sub-menu .sub-menu a {
        padding-left: 35px;
        font-size: 12px;
    }
}

/* ==========================================
   آیکون‌های زیبا برای منوها (اختیاری)
   ========================================== */

/* اضافه کردن آیکون فلش برای منوهای بسته */
.deep-menu .menu-item-has-children > a::before {
    content: "▸";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* وقتی منو باز است، فلش را تغییر بده */
.deep-menu .menu-item-has-children .open ~ a::before,
.deep-menu .menu-item-has-children .sub-menu.open ~ a::before {
    transform: translateY(-50%) rotate(90deg);
    color: #e74c3c;
}

/* ==========================================
   هایلایت کردن منوی فعال
   ========================================== */

.deep-menu .current-menu-item > a,
.deep-menu .current-page-ancestor > a {
    background: #fff5f5;
    color: #e74c3c;
    border-right-color: #e74c3c;
    font-weight: 600;
}

.deep-menu .current-menu-item > a:hover,
.deep-menu .current-page-ancestor > a:hover {
    background: #ffebeb;
}