/* فونت Vazirmatn */
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
.persian-numbers {
  font-feature-settings: "ss01";
}
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fa;
    direction: rtl;
}

/* استایل فرم‌ها و مراحل */
.form-step {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.step-header {
    color: #014d4f;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

/* کارت‌های گزینه‌ها */
.option-card {
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background-color: #fff;
}

.option-card:not(.selected):hover {
    border-color: #006569;
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: #006569;
    background-color: #ebf8ff;
}

/* دکمه‌ها */
.btn-primary {
    background-color: #006569;
    transition: all 0.2s ease;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #31c6ce;
}

.btn-secondary {
    background-color: #e2e8f0;
    transition: all 0.2s ease;
    color: #2d3748;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

/* نمایش قیمت */
.price-display {
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
}

/* گزینه‌های انتخاب شده */
.selected-options {
    background-color: #f0f9ff;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.selected-option {
    display: inline-block;
    background-color: #e1f0ff;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 4px;
    font-size: 0.9rem;
}

/* اطلاعات وزن */
.weight-info {
    font-size: 0.8rem;
    color: #4a5568;
    margin-top: 4px;
}

/* چک‌باکس ترکیبات */
.ingredient-checkbox {
    accent-color: #006569;
}

/* لیست سفارشات */
.order-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    position: relative;
    background-color: #f8fafc;
}

.order-item:hover {
    border-color: #006569;
}

.remove-order {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #e53e3e;
    cursor: pointer;
}

.edit-order {
    position: absolute;
    left: 40px;
    top: 12px;
    color: #006569;
    cursor: pointer;
}

/* خلاصه سفارشات */
.orders-summary {
    background-color: #ebf8ff;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

/* مودال‌ها */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: modalopen 0.3s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
}

/* مودال موفقیت */
.success-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.success-content {
    background-color: #f8fafc;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    animation: modalopen 0.4s;
    border-top: 5px solid #38a169;
}

.success-content i {
    font-size: 60px;
    color: #38a169;
    margin-bottom: 20px;
    animation: bounce 1s;
}

.success-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2d3748;
}

.success-content p {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 25px;
}

.success-btn {
    background-color: #38a169;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.success-btn:hover {
    background-color: #2f855a;
    transform: translateY(-2px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-30px);}
    60% {transform: translateY(-15px);}
}

/* استایل‌های عمومی */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.text-green-600 {
    color: #059669;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.font-bold {
    font-weight: bold;
}

.font-semibold {
    font-weight: 600;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.w-full {
    width: 100%;
}

.w-1\/3 {
    width: 33.333333%;
}

.w-2\/3 {
    width: 66.666667%;
}

.max-w-4xl {
    max-width: 56rem;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-green-600 {
    background-color: #059669;
}

.bg-green-800 {
    background-color: #065f46;
}

.text-white {
    color: #fff;
}

.overflow-hidden {
    overflow: hidden;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-green-200:focus {
    --tw-ring-color: #bbf7d0;
}

.focus\:border-green-500:focus {
    border-color: #10b981;
}