/* في ملف common.css أو menu.css */

/* ======== كروت القائمة (مشتركة) - تحسينات جمالية ======== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* تعديل الحد الأدنى لعرض الكرت */
    gap: 30px;
    margin-top: 30px; /* لترك مسافة بعد العنوان الفرعي */
}

.menu-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; /* لجعل المحتوى داخل الكرت مرناً */
    flex-direction: column; /* ترتيب العناصر عمودياً */
}
.menu-card:hover {
    transform: translateY(-8px); /* تأثير رفع خفيف */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); /* ظل أوضح */
}

.menu-card img {
    width: 100%;
    height: 200px; /* ارتفاع موحد للصور */
    object-fit: cover; /* لضمان ملء الصورة مع الحفاظ على الأبعاد */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* فاصل بسيط */
}

.menu-card-content {
    padding: 20px; /* تقليل البادينغ قليلاً */
    text-align: center; /* توسيط المحتوى النصي */
    flex-grow: 1; /* لجعل هذا الجزء يملأ المساحة المتبقية */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* دفع السعر للأسفل إذا كان هناك وصف */
}
.menu-card-content h3 {
    margin-bottom: 10px;
    font-size: 24px; /* تكبير حجم العنوان */
    color: var(--dark-blue);
}
.menu-card-content p {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 15px; /* مسافة قبل السعر */
    line-height: 1.5;
}
.menu-card-content .price {
    font-size: 28px; /* تكبير حجم السعر وجعله أكثر بروزاً */
    font-weight: 900;
    color: var(--bright-yellow); /* لون مميز للسعر */
    background-color: var(--dark-blue); /* خلفية داكنة للسعر */
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block; /* ليكون عرض الخلفية بحجم النص فقط */
    margin-top: auto; /* يدفع السعر إلى الأسفل */
}

/* تعديل العنوان الفرعي ليكون أقرب للقائمة */
.section-title h3 {
    font-size: 30px;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: var(--bright-yellow);
    border-radius: 2px;
}

/* تنسيق خاص لكروت المنتجات التي ليس لها صورة (مثل رقائق الكلاج) */
.menu-card.no-image {
    background: var(--light-gray-bg); /* خلفية مختلفة */
    border: 1px dashed var(--bright-yellow); /* حدود منقطة */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px; /* ارتفاع موحد */
}
.menu-card.no-image .menu-card-content {
    padding: 30px;
}
.menu-card.no-image .menu-card-content h3 {
    font-size: 28px;
    color: var(--dark-blue);
    margin-bottom: 15px;
}
.menu-card.no-image .menu-card-content .price {
    font-size: 32px;
    padding: 10px 20px;
}
/* ======== Animation Styles for Menu Cards ======== */

/* الحالة الأولية للكرت قبل ظهور الحركة (مخفي) */
.menu-card {
    opacity: 0;
    transform: translateY(50px); /* يبدأ من الأسفل قليلاً */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* الحالة النهائية للكرت بعد ظهور الحركة (مرئي) */
.menu-card.visible {
    opacity: 1;
    transform: translateY(0);
}