/* Customer menus: Bootstrap provides forms, grid and responsive utilities. */
body { margin: 0; background: #fafaff; color: #111827; font-family: Nunito, sans-serif; font-size: 14px; line-height: 1.5; }
[hidden] { display: none !important; } a { text-decoration: none; color: inherit; } h1,h2,h3,h4,p { margin: 0; } button,input,textarea { font: inherit; } button { cursor: pointer; } button:disabled { cursor: default; } img { max-width: 100%; } .min-width-0 { min-width: 0; }
.menu-container { max-width: 1152px; padding-left: 16px; padding-right: 16px; margin-left: auto; margin-right: auto; }
.brand-text,.item-price { color: var(--menu-primary); } .menu-primary { background: var(--menu-primary); color: white; border-color: var(--menu-primary); } .menu-primary:hover,.menu-primary:focus { background: color-mix(in srgb,var(--menu-primary) 85%,black); color: white; } .menu-primary:disabled { background: var(--menu-primary); color: white; opacity: .5; }
.plain-button { border: 0; background: none; padding: 0; text-align: inherit; color: inherit; } .plain-button.brand-text { color: var(--menu-primary); }
.menu-header { background: #fff; color: var(--menu-secondary); border-bottom: 1px solid #e9ebf4; box-shadow: 0 5px 18px #17233b0a; z-index: 30; } .topbar { height: 62px; } .merchant-title { color: var(--menu-secondary); font-size: 16px; } .topbar-logo { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.menu-header .text-secondary { color: #68728a !important; } .menu-header .plain-button { color: var(--menu-secondary); } .menu-header .plain-button.brand-text { color: var(--menu-primary); } .menu-header .cart-header-button { color: var(--menu-primary); }
.logo-placeholder { display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb,var(--menu-primary) 10%,transparent); color: var(--menu-primary); font-size: 12px; font-weight: 700; }
.status-pill { padding: 2px 8px; font-size: 12px; border-radius: 99px; font-weight: 500; white-space: nowrap; } .is-open { color: #16a34a; background: #f0fdf4; } .is-closed { color: #ef4444; background: #fef2f2; }
.cart-header-button { position: relative; padding: 8px; font-size: 20px; border-radius: 8px; } .cart-header-button:hover { background: color-mix(in srgb,var(--menu-primary) 8%,white); } .cart-count,.inline-count { border-radius: 50%; background: var(--menu-primary); color: white; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.cart-count { position: absolute; right: -3px; top: -3px; } .menu-tabs { overflow-x: auto; background: white; border-top: 1px solid #f1f2f7; } .menu-tab { padding: 8px 16px; white-space: nowrap; color: #68728a; font-weight: 600; border-bottom: 2px solid transparent; } .menu-tab.active { color: var(--menu-primary); border-bottom-color: var(--menu-primary); }
.restaurant-hero { position: relative; } .restaurant-cover { height: 208px; position: relative; background: linear-gradient(135deg,color-mix(in srgb,var(--menu-primary) 20%,transparent),color-mix(in srgb,var(--menu-primary) 5%,transparent)); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.restaurant-cover > img { width: 100%; height: 100%; object-fit: cover; } .cover-placeholder { font-size: 64px; color: #d1d5db; } .restaurant-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top,#000b,#0003,transparent); }
.restaurant-heading { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 16px; } .restaurant-logo { width: 96px; height: 96px; margin-bottom: -32px; border: 4px solid white; border-radius: 16px; overflow: hidden; background: white; flex-shrink: 0; box-shadow: 0 20px 25px #0002; } .restaurant-logo img { width: 100%; height: 100%; object-fit: cover; } .restaurant-logo > span { height: 100%; display: flex; justify-content: center; align-items: center; font-size: 24px; font-weight: 700; color: var(--menu-primary); background: color-mix(in srgb,var(--menu-primary) 10%,transparent); }
.restaurant-name { padding-bottom: 8px; color: #ffffffb3; font-size: 12px; } .restaurant-name h1 { color: white; font-size: 24px; font-weight: 700; text-shadow: 0 1px 3px #0003; } .merchant-type { padding: 2px 8px; border-radius: 99px; background: #ffffff1a; }
.restaurant-description { background: white; padding: 40px 0 20px; color: #4b5563; } .info-card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; } .info-card h2 { font-size: 14px; font-weight: 600; margin-bottom: 8px; } .info-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; font-size: 18px; background: color-mix(in srgb,var(--menu-primary) 12%,transparent); color: var(--menu-primary); }
.menu-main { padding-top: 24px; padding-bottom: 32px; } .category-sidebar { width: 224px; flex-shrink: 0; position: sticky; top: calc(var(--header-height,56px) + 8px); } .category-panel { border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; background: white; } .category-panel h2 { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; font-size: 14px; font-weight: 700; color: var(--menu-primary); background: color-mix(in srgb,var(--menu-primary) 5%,transparent); } .category-panel nav { padding: 8px 0; max-height: 70vh; overflow-y: auto; }
.category-link { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; border: 0; border-right: 3px solid transparent; background: none; padding: 10px 16px; color: #4b5563; font-size: 14px; } .category-link.active { font-weight: 600; color: var(--menu-primary); border-right-color: var(--menu-primary); background: color-mix(in srgb,var(--menu-primary) 12%,transparent); } .category-link:hover { background: #f9fafb; }
.category-count { font-size: 12px; white-space: nowrap; background: #f3f4f6; color: #9ca3af; padding: 2px 8px; border-radius: 99px; } .category-heading { color: var(--menu-primary); } .category-heading h2 { font-size: 18px; font-weight: 700; color: #111827; } .category-accent { width: 4px; height: 24px; border-radius: 99px; background: var(--menu-primary); } .category-divider { height: 1px; background: #e5e7eb; }
.menu-items { min-width: 0; padding-bottom: 64px; } .item-category { margin-bottom: 32px; scroll-margin-top: calc(var(--header-height,56px) + 72px); } .item-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.menu-search { position: relative; } .menu-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; } .menu-search input { border-radius: 12px; padding: 10px 16px 10px 40px; font-size: 14px; border-color: #e5e7eb; }
.menu-item { display: flex; border: 1px solid #e5e7eb; background: white; border-radius: 16px; overflow: hidden; transition: transform .2s,box-shadow .2s; } .menu-item:hover { box-shadow: 0 10px 15px #0001; transform: translateY(-2px); } .item-image { position: relative; width: 112px; flex-shrink: 0; min-height: 128px; } .item-image > img,.image-placeholder { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; } .image-placeholder { display: flex; justify-content: center; align-items: center; background: #f3f4f6; color: #d1d5db; font-size: 28px; } .item-content { min-width: 0; flex: 1; padding: 12px; }
.item-name { font-size: 14px; font-weight: 600; line-height: 1.375; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .item-description { font-size: 12px; color: #9ca3af; line-height: 1.625; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .item-price { font-size: 16px; font-weight: 700; } .quick-add { border: 0; border-radius: 50%; width: 32px; height: 32px; color: white; background: var(--menu-primary); flex-shrink: 0; }
.sale-badge { position: absolute; top: 6px; left: 6px; background: #ef4444; color: white; padding: 2px 6px; border-radius: 6px; font-size: 10px; font-weight: 700; } .stock-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #0008; color: white; font-size: 10px; font-weight: 700; padding: 4px; }
.nutrition-badge,.allergen-badge { display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 6px; background: #fff7ed; color: #ea580c; margin-top: 6px; } .allergen-badge { background: #f3f4f6; color: #6b7280; margin-top: 0; }
.mobile-categories { position: sticky; top: var(--header-height,56px); z-index: 20; background: white; box-shadow: 0 1px 3px #0001; border-bottom: 1px solid #e5e7eb; } .mobile-categories > div { overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; } .category-tab { white-space: nowrap; border: 0; border-radius: 99px; background: none; color: #4b5563; padding: 6px 16px; flex-shrink: 0; } .category-tab.active { color: white; background: var(--menu-primary); }
.empty-menu { text-align: center; padding: 64px 0; color: #9ca3af; } .empty-menu > i { font-size: 48px; color: #d1d5db; margin-bottom: 12px; } .rating-stars { color: #fbbf24; } .rating-pill { background: #fefce8; color: #eab308; padding: 4px 12px; border-radius: 99px; }
.review-rating { display: flex; gap: 4px; } .review-rating label { position: relative; cursor: pointer; font-size: 30px; color: #d1d5db; line-height: 1; } .review-rating input { position: absolute; opacity: 0; } .review-rating input:focus-visible + span { outline: 2px solid var(--menu-primary); } .review-rating label.selected { color: #facc15; }
.powered-by { padding-top: 24px; padding-bottom: 48px; } .powered-by > p { border-top: 1px solid #e5e7eb; padding-top: 24px; color: #9ca3af; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; } .powered-by img { height: 100px; margin-top: 8px; }
.floating-cart { position: fixed; right: 24px; bottom: 24px; width: 60px; height: 60px; border-radius: 50%; color: white; background: var(--menu-primary); border: 0; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 8px 24px #0003; z-index: 40; } .mobile-cart { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; border-radius: 16px; background: var(--menu-primary); color: white; padding: 16px 24px; border: 0; justify-content: space-between; align-items: center; box-shadow: 0 16px 24px #0003; font-weight: 600; } .mobile-cart > [data-cart-count] { background: #fff3; border-radius: 8px; padding: 2px 8px; }
.menu-banners { position: relative; overflow: hidden; border-radius: 12px; } .menu-banner { position: relative; aspect-ratio: 3/1; background: #f3f4f6; } .menu-banner > img { width: 100%; height: 100%; object-fit: cover; } .banner-content { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(to top,#0008,transparent); color: white; } .banner-content h2 { font-size: 24px; font-weight: 700; } .banner-link { align-self: start; padding: 4px 12px; border: 1px solid white; border-radius: 4px; margin-top: 8px; font-size: 12px; } .banner-prev,.banner-next { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: #0005; color: white; border-radius: 50%; width: 32px; height: 32px; font-size: 24px; } .banner-prev { left: 8px; } .banner-next { right: 8px; } .banner-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; } .banner-dots button { border: 0; width: 8px; height: 8px; border-radius: 50%; padding: 0; background: #fff6; } .banner-dots button[aria-pressed=true] { background: white; }
.menu-dialog { border: 0; padding: 0; background: white; color: #111827; box-shadow: 0 25px 50px #0004; } .menu-dialog::backdrop { background: #0008; } .menu-dialog[open] { display: block; } .item-dialog { width: calc(100% - 32px); max-width: 512px; max-height: 90dvh; border-radius: 12px; } .dialog-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: #0006; color: white; border: 0; font-size: 24px; z-index: 1; } .item-gallery { position: relative; height: 280px; background: #f3f4f6; } .item-gallery img { width: 100%; height: 100%; object-fit: cover; } .gallery-prev,.gallery-next { position: absolute; top: 50%; transform: translateY(-50%); border: 0; color: white; background: #0005; border-radius: 50%; width: 32px; height: 32px; font-size: 24px; } .gallery-prev { left: 12px; } .gallery-next { right: 12px; } #gallery-position { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); color: white; background: #0005; padding: 2px 10px; border-radius: 99px; }
.option-group { border: 0; margin-bottom: 16px; padding: 0; } .option-group legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; } .option-buttons { display: flex; gap: 8px; flex-wrap: wrap; } .option-button { padding: 4px 12px; border: 1px solid #d1d5db; border-radius: 99px; background: white; } .option-button.active { color: white; border-color: var(--menu-primary); background: var(--menu-primary); } .extras-heading { font-size: 14px; font-weight: 600; margin-bottom: 8px; } .extra-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; } .extra-row input { accent-color: var(--menu-primary); margin-right: 8px; }
.quantity-control { display: flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 8px; } .quantity-control button { background: none; border: 0; width: 36px; height: 36px; font-size: 18px; color: #6b7280; } .quantity-control output { min-width: 24px; text-align: center; font-weight: 600; }
.cart-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: 100dvh; width: 384px; max-width: 100%; border-radius: 0; } .cart-layout { display: flex; flex-direction: column; height: 100%; } .cart-empty { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; color: #9ca3af; gap: 12px; padding: 32px; } .cart-empty i { font-size: 56px; opacity: .5; } .cart-empty small { text-align: center; } .cart-items { flex: 1; overflow-y: auto; } .cart-row { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid #e5e7eb; } .cart-image { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #f3f4f6; flex-shrink: 0; } .cart-details { flex: 1; min-width: 0; } .cart-details h3 { font-size: 14px; font-weight: 600; } .cart-details p { font-size: 12px; color: #9ca3af; } .cart-details strong { color: var(--menu-primary); } .cart-controls { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; } .cart-controls .quantity-control button { width: 28px; height: 28px; } .cart-remove { border: 0; background: none; color: #9ca3af; }
.auth-dialog { width: calc(100% - 32px); max-width: 384px; border-radius: 12px; } .auth-tabs button { flex: 1; border: 0; border-bottom: 2px solid transparent; background: none; padding: 12px; color: #6b7280; font-weight: 600; } .auth-tabs button.active { border-bottom-color: var(--menu-primary); color: var(--menu-primary); } .menu-status { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); z-index: 100; }
.grocery-menu .category-sidebar { width: 176px; } .grocery-menu .category-panel { border: 0; background: none; border-radius: 0; } .grocery-menu .category-panel h2 { background: none; border: 0; color: #9ca3af; text-transform: uppercase; font-size: 12px; } .grocery-menu .category-link { border: 0; border-radius: 8px; } .grocery-menu .category-count,.grocery-menu .category-accent,.grocery-menu .category-divider { display: none; } .grocery-menu .item-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .grocery-menu .menu-item { display: flex; flex-direction: column; border-radius: 12px; } .grocery-menu .item-image { height: 128px; min-height: 128px; width: 100%; } .grocery-menu .item-content { padding: 8px; } .grocery-menu .item-name { font-size: 12px; } .grocery-menu .item-price { font-size: 14px; } .grocery-menu .quick-add { width: 28px; height: 28px; } .grocery-menu .powered-by img { height: 28px; }
:focus-visible { outline: 2px solid var(--menu-primary); outline-offset: 3px; } .form-control:focus { border-color: var(--menu-primary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--menu-primary) 15%,transparent); }
@media(min-width:576px) { .restaurant-cover { height: 288px; } .grocery-menu .item-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(min-width:992px) { .category-sidebar { width: 256px; } .item-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .grocery-menu .item-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:575px) { .item-dialog { margin: auto 0 0; max-width: 100%; width: 100%; border-radius: 16px 16px 0 0; } .item-gallery { height: 240px; } .cart-dialog { width: 100%; } .menu-container { padding-left: 16px; padding-right: 16px; } .banner-content { padding: 16px; } .banner-content h2 { font-size: 18px; } .restaurant-name h1 { font-size: 22px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

.item-description { overflow-wrap: anywhere; } .item-unavailable .item-image { cursor: default; }

/* Larger, easier-to-read storefront menu typography. */
.merchant-title { font-size: 18px; }
.menu-tab, .category-link, .category-tab { font-size: 15px; }
.category-panel h2 { font-size: 15px; }
.category-heading h2 { font-size: 20px; line-height: 1.3; }
.item-name { font-size: 16px; font-weight: 700; line-height: 1.4; }
.item-description { font-size: 14px; line-height: 1.55; }
.item-price { font-size: 18px; }
.restaurant-name h1 { font-size: 28px; }
.option-group legend, .extras-heading { font-size: 16px; }
.option-button, .extra-row { font-size: 15px; }
.cart-details h3 { font-size: 16px; }
.cart-details p { font-size: 14px; }
.nutrition-badge, .allergen-badge { font-size: 11px; }
.grocery-menu .item-name { font-size: 14px; line-height: 1.4; }
.grocery-menu .item-price { font-size: 16px; }
@media (max-width: 575px) {
    .restaurant-name h1 { font-size: 24px; }
    .category-heading h2 { font-size: 18px; }
    .item-name { font-size: 15px; }
    .item-description { font-size: 13px; }
    .item-price { font-size: 17px; }
    .menu-tab, .category-link, .category-tab { font-size: 14px; }
}

/* Restaurant storefront refresh: warm surfaces and merchant-specific plum accents. */
:root { --menu-paper: #fdfaf7; --menu-ink: #30243a; --menu-muted: #827585; --menu-border: #eee3ea; --menu-soft: color-mix(in srgb, var(--menu-primary) 7%, #fff); }
body { background: var(--menu-paper); color: var(--menu-ink); }
.menu-container { max-width: 1280px; padding-inline: 28px; }
.menu-header { background: #ffffffed; border-color: var(--menu-border); box-shadow: 0 4px 20px #47253e04; backdrop-filter: blur(14px); }
.topbar { height: 76px; }
.topbar-logo { width: 40px; height: 40px; border: 1px solid var(--menu-border); border-radius: 12px; }
.merchant-title { font-weight: 800; letter-spacing: -.025em; }
.status-pill { padding: 5px 9px; font-size: 11px; font-weight: 700; }
.cart-header-button { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 10px 14px; border: 1px solid color-mix(in srgb,var(--menu-primary) 20%,white); border-radius: 11px; background: var(--menu-soft); }
.cart-header-button .cart-count { position: static; width: 21px; min-width: 21px; height: 21px; font-size: 10px; }
.cart-button-label { font-size: 12px; font-weight: 700; }
.menu-tabs { border-color: var(--menu-border); }
.menu-tab { margin-inline-end: 8px; padding: 10px 16px; font-size: 14px; }
.menu-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--menu-primary); font-size: 10px; font-weight: 800; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.menu-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.restaurant-hero { padding-top: 28px; padding-bottom: 20px; }
.restaurant-hero-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); overflow: hidden; border: 1px solid var(--menu-border); border-radius: 26px; background: linear-gradient(120deg, var(--menu-soft), #fffcf8); }
.restaurant-hero-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 3vw, 42px); }
.restaurant-identity { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.restaurant-identity .restaurant-logo { width: 48px; height: 48px; margin: 0; border: 2px solid #fff; border-radius: 14px; box-shadow: 0 5px 15px #48223a0a; }
.restaurant-identity .restaurant-logo > span { font-size: 21px; }
.restaurant-hero h1 { margin: 16px 0 12px; color: var(--menu-ink); font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.045em; }
.restaurant-hero-description { max-width: 440px; color: #776877; font-size: 16px; line-height: 1.7; }
.restaurant-hero-description p + p { margin-top: 8px; }
.restaurant-hero-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; color: #857286; font-size: 12px; }
.restaurant-hero-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.restaurant-hero-meta i { color: var(--menu-primary); }
.restaurant-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 24px; }
.restaurant-hero-actions .btn { display: inline-flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: 11px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 18px rgba(var(--menu-primary-rgb),.15); }
.restaurant-details-link { display: inline-flex; align-items: center; gap: 10px; color: #816579; font-size: 12px; font-weight: 700; }
.restaurant-hero .restaurant-cover { height: 100%; min-height: 360px; }
.restaurant-hero .restaurant-cover::after { background: linear-gradient(to top,#38243240,transparent 45%); }
.restaurant-hero .restaurant-cover > img { position: absolute; inset: 0; }
.restaurant-photo-note { position: absolute; z-index: 1; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #ffffffa0; border-radius: 12px; background: #fffffff0; color: #6a365f; font-size: 12px; font-weight: 700; box-shadow: 0 5px 20px #38243212; }
.restaurant-details { margin-bottom: 12px; scroll-margin-top: calc(var(--header-height,76px) + 20px); }
.info-card { border-color: var(--menu-border); border-radius: 16px; box-shadow: 0 5px 18px #48223a03; }
.info-card h2 { font-weight: 800; }
.menu-main { gap: 28px !important; padding-top: 24px; scroll-margin-top: calc(var(--header-height,76px) + 20px); }
.category-sidebar { width: 220px; }
.category-panel { padding: 8px; border-color: var(--menu-border); border-radius: 18px; box-shadow: 0 8px 24px #48223a04; }
.category-panel h2 { padding: 14px 12px; border-color: var(--menu-border); background: none; color: #55415c; font-size: 13px; }
.category-panel nav { padding: 8px 0; }
.category-link { margin-block: 3px; padding: 12px; border: 0; border-radius: 10px; color: #8b7e8d; font-size: 13px; }
.category-link > span:first-child > i { display: none; }
.category-link.active { background: var(--menu-soft); color: var(--menu-primary); font-weight: 800; }
.category-link.active .category-count { background: #fff; color: var(--menu-primary); }
.category-count { padding: 3px 8px; background: #f6f0f4; color: #9d8294; font-size: 10px; font-weight: 700; }
.menu-section-intro { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.menu-section-intro h2 { margin-top: 7px; color: var(--menu-ink); font-size: 28px; font-weight: 800; letter-spacing: -.035em; }
.menu-item-total { color: #a18b9b; font-size: 11px; }
.menu-search input { min-height: 50px; padding-inline-start: 46px; border-color: var(--menu-border); border-radius: 13px; background: #fff; color: var(--menu-ink); font-size: 15px; }
.menu-search > i { left: 17px; color: #af94a6; }
.category-heading { gap: 10px !important; }
.category-heading h2 { color: #49344f; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.category-accent { width: 5px; height: 20px; }
.category-divider { background: var(--menu-border); }
.item-category { margin-bottom: 30px; }
.restaurant-menu .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.restaurant-menu .menu-item { position: relative; min-height: 190px; border-color: var(--menu-border); border-radius: 18px; box-shadow: 0 4px 16px #48223a03; }
.restaurant-menu .menu-item:hover { border-color: color-mix(in srgb,var(--menu-primary) 30%,white); box-shadow: 0 10px 24px #48223a0a; transform: translateY(-3px); }
.restaurant-menu .item-image { width: 122px; min-height: 190px; background: var(--menu-soft); }
.restaurant-menu .item-content { padding: 18px 15px; }
.restaurant-menu .item-name { color: #433048; font-size: 16px; font-weight: 800; }
.restaurant-menu .item-description { margin-top: 7px; color: #968393; font-size: 14px; line-height: 1.6; }
.item-price-row { padding-top: 10px; }
.item-price { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.restaurant-menu .quick-add { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; min-width: 64px; min-height: 36px; padding: 7px 10px; border: 1px solid color-mix(in srgb,var(--menu-primary) 24%,white); border-radius: 10px; background: var(--menu-soft); color: var(--menu-primary); font-size: 11px; font-weight: 800; }
.restaurant-menu .quick-add > span:first-child { font-size: 18px; line-height: 1; }
.restaurant-menu .quick-add:hover { background: var(--menu-primary); color: #fff; }
.grocery-menu .quick-add > span:last-child { display: none; }
.restaurant-menu .image-placeholder { flex-direction: column; gap: 14px; padding: 10px; background: radial-gradient(circle at 20% 20%,#ffffff90,transparent 55%), linear-gradient(145deg,var(--menu-soft),#faf1e6); color: var(--menu-primary); }
.restaurant-menu .menu-item:nth-child(3n + 2) .image-placeholder { background: linear-gradient(140deg,#f0f3e9,#e5eddf); color: #8c9c78; }
.restaurant-menu .menu-item:nth-child(3n) .image-placeholder { background: linear-gradient(140deg,#fff4e5,#f5e2cd); color: #bc916b; }
.dish-placeholder-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border: 1px solid #ffffffd0; border-radius: 50%; background: #ffffff90; box-shadow: 0 8px 18px #5c394008; font-size: 22px; }
.image-placeholder small { font-size: 10px; font-weight: 700; text-align: center; letter-spacing: .02em; }
.sale-badge { top: 9px; left: 9px; padding: 4px 7px; border-radius: 6px; background: #ab527b; font-size: 9px; }
.nutrition-badge { color: #a38160; background: #fcf3e8; }
.allergen-badge { color: #9a8393; background: #f8f1f6; }
.mobile-categories { background: #fdfaf7ed; backdrop-filter: blur(12px); border-color: var(--menu-border); }
.mobile-categories > div { gap: 7px !important; padding-block: 10px; }
.category-tab { padding: 9px 14px; border: 1px solid var(--menu-border); background: #fff; font-size: 12px; font-weight: 700; }
.category-tab.active { border-color: var(--menu-primary); }
.powered-by { padding-bottom: 100px; }
.powered-by > p { color: #b09ba8; border-color: var(--menu-border); font-size: 10px; }
.powered-by img { height: 34px; margin-top: 15px; }
.floating-cart { gap: 12px; width: auto; min-height: 52px; height: auto; padding: 14px 20px; border-radius: 15px; box-shadow: 0 10px 28px rgba(var(--menu-primary-rgb),.24); font-size: 16px; }
.floating-cart > span:not(.cart-count) { font-size: 13px; font-weight: 700; }
.floating-cart .cart-count { position: static; background: #ffffff25; }
.mobile-cart { bottom: max(16px,env(safe-area-inset-bottom)); padding: 14px 18px; border-radius: 15px; font-size: 13px; box-shadow: 0 10px 24px rgba(var(--menu-primary-rgb),.24); }
.mobile-cart > span i { margin-left: 6px; font-size: 11px; }
.menu-dialog { color: var(--menu-ink); border: 1px solid #ffffffa0; }
.menu-dialog::backdrop { background: #31233280; backdrop-filter: blur(5px); }
.item-dialog { max-width: 560px; border-radius: 22px; }
.item-gallery { height: 300px; }
.dialog-close { width: 38px; height: 38px; background: #fffffff0; color: #64485b; box-shadow: 0 4px 16px #00000010; }
.menu-dialog .menu-primary { padding: 12px 16px; border-radius: 11px; font-size: 14px; font-weight: 700; }
#item-title { font-size: 24px !important; letter-spacing: -.03em; }
#item-description { color: #8a7586 !important; font-size: 16px; line-height: 1.7; }
.option-button { padding: 8px 14px; border-color: var(--menu-border); border-radius: 10px; font-size: 13px; }
.option-group legend, .extras-heading { color: #604c64; font-size: 14px; font-weight: 800; }
.extra-row { padding: 10px 12px; border: 1px solid var(--menu-border); border-radius: 10px; font-size: 13px; }
.quantity-control { border-color: var(--menu-border); border-radius: 10px; background: #fff; }
.quantity-control button { color: var(--menu-primary); min-width: 34px; min-height: 34px; }
.quantity-control button:hover { background: var(--menu-soft); }
.cart-dialog { width: 460px; border-radius: 24px 0 0 24px; background: #fdfafc; }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; border-bottom: 1px solid var(--menu-border); background: #fff; }
.cart-drawer-header h2 { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: #433048; font-size: 25px; font-weight: 800; letter-spacing: -.035em; }
.cart-drawer-header p { margin-top: 7px; color: #9a8393; font-size: 13px; }
.cart-close-button { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--menu-border); border-radius: 50%; background: #fff; color: #816879; font-size: 22px; }
.cart-empty { padding: 32px; gap: 14px; color: #9a8393; text-align: center; }
.cart-empty-icon { display: flex; align-items: center; justify-content: center; width: 94px; height: 94px; margin-bottom: 10px; border: 1px solid #eedee9; border-radius: 30px; background: var(--menu-soft); }
.cart-empty-icon i { font-size: 36px; color: var(--menu-primary); opacity: 1; }
.cart-empty p { color: #5c4460; font-size: 20px; font-weight: 800; }
.cart-empty small { max-width: 250px; line-height: 1.7; }
.cart-items { min-height: 0; padding: 12px 20px; }
.cart-row { align-items: center; gap: 14px; margin-block: 12px; padding: 16px; border: 1px solid var(--menu-border); border-radius: 16px; background: #fff; }
.cart-image { width: 68px; height: 76px; border: 1px solid #f3e7ef; border-radius: 12px; background: var(--menu-soft); }
.cart-image-placeholder { display: flex; align-items: center; justify-content: center; color: var(--menu-primary); font-size: 20px; }
.cart-details h3 { color: #5c4460; font-size: 14px; font-weight: 800; line-height: 1.45; }
.cart-details p { margin-top: 4px; color: #a08a9b; font-size: 11px; line-height: 1.6; }
.cart-details strong { font-size: 14px; }
.cart-controls { align-self: stretch; gap: 12px; }
.cart-remove { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; color: #b198a8; }
.cart-remove:hover { background: #fff1f3; color: #c35f78; }
.cart-controls .quantity-control button { width: 28px; min-width: 28px; height: 30px; min-height: 30px; }
.cart-controls .quantity-control span { min-width: 22px; text-align: center; font-size: 12px; font-weight: 700; }
.cart-drawer-footer { padding: 24px 28px; border-top: 1px solid var(--menu-border); background: #fff; }
.cart-subtotal-row { display: flex; align-items: center; justify-content: space-between; color: #8c7486; font-size: 14px; }
.cart-subtotal-row strong { color: #4a344e; font-size: 24px; font-weight: 800; }
.cart-drawer-footer p { margin: 8px 0 20px; color: #b198a8; font-size: 12px; line-height: 1.6; }
.cart-drawer-footer > a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; }
.cart-continue { display: block; width: 100%; margin-top: 14px; padding: 3px; border: 0; background: transparent; color: #9d7b92; font-size: 12px; font-weight: 600; }
.auth-dialog { border-radius: 20px; }
.menu-status { top: 90px; border-radius: 12px; box-shadow: 0 8px 25px #48223a15; }
.menu-status.is-success { border-color: #d7e8da; background: #f0f7f1; color: #40754e; }
@media (max-width: 1100px) { .restaurant-menu .item-grid { grid-template-columns: minmax(0, 1fr); } .restaurant-menu .item-image { width: 150px; } .category-sidebar { width: 200px; } }
@media (max-width: 767px) { .menu-container { padding-inline: 18px; } .restaurant-hero { padding-top: 18px; } .restaurant-hero-shell { grid-template-columns: minmax(0,1fr); border-radius: 20px; } .restaurant-hero-copy { padding: 25px; } .restaurant-hero .restaurant-cover { min-height: 190px; max-height: 220px; order: -1; } .restaurant-hero h1 { font-size: 32px; } .restaurant-identity { margin-top: 14px; } .restaurant-hero-description { font-size: 15px; } .restaurant-hero-actions { margin-top: 18px; } .restaurant-photo-note { bottom: 14px; right: 14px; font-size: 10px; padding: 8px 11px; } .menu-section-intro h2 { font-size: 25px; } .restaurant-menu .item-image { width: 130px; } .cart-button-label { display: none; } .merchant-title { font-size: 15px; } .topbar { height: 66px; } .menu-header .status-pill { display: none; } .menu-item-total { display: none; } }
@media (max-width: 575px) { .restaurant-menu .item-image { width: 108px; min-height: 190px; } .restaurant-menu .item-content { padding: 15px 13px; } .restaurant-menu .item-name { font-size: 15px; } .restaurant-menu .item-description { font-size: 13px; } .restaurant-menu .item-price { font-size: 17px; } .restaurant-menu .quick-add { min-width: 58px; padding: 7px 8px; } .cart-dialog { width: 100%; border-radius: 0; } .cart-drawer-header { padding: 22px; } .cart-items { padding-inline: 12px; } .cart-row { padding: 13px; gap: 10px; } .cart-drawer-footer { padding: 20px; padding-bottom: max(20px,env(safe-area-inset-bottom)); } .cart-image { width: 54px; height: 66px; } .item-dialog { border-radius: 22px 22px 0 0; } }

.restaurant-hero-meta:not(:has(span)) { display: none; }
@media (max-width: 575px) {
    .restaurant-hero-shell { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
    .restaurant-hero-copy { padding: 20px 18px; }
    .restaurant-hero-copy > .menu-eyebrow, .restaurant-identity .restaurant-logo, .restaurant-photo-note, .restaurant-hero-actions .restaurant-details-link { display: none; }
    .restaurant-identity { margin-top: 0; }
    .restaurant-hero h1 { margin: 12px 0 10px; font-size: 24px; }
    .restaurant-hero-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.6; }
    .restaurant-hero-actions { margin-top: 16px; }
    .restaurant-hero-actions .btn { gap: 9px; padding: 10px 12px; font-size: 11px; }
    .restaurant-hero .restaurant-cover { order: 0; min-height: 100%; max-height: none; }
}
.cart-empty .btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.cart-empty .btn i { font-size: 12px; opacity: 1; }

/* Restaurant header and footer: balanced identity, useful links, and subtle branding. */
.sf-menu-header { border-bottom-color: #eddfE8; box-shadow: 0 3px 18px #42253805; }
.sf-menu-topbar { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 28px; min-height: 86px; }
.sf-header-brand { display: flex; align-items: center; gap: 12px; min-width: 0; width: fit-content; max-width: 100%; }
.sf-brand-mark { display: inline-flex; flex: 0 0 46px; align-items: center; justify-content: center; width: 46px; height: 46px; overflow: hidden; border: 1px solid color-mix(in srgb,var(--menu-primary) 15%,white); border-radius: 14px; background: linear-gradient(145deg,#fff,var(--menu-soft)); color: var(--menu-primary); box-shadow: 0 4px 12px #59324905; }
.sf-brand-mark > img { width: 100%; height: 100%; object-fit: cover; }
.sf-brand-mark > i { font-size: 18px; }
.sf-brand-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sf-brand-copy > strong { display: block; overflow: hidden; color: #49314f; font-size: 17px; font-weight: 800; line-height: 1.4; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.sf-brand-copy > span { display: block; overflow: hidden; color: #a1899c; font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.sf-status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; padding: 0; border-radius: 50%; vertical-align: middle; }
.sf-status-dot.is-open { background: #57a774; }
.sf-status-dot.is-closed { background: #cd7b8c; }
.sf-brand-separator { margin-inline: 7px; color: #d3bfcf; }
.sf-header-nav { display: flex; align-items: center; gap: 6px; }
.sf-header-nav a { padding: 9px 13px; border-radius: 9px; color: #9e8599; font-size: 12px; font-weight: 600; }
.sf-header-nav a.is-active, .sf-header-nav a:hover { background: var(--menu-soft); color: var(--menu-primary); }
.sf-header-actions { display: flex; align-items: center; gap: 10px; }
.sf-account-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 14px; border: 1px solid var(--menu-border); border-radius: 11px; background: #fff; color: #96758d; font-size: 12px; font-weight: 700; }
.sf-account-button:hover { border-color: color-mix(in srgb,var(--menu-primary) 25%,white); color: var(--menu-primary); background: var(--menu-soft); }
.sf-order-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; padding: 11px 16px; border: 1px solid var(--menu-primary); border-radius: 11px; background: var(--menu-primary); color: #fff; box-shadow: 0 5px 15px rgba(var(--menu-primary-rgb),.13); font-size: 12px; font-weight: 700; }
.sf-order-button:hover { background: color-mix(in srgb,var(--menu-primary) 90%,black); }
.sf-order-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding-inline: 5px; border-radius: 7px; background: #ffffff26; color: #fff; font-size: 10px; font-weight: 800; }
.sf-menu-header .menu-tabs { background: #fefbfd; }
.sf-menu-header .menu-tabs .menu-container { gap: 6px; padding-block: 8px; }
.sf-menu-header .menu-tab { margin: 0; padding: 8px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; }
.sf-menu-header .menu-tab.active { border-color: color-mix(in srgb,var(--menu-primary) 18%,white); background: var(--menu-soft); }
.sf-menu-footer { margin-top: 12px; padding: 28px 0 110px; border-top: 1px solid #f1e7ec; background: linear-gradient(180deg,#fcf7fa,var(--menu-paper)); }
.sf-footer-shell { overflow: hidden; border: 1px solid var(--menu-border); border-radius: 22px; background: #ffffffb0; }
.sf-footer-main { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 30px; padding: 28px 30px; }
.sf-footer-brand { display: flex; align-items: center; gap: 12px; }
.sf-footer-brand .sf-brand-mark { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
.sf-footer-brand .sf-brand-mark i { font-size: 16px; }
.sf-footer-brand > strong { color: #64456a; font-size: 16px; font-weight: 800; line-height: 1.5; letter-spacing: -.02em; }
.sf-footer-identity p { margin-top: 14px; color: #9e8598; font-size: 14px; line-height: 1.6; }
.sf-footer-address { display: inline-flex; align-items: baseline; gap: 7px; margin-top: 9px; color: #b49bac; font-size: 11px; line-height: 1.7; }
.sf-footer-address i { color: var(--menu-primary); font-size: 10px; }
.sf-footer-connect { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.sf-footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 22px; }
.sf-footer-links a { display: inline-flex; align-items: center; gap: 7px; color: #92738a; font-size: 12px; font-weight: 600; }
.sf-footer-links a:hover { color: var(--menu-primary); }
.sf-footer-links a > i { font-size: 10px; }
.sf-footer-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sf-footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--menu-border); border-radius: 10px; background: #fff; color: #a18197; font-size: 12px; }
.sf-footer-socials a:hover { border-color: var(--menu-primary); background: var(--menu-soft); color: var(--menu-primary); }
.sf-footer-service-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 17px 30px; border-top: 1px solid #f2e7ef; background: #fcf9fb; }
.sf-footer-perks { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.sf-footer-perks > span { display: inline-flex; align-items: center; gap: 8px; color: #b095a7; font-size: 11px; }
.sf-footer-perks i { color: #ad7a9e; font-size: 12px; }
.sf-footer-powered { display: inline-flex; align-items: center; gap: 10px; }
.sf-footer-powered > span { color: #b59daf; font-size: 10px; }
.sf-footer-powered img { display: block; width: 105px; height: 28px; object-fit: contain; }
.sf-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 3px 0; color: #b69dae; font-size: 11px; }
.sf-footer-bottom a { display: inline-flex; align-items: center; gap: 8px; color: #ac859e; font-weight: 600; }
.sf-footer-bottom i { font-size: 10px; }
@media (max-width: 991px) { .sf-menu-topbar { grid-template-columns: minmax(0,1fr) auto; gap: 18px; } .sf-header-nav { display: none; } .sf-footer-main { grid-template-columns: minmax(0,1fr); gap: 24px; } .sf-footer-connect { align-items: flex-start; } .sf-footer-links { justify-content: flex-start; } }
@media (max-width: 575px) {
    .sf-menu-topbar { min-height: 76px; gap: 12px; }
    .sf-header-brand { gap: 10px; }
    .sf-header-brand .sf-brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
    .sf-brand-copy > strong { font-size: 14px; }
    .sf-brand-copy > span { font-size: 10px; }
    .sf-header-actions { gap: 7px; }
    .sf-account-button { width: 37px; min-height: 39px; padding: 8px; border-radius: 10px; }
    .sf-account-button > span, .sf-order-button > span:not(.sf-order-count) { display: none; }
    .sf-order-button { min-height: 39px; gap: 7px; padding: 9px 11px; border-radius: 10px; }
    .sf-order-count { min-width: 18px; height: 19px; font-size: 9px; }
    .sf-footer-main { padding: 24px 22px; }
    .sf-footer-shell { border-radius: 18px; }
    .sf-footer-brand > strong { font-size: 15px; }
    .sf-footer-identity p { font-size: 13px; }
    .sf-footer-links { gap: 14px 20px; }
    .sf-footer-service-row { align-items: flex-start; padding: 18px 22px; gap: 20px; }
    .sf-footer-perks { gap: 16px; }
    .sf-footer-powered { margin-inline-start: auto; }
    .sf-footer-bottom { font-size: 10px; }
}

/* Both brand marks use the restaurant owner's existing logo upload. */
.sf-brand-mark > img { padding: 5px; background: #fff; object-fit: contain; }
.sf-brand-fallback { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--menu-primary); font-size: 18px; }
.sf-footer-powered > strong { color: #9d788f; font-size: 13px; font-weight: 800; letter-spacing: -.025em; }

/* Always-visible restaurant details, presented as a cohesive set of useful cards. */
.restaurant-info-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 14px; }
.restaurant-info-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--menu-border); border-radius: 17px; background: linear-gradient(145deg,#fff 65%,var(--menu-soft)); box-shadow: 0 5px 18px #48223a03; }
.restaurant-info-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.restaurant-info-symbol { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid color-mix(in srgb,var(--menu-primary) 12%,white); border-radius: 10px; background: var(--menu-soft); color: var(--menu-primary); font-size: 14px; }
.restaurant-info-top h2 { margin: 0; color: #8d7086; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.restaurant-info-day { margin-left: auto; padding: 4px 7px; border-radius: 6px; background: #f7f1f5; color: #b297a8; font-size: 10px; }
.restaurant-info-body { flex: 1; min-width: 0; }
.restaurant-info-value { display: block; color: #6c4a70; font-size: 17px; font-weight: 800; line-height: 1.55; letter-spacing: -.025em; overflow-wrap: anywhere; }
.restaurant-info-value:hover { color: var(--menu-primary); }
.restaurant-info-body p { margin-top: 6px; color: #a08b99; font-size: 12px; line-height: 1.6; }
.restaurant-address-value { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.restaurant-info-footer { display: flex; align-items: center; margin-top: 17px; padding-top: 14px; border-top: 1px solid #f2e7ef; }
.restaurant-info-footer > a { display: inline-flex; align-items: center; gap: 8px; color: var(--menu-primary); font-size: 11px; font-weight: 700; }
.restaurant-info-footer > a > i:last-child { margin-left: 3px; font-size: 9px; }
.restaurant-info-footer > a > .fa-whatsapp { font-size: 15px; }
.restaurant-info-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 7px; font-size: 10px; font-weight: 700; }
.restaurant-info-status > span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
@media (max-width: 575px) {
    .restaurant-info-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .restaurant-info-card { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 8px 12px; padding: 17px; border-radius: 14px; }
    .restaurant-info-top { grid-column: 1 / -1; margin: 0; }
    .restaurant-info-body, .restaurant-info-footer { grid-column: 2; }
    .restaurant-info-top h2 { font-size: 11px; }
    .restaurant-info-value { font-size: 16px; }
    .restaurant-address-value { font-size: 14px; }
    .restaurant-info-footer { margin-top: 3px; padding-top: 9px; }
}

/* Photo-led category navigation and food tickets. */
.restaurant-menu .category-sidebar { width: 240px; }
.category-panel { padding: 10px; border-radius: 20px; }
.category-panel-heading { display: flex; align-items: center; gap: 10px; padding: 12px 8px 18px; border-bottom: 1px solid var(--menu-border); }
.category-panel-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: var(--menu-soft); color: var(--menu-primary); font-size: 13px; }
.category-panel-heading h2 { margin: 0; padding: 0; border: 0; background: none; color: #68466d; font-size: 14px; font-weight: 800; }
.category-panel-heading p { margin-top: 4px; color: #ad8ea3; font-size: 10px; line-height: 1.6; }
.category-panel nav { padding: 10px 0; }
.category-link { display: grid; grid-template-columns: 42px minmax(0,1fr) 18px; align-items: center; gap: 10px; margin-block: 5px; padding: 9px; border: 1px solid transparent; border-radius: 13px; }
.category-link.active { border-color: color-mix(in srgb,var(--menu-primary) 13%,white); background: linear-gradient(110deg,var(--menu-soft),#fdf8fc); }
.category-thumbnail { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; overflow: hidden; border: 2px solid #fff; border-radius: 11px; background: var(--menu-soft); color: var(--menu-primary); box-shadow: 0 3px 9px #55304408; }
.category-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.category-panel .category-link .category-thumbnail > i { display: inline-block; font-size: 15px; }
.category-link-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: start; }
.category-link-copy strong { color: #92718a; font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.category-link-copy small { color: #b69aab; font-size: 10px; font-weight: 400; line-height: 1.5; }
.category-link.active .category-link-copy strong { color: var(--menu-primary); font-weight: 800; }
.category-link-arrow { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: #d2baca; font-size: 7px; }
.category-link.active .category-link-arrow { background: #fff; color: var(--menu-primary); }
.category-panel-note { display: flex; align-items: center; gap: 11px; margin: 4px 6px 6px; padding: 16px 6px 8px; border-top: 1px dashed var(--menu-border); color: #b493a9; font-size: 11px; line-height: 1.7; }
.category-panel-note > i { color: #bf9bb3; font-size: 18px; }
.category-tab { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; }
.category-tab img { width: 25px; height: 25px; border: 1px solid #ffffffa0; border-radius: 50%; object-fit: cover; }
.restaurant-menu .item-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.restaurant-menu .menu-item { display: flex; flex-direction: column; min-height: 0; padding-top: 10px; border-radius: 22px; background: #fff; box-shadow: 0 5px 18px #52314704; }
.restaurant-menu .item-image { display: block; flex: 0 0 auto; width: calc(100% - 20px); min-height: 0; height: auto; max-height: 220px; aspect-ratio: 16 / 10; margin-inline: 10px; overflow: hidden; border-radius: 15px; background: var(--menu-soft); }
.restaurant-menu .item-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.restaurant-menu .menu-item:hover .item-image > img { transform: scale(1.045); }
.item-image-hint { position: absolute; right: 11px; bottom: 11px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid #ffffffc0; border-radius: 8px; background: #fffffff0; color: #875275; font-size: 10px; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .2s ease,transform .2s ease; }
.item-image:hover .item-image-hint, .item-image:focus-visible .item-image-hint { opacity: 1; transform: none; }
.restaurant-menu .item-content { flex: 1; padding: 17px 19px 19px; }
.item-category-label { display: block; margin-bottom: 7px; color: var(--menu-primary); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.restaurant-menu .item-name { color: #5a3a61; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.restaurant-menu .item-description { margin-top: 8px; color: #9d8295; font-size: 14px; line-height: 1.7; }
.restaurant-menu .item-price-row { gap: 12px !important; margin-top: 16px !important; padding-top: 15px; border-top: 1px solid #f3e8ef; }
.restaurant-menu .item-price { font-size: 21px; font-weight: 800; }
.restaurant-menu .quick-add { gap: 8px; min-width: 86px; min-height: 40px; padding: 9px 13px; border-radius: 11px; font-size: 12px; }
.restaurant-menu .quick-add > span:first-child { font-size: 17px; }
.restaurant-menu .sale-badge { top: 10px; left: 10px; padding: 5px 8px; background: var(--menu-primary); font-size: 9px; box-shadow: 0 4px 12px #51243915; }
.restaurant-menu .image-placeholder { gap: 12px; }
@media (max-width: 991px) { .restaurant-menu .category-sidebar { width: 210px; } .category-link { grid-template-columns: 34px minmax(0,1fr) 14px; gap: 7px; padding: 8px 5px; } .category-thumbnail { width: 34px; height: 38px; } .category-panel-heading { gap: 8px; padding-inline: 5px; } .category-panel-heading p { font-size: 9px; } .restaurant-menu .item-content { padding: 15px; } .restaurant-menu .item-name { font-size: 16px; } .restaurant-menu .item-price { font-size: 18px; } .restaurant-menu .quick-add { min-width: 72px; padding: 8px; font-size: 11px; } }
@media (max-width: 575px) {
    .restaurant-menu .item-grid { gap: 12px; }
    .restaurant-menu .menu-item { padding-top: 7px; border-radius: 16px; }
    .restaurant-menu .item-image { width: calc(100% - 14px); min-height: 0; max-height: none; aspect-ratio: 4 / 3; margin-inline: 7px; border-radius: 11px; }
    .restaurant-menu .item-content { padding: 12px; }
    .restaurant-menu .item-name { min-height: 40px; font-size: 14px; line-height: 1.45; }
    .restaurant-menu .item-description { margin-top: 6px; font-size: 12px; line-height: 1.6; }
    .item-category-label { margin-bottom: 5px; font-size: 8px; }
    .restaurant-menu .item-price-row { display: flex !important; align-items: stretch !important; flex-direction: column; gap: 9px !important; margin-top: 12px !important; padding-top: 12px; }
    .restaurant-menu .quick-add { width: 100%; min-height: 36px; border-radius: 9px; font-size: 11px; }
    .restaurant-menu .item-price { font-size: 18px; }
    .item-image-hint { right: 7px; bottom: 7px; padding: 5px; border-radius: 6px; font-size: 9px; opacity: 1; transform: none; }
    .item-image-hint > span { display: none; }
}
@media (max-width: 359px) { .restaurant-menu .item-grid { grid-template-columns: minmax(0,1fr); } .restaurant-menu .item-image { max-height: 190px; } .restaurant-menu .item-name { min-height: 0; font-size: 16px; } .restaurant-menu .item-price-row { flex-direction: row; align-items: center !important; } .restaurant-menu .quick-add { width: auto; } }

/* Dish popup: generous photography, scrollable choices, and a persistent order bar. */
#item-dialog { width: calc(100% - 40px); max-width: 850px; max-height: 88dvh; overflow: hidden; border-radius: 24px; }
.item-popup-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); height: min(620px,88dvh); min-height: 0; }
.item-popup-media { min-width: 0; min-height: 0; overflow: hidden; background: #f7f0eb; }
#item-dialog .item-gallery { height: 100%; min-height: 0; background: #f7f0eb; }
#item-dialog .item-gallery img { width: 100%; height: 100%; object-fit: cover; }
#item-dialog .dialog-close { top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--menu-border); background: #fffffff0; color: #96728a; box-shadow: 0 4px 12px #42253a07; font-size: 22px; }
#item-dialog .gallery-prev, #item-dialog .gallery-next { width: 34px; height: 34px; border: 1px solid #ffffffc0; background: #ffffffe6; color: #80506f; font-size: 22px; box-shadow: 0 3px 12px #42253a12; }
#item-dialog #gallery-position { bottom: 18px; padding: 5px 12px; background: #fffffff0; color: #815c76; font-size: 11px; font-weight: 700; }
.item-popup-content { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.item-popup-scroll { flex: 1; min-height: 0; padding: 32px 28px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.item-popup-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; color: var(--menu-primary); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
#item-dialog #item-title { margin: 0 22px 14px 0; color: #66406d; font-size: 27px !important; font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.item-popup-prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.item-popup-prices strong { color: var(--menu-primary); font-size: 23px; font-weight: 800; letter-spacing: -.03em; }
.item-popup-prices del { color: #c3a5b7; font-size: 13px; }
.item-popup-prices > span { color: #b59aa9; font-size: 11px; }
#item-dialog #item-description { margin: 0 0 22px; color: #9b7c91 !important; font-size: 15px; line-height: 1.75; }
#item-dialog #item-description p + p { margin-top: 10px; }
#item-dialog #item-options, #item-dialog #item-extras { margin-top: 20px; padding-top: 20px; border-top: 1px solid #f1e5ed; }
#item-dialog #item-options:empty, #item-dialog #item-extras:empty, #item-dialog #item-description:empty, #item-dialog #item-nutrition:empty, #item-dialog #item-allergens:empty { display: none; }
#item-dialog .option-group { margin: 0 0 20px; }
#item-dialog .option-group:last-child { margin-bottom: 0; }
#item-dialog .option-group legend, #item-dialog .extras-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; float: none; margin-bottom: 12px; color: #886182; font-size: 14px; font-weight: 800; }
.option-choice-hint, .extras-optional { padding: 4px 7px; border-radius: 6px; background: #f8f1f6; color: #bc9caf; font-size: 9px; font-weight: 600; }
#item-dialog .option-buttons { gap: 8px; }
#item-dialog .option-button { flex: 1; min-height: 42px; padding: 10px 14px; border-color: var(--menu-border); border-radius: 11px; background: #fff; color: #9c7d92; font-size: 12px; font-weight: 700; text-align: center; }
#item-dialog .option-button.active { border-color: var(--menu-primary); background: var(--menu-soft); color: var(--menu-primary); box-shadow: inset 0 0 0 1px rgba(var(--menu-primary-rgb),.06); }
#item-dialog .extra-row { gap: 12px; margin-top: 9px; padding: 13px 12px; border-color: #f0e3ec; border-radius: 10px; background: #fff; color: #9c7b92; font-size: 12px; }
#item-dialog .extra-row > span:first-child { display: flex; align-items: center; gap: 9px; }
#item-dialog .extra-row input { flex: 0 0 15px; width: 15px; height: 15px; margin: 0; }
#item-dialog .extra-row:has(input:checked) { border-color: color-mix(in srgb,var(--menu-primary) 40%,white); background: var(--menu-soft); }
#item-dialog .extra-row > .text-secondary { color: #ae8ba1 !important; font-size: 11px; white-space: nowrap; }
#item-dialog #item-nutrition { margin-top: 20px; padding: 10px 12px; border-radius: 10px; background: #fbf5ed; color: #ad8b69; font-size: 11px; line-height: 1.6; }
#item-dialog #item-allergens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.item-popup-warning { margin-top: 16px; padding: 10px 12px; border: 1px solid #f3d4dd; border-radius: 9px; background: #fff6f8; color: #c97890; font-size: 12px; line-height: 1.6; }
.item-popup-footer { display: grid; grid-template-columns: 108px minmax(0,1fr); align-items: end; gap: 14px; flex-shrink: 0; padding: 20px 24px; border-top: 1px solid #eee0ea; background: #fdfafb; }
.item-quantity-block > span { display: block; margin-bottom: 7px; color: #af8ea3; font-size: 10px; font-weight: 700; }
#item-dialog .quantity-control { justify-content: space-between; overflow: hidden; border-radius: 10px; background: #fff; }
#item-dialog .quantity-control button { width: 32px; min-width: 32px; height: 42px; min-height: 42px; font-size: 18px; }
#item-dialog .quantity-control output { min-width: 20px; color: #936587; font-size: 13px; font-weight: 800; }
#item-dialog #item-add { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-height: 44px; padding: 12px 14px; border-radius: 11px; font-size: 12px; font-weight: 800; box-shadow: 0 6px 14px rgba(var(--menu-primary-rgb),.12); }
#item-add > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
#item-line-total { font-size: 13px; font-weight: 800; }
#item-dialog.no-gallery { max-width: 480px; }
#item-dialog.no-gallery .item-popup-layout { grid-template-columns: minmax(0,1fr); height: auto; max-height: 88dvh; }
#item-dialog.no-gallery .item-popup-media { display: none; }
#item-dialog.no-gallery .item-popup-scroll { max-height: 65dvh; }
@media (max-width: 767px) {
    #item-dialog { width: min(100%,560px); max-width: 100%; max-height: 92dvh; margin: auto auto 0; border-radius: 24px 24px 0 0; }
    .item-popup-layout { display: flex; flex-direction: column; height: 88dvh; max-height: 92dvh; }
    .item-popup-media { flex: 0 0 230px; }
    .item-popup-content { flex: 1; }
    .item-popup-scroll { padding: 22px; }
    #item-dialog #item-title { font-size: 25px !important; }
    #item-dialog .dialog-close { width: 36px; height: 36px; }
    .item-popup-footer { grid-template-columns: 104px minmax(0,1fr); gap: 12px; padding: 16px 20px; padding-bottom: max(16px,env(safe-area-inset-bottom)); }
    #item-dialog.no-gallery .item-popup-layout { height: auto; }
    #item-dialog.no-gallery .item-popup-scroll { max-height: 65dvh; }
}
@media (max-width: 575px) and (max-height: 700px) { .item-popup-media { flex-basis: 180px; } }

/* Three food tickets per row on desktop. */
@media (min-width: 1100px) {
    .restaurant-menu .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .restaurant-menu .item-content { padding: 15px; }
    .restaurant-menu .item-name { font-size: 16px; }
    .restaurant-menu .item-price { font-size: 19px; }
    .restaurant-menu .quick-add { min-width: 72px; gap: 5px; padding: 8px 10px; font-size: 11px; }
}

/* A complete dish photo, framed naturally instead of stretched into a tall crop. */
#item-dialog { max-width: 940px; border: 1px solid #ffffffd0; border-radius: 26px; box-shadow: 0 25px 90px #38233330; }
.item-popup-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); height: min(620px,88dvh); }
.item-popup-media { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 26px; border-right: 1px solid #f0e4e9; background: radial-gradient(ellipse at 20% 10%,#fff8ef,transparent 65%), linear-gradient(145deg,#faf3ee,#f6edf4); }
#item-dialog .item-gallery { position: relative; flex: 0 0 auto; width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 5px solid #fff; border-radius: 18px; background: #fffaf6; box-shadow: 0 12px 35px #63405310; }
#item-dialog .item-gallery img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; object-fit: contain; object-position: center; opacity: 1; transition: opacity .15s ease; }
#item-dialog .item-gallery.is-loading img { opacity: .3; }
#item-dialog .item-gallery.is-loading { background: linear-gradient(120deg,#fbf3ed,#f4e7ef,#fbf3ed); }
#item-dialog .gallery-prev, #item-dialog .gallery-next { z-index: 1; width: 32px; height: 32px; border: 1px solid #eadce5; background: #fffffff2; color: #976b88; font-size: 20px; box-shadow: 0 3px 12px #42253a10; }
#item-dialog .gallery-prev { left: 9px; }
#item-dialog .gallery-next { right: 9px; }
#item-dialog #gallery-position { z-index: 1; bottom: 10px; padding: 4px 9px; border: 1px solid #eadce5; background: #fffffff2; font-size: 10px; }
.item-gallery-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #b69aaa; font-size: 12px; }
.item-gallery-fallback i { color: #c9adbd; font-size: 32px; }
.item-gallery-thumbnails { display: flex; flex: 0 0 auto; justify-content: center; flex-wrap: wrap; gap: 9px; }
.gallery-thumbnail { display: block; width: 58px; height: 47px; padding: 3px; overflow: hidden; border: 1px solid #e8d7e1; border-radius: 10px; background: #fff; opacity: .65; }
.gallery-thumbnail img { display: block; width: 100%; height: 100%; border-radius: 6px; object-fit: contain; }
.gallery-thumbnail[aria-pressed="true"] { border: 2px solid var(--menu-primary); padding: 2px; opacity: 1; box-shadow: 0 3px 10px rgba(var(--menu-primary-rgb),.1); }
.item-photo-caption { display: flex; align-items: center; justify-content: center; gap: 10px; padding-inline: 8px; }
.item-photo-caption > span { display: inline-flex; flex: 0 0 32px; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #ffffffd0; border-radius: 10px; background: #ffffff90; color: #b283a2; font-size: 12px; }
.item-photo-caption > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-photo-caption small { color: #b291a6; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.item-photo-caption strong { color: #93718c; font-size: 12px; font-weight: 600; line-height: 1.5; }
.item-popup-scroll { padding: 32px 30px 24px; }
#item-dialog .dialog-close { z-index: 2; top: 14px; right: 14px; width: 34px; height: 34px; border-color: #eee0e9; background: #fff; }
#item-dialog #item-title { margin-right: 24px; color: #5b3963; font-size: 28px !important; line-height: 1.22; }
.item-popup-prices { margin-bottom: 20px; }
.item-popup-prices strong { font-size: 25px; }
#item-dialog #item-description { color: #91768a !important; font-size: 16px; line-height: 1.7; }
#item-dialog .option-group legend, #item-dialog .extras-heading { color: #7a5577; font-size: 15px; }
#item-dialog .option-button { min-height: 44px; font-size: 13px; }
#item-dialog .option-button.active::after { margin-left: 8px; font-size: 10px; content: '✓'; }
#item-dialog .extra-row { min-height: 47px; font-size: 13px; }
#item-dialog .extra-row > .text-secondary { font-size: 12px; }
.item-popup-footer { padding: 20px 26px; background: #fffafc; }
#item-dialog #item-add { min-height: 46px; border-radius: 12px; font-size: 13px; }
#item-dialog .quantity-control { border-color: #e9d9e5; }
#item-dialog .quantity-control button { height: 44px; min-height: 44px; }
@media (max-width: 767px) {
    #item-dialog { width: min(100%,560px); max-height: 92dvh; border-radius: 24px 24px 0 0; }
    .item-popup-layout { height: 88dvh; }
    .item-popup-media { flex: 0 0 auto; gap: 10px; padding: 14px 14px 12px; border-right: 0; border-bottom: 1px solid #f0e4e9; }
    #item-dialog .item-gallery { height: 210px; aspect-ratio: auto; border-width: 3px; border-radius: 15px; box-shadow: 0 5px 20px #63405308; }
    .item-photo-caption { display: none; }
    .gallery-thumbnail { width: 48px; height: 38px; border-radius: 8px; }
    .item-popup-scroll { padding: 23px 22px; }
    #item-dialog .dialog-close { top: 22px; right: 22px; }
    #item-dialog #item-title { margin-right: 0; font-size: 25px !important; }
    .item-popup-footer { padding: 16px 20px; padding-bottom: max(16px,env(safe-area-inset-bottom)); }
    #item-dialog #item-add { font-size: 12px; }
    #item-dialog.no-gallery .dialog-close { top: 14px; right: 14px; }
    #item-dialog.no-gallery #item-title { margin-right: 30px; }
}
@media (max-width: 575px) and (max-height: 700px) { #item-dialog .item-gallery { height: 165px; } }

/* Modern food tickets: a natural photo ratio and a clean, edge-to-edge image. */
.restaurant-menu .menu-item { padding-top: 0; border: 1px solid #eadfe7; border-radius: 19px; background: #fff; box-shadow: 0 5px 20px #50304306; }
.restaurant-menu .menu-item:hover { border-color: color-mix(in srgb,var(--menu-primary) 25%,white); box-shadow: 0 12px 30px #50304310; transform: translateY(-3px); }
.restaurant-menu .item-image { width: 100%; height: auto; min-height: 0; max-height: none; margin: 0; padding: 0; aspect-ratio: 4 / 3; border-radius: 0; background: #f8f2ef; }
.restaurant-menu .item-image > img { width: 100%; height: 100%; padding: 0; border-radius: 0; object-fit: cover; object-position: center; transition: filter .2s ease; }
.restaurant-menu .menu-item:hover .item-image > img { transform: none; filter: brightness(1.035); }
.restaurant-menu .item-image-hint { display: inline-flex; align-items: center; justify-content: center; right: 12px; bottom: 12px; width: 31px; height: 31px; padding: 0; border: 1px solid #ffffffc0; border-radius: 10px; background: #fffffff0; color: #91617e; box-shadow: 0 3px 10px #4a293a10; font-size: 11px; opacity: 1; transform: none; }
.restaurant-menu .item-image-hint > span { display: none; }
.restaurant-menu .item-content { padding: 17px; }
.restaurant-menu .item-category-label { display: inline-flex; width: fit-content; max-width: 100%; margin-bottom: 10px; padding: 4px 7px; border-radius: 6px; background: var(--menu-soft); color: var(--menu-primary); font-size: 9px; font-weight: 700; line-height: 1.3; letter-spacing: .035em; }
.restaurant-menu .item-name { color: #4d3256; font-size: 16px; font-weight: 800; line-height: 1.45; letter-spacing: -.02em; }
.restaurant-menu .item-description { margin-top: 8px; color: #937d8d; font-size: 13px; line-height: 1.65; }
.restaurant-menu .item-price-row { align-items: center !important; gap: 10px !important; margin-top: 16px !important; padding-top: 14px; border-top: 1px solid #f1e7ed; }
.restaurant-menu .item-price { color: #78456e; font-size: 21px; font-weight: 800; letter-spacing: -.025em; }
.restaurant-menu .quick-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 74px; min-height: 39px; padding: 9px 11px; border: 1px solid var(--menu-primary); border-radius: 10px; background: var(--menu-primary); color: #fff; box-shadow: 0 4px 11px rgba(var(--menu-primary-rgb),.12); font-size: 11px; font-weight: 700; }
.restaurant-menu .quick-add:hover { background: color-mix(in srgb,var(--menu-primary) 86%,black); box-shadow: 0 6px 15px rgba(var(--menu-primary-rgb),.2); }
.restaurant-menu .quick-add > span:first-child { font-size: 16px; font-weight: 400; }
.restaurant-menu .sale-badge { top: 12px; left: 12px; padding: 5px 8px; border: 1px solid #ffffff40; border-radius: 7px; font-size: 9px; }
@media (max-width: 575px) {
    .restaurant-menu .item-grid { gap: 12px; }
    .restaurant-menu .menu-item { padding-top: 0; border-radius: 15px; }
    .restaurant-menu .item-image { width: 100%; margin: 0; aspect-ratio: 4 / 3; border-radius: 0; }
    .restaurant-menu .item-image > img { padding: 0; border-radius: 0; }
    .restaurant-menu .item-content { padding: 12px; }
    .restaurant-menu .item-category-label { margin-bottom: 8px; padding: 3px 6px; font-size: 8px; }
    .restaurant-menu .item-name { min-height: 40px; font-size: 14px; line-height: 1.45; }
    .restaurant-menu .item-description { margin-top: 6px; font-size: 12px; line-height: 1.6; }
    .restaurant-menu .item-price-row { align-items: stretch !important; margin-top: 12px !important; padding-top: 12px; gap: 9px !important; }
    .restaurant-menu .item-price { font-size: 19px; }
    .restaurant-menu .quick-add { width: 100%; min-height: 36px; padding: 8px 9px; border-radius: 9px; font-size: 11px; }
    .restaurant-menu .item-image-hint { right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 8px; font-size: 9px; }
}
@media (max-width: 359px) {
    .restaurant-menu .item-name { min-height: 0; font-size: 16px; }
    .restaurant-menu .item-price-row { align-items: center !important; }
    .restaurant-menu .quick-add { width: auto; }
}

/* Medium-sized product popup with comfortable image and control spacing. */
#item-dialog { max-width: 780px; border-radius: 22px; }
.item-popup-layout { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); height: min(550px,84dvh); }
.item-popup-media { padding: 20px; gap: 12px; }
#item-dialog .item-gallery { border-width: 4px; border-radius: 15px; }
.item-popup-scroll { padding: 26px 23px 20px; }
#item-dialog #item-title { font-size: 24px !important; margin-bottom: 11px; }
.item-popup-eyebrow { margin-bottom: 10px; }
.item-popup-prices { margin-bottom: 15px; }
.item-popup-prices strong { font-size: 22px; }
#item-dialog #item-description { margin-bottom: 16px; font-size: 15px; line-height: 1.65; }
#item-dialog #item-options, #item-dialog #item-extras { margin-top: 16px; padding-top: 16px; }
#item-dialog .option-button { min-height: 40px; padding: 9px 12px; }
#item-dialog .extra-row { min-height: 42px; padding: 11px; }
.item-popup-footer { grid-template-columns: 100px minmax(0,1fr); gap: 12px; padding: 15px 20px; }
#item-dialog #item-add { min-height: 43px; padding: 11px 12px; font-size: 12px; }
#item-dialog .quantity-control button { min-width: 30px; width: 30px; min-height: 41px; height: 41px; }
#item-dialog.no-gallery { max-width: 440px; }
@media (max-width: 767px) {
    #item-dialog { width: min(calc(100% - 20px),460px); max-height: 86dvh; margin: auto; border-radius: 20px; }
    .item-popup-layout { height: min(650px,84dvh); }
    .item-popup-media { padding: 12px; gap: 8px; }
    #item-dialog .item-gallery { height: 175px; border-width: 3px; border-radius: 12px; }
    .item-popup-scroll { padding: 20px; }
    #item-dialog .dialog-close { top: 19px; right: 19px; }
    #item-dialog #item-title { font-size: 23px !important; }
    .item-popup-footer { grid-template-columns: 96px minmax(0,1fr); padding: 13px 16px; }
}
@media (max-width: 575px) and (max-height: 700px) { #item-dialog .item-gallery { height: 140px; } }

/* Mobile restaurant hero: a wide cover above a readable restaurant introduction. */
@media (max-width: 575px) {
    .restaurant-hero { padding-top: 14px; padding-bottom: 16px; }
    .restaurant-hero-shell { display: flex; flex-direction: column; overflow: hidden; border-radius: 19px; background: #fff; }
    .restaurant-hero .restaurant-cover { position: relative; order: -1; flex: 0 0 auto; width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: 16 / 10; background: #f8f1ec; }
    .restaurant-hero .restaurant-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
    .restaurant-hero .restaurant-cover::after { background: linear-gradient(to top,#38243218,transparent 55%); }
    .restaurant-hero-copy { display: flex; align-items: flex-start; width: 100%; min-width: 0; padding: 20px; background: linear-gradient(140deg,#fff 45%,var(--menu-soft)); }
    .restaurant-hero-copy > .menu-eyebrow { display: none; }
    .restaurant-identity { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; }
    .restaurant-identity .restaurant-logo { display: block; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--menu-border); border-radius: 12px; box-shadow: none; }
    .restaurant-identity .restaurant-logo img { padding: 3px; object-fit: contain; }
    .restaurant-identity .restaurant-logo > span { font-size: 18px; }
    .restaurant-identity .status-pill { padding: 5px 9px; font-size: 10px; }
    .restaurant-hero h1 { width: 100%; margin: 0 0 10px; color: var(--menu-ink); font-size: clamp(25px,6.5vw,30px); font-weight: 800; line-height: 1.18; letter-spacing: -.035em; overflow-wrap: anywhere; }
    .restaurant-hero-description { display: block; width: 100%; max-width: none; overflow: visible; color: #8b7284; font-size: 15px; line-height: 1.65; -webkit-line-clamp: unset; }
    .restaurant-hero-meta { gap: 9px 14px; margin-top: 13px; font-size: 11px; }
    .restaurant-hero-actions { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; gap: 10px; margin-top: 19px; }
    .restaurant-hero-actions .btn { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 12px 15px; border-radius: 10px; font-size: 13px; }
    .restaurant-hero-actions .restaurant-details-link, .restaurant-hero .restaurant-photo-note { display: none; }
}

/* Compact restaurant information rows on phones. */
@media (max-width: 575px) {
    .restaurant-info-grid { gap: 8px; }
    .restaurant-info-card { position: relative; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 4px 10px; padding: 13px 14px; border-radius: 13px; background: #fff; }
    .restaurant-info-top { display: contents; }
    .restaurant-info-symbol { grid-column: 1; grid-row: 1 / 3; align-self: center; width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
    .restaurant-info-top h2 { grid-column: 2; grid-row: 1; color: #a08397; font-size: 10px; line-height: 1.4; }
    .restaurant-info-day { display: none; }
    .restaurant-info-body { grid-column: 2; grid-row: 2; }
    .restaurant-info-value { color: #775375; font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: -.01em; }
    .restaurant-address-value { font-size: 12px; font-weight: 600; }
    .restaurant-info-body p { display: none; }
    .restaurant-info-footer { grid-column: 3; grid-row: 1 / 3; align-self: center; margin: 0; padding: 0 0 0 8px; border: 0; }
    .restaurant-info-footer > a { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; max-width: 96px; padding: 7px 8px; border: 1px solid #efdfeb; border-radius: 8px; background: var(--menu-soft); font-size: 10px; line-height: 1.4; text-align: center; }
    .restaurant-info-footer > a > i:last-child { display: none; }
    .restaurant-info-footer > a > .fa-whatsapp { font-size: 13px; }
    .restaurant-info-status { gap: 5px; padding: 5px 7px; border-radius: 7px; font-size: 9px; white-space: nowrap; }
}
@media (max-width: 359px) {
    .restaurant-info-card { gap: 4px 8px; padding: 12px; }
    .restaurant-info-footer { padding-left: 3px; }
    .restaurant-info-footer > a { max-width: 78px; padding: 6px; font-size: 9px; }
}

/* Let mobile product photos determine their own height instead of forcing a short box. */
@media (max-width: 767px) {
    #item-dialog .item-popup-media { flex: 0 0 auto; min-height: 0; height: auto; padding: 8px; gap: 8px; background: #fbf5f8; }
    #item-dialog .item-gallery { width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; border: 0; border-radius: 13px; background: #fbf5f8; box-shadow: none; }
    #item-dialog .item-gallery > img { position: static; display: block; width: 100%; height: auto; max-height: min(40dvh,280px); padding: 0; border-radius: 13px; object-fit: contain; object-position: center; }
    #item-dialog .item-gallery:has(#item-gallery-fallback:not([hidden])) { min-height: 160px; }
    #item-dialog .dialog-close { top: 17px; right: 17px; width: 32px; height: 32px; background: #fffffff2; box-shadow: 0 3px 12px #4a293a10; }
    #item-dialog .item-gallery-thumbnails { padding-block: 2px; }
}
