/* Shared polish for the live menu. Keep layout decisions in app.css/theme-engine. */
:root{--mp-ease:cubic-bezier(.2,.7,.2,1);--mp-shadow:0 1px 2px #1d150d0d,0 8px 22px -10px #1d150d2e}
body.menu-page :focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Keep the cover actions together without forcing a different hero layout. */
.menu-page .hero-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px}
.menu-page .hero-menu-cta,.menu-page .hero-contact-cta{min-height:48px;justify-content:center;gap:10px;border-radius:999px;font-weight:700;transition:transform .25s var(--mp-ease),box-shadow .25s var(--mp-ease)}
.menu-page .hero-menu-cta:hover,.menu-page .hero-contact-cta:hover{transform:translateY(-2px);box-shadow:0 10px 24px #0003}
.menu-page .hero-fulfillment{display:flex;flex-wrap:wrap;gap:8px}
.menu-page .hero-fulfillment-item{padding:7px 13px;border-radius:999px;background:#ffffff1f;border:1px solid #ffffff38;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font-size:12.5px;font-weight:600}

/* Search and filters gain clearer touch targets while inheriting each theme's colors. */
.menu-page .search-wrap{border-radius:999px;box-shadow:var(--mp-shadow);background:var(--surface)}
.menu-page .category-pills{scroll-snap-type:x proximity;scrollbar-width:none}
.menu-page .category-pills::-webkit-scrollbar{display:none}
.menu-page .category-pills .pill{scroll-snap-align:center;min-height:42px;font-weight:700;white-space:nowrap}

/* Product polish only: the active theme/layout continues to control the grid and card shape. */
.menu-page #menu-list{gap:clamp(13px,2vw,22px)}
.menu-page .product-card{min-width:0;box-shadow:var(--mp-shadow);transition:transform .3s var(--mp-ease),box-shadow .3s var(--mp-ease)}
.menu-page .product-image{position:relative;background-position:center;background-size:cover}
.menu-page .product-info h3{line-height:1.35}
.menu-page .product-info p{line-height:1.55}
.menu-page .product-bottom strong{font-variant-numeric:tabular-nums}
.menu-page .product-badge{border-radius:999px}

/* Only the list design uses the compact horizontal product rows on phones. */
@media(max-width:700px){
 .menu-page .hero-actions{width:100%;max-width:440px}
 .menu-page .hero-menu-cta,.menu-page .hero-contact-cta{flex:1 1 145px}
 :root[data-layout='list'] .menu-page #menu-list{grid-template-columns:1fr;gap:11px}
 :root[data-layout='list'] .menu-page .product-card{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:stretch;min-height:132px;padding:9px;border-radius:16px}
 :root[data-layout='list'] .menu-page .product-image{width:112px;height:100%;min-height:112px;aspect-ratio:1;border-radius:12px}
 :root[data-layout='list'] .menu-page .product-info{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:3px 10px}
 :root[data-layout='list'] .menu-page .product-info h3{font-size:15px}
 :root[data-layout='list'] .menu-page .product-info p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11.5px}
 :root[data-layout='list'] .menu-page .product-bottom{margin-top:auto;padding-top:5px}
 .menu-page .customer-bottom-nav>*{position:relative;min-width:0;font-size:11px;font-weight:600}
 .menu-page .customer-bottom-nav .bottom-nav-disabled,.menu-page .customer-bottom-nav .is-disabled{opacity:.38}
 .menu-page #cart-count{position:absolute;inset-block-start:2px;inset-inline-start:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;border-radius:999px;font-size:10px;font-weight:800;background:var(--accent);color:var(--button-text,#fff);border:2px solid var(--surface)}
 .menu-page .social-fab{bottom:calc(86px + env(safe-area-inset-bottom))}
 .menu-page .social-fab-toggle{width:46px;height:46px;box-shadow:0 10px 24px -8px #0006}
}
@media(min-width:1100px){.menu-page .product-card:hover{transform:translateY(-3px);box-shadow:0 2px 4px #1d150d0f,0 24px 42px -20px #1d150d40}}
@media(hover:none){.menu-page .product-card:hover,.menu-page .hero-menu-cta:hover,.menu-page .hero-contact-cta:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.menu-page *{transition:none!important;animation:none!important}}

/* A restrained, shared entrance and touch response for every storefront theme. */
.menu-page .menu-hero{animation:storefront-hero-in .72s cubic-bezier(.2,.7,.2,1) backwards}
.menu-page .menu-hero .hero-copy{animation:storefront-copy-in .78s .12s cubic-bezier(.2,.7,.2,1) backwards}
.menu-page .menu-intro{animation:storefront-copy-in .55s .08s cubic-bezier(.2,.7,.2,1) backwards}
.menu-page .category-pills .pill{transition:transform .2s var(--mp-ease),background-color .2s,border-color .2s,color .2s,box-shadow .2s}
.menu-page .category-pills .pill:hover{transform:translateY(-2px)}
.menu-page #menu-list .product-card{animation:storefront-card-in .48s cubic-bezier(.2,.7,.2,1) backwards}
.menu-page #menu-list .product-card:nth-child(2){animation-delay:42ms}.menu-page #menu-list .product-card:nth-child(3){animation-delay:84ms}.menu-page #menu-list .product-card:nth-child(4){animation-delay:126ms}.menu-page #menu-list .product-card:nth-child(5){animation-delay:168ms}.menu-page #menu-list .product-card:nth-child(6){animation-delay:210ms}.menu-page #menu-list .product-card:nth-child(7){animation-delay:252ms}.menu-page #menu-list .product-card:nth-child(8){animation-delay:294ms}.menu-page #menu-list .product-card:nth-child(n+9){animation-delay:336ms}
.menu-page .product-image{transition:filter .28s var(--mp-ease),background-position .45s var(--mp-ease)}
.menu-page .product-card:hover .product-image{filter:saturate(1.08)}
.menu-page .button,.menu-page .icon-button,.menu-page .social-fab-toggle{transition:transform .2s var(--mp-ease),box-shadow .2s var(--mp-ease),filter .2s}
.menu-page .product-bottom .button:active,.menu-page .hero-menu-cta:active,.menu-page .icon-button:active{transform:scale(.97)}
@keyframes storefront-hero-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes storefront-copy-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes storefront-card-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.menu-page .menu-hero,.menu-page .menu-hero .hero-copy,.menu-page .menu-intro,.menu-page #menu-list .product-card{animation:none!important}.menu-page .product-card:hover,.menu-page .category-pills .pill:hover{transform:none}}

/* Product cards follow the selected restaurant storefront, not only its palette. */
:root[data-theme='kabsa-station'] .menu-page .product-card{border:0;border-radius:24px;background:var(--surface);box-shadow:0 14px 34px #5d1e3217}
:root[data-theme='kabsa-station'] .menu-page .product-image{aspect-ratio:1.55/1;border-radius:22px 22px 0 0}
:root[data-theme='kabsa-station'] .menu-page .product-info{padding:18px 19px}
:root[data-theme='kabsa-station'] .menu-page .product-bottom .button{border-radius:10px}

:root[data-theme='donuts-master'] .menu-page .product-card{border:1px solid #d8edf5;border-radius:26px;background:#fff;box-shadow:0 12px 30px #087da014}
:root[data-theme='donuts-master'] .menu-page .product-image{aspect-ratio:1.72/1;border-radius:25px 25px 0 0}
:root[data-theme='donuts-master'] .menu-page .product-info{padding:16px 18px 17px}
:root[data-theme='donuts-master'] .menu-page .product-info h3{font-weight:750}
:root[data-theme='donuts-master'] .menu-page .product-bottom{border-top:1px solid #d8edf5}
:root[data-theme='donuts-master'] .menu-page .product-bottom .button{border-radius:999px}

:root[data-theme='uncle-simsim'] .menu-page .product-card{border:0;border-bottom:1px dashed #7d302955;border-radius:0;background:transparent;box-shadow:none}
:root[data-theme='uncle-simsim'] .menu-page .product-image{aspect-ratio:1.8/1;border-radius:8px}
:root[data-theme='uncle-simsim'] .menu-page .product-info{padding:15px 2px 18px}
:root[data-theme='uncle-simsim'] .menu-page .product-bottom .button{border-radius:8px}

:root[data-theme='pizza-napoli'] .menu-page .product-card{border:1px solid #d6e0cd;border-radius:22px;background:#f9fff4;box-shadow:0 12px 32px #21352212}
:root[data-theme='pizza-napoli'] .menu-page .product-image{aspect-ratio:1.55/1;border-radius:21px 21px 0 0}
:root[data-theme='pizza-napoli'] .menu-page .product-bottom .button{border-radius:999px;background:#bd982d;color:#202a20}

:root[data-theme='masria-heritage'][data-layout='list'] .menu-page #menu-list{grid-template-columns:1fr;gap:14px}
:root[data-theme='masria-heritage'][data-layout='list'] .menu-page .product-card{display:grid;grid-template-columns:minmax(150px,30%) minmax(0,1fr);min-height:190px;border:1px solid #e9d9c8;border-radius:16px;background:#fffdf8}
:root[data-theme='masria-heritage'][data-layout='list'] .menu-page .product-image{height:100%;min-height:190px;aspect-ratio:auto;border-radius:0 15px 15px 0}
:root[dir='ltr'][data-theme='masria-heritage'][data-layout='list'] .menu-page .product-image{border-radius:15px 0 0 15px}
:root[data-theme='masria-heritage'][data-layout='list'] .menu-page .product-info{justify-content:center;padding:20px 22px}

@media(max-width:700px){
 :root[data-theme='kabsa-station'] .menu-page .product-image,:root[data-theme='pizza-napoli'] .menu-page .product-image{aspect-ratio:1.45/1}
 :root[data-theme='donuts-master'] .menu-page .product-image{aspect-ratio:1.62/1}
 :root[data-theme='masria-heritage'][data-layout='list'] .menu-page #menu-list{grid-template-columns:1fr}
 :root[data-theme='masria-heritage'][data-layout='list'] .menu-page .product-card{grid-template-columns:104px minmax(0,1fr);min-height:132px}
 :root[data-theme='masria-heritage'][data-layout='list'] .menu-page .product-image{min-height:132px;border-radius:0 15px 15px 0}
 :root[dir='ltr'][data-theme='masria-heritage'][data-layout='list'] .menu-page .product-image{border-radius:15px 0 0 15px}
 :root[data-theme='masria-heritage'][data-layout='list'] .menu-page .product-info{padding:10px 12px}
}

/* Match the product compositions shown in each full design preview. */
:root[data-theme='kabsa-station'] .menu-page #menu-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
:root[data-theme='kabsa-station'] .menu-page .product-card{border-radius:6px 24px;}
:root[data-theme='kabsa-station'] .menu-page .product-image{aspect-ratio:1.3/1;border-radius:6px 20px}
:root[data-theme='donuts-master'] .menu-page #menu-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
:root[data-theme='donuts-master'] .menu-page .product-image{height:205px;min-height:0;aspect-ratio:auto;border-radius:50% 50% 18px 18px}
:root[data-theme='uncle-simsim'] .menu-page #menu-list{grid-template-columns:1fr;max-width:930px;margin-inline:auto}
:root[data-theme='uncle-simsim'] .menu-page .product-card{display:grid;grid-template-columns:260px minmax(0,1fr);align-items:center}
:root[data-theme='uncle-simsim'] .menu-page .product-image{height:190px;min-height:190px;aspect-ratio:auto}
:root[data-theme='uncle-simsim'] .menu-page .product-info{padding:15px 18px}
:root[data-theme='pizza-napoli'] .menu-page #menu-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
:root[data-theme='pizza-napoli'] .menu-page .product-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:1.15fr 1fr;align-items:center}
:root[data-theme='pizza-napoli'] .menu-page .product-card:first-child .product-image{height:340px;min-height:340px;aspect-ratio:auto;border-radius:21px 0 0 21px}
:root[dir='rtl'][data-theme='pizza-napoli'] .menu-page .product-card:first-child .product-image{border-radius:0 21px 21px 0}
:root[data-theme='pizza-napoli'] .menu-page .product-card:first-child .product-info{padding:30px}
:root[data-theme='masria-heritage'] .menu-page #menu-list{grid-template-columns:1fr;gap:0}
:root[data-theme='masria-heritage'] .menu-page .product-card{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;min-height:150px;border:0;border-bottom:1px solid #e5d7c7;border-radius:0;background:transparent;box-shadow:none}
:root[data-theme='masria-heritage'] .menu-page .product-image{height:150px;min-height:150px;aspect-ratio:auto;border-radius:14px}
:root[data-theme='masria-heritage'] .menu-page .product-info{justify-content:center;padding:16px 20px}

@media(max-width:1050px){
 :root[data-theme='kabsa-station'] .menu-page #menu-list,:root[data-theme='donuts-master'] .menu-page #menu-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
 :root[data-theme='kabsa-station'] .menu-page #menu-list,:root[data-theme='donuts-master'] .menu-page #menu-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 :root[data-theme='donuts-master'] .menu-page .product-image{height:145px}
 :root[data-theme='uncle-simsim'] .menu-page .product-card,:root[data-theme='masria-heritage'] .menu-page .product-card{grid-template-columns:110px minmax(0,1fr)}
 :root[data-theme='uncle-simsim'] .menu-page .product-image,:root[data-theme='masria-heritage'] .menu-page .product-image{height:145px;min-height:145px}
 :root[data-theme='pizza-napoli'] .menu-page #menu-list{grid-template-columns:1fr}
 :root[data-theme='pizza-napoli'] .menu-page .product-card:first-child{grid-column:auto;grid-template-columns:1fr}
 :root[data-theme='pizza-napoli'] .menu-page .product-card:first-child .product-image{height:200px;min-height:200px;aspect-ratio:auto;border-radius:20px 20px 0 0}
 :root[data-theme='pizza-napoli'] .menu-page .product-card:first-child .product-info{padding:14px}
}

/* The checkout form must sit above the drawer while the drawer closes. */
.menu-page #modal-root{position:relative;z-index:45}
.menu-page #modal-root .modal-backdrop{z-index:46}

/* Original presets also need their own product composition when selected. */
:root[data-theme='modern-minimal'] .menu-page .product-card{border:1px solid #e7e4df;border-radius:12px;box-shadow:0 3px 14px #1714110a}
:root[data-theme='modern-minimal'] .menu-page .product-image{aspect-ratio:1.8/1;border-radius:11px 11px 0 0}
:root[data-theme='modern-minimal'] .menu-page .product-bottom .button{border-radius:8px}
:root[data-theme='dark-premium'] .menu-page #menu-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
:root[data-theme='dark-premium'] .menu-page .product-card{border:1px solid #e3b46155;border-radius:8px;background:#211e27;box-shadow:0 14px 38px #0004}
:root[data-theme='dark-premium'] .menu-page .product-image{aspect-ratio:1.45/1;border-radius:7px 7px 0 0}
:root[data-theme='dark-premium'] .menu-page .product-bottom{border-top:1px solid #e3b46133}
:root[data-theme='dark-premium'] .menu-page .product-bottom .button{border-radius:4px;background:#e3b461;color:#211e27}
:root[data-theme='fast-food'] .menu-page #menu-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
:root[data-theme='fast-food'] .menu-page .product-card{border:0;border-bottom:4px solid #c53226;border-radius:14px;background:#fff;box-shadow:0 10px 25px #9e301317}
:root[data-theme='fast-food'] .menu-page .product-image{aspect-ratio:1.6/1;border-radius:13px 13px 0 0}
:root[data-theme='fast-food'] .menu-page .product-bottom .button{border-radius:8px;background:#c53226}
:root[data-theme='cafe-bakery'] .menu-page #menu-list{grid-template-columns:1fr;gap:12px}
:root[data-theme='cafe-bakery'] .menu-page .product-card{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:center;min-height:180px;border:1px solid #dce3d8;border-radius:18px;background:#fff;box-shadow:0 8px 24px #263c3010}
:root[data-theme='cafe-bakery'] .menu-page .product-image{height:178px;min-height:178px;aspect-ratio:auto;border-radius:17px}
:root[data-theme='cafe-bakery'] .menu-page .product-info{justify-content:center;padding:20px 23px}
:root[data-theme='cafe-bakery'] .menu-page .product-bottom .button{border-radius:999px;background:#39705b}
@media(max-width:760px){
 :root[data-theme='dark-premium'] .menu-page #menu-list,:root[data-theme='fast-food'] .menu-page #menu-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 :root[data-theme='cafe-bakery'] .menu-page .product-card{grid-template-columns:112px minmax(0,1fr);min-height:132px}
 :root[data-theme='cafe-bakery'] .menu-page .product-image{height:130px;min-height:130px;border-radius:14px}
 :root[data-theme='cafe-bakery'] .menu-page .product-info{padding:11px 13px}
}
