/*
 * [mrusta_kartlar] — benzer hizmet kartları (Faz 4'te eski child temadan taşındı).
 *
 * Kaynak: pantry-child/assets/css/mrusta-sections.css. Bileşen her iki temada da
 * çalışsın diye modülün yanına alındı; eski temadaki kopya silindi.
 */
.mrusta-kartlar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1320px;
    margin: 0 auto;
}

.mrusta-kart {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mrusta-kart-gorsel {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.mrusta-kart-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mrusta-kart-icerik {
    display: flex;
    flex-direction: column;
    padding: 24px 32px 32px;
    gap: 16px;
}

.mrusta-kart-etiket {
    color: #F26622;
    font-family: Lexend;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.mrusta-kart-baslik {
    color: #061C3D;
    font-family: Lexend;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    margin: 0;
}

.mrusta-kart-alt {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mrusta-kart-fiyat {
    text-align: left;
    margin: 0;
}

/* Tablet (üç sütun, kart 233–311 px): fiyat ve düğme yan yana sığmaz; düğme alt satıra iner, fiyat daralmaz
   (eskiden fiyat 55 px'e inip üç satıra bölünüyordu). Sığdığı genişlikte yan yana kalır. */
@media (min-width: 768px) and (max-width: 1023px) {
    .mrusta-kart-alt {
        flex-wrap: wrap;
        gap: 12px 8px;
    }

    .mrusta-kart-fiyat {
        flex: none;
    }
}

.mrusta-fiyat-tutar {
    color: #f26622;
    font-weight: 600;
    font-size: 24px;
}

.mrusta-fiyat-birim {
    color: #f26622;
    font-weight: 600;
    font-size: 14px;
}

.mrusta-fiyat-aciklama {
    color: #6A778B;
    font-family: Lexend;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.mrusta-kart-buton {
    border-radius: 12px;
    border: 1.5px solid #061C3D;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    transition: background-color 0.3s, color 0.3s;
    height: fit-content;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none; /* Premium kartta düğme bir bağlantı; canlıda altı çizili değil. */
}

.mrusta-kart-buton span {
    color: #061C3D;
    font-family: Lexend;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
}

.mrusta-kart-buton svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Telefon (≤767, sitenin kırılımı): grid → yatay kaydırılabilir şerit. 768 tablettir: üç sütun kalır
   (eskiden 768 de şeride giriyordu: kart 598 px genişlik ve boy, 769'da 234 px). */
@media (max-width: 767px) {
    .mrusta-kartlar {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 8px;
    }

    .mrusta-kart {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }
}