@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: 'Vazir', sans-serif;
}

:root {
    --color-primary: #4F46E5;
    --color-secondary: #7C3AED;
}

body {
    direction: rtl;
    text-align: right;
}

/* اسکرول‌بار سفارشی */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c7d2fe;
    border-radius: 3px;
}

/* ── نوار دکمه‌های صفحه سفارش (مشترک مشتری و ادمین) ── */
.order-tabs {
    display: flex;
    gap: .5rem;
    background: #fff;
    border: 1px solid #edeef4;
    border-radius: 1rem;
    padding: .4rem;
}
.order-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem .6rem;
    border: none;
    background: transparent;
    border-radius: .75rem;
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    color: #7a7f93;
    transition: .15s;
    white-space: nowrap;
}
.order-tab svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}
.order-tab:hover {
    background: #f7f7fb;
    color: #5b5f74;
}
.order-tab.active {
    background: #4F46E5;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .28);
}
.order-tab .soon {
    font-style: normal;
    font-size: .6rem;
    background: #fde68a;
    color: #92400e;
    padding: .1rem .4rem;
    border-radius: 99px;
    font-weight: 700;
}
.order-tab.active .soon {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* موبایل و تبلت: دکمه‌های بزرگ کارت‌مانند، هم‌عرض و همیشه در یک ردیف
   (با ۲ یا ۳ تب خودکار تقسیم می‌شوند — flex:1 1 0 در بالا) */
@media (max-width: 760px) {
    .order-tabs {
        gap: .4rem;
        padding: .4rem;
    }
    .order-tab {
        flex-direction: column;
        gap: .4rem;
        padding: .8rem .3rem;
        font-size: .74rem;
        line-height: 1.5;
        white-space: normal;
        text-align: center;
        background: #f6f6fb;
        border: 1px solid #e9eaf3;
        color: #656a80;
        min-height: 5.2rem;
    }
    .order-tab svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    .order-tab.active {
        background: #4F46E5;
        border-color: #4F46E5;
        color: #fff;
    }
    .order-tab .soon {
        font-size: .6rem;
        padding: .08rem .35rem;
    }
}
