* {
    font-family: IRANSansX;
}
.is{
    font-family: IRANSansX;
}
.isb{
    font-family: IRANSansX;
}

.ism{
    font-family: IRANSansX;
}
.isdn{
    font-family: IRANSansX;
}
.sarbaz{
    font-family: Sarbaz;
}
/* ═══════════════════════════════════════════════════
   استایل هدر کارت‌ها (سفارش جدید و توضیحات سرویس)
   ═══════════════════════════════════════════════════ */

.neworder-main .card-border .card-body.p-4 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 12px;
    text-align: center;
    padding: 1.5rem !important;
    transition: all 0.3s ease;
}

.neworder-main .card-border .card-body.p-4:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.neworder-main .card-border .card-body.p-4 .d-flex {
    align-items: center;
    gap: 12px;
}

/* استایل آیکون‌های هدر */
.neworder-main .d-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.neworder-main .d-icon.i-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.neworder-main .d-icon.i-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.neworder-main .d-icon:hover {
    transform: scale(1.05);
}

/* استایل متن هدر */
.neworder-main .fw-600 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.3px;
}

/* فاصله بین آیکون و متن */
.neworder-main .d-icon.me-3 {
    margin-left: 12px;
}


/* ═══════════════════════════════════════════════════
   استایل Brand Slider (اسلایدر برندها)
   ═══════════════════════════════════════════════════ */

#noc-wrapper {
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

#new-order-cats {
    direction: rtl;
    overflow: hidden;
}

/* استایل دکمه‌های برند */
.d-cat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    min-width: fit-content;
}
.me-3 {
    margin-right: 0rem !important;
}
.d-cat-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* حالت active */
.d-cat-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.d-cat-btn.active .icon {
    color: #fff !important;
}

.d-cat-btn.active .text {
    color: #fff !important;
    font-weight: 600;
}

/* استایل آیکون‌های برند */
.d-cat-btn .icon {
    font-size: 20px;
    color: #64748b;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.d-cat-btn:hover .icon {
    color: #475569;
    transform: scale(1.1);
}

/* استایل متن برند */
.d-cat-btn .text {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: all 0.3s ease;
}

.d-cat-btn:hover .text {
    color: #1e293b;
}



/* Swiper wrapper */
.swiper-wrapper {
    display: flex;
    align-items: center;
}

.swiper-slide {
    width: auto !important;
    height: auto;
}


/* ═══════════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* هدر کارت‌ها */
    .neworder-main .card-border .card-body.p-4 {
        padding: 1.25rem !important;
    }
    
    .neworder-main .d-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .neworder-main .fw-600 {
        font-size: 14px;
    }
    
    /* برند اسلایدر */
    .d-cat-btn {
        padding: 10px 16px;
        gap: 8px;
    }
    
    .d-cat-btn .icon {
        font-size: 18px;
    }
    
    .d-cat-btn .text {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .d-cat-btn {
        padding: 8px 14px;
    }
    
    .d-cat-btn .icon {
        font-size: 16px;
    }
    
    .d-cat-btn .text {
        font-size: 12px;
    }
}


/* ═══════════════════════════════════════════════════
   Dark Mode Support
   ═══════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    /* هدر کارت‌ها */
    .neworder-main .card-border .card-body.p-4 {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    }
    
    .neworder-main .fw-600 {
        color: #e2e8f0;
    }
    
    /* برند اسلایدر */
    .d-cat-btn {
        background: #1e293b;
        border-color: #334155;
    }
    
    .d-cat-btn:hover {
        background: #334155;
        border-color: #475569;
    }
    
    .d-cat-btn .icon {
        color: #94a3b8;
    }
    
    .d-cat-btn .text {
        color: #cbd5e1;
    }
    
    .d-cat-btn:hover .icon {
        color: #e2e8f0;
    }
    
    .d-cat-btn:hover .text {
        color: #f1f5f9;
    }
}


/* ═══════════════════════════════════════════════════
   انیمیشن‌های اضافی
   ═══════════════════════════════════════════════════ */

/* Fade in animation for slides */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swiper-slide {
    animation: fadeInSlide 0.4s ease;
}

/* Pulse animation for active button */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 24px rgba(139, 92, 246, 0.6);
    }
}

.d-cat-btn.active {
    animation: pulse 2s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════════
   رفع مشکلات احتمالی
   ═══════════════════════════════════════════════════ */

/* اطمینان از نمایش صحیح آیکون‌های FontAwesome */
.d-cat-btn .fab,
.d-cat-btn .fas,
.d-cat-btn .far {
    line-height: 1;
}

/* رفع مشکل RTL در Swiper */
.swiper-rtl .swiper-slide {
    text-align: center;
}
.btn.btn-outline-primary.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #0d6efd;
    border-radius: 8px;
    color: #0d6efd;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn.btn-outline-primary.btn-sm:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn.btn-outline-primary.btn-sm:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2);
}

.btn.btn-outline-primary.btn-sm:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

/* افکت Ripple */
.btn.btn-outline-primary.btn-sm::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn.btn-outline-primary.btn-sm:active::before {
    width: 300px;
    height: 300px;
}

