/* ==========================================================
   DIGBANG SINGLE RECIPE — INGREDIENTS
========================================================== */

.db-recipe-ingredients {
    display: grid;
    grid-template-columns: 336px 896px;
    column-gap: 88px;

    width: calc(100% - 40px);
    max-width: 1320px;

    margin: 56px auto 0;

    /* ستون اول بنر، ستون دوم محتوای اصلی */
    direction: ltr;
}

.db-recipe-ingredients__container {
    grid-column: 2;

    width: 896px;
    min-width: 0;

    direction: rtl;
}

/* =======================
   TITLE
======================= */

.db-recipe-ingredients__title {
    margin: 0;

    color: #3D3631;

    font-family: Vazirmatn, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;

    text-align: right;
}

/* =======================
   LIST
======================= */

.db-recipe-ingredients__list {
    width: 100%;
    margin-top: 32px;
}

.db-recipe-ingredients__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    width: 100%;
    box-sizing: border-box;

    padding: 12px 129px;

    color: #524841;

    font-family: Vazirmatn, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.db-recipe-ingredients__row:not(:last-child) {
    border-bottom: 1px solid #DFDFDF;
}

.db-recipe-ingredients__name,
.db-recipe-ingredients__amount {
    display: block;
    min-width: 0;
}

.db-recipe-ingredients__name {
    text-align: right;
}

.db-recipe-ingredients__amount {
    text-align: left;
    white-space: nowrap;
}

/* =======================
   TABLET
======================= */

@media (max-width: 1399px) {

    .db-recipe-ingredients {
        grid-template-columns:
            minmax(240px, 336px)
            minmax(0, 1fr);

        column-gap: 40px;
    }

    .db-recipe-ingredients__container {
        width: 100%;
    }

    .db-recipe-ingredients__row {
        padding-inline: clamp(32px, 8vw, 129px);
    }
}

/* =======================
   MOBILE
======================= */

@media (max-width: 767px) {

    .db-recipe-ingredients {
        display: block;

        width: calc(100% - 32px);
        margin-top: 40px;

        direction: rtl;
    }

    .db-recipe-ingredients__container {
        width: 100%;
    }

    .db-recipe-ingredients__title {
        font-size: 22px;
    }

    .db-recipe-ingredients__list {
        margin-top: 24px;
    }

    .db-recipe-ingredients__row {
        gap: 16px;
        padding: 12px 8px;

        font-size: 15px;
    }

    .db-recipe-ingredients__amount {
        white-space: normal;
    }
}