body{
background-color: inherit;
}
footer {
    background: var(--dark);
    background-image: linear-gradient(rgba(3, 17, 0, 0.0), rgba(0, 0, 0, 0.5));
    color: var(--light);
    padding: 60px 20px;
    margin: 150px 12px 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
    font-family: 'Vazir', sans-serif;
    /* تایپوگرافی حرفه‌ای - فرض بر استفاده از فونت فارسی مانند Vazir */
    line-height: 1.6;
}

/* بخش برند */
.brand-section {
    align-items: start;
    margin-bottom: 40px;
}

.brand-logo {
    width: 50%;
    max-width: 270px;
    /* اندازه لوگو قابل تنظیم */
    height: auto;
    margin-bottom: 15px;
}

.brand-section p {
    font-size: 1rem;
    opacity: 0.9;
}
.brand-section p span{
  opacity: 1;
  font-weight: 00;
}
/* بخش دسته‌بندی‌ها - بهینه‌سازی برای لیست‌های طولانی با اسکرول یا محدود کردن ارتفاع اگر لازم */
.categories-section {
    margin-bottom: 40px;
}

.categories-section h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
    
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--light);
    padding-bottom: 6px;
    border-bottom: 1px solid #ffffff28;
}

.category h5 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
    color: var(--greenlight);
}

.category h5 a:hover {
    color: var(--primary);
}

/* بخش دسته‌بندی‌ها - اضافه کردن استایل مینیمال برای اسکرول بار */
/* پایه کانتینر */
.category ul {
    list-style: none;

    padding: 0;
    /* max-height: 150px; */
    overflow-y: auto;
    scrollbar-width: thin;
    /* Firefox: نازک */
    scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
    /* Firefox: رنگ thumb و track */
    -ms-overflow-style: -ms-autohiding-scrollbar;
    /* IE/Edge قدیمی: خودکار مخفی شود */
}

/* WebKit browsers (Chrome, Safari, Edge Chromium) */
/* عرض کلی اسکرول‌بار */




.category ul li {
    margin-bottom: 8px;
}

.category ul li a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    /* کوچکتر کردن فونت برای بهینه‌سازی فضا */
}

.category ul li a:hover {
    opacity: 1;
}

/* بخش دسترسی سریع */
.quick-access-section {
    margin-bottom: 40px;
    text-align: center;
    line-height: 2.8rem;
}

.quick-access-section h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.quick-access-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    
}

.quick-access-section ul li a {
    color: var(--light);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    background: var(--dark);
    box-shadow: 0 0 8px 2px #0000006e;
    transition: background 0.3s;
    
}

.quick-access-section ul li a:hover {
    background: var(--greenlight);
    transform: translateX(-4px);
    transform: scale(1.1);
}

/* بخش لوگوها */
.logos-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.trust-logo {
    width: 100px;
    /* اندازه لوگو قابل تنظیم */
    height: auto;
    filter: brightness(0.9);
    transition: filter 0.3s;
}

.trust-logo:hover {
    filter: brightness(1);
}

/* بخش کپی‌رایت */
.copyright-section {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ریسپانسیو - بهینه‌سازی برای دستگاه‌های کوچک */
@media (max-width: 768px) {
    footer {
        padding: 40px 15px;
        margin: 100px 8px 0;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .category ul {
        max-height: 150px;
        /* کوتاه‌تر در موبایل */
    }

    .quick-access-section ul {
        flex-direction: column;
        gap: 10px;
    }

    .logos-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .brand-logo,
    .trust-logo {
        width: 50%;
    }
        .category ul li {
        display: none;
        font-size: 0.85rem;
        
    }
}

@media (max-width: 480px) {

    footer h3,
    .categories-section h4,
    .quick-access-section h4 {
        font-size: 1.2rem;
    }

    .brand-section p,
    .category h5 {
        font-size: 0.95rem;
    }

    .category ul li {
        display: none;
        font-size: 0.85rem;
        
    }

    .categories-grid {
        /* grid-template-columns: 1fr; */
        grid-template-columns: repeat(auto-fit, minmax(135px, 1fr))
        /* تک ستونه در موبایل کوچک برای خوانایی */
    }
}
/* Responsive: tablet & mobile — two vertical columns (keep existing visual styles) */


