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

:root {
    --primary-start: #5b86e5;
    --primary-end: #36d1dc;
}

body {
    background-color: #f4f6f9;
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
}

.text-ltr {
    direction: ltr !important;
    display: inline-block;
    text-align: left;
}

.number-output {
    direction: ltr;
    display: inline-block;
    text-align: left;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.card {
    border-radius: 1rem;
}

.card-header {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.shadow-sm {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.product-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #eef1f6;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

.product-card.is-selected {
    border-color: rgba(91, 134, 229, 0.35);
    box-shadow: 0 1.25rem 2.5rem rgba(91, 134, 229, 0.18);
}

.selected-quantity-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.95rem;
    padding: 0.45rem 0.65rem;
}

.product-card img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
}

.order-quantity-controls button {
    width: 44px;
    font-size: 1.25rem;
}

.order-quantity-controls .form-control {
    text-align: center;
}

.order-summary {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 1.5rem;
}

.badge-soft-primary {
    background-color: rgba(91, 134, 229, 0.2);
    color: #2d4aa0;
}

.selected-items {
    background: #f8fafd;
    min-height: 96px;
}

.selected-items-list {
    display: flex;
    flex-direction: column;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #dee3ed;
    font-size: 0.95rem;
}

.selected-item:last-child {
    border-bottom: 0;
}

.selected-item .selected-item-quantity {
    font-weight: 600;
    color: #2d4aa0;
}

.order-totals dt {
    margin-bottom: .25rem;
}

.menu-search-wrapper {
    max-width: 320px;
    width: 100%;
}

.menu-search-wrapper .form-control {
    border-radius: 999px;
    padding-inline: 1.75rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.05);
}

.menu-search-wrapper .form-control:focus {
    box-shadow: 0 .5rem 1rem rgba(54, 209, 220, 0.25);
}

.table > :not(caption) > * > * {
    padding: 1rem 1.25rem;
}

.table th,
.table td {
    text-align: inherit;
}

@media (max-width: 767.98px) {
    .order-summary {
        margin-top: 1.5rem;
        position: static;
    }

    .menu-search-wrapper .form-control {
        border-radius: .75rem;
        padding-inline: 1.25rem;
    }

    .menu-search-wrapper {
        max-width: none;
    }
}
