/* استایل‌های ریسپانسیو */

/* هدر */
@media (max-width: 1199px) {
    .desktop-menu-container {
        display: none !important;
    }
    
    .search-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .search-container.active {
        display: block;
    }
}

@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .cart-icon a {
        position: relative;
        color: #333;
        font-size: 20px;
    }
    
    .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ff5722;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* نوار پایینی موبایل */
.bottom-nav {
position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    background: #2d3747;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 60px;
}

.bottom-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;

	padding: 0;
    list-style: none;
}

.bottom-nav-list li {
    flex: 1;
    text-align: center;
}

.bottom-nav-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e7e7e7;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s;
}

.bottom-nav-list li a:hover,
.bottom-nav-list li a.active {
    color: #35c6c2;
}

.bottom-nav-list li a i {
    font-size: 20px;
    margin-bottom: 5px;
}

.bottom-nav-list li a span {
    font-size: 12px;
}

.center-logo {
    flex: 1.5;
}

.nav-logo {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* منوی دسته‌بندی موبایل */
.mobile-categories-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background: #2d3747;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1100;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-categories-menu a {
color: #FFFFFF;
background-color: #3B3B3B;
font-weight: bold;
text-decoration:none;
}

.mobile-categories-menu a:hover{
color: #35c6c2;
font-weight: bold;
}




 



.mobile-categories-menu.active {
    right: 0;
}

.mobile-categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.mobile-categories-header h4 {
    margin: 0;
    font-size: 18px;
}

.close-categories {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.mobile-categories-content {
    padding: 20px;
}

.mobile-category-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-category-item:hover {
    color: #ff5722;
}

.mobile-category-item i {
    margin-left: 15px;
    font-size: 20px;
    width: 30px;
}

/* فوتر موبایل */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 60px;
}

.mobile-footer-nav {
    display: flex;
    height: 100%;
}

.mobile-footer-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s;
}

.mobile-footer-item:hover,
.mobile-footer-item.active {
    color: #ff5722;
}

.mobile-footer-item i {
    font-size: 18px;
    margin-bottom: 5px;
}

.mobile-footer-item span {
    font-size: 11px;
}

/* استایل‌های عمومی ریسپانسیو */
@media (max-width: 768px) {
    .main-content {
        padding-bottom: 120px; /* برای فوتر موبایل */
        padding-top: 20px;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .footer-image {
        max-width: 100%;
        height: auto;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .logo img {
        max-height: 40px;
    }
    
    .bottom-nav-list li a span {
        font-size: 10px;
    }
    
    .mobile-footer-item span {
        font-size: 10px;
    }
}

/* حالت تبلت */
@media (min-width: 768px) and (max-width: 991px) {
    .bottom-nav {
        bottom: 0;
        height: 80px;
    }
    
    .bottom-nav-list li a i {
        font-size: 22px;
    }
    
    .bottom-nav-list li a span {
        font-size: 13px;
    }
    
    .nav-logo {
        width: 45px;
        height: 45px;
    }
    
    .mobile-footer {
        height: 70px;
    }
    
    .mobile-footer-item i {
        font-size: 20px;
    }
    
    .mobile-footer-item span {
        font-size: 12px;
    }
}

/* حالت لنداسکیپ موبایل */
@media (max-height: 576px) and (orientation: landscape) {
    .bottom-nav,
    .mobile-footer {
        height: 50px;
    }
    
    .bottom-nav-list li a i,
    .mobile-footer-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .bottom-nav-list li a span,
    .mobile-footer-item span {
        font-size: 10px;
    }
}


/*************************************/


/* اضافه کردن به انتهای فایل responsive.css */

/* تنظیمات ریسپانسیو برای هدر جدید */
@media (max-width: 1200px) {
    .header-bottom-wide {
        display: none;
    }
}

@media (min-width: 993px) {
    .mobile-menu-toggle,
    .mobile-bottom-nav-wide,
    .mobile-menu-wide,
    .mobile-categories-wide {
        display: none;
    }
}

@media (max-width: 992px) {
    .desktop-menu-wide {
        display: none !important;
    }
    
    .main-content {
        padding-bottom: 90px; /* فاصله برای نوار پایینی موبایل */
        padding-top: 20px;
    }
}

@media (max-width: 576px) {
    .search-form-wide {
        width: 200px;
    }
    
    .search-input {
        padding: 10px;
        font-size: 13px;
    }
}

/* حالت لنداسکیپ موبایل */
@media (max-height: 576px) and (orientation: landscape) {
    .mobile-bottom-nav-wide {
        height: 55px;
    }
    
    .mobile-bottom-item i {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .mobile-bottom-item span {
        font-size: 9px;
    }
    
    .main-content {
        padding-bottom: 75px;
    }
}