/* header.css */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

.custom-navbar {
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    padding: 0.3rem 1rem;
}

.custom-logo {
    height: 50px;
    margin-left: 10px;
}

.brand-text {
    font-weight: 700;
    font-size: 20px;
    color: #222222;
}

.navbar-nav .nav-link {
    color: #333333 !important;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
}

.navbar-nav .nav-link:hover {
    color: #ff5722 !important;
}

.cart-icon {
    position: relative;
}

.cart-icon img {
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #ff5722;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-btn {
    background-color: #dc3545;
    color: white !important;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 14px;
}

/* استایل دکمه خروج */
form.d-inline button.btn-link {
    color: #333333 !important;
    text-decoration: none !important;
}

form.d-inline button.btn-link:hover {
    color: #ff5722 !important;
}

/* تغییر رنگ آیکون همبرگر */
.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.custom-navbar .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

/* پیغام منوی موبایل */
.mobile-menu-message {
    border-radius: 8px;
    margin: 0 10px 15px 10px;
    padding: 12px 15px;
    font-size: 14px;
    text-align: right;
    border-right: 4px solid #17a2b8;
    background-color: #f8f9fa;
    color: #0c5460;
}

/* استایل‌های مخصوص موبایل */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    /* استایل خاص برای آیتم‌های کاربر و خروج */
    .nav-item.d-lg-flex.d-block {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item.d-lg-flex.d-block .nav-link,
    .nav-item.d-lg-flex.d-block form {
        width: 100%;
        text-align: right;
        padding: 8px 0;
    }
    
    .nav-item {
        margin-bottom: 5px;
        width: 100%;
    }
    
    .navbar-nav.ml-auto, 
    .navbar-nav.mr-auto {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 992px) {
    .mobile-menu-message {
        display: none;
    }
}