/* =========================================================
   TEMPLATE 1 — Görseller ortada (centered card) varyantı
   Menu5 kabuğunu (.menu5) yeniden kullanır; yalnızca ürün
   kartı düzenini dikey/ortalı yapar. Sepet mantığı aynı.
   Wrapper: <div class="menu5 menu1x">
   ========================================================= */

.menu1x .m1-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.menu1x .m1-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--m5-card);
    border-radius: var(--m5-radius);
    padding: 18px 16px 20px;
    box-shadow: var(--m5-shadow-soft);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.menu1x .m1-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--m5-shadow);
}

.menu1x .m1-card:active { transform: scale(0.99); }

.menu1x .m1-media {
    width: 150px;
    height: 150px;
    border-radius: 22px;
    overflow: hidden;
    background: #ececeb;
    margin-bottom: 14px;
    box-shadow: var(--m5-shadow-soft);
}

.menu1x .m1-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu1x .m1-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 34px;
}

.menu1x .m1-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin: 0 0 6px;
    line-height: 1.3;
}

.menu1x .m1-desc {
    font-size: 12.5px;
    color: var(--m5-ink-soft);
    line-height: 1.45;
    margin: 0 0 10px;
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu1x .m1-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.menu1x .m1-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--m5-ink);
    margin-bottom: 12px;
}

.menu1x .m1-from {
    font-size: 11px;
    font-weight: 600;
    color: var(--m5-ink-soft);
    margin-right: 3px;
}

.menu1x .m1-allergens {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 16px;
}

.menu1x .m1-action {
    display: flex;
    justify-content: center;
}

/* Ortalı düzende kategori başlığını da ortala */
.menu1x .m5-category-title {
    justify-content: center;
    text-align: center;
}

.menu1x .m5-category-title::after {
    display: none;
}
