/* ===== Dish panel "variant I" skin -- theme.json features.dish_panel === "i" only (see public/js/dish-panel-i.js) =====
   Loaded after dish-panel.css, which is not modified. Every rule is scoped to .dp.dp-i (the class dish-panel-i.js adds),
   so a client without the flag (Burgara, design v2) is untouched even if this file were ever loaded.
   Brand Cafe skin: #0a0a0a panel, #121212 sheet, white text, the client's heading font (Playfair Display, italic per
   theme heading_style) and body font (Montserrat); soft corners: buttons 14px, tag / add / last-comment 16px,
   sheets 24px, desktop card 28px. Logical properties throughout, so Arabic is the mirror image. */

/* ---------- frame ---------- */
.dp.dp-i { background: #0a0a0a; color: #fafafa; font-family: var(--bf-body, var(--brand-font, system-ui, sans-serif)); }
.dp.dp-i:not(.no-bar) { --dp-bar-h: 88px; }
@media (min-width: 768px) {
  .dp.dp-i { width: min(460px, 100%); height: min(92dvh, 820px); border-radius: 28px; border-color: rgba(255, 255, 255, 0.2); }
}

/* ---------- hero ---------- */
.dp.dp-i .dp-hero {
  padding: calc(132px + env(safe-area-inset-top)) 22px 34px; background: #121212;
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.dp.dp-i .dp-photo img { -webkit-user-drag: none; }
.dp.dp-i .dp-nophoto { background: linear-gradient(160deg, #1c1c1c, #121212 60%, #0a0a0a); }
.dp.dp-i .dp-big { display: none; }
.dp.dp-i .dp-ring { color: rgba(255, 255, 255, 0.45); }
.dp.dp-i .dp-ring span { width: 112px; height: 112px; border: 1px solid rgba(255, 255, 255, 0.3); }
.dp.dp-i .dp-ring svg { width: 48px; height: 48px; }

/* close: top START corner; price tag: top END corner (the reverse of design v2) */
.dp.dp-i .dp-x { border-radius: 14px; border-color: rgba(255, 255, 255, 0.7); background: rgba(10, 10, 10, 0.55); }
.dp.dp-i .dp-close { inset-inline-end: auto; inset-inline-start: 16px; }
.dp.dp-i .dp-sticker,
.dp.dp-i[dir="rtl"] .dp-sticker {
  top: calc(16px + env(safe-area-inset-top)); inset-inline-start: auto; inset-inline-end: 16px;
  width: auto; min-width: 76px; height: auto; padding: 10px 12px; border-radius: 16px;
  background: #fafafa; color: #0a0a0a; transform: none; box-shadow: none;
}
.dp.dp-i .dp-sticker i { font-family: var(--brand-font-body, inherit), sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; margin-bottom: 4px; }
.dp.dp-i .dp-sticker b { font-family: var(--brand-font-heading, inherit), serif; font-size: 26px; font-weight: 400; line-height: 1; max-width: none; }

/* prev / next on the photo sides (mirrored in Arabic: "next" sits on the left and points left) */
.dp.dp-i .dpi-ar {
  position: absolute; z-index: 3; top: 50%; margin-top: -40px; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 14px; background: rgba(10, 10, 10, 0.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.dp.dp-i .dpi-ar:hover { background: rgba(10, 10, 10, 0.7); }
.dp.dp-i .dpi-prev { inset-inline-start: 12px; }
.dp.dp-i .dpi-next { inset-inline-end: 12px; }
.dp.dp-i[dir="rtl"] .dpi-ar svg { transform: scaleX(-1); }

/* title on the gradient */
.dp.dp-i .dp-title::before { background: linear-gradient(transparent, rgba(10, 10, 10, 0.92) 120px, rgba(10, 10, 10, 0.96)); }
.dp.dp-i .dp-eyebrow,
.dp.dp-i[dir="rtl"] .dp-eyebrow { color: rgba(255, 255, 255, 0.75); font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.dp.dp-i[dir="rtl"] .dp-eyebrow { font-size: 13px; letter-spacing: 0; }
.dp.dp-i .dp-name { font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.05; font-size: 46px; }
.dp.dp-i .dp-name[data-size="l"] { font-size: 38px; }
.dp.dp-i .dp-name[data-size="m"] { font-size: 32px; line-height: 1.1; }
.dp.dp-i .dp-name[data-size="s"] { font-size: 26px; line-height: 1.15; }
html[data-heading-style="italic"] .dp.dp-i:not([dir="rtl"]) .dp-name,
html[data-heading-style="italic"] .dp.dp-i:not([dir="rtl"]) .dp-rv h2 { font-style: italic; }
.dp.dp-i[dir="rtl"] .dp-name { font-weight: 600; line-height: 1.2; font-size: 40px; }
.dp.dp-i[dir="rtl"] .dp-name[data-size="l"] { font-size: 34px; }
.dp.dp-i[dir="rtl"] .dp-name[data-size="m"] { font-size: 29px; line-height: 1.25; }
.dp.dp-i[dir="rtl"] .dp-name[data-size="s"] { font-size: 24px; line-height: 1.3; }

/* cross-fade between dishes (dish-panel-i.js toggles .dpi-swap) */
@media (prefers-reduced-motion: no-preference) {
  .dp.dp-i .dp-photo, .dp.dp-i .dp-nophoto, .dp.dp-i .dp-title, .dp.dp-i .dp-sticker b, .dp.dp-i .dp-sheet { transition: opacity 0.16s ease-out; }
}
.dp.dp-i.dpi-swap .dp-photo, .dp.dp-i.dpi-swap .dp-nophoto, .dp.dp-i.dpi-swap .dp-title, .dp.dp-i.dpi-swap .dp-sticker b { opacity: 0; }
.dp.dp-i.dpi-swap .dp-sheet { opacity: 0.4; }

/* ---------- sheet ---------- */
.dp.dp-i .dp-sheet { margin-top: -14px; background: #121212; border-radius: 24px 24px 0 0; padding-inline: 22px; }
.dp.dp-i .dp-grab { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.6); margin-bottom: 16px; }
.dp.dp-i .dp-desc { color: rgba(255, 255, 255, 0.65); font-size: 13px; line-height: 1.7; }
.dp.dp-i .dp-pills { margin-top: 16px; }
.dp.dp-i .dp-pill { border-radius: 14px; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.2); color: #fafafa; }
.dp.dp-i .dp-pill small { color: rgba(255, 255, 255, 0.6); }
.dp.dp-i .dp-pill[aria-pressed="true"] { border-color: #fafafa; }
.dp.dp-i .dp-rate { margin-top: 20px; }
.dp.dp-i .dp-lbl { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; color: #fafafa; }
.dp.dp-i[dir="rtl"] .dp-lbl { font-size: 13px; letter-spacing: 0; }
.dp.dp-i .dp-star { width: 42px; color: #666; }
.dp.dp-i .dp-star.on { color: #fafafa; }

/* last comment row (dish-panel-i.js fills .dpi-last; the panel's own spans are hidden) */
.dp.dp-i .dp-row { margin-top: 8px; padding: 13px 14px; border-radius: 16px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.2); color: #fafafa; }
.dp.dp-i .dp-row > span:not(.dpi-last) { display: none; }
.dp.dp-i .dpi-last { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; }
.dp.dp-i .dpi-main { flex: 1 1 auto; min-width: 0; }
.dp.dp-i .dpi-main b { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 600; }
.dp.dp-i .dpi-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp.dp-i .dpi-stars { flex: none; font-size: 11px; letter-spacing: 0.08em; }
.dp.dp-i .dpi-stars .dpi-off { color: rgba(255, 255, 255, 0.3); }
.dp.dp-i .dpi-text { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.6); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp.dp-i .dpi-act { flex: none; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; }
.dp.dp-i[dir="rtl"] .dpi-act { font-size: 12px; letter-spacing: 0; }

/* ---------- bottom bar ---------- */
.dp.dp-i .dp-bar { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); background: #0a0a0a; border-top-color: rgba(255, 255, 255, 0.2); }
.dp.dp-i .dp-qty { height: 54px; border-radius: 14px; border-color: rgba(255, 255, 255, 0.2); }
.dp.dp-i .dp-qty button { width: 44px; height: 52px; font-size: 20px; color: #fafafa; }
.dp.dp-i .dp-qty span { font-size: 15px; font-weight: 600; }
.dp.dp-i.dpi-opts .dp-qty { display: none; } /* dish with options: the picker sets the price and adds one per tap */
.dp.dp-i .dp-add,
.dp.dp-i[dir="rtl"] .dp-add { min-height: 54px; border-radius: 16px; background: #fafafa; color: #0a0a0a; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.dp.dp-i[dir="rtl"] .dp-add { font-size: 14px; letter-spacing: 0; }
.dp.dp-i .dp-add > span:last-child { font-family: var(--brand-font-heading, inherit), serif; font-size: 16px; font-weight: 400; letter-spacing: 0; }
.dp.dp-i .dp-book { border-radius: 14px; border-color: #fafafa; color: #fafafa; }

/* ---------- reviews sheet ---------- */
.dp.dp-i.reviews-open .dp-sticker, .dp.dp-i.reviews-open .dpi-ar { visibility: hidden; } /* would peek out above the sheet */
.dp.dp-i .dp-rv { background: #121212; border-radius: 24px 24px 0 0; overflow: hidden; }
.dp.dp-i .dp-rv h2 { font-weight: 400; font-size: 28px; text-transform: none; }
.dp.dp-i[dir="rtl"] .dp-rv h2 { font-weight: 600; font-size: 24px; }
.dp.dp-i .dp-rv .dp-x { background: #0a0a0a; border-color: rgba(255, 255, 255, 0.2); color: #fafafa; }
.dp.dp-i .dp-sum { border-radius: 16px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.2); }
.dp.dp-i .dp-n { font-family: var(--brand-font-heading, inherit), serif; font-weight: 400; font-size: 46px; color: #fafafa; }
.dp.dp-i .dp-bars u { background: #fafafa; }
.dp.dp-i .dp-cap { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.6); }
.dp.dp-i[dir="rtl"] .dp-cap { font-size: 13px; letter-spacing: 0; }
.dp.dp-i textarea { border-radius: 14px; background: #0a0a0a; border-color: rgba(255, 255, 255, 0.2); color: #fafafa; }
.dp.dp-i .dp-sub,
.dp.dp-i[dir="rtl"] .dp-sub { border-radius: 14px; background: #fafafa; color: #0a0a0a; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; }
.dp.dp-i[dir="rtl"] .dp-sub { font-size: 14px; letter-spacing: 0; }
.dp.dp-i .dp-cm { border-radius: 16px; background: #1a1a1a; }
.dp.dp-i .dp-cm-stars { color: #fafafa; }
.dp.dp-i .dp-err { border-radius: 14px; }
