/* Restaurant detail page v3 (customer). Scoped to .mw-rd so nothing else on the site changes. */
.mw-rd {
  --mw-rd-brand: #0f3b44;
  --mw-rd-brand-dark: #0b2c33;
  --mw-rd-accent: #f5b301;
  --mw-rd-muted: #6c7a7f;
  --mw-rd-line: #e3e8ea;
  --mw-rd-top: 0px; /* set by JS to the height of a sticky site header */
  background: #f4f6f7;
}
.mw-rd .mw-btn-brand { background: var(--mw-rd-brand); color: #fff; border: 0; }
.mw-rd .mw-btn-brand:hover, .mw-rd .mw-btn-brand:focus { background: var(--mw-rd-brand-dark); color: #fff; }

/* Hero */
.mw-rd-hero {
  position: relative; overflow: hidden; border-radius: 18px; color: #fff;
  background: linear-gradient(90deg, rgba(15,59,68,.97) 38%, rgba(15,59,68,.6)), var(--mw-rd-hero-photo, none) center / cover no-repeat, var(--mw-rd-brand);
}
.mw-rd-hero__inner { display: flex; align-items: center; gap: 1.25rem; padding: 1.75rem 1.75rem 2.6rem; }
.mw-rd-hero__logo { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 20px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mw-rd-hero__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.mw-rd-hero__logo span { font-size: 2.5rem; font-weight: 800; color: var(--mw-rd-brand); }
.mw-rd-hero__copy { flex: 1 1 auto; min-width: 0; }
.mw-rd-hero__title { font-size: 1.85rem; font-weight: 800; margin: 0 0 .2rem; color: #fff; }
.mw-rd-hero__lead { margin: 0 0 .25rem; opacity: .85; font-size: .92rem; max-width: 60ch; }
.mw-rd-hero__place { margin: 0 0 .5rem; opacity: .75; font-size: .82rem; }
.mw-rd-hero__place i { margin-right: .35rem; }
.mw-rd-hero__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.mw-rd-chip { background: rgba(255,255,255,.14); border-radius: 30px; padding: .2rem .7rem; font-size: .78rem; white-space: nowrap; }
.mw-rd-chip i { font-size: .5rem; margin-right: .35rem; vertical-align: middle; }
.mw-rd-chip--ok { background: rgba(25,135,84,.85); }
.mw-rd-chip--gold { background: var(--mw-rd-accent); color: var(--mw-rd-brand); font-weight: 700; }
.mw-rd-hero__actions { display: flex; flex-direction: column; gap: .5rem; align-self: flex-start; }

/* Info strip */
.mw-rd-strip { position: relative; margin: -1.4rem 1rem 0; display: flex; flex-wrap: wrap; background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(15,59,68,.09); }
.mw-rd-strip__item { flex: 1 1 0; min-width: 140px; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-right: 1px solid var(--mw-rd-line); color: var(--mw-rd-brand); text-decoration: none; font-size: .88rem; }
.mw-rd-strip__item:last-child { border-right: 0; }
.mw-rd-strip a.mw-rd-strip__item:hover { background: #f1f6f7; }
.mw-rd-strip__item > i { color: #0f8a7a; font-size: 1.15rem; width: 1.2rem; text-align: center; }
.mw-rd-strip__item small { display: block; color: var(--mw-rd-muted); font-size: .7rem; line-height: 1.1; }

/* Sticky category pills */
.mw-rd-pills { position: sticky; top: var(--mw-rd-top); z-index: 20; background: #f4f6f7; padding: .6rem 0; border-bottom: 1px solid var(--mw-rd-line); }
.mw-rd-pills__track { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.mw-rd-pills__track::-webkit-scrollbar { display: none; }
.mw-rd-pill { flex: 0 0 auto; padding: .4rem 1rem; border-radius: 30px; background: #fff; border: 1px solid #d6dfe2; color: var(--mw-rd-brand); font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mw-rd-pill:hover { border-color: var(--mw-rd-brand); color: var(--mw-rd-brand); }
.mw-rd-pill.is-active { background: var(--mw-rd-brand); border-color: var(--mw-rd-brand); color: #fff; }

/* Sections */
.mw-rd-sec { padding-top: 1.1rem; scroll-margin-top: calc(var(--mw-rd-top) + 64px); }
.mw-rd-sec__title { font-size: 1.15rem; font-weight: 800; color: var(--mw-rd-brand); margin-bottom: .75rem; }
.mw-rd-sec__title > span { font-size: .82rem; font-weight: 500; color: var(--mw-rd-muted); }

/* Compact dish tiles */
.mw-dish { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #dfe7e9; box-shadow: 0 3px 12px rgba(0,0,0,.12); transition: transform .15s ease, box-shadow .15s ease; }
.mw-dish:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.mw-dish__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mw-dish__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding-bottom: 25%; background: linear-gradient(135deg, #e6eef0, #cfdde0); color: #8fa6ac; font-size: 2.2rem; }
.mw-dish__no { position: absolute; top: 8px; left: 8px; background: var(--mw-rd-accent); color: var(--mw-rd-brand); font-weight: 800; font-size: .74rem; padding: .18rem .6rem; border-radius: 20px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.mw-dish__flag { position: absolute; top: 8px; right: 8px; background: #6c757d; color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 20px; }
.mw-dish__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem 3rem .45rem .6rem; text-align: center; color: #fff; background: rgba(15,59,68,.64); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mw-dish__name { font-weight: 700; font-size: .82rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mw-dish__price { font-size: .72rem; opacity: .92; }
.mw-dish__price del { opacity: .7; }
.mw-rd .mw-dish .mw-dish__add {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 40px !important; height: 40px !important; min-width: 40px !important; max-width: 40px !important;
  min-height: 40px !important; max-height: 40px !important; aspect-ratio: 1 / 1; flex: 0 0 auto;
  padding: 0 !important; margin: 0; border: 0; border-radius: 50% !important;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  background: var(--mw-rd-accent); color: var(--mw-rd-brand); font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.mw-rd .mw-dish .mw-dish__add i { line-height: 1; margin: 0; }
.mw-rd .mw-dish .mw-dish__add:hover, .mw-rd .mw-dish .mw-dish__add:focus-visible { background: #ffc61a; transform: scale(1.06); }
.mw-dish--sold-out { filter: grayscale(.85); opacity: .6; }
.mw-dish--sold-out:hover { transform: none; }
.mw-dish-modal__no { background: var(--mw-rd-accent); color: var(--mw-rd-brand); }
.mw-rd .mw-dish-modal .modal-header, .mw-dish-modal .modal-header { border-bottom-color: var(--mw-rd-line, #e3e8ea); }

/* Cards and sticky side */
.mw-rd-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 18px rgba(15,59,68,.08); overflow: hidden; }
.mw-rd-card__head { background: var(--mw-rd-brand); color: #fff; font-weight: 700; padding: .8rem 1rem; }
.mw-rd-side { position: sticky; top: calc(var(--mw-rd-top) + 12px); }
.mw-rd-reserve .form-group { margin-bottom: .6rem; }
.mw-rd-reserve label { font-size: .78rem; font-weight: 600; color: var(--mw-rd-muted); margin-bottom: .15rem; }
/* Reservation phone: code + number stacked full width so "+971" and the placeholder never clip */
.mw-rd-reserve .mw-rd-reserve__phone > .form-group { margin-bottom: .6rem; }
.mw-rd-reserve .mw-rd-reserve__code select { width: 100%; min-width: 0; padding-right: 2.25rem; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; background-position: right .75rem center; }
.mw-rd-reserve .mw-rd-reserve__number input { width: 100%; min-width: 0; text-overflow: ellipsis; }

@media (max-width: 991.98px) {
  .mw-rd-side { position: static; }
  .mw-rd-hero__inner { flex-wrap: wrap; }
  .mw-rd-hero__actions { flex-direction: row; }
}

@media (max-width: 575.98px) {
  .mw-rd .mw-dish .mw-dish__add { width: 34px !important; height: 34px !important; min-width: 34px !important; max-width: 34px !important; min-height: 34px !important; max-height: 34px !important; right: 6px; bottom: 6px; }
  .mw-dish__bar { padding-right: 2.6rem; }
}
