/* ============================================================
   Menu components
   ------------------------------------------------------------
   Everything here is generic: one set of rules renders every
   category and every item, no matter how many rows there are or
   how long the text runs. Add/edit/remove rows in the database
   and this file never needs to change.

   Card sizing uses auto height (padding + normal flow) instead
   of the old fixed-pixel-per-variant boxes, so an item with a
   longer description, or no description at all, just grows or
   shrinks instead of needing its own CSS class.
   ============================================================ */

.menu-category {
  margin-top: 28px;
}

/* ---------- Category banner ---------- */
.category-header {
  width: 100%;
  max-width: 373px;
  height: 89px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.category-header__title {
  color: #ffffff;
  font-family: Poppins, var(--default-font-family);
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 6px;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Item rows ---------- */
.menu-row {
  display: flex;
  justify-content: space-between;
  width: 339px;
  margin: 19px auto 0;
}

/* ---------- Item card ---------- */
.menu-item-card {
  display: flex;
  flex-direction: column;
  width: 160px;
  background: #ffffff;
  border-radius: 20px;
  padding: 5px 6px 10px;
  text-decoration: none;
  color: inherit;
}

.menu-item-card--wide {
  width: 339px;
  margin: 19px auto 0;
}

.menu-item-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.04); /* placeholder tint while an image loads */
}

.menu-item-card--wide .menu-item-card__image {
  aspect-ratio: 2.2 / 1;
}

.menu-item-card__name {
  display: block;
  margin-top: 10px;
  padding: 0 5px;
  color: var(--color-brand, #70836e);
  font-family: Poppins, var(--default-font-family);
  font-size: 16px;      /* was 14px */
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -0.7px;
}

.menu-item-card__desc {
  display: block;
  margin-top: 4px;
  padding: 0 5px;
  color: #000000;
  font-family: Poppins, var(--default-font-family);
  font-size: 10px;      /* was 8px */
  font-weight: 400;
  line-height: 14px;    /* was 10px, bumped to fit the larger text */
}

.menu-item-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 5px;
  color: #000000;
  font-family: Poppins, var(--default-font-family);
  font-size: 10px;
  font-weight: 500;
  font-style: italic;   /* new */
  letter-spacing: -0.5px;
}

.menu-item-card__cal {
  text-align: right;
}

/* ---------- Combo upsell banner ---------- */
.combo-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 339px;
  margin: 19px auto 0;
  padding: 10px 12px 12px;
  background: #ffffff;
  border-radius: 20px;
}

.combo-banner__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.combo-banner__title {
  color: var(--color-brand, #70836e);
  font-family: Poppins, var(--default-font-family);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.7px;
}

.combo-banner__note {
  color: #000000;
  font-family: Poppins, var(--default-font-family);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: -0.45px;
}

.combo-banner__price {
  color: #000000;
  font-family: Poppins, var(--default-font-family);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.6px;
}



/* ---------- Arabic (RTL) ---------- */
/* Keep image/card positions identical in both languages —
   only the text direction and alignment change. */
.menu-row,
.menu-item-card,
.combo-banner {
  direction: ltr;
}

[dir="rtl"] .menu-item-card__name,
[dir="rtl"] .menu-item-card__desc,
[dir="rtl"] .category-header__title,
[dir="rtl"] .combo-banner__title,
[dir="rtl"] .combo-banner__note {
  direction: rtl;
  text-align: right;
  font-family: 'Tajawal', var(--default-font-family);
  letter-spacing: 0;
}