@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

body { 
    font-family: 'Vazirmatn', sans-serif; 
    overflow-x: hidden;
    user-select: none;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ==================== حالت روز (Day Mode) ==================== */
html:not(.dark) body {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

html:not(.dark) .logo-img {
    filter: none !important; /* لوگو با رنگ آبی اصلی خودش */
}

html:not(.dark) .logo-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -15px rgba(11, 27, 54, 0.08);
}

html:not(.dark) .menu-header-bg {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #e2e8f0;
}

html:not(.dark) .product-card-bg {
    background-color: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* ==================== حالت شب (Night Mode) ==================== */
html.dark body {
    background-color: #0b1b36 !important; /* زمینه همرنگ با آبی لوگوی ملوان */
    color: #ffffff !important;
}

html.dark .logo-img {
    filter: brightness(0) invert(1) !important; /* لوگو کاملاً سفید و درخشان */
}

html.dark .logo-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

html.dark .menu-header-bg {
    background-color: rgba(11, 27, 54, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .product-card-bg {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* عمومی و انیمیشن‌ها */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes pop { 
    0% { transform: scale(1); } 
    50% { transform: scale(1.2); color: #f59e0b; } 
    100% { transform: scale(1); } 
}

@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.animate-pop { animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.animate-fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.category-scroll-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}
.category-scroll-container::-webkit-scrollbar { display: none !important; }
/* ==========================================================================
   اصلاح اندازه واقعی خودِ لوگو (بدون بزرگ شدن قاب و سایدبار)
   ========================================================================== */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    margin-bottom: 35px;
    color: #ffffff;
    transition: var(--transition-smooth);
}

/* بزرگ‌تر کردن خودِ لوگو (آیکون SVG یا عکس لوگو) به ابعاد استاندارد 52px */
.brand-icon {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain;
    color: #ffffff;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 900;
    white-space: nowrap;
    color: #ffffff;
}

/* تنظیم لوگو در حالت بسته‌شدن منو (Collapsed) */
.sidebar.collapsed .sidebar-brand {
    padding: 10px 0;
    justify-content: center;
}

.sidebar.collapsed .brand-icon {
    width: 44px !important;
    height: 44px !important;
}
