/* Mobile: < 576px */
@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 1.8rem; }
    .step-number { width: 36px; height: 36px; font-size: .95rem; }

    /* نوار وضعیت سفارش: برچسب هر مرحله یکی در میان بالا/پایین قرار می‌گیرد
       تا با برچسب مرحله‌ی مجاور تداخل نکند و به خط بعد نرود */
    .order-status-stages .stage-label {
        white-space: nowrap;
        font-size: .68rem;
        overflow: visible;
    }

    .order-status-stages .order-status-stage.stage-even .stage-label {
        margin-top: 14px;
    }

    /* نوار ۷ مرحله‌ی ثبت سفارش: برچسب هر مرحله به‌صورت زیگزاگ (پایین/بالا)
       تا با برچسب مرحله‌ی مجاور تداخل نکند و به خط بعد نرود */
    .wizard-step-label {
        white-space: nowrap;
        font-size: .6rem;
        max-width: none;
        margin-top: 4px;
    }

    .wizard-step.wz-odd .wizard-step-label {
        margin-top: 22px;
    }
}

/* Tablet + Mobile: هدر شناور روی همه‌ی صفحات هم‌شکل با صفحه‌ی اصلی */
@media (max-width: 991.98px) {
    .site-header {
        top: 10px;
        width: 96%;
        border-radius: 14px;
        padding: 2px 0;
    }

    .site-header .navbar {
        padding: 12px 16px;
    }

    .site-header .navbar-brand .fw-bold {
        font-size: 1.15rem;
    }

    .site-header .navbar-brand i {
        font-size: 1.45rem;
    }

    .site-header .navbar-toggler {
        width: 42px;
        height: 42px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
    }

    .site-header .navbar-toggler .navbar-toggler-icon {
        width: 26px;
        height: 26px;
    }

    main {
        padding-top: 86px;
    }
}

@media (max-width: 767.98px) {
    .site-header {
        top: 8px;
        width: 98%;
        border-radius: 12px;
    }

    .site-header .navbar {
        padding: 10px 12px;
    }

    .site-header .navbar-brand .fw-bold {
        font-size: 1.1rem;
    }

    .site-header .navbar-brand i {
        font-size: 1.35rem;
    }

    .site-header .navbar-toggler {
        width: 40px;
        height: 40px;
    }

    .site-header .navbar-toggler .navbar-toggler-icon {
        width: 24px;
        height: 24px;
    }

    main {
        padding-top: 78px;
    }
}

/* Tablet: 576px - 992px */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-section h1 { font-size: 2.2rem; }
    .template-card img { height: 150px; }
}

/* Desktop: > 992px */
@media (min-width: 992px) {
    .hero-section h1 { font-size: 2.8rem; }
}
