/* Shared mobile card geometry for Django and Vue. */
.source-mobile-dish { min-width: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); }
.source-mobile-dish--rail { display: flex; flex: 0 0 min(60vw, 224px); flex-direction: column; padding: 8px; scroll-snap-align: start; }
.source-mobile-dish--row { display: flex; min-height: 144px; gap: 12px; padding: 12px; }
.source-mobile-dish__media { position: relative; flex-shrink: 0; overflow: hidden; border-radius: 12px; background: var(--color-surface); }
.source-mobile-dish--rail .source-mobile-dish__media { width: 100%; aspect-ratio: 4 / 3; }
.source-mobile-dish--row .source-mobile-dish__media { width: 120px; height: 120px; }
.source-mobile-dish__image { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
.source-mobile-dish__image:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -4px; }
.source-mobile-dish__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.source-mobile-dish__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--color-muted-soft); font-size: 32px; }
.source-mobile-dish__unavailable { position: absolute; inset: 0; background: rgb(255 255 255 / 60%); }
.source-mobile-dish__labels { position: absolute; top: 8px; left: 8px; right: 54px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.source-mobile-dish--row .source-mobile-dish__labels { right: 8px; }
.source-mobile-dish__labels span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 6px; padding: 4px 6px; color: white; font-size: 10px; font-weight: 800; line-height: 1; }
.source-mobile-dish__discount { background: var(--color-label-sale); }
.source-mobile-dish__badge--hit { background: var(--color-label-hit); }
.source-mobile-dish__badge--new { background: var(--color-label-new); }
.source-mobile-dish__badge--bestseller { background: var(--color-label-best); }
.source-mobile-dish__badge--promo { background: var(--color-label-sale); }
.source-mobile-dish__heart, .source-mobile-dish__add { position: absolute; display: flex; align-items: center; justify-content: center; border: 0; background: rgb(255 255 255 / 95%); color: var(--color-ink); box-shadow: var(--shadow-card); }
/* стандарт «Кнопки»: кнопки на картці — висота/коло 44 */
.source-mobile-dish__heart { top: 8px; right: 8px; min-width: 44px; height: 44px; gap: 6px; border-radius: 9999px; padding: 0 12px; font-size: 14px; font-weight: 700; }
.source-mobile-dish__heart-filled { color: #c32326; fill: currentColor; }
.source-mobile-dish__add { right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; }
.source-mobile-dish__add:disabled { color: var(--color-muted-soft); cursor: default; }
.source-mobile-dish__copy { display: flex; min-width: 0; flex-direction: column; }
.source-mobile-dish__copy--link { cursor: pointer; }
.source-mobile-dish__copy--link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.source-mobile-dish--rail .source-mobile-dish__copy { padding-top: 8px; }
.source-mobile-dish--row .source-mobile-dish__copy { flex: 1; }
.source-mobile-dish__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.source-mobile-dish--row .source-mobile-dish__prices { margin-top: auto; }
.source-mobile-dish__prices strong { color: var(--color-ink); font-size: 16px; font-weight: 800; }
.source-mobile-dish__prices strong.source-mobile-dish__sale { color: var(--color-label-sale); }
.source-mobile-dish__prices del { color: var(--color-muted); font-size: 16px; font-weight: 400; }
.source-mobile-dish__title { display: -webkit-box; overflow: hidden; padding: 0; border: 0; margin-top: 2px; background: transparent; color: var(--color-ink); font-size: 14px; font-weight: 700; line-height: 1.4; text-align: left; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.source-mobile-dish--row .source-mobile-dish__title { margin-top: 0; font-size: 15px; font-weight: 700; }
.source-mobile-dish__description { display: -webkit-box; overflow: hidden; margin: 2px 0 0; color: var(--color-muted); font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.source-mobile-dish__allergens { min-width: 0; overflow: hidden; margin: 4px 0 0; color: var(--color-muted); font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.source-mobile-dish__allergens strong { font-weight: 600; }
.source-mobile-dish__likes { display: flex; align-items: center; gap: 3px; margin-top: 4px; color: var(--color-muted); font-size: 12px; }
.source-mobile-dish__stock { margin-top: 2px; color: var(--color-danger); font-size: 12px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .source-mobile-dish * { transition: none !important; } }
[data-theme="dark"] .source-mobile-dish { background: #1c1c1e; }
[data-theme="dark"] .source-mobile-dish__heart, [data-theme="dark"] .source-mobile-dish__add { background: #343439; color: var(--color-ink); }

.source-mobile-dish{box-sizing:border-box;font:400 16px/1.5 EcommerceManrope,system-ui,sans-serif;}

.source-mobile-dish__allergen-anchor{position:absolute;left:8px;bottom:8px;z-index:2;display:flex;height:32px;align-items:center;}
.ec-server-allergen{display:inline-flex;align-items:center;align-self:flex-start;gap:4px;height:24px;margin:4px 0;padding:0 6px;border:0;border-radius:4px;background:var(--primary-background-color,var(--ecommerce-surface));color:var(--primary);font:400 12px/16px EcommerceManrope,system-ui,sans-serif;}
.ec-server-allergen svg{flex-shrink:0;color:var(--primary-color);}
/* Вподобане — однаково скрізь, як серце на фото в списку: серце червоне (#c32326), лічильник кольору тексту.
   Колір закладу на темній пігулці не видно (картка страви, «Додайте ще», картки каталогу). */
:is(.ecommerce-product__like, .ecommerce-product-detail__like, .ecommerce-product-detail__photo-like, .ecommerce-dish-like).active { color: var(--color-ink, var(--primary)) !important; }
:is(.ecommerce-product__like, .ecommerce-product-detail__like, .ecommerce-product-detail__photo-like, .ecommerce-dish-like).active svg { color: #c32326 !important; fill: #c32326 !important; }
:is(.ecommerce-product__like, .ecommerce-product-detail__like, .ecommerce-product-detail__photo-like, .ecommerce-dish-like).active svg path { fill: #c32326 !important; stroke: #c32326 !important; }
/* Скло для всіх круглих кнопок-іконок (як у QR). На фото — темне скло; на поверхні — скло за темою */
:is(.ecommerce-dialog--product .ecommerce-dialog__close, .ecommerce-product-detail__media-action, .ecommerce-product-detail__photo-like, .source-mobile-dish__heart, .source-dish-heart, .source-hero-nav):not(#ec-glass) { border: 0 !important; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)), linear-gradient(rgba(17, 17, 17, .58), rgba(17, 17, 17, .58)) !important; -webkit-backdrop-filter: blur(20px) saturate(100%); backdrop-filter: blur(20px) saturate(100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 12px rgba(0, 0, 0, .3) !important; color: #fff; }
:is(.ecommerce-dialog:not(.ecommerce-dialog--product) .ecommerce-dialog__close, .ec-server__filter):not(#ec-glass) { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .45)) !important; -webkit-backdrop-filter: blur(20px) saturate(200%); backdrop-filter: blur(20px) saturate(200%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(22, 21, 26, .08), 0 2px 8px rgba(22, 21, 26, .08) !important; }
[data-theme="dark"] :is(.ecommerce-dialog:not(.ecommerce-dialog--product) .ecommerce-dialog__close, .ec-server__filter):not(#ec-glass) { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 4px 12px rgba(0, 0, 0, .35) !important; }
/* Усі круглі ✕ і ‹ (бронювання, відгук, пошук, оформлення, внутрішні сторінки, стрілки стрічок) — скло, як кнопки шапки; на фото — темне скло */
html body :is(.booking-mobile-page__header-button, .booking-mobile-picker-sheet__header button, .qr-card-back, .ecommerce-search-panel__close, .ecommerce-checkout-back, .ec-server-page__back, .ec-pending-success-header button, .ecommerce-inner-page__heading > button, .ecommerce-section__arrow, .schedule-sheet__close, .alcohol-age__close):not(#ec-glass) { background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .45)) !important; border: 0 !important; border-radius: 9999px !important; -webkit-backdrop-filter: blur(20px) saturate(200%); backdrop-filter: blur(20px) saturate(200%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(22, 21, 26, .08), 0 2px 8px rgba(22, 21, 26, .08) !important; }
html[data-theme="dark"] body :is(.booking-mobile-page__header-button, .booking-mobile-picker-sheet__header button, .qr-card-back, .ecommerce-search-panel__close, .ecommerce-checkout-back, .ec-server-page__back, .ec-pending-success-header button, .ecommerce-inner-page__heading > button, .ecommerce-section__arrow, .schedule-sheet__close, .alcohol-age__close):not(#ec-glass) { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 4px 12px rgba(0, 0, 0, .35) !important; }
html body :is(.ec-server-page__product-back, .ecommerce-banner__arrow):not(#ec-glass) { border: 0 !important; border-radius: 9999px !important; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)), linear-gradient(rgba(17, 17, 17, .58), rgba(17, 17, 17, .58)) !important; -webkit-backdrop-filter: blur(20px) saturate(100%); backdrop-filter: blur(20px) saturate(100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 12px rgba(0, 0, 0, .3) !important; color: #fff !important; }

/* Світла тема: кнопки на фото — світле скло з темною іконкою (як у QR); темна тема — темне скло. Вподобане серце лишається червоним */
html:not([data-theme="dark"]) body :is(.ecommerce-dialog--product .ecommerce-dialog__close, .ecommerce-product-detail__media-action, .ecommerce-product-detail__photo-like, .source-mobile-dish__heart, .source-dish-heart, .source-hero-nav, .ec-server-page__product-back, .ec-server-page__product-share, .ec-server-page__product-like, .ecommerce-banner__arrow):not(#ec-glass):not(#ec-light) { background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .66)) !important; -webkit-backdrop-filter: blur(20px) saturate(100%) !important; backdrop-filter: blur(20px) saturate(100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(22, 21, 26, .06), 0 2px 10px rgba(22, 21, 26, .16) !important; color: #16151a !important; }

/* 18.11.2026 (Сергій): серце з числом на фото — один стандарт скрізь: скляна пігулка як у вікні страви (44, відступи 12, серце 20, число 14/700) */
.source-dish-heart { gap: 6px !important; padding: 0 12px !important; border-radius: 9999px !important; font-size: 14px; font-weight: 700; }
.source-dish-heart svg, .source-mobile-dish__heart svg { width: 20px; height: 20px; }

/* Сердечко на фото в картках — скло без розмиття: 200+ backdrop-filter у списку валять вкладку на iPhone (Сергій 18.11.2026).
   Вигляд скла (градієнт, відблиск, обвідка) лишається; розмиття — лише на поодиноких кнопках (вікно страви, шапка). */
html:not(#ec-no-blur) body :is(.source-mobile-dish__heart, .source-dish-heart):not(#ec-no-blur):not(#ec-glass-off) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
