/* Compact public catalog controls; owner access stays at the end of the page. */
.catalog-app>header{padding-top:12px;padding-bottom:10px;gap:10px}
.catalog-app .service{padding-bottom:8px;margin-bottom:8px}
.catalog-app .app-actions{margin:8px 0;gap:8px}
.catalog-app .app-actions button{min-height:44px;padding:8px 10px}
.catalog-app .push-preferences{margin:8px 0 12px;gap:6px}
.catalog-app .push-preferences button{min-height:44px;padding:8px 10px}
.catalog-app .push-preferences p{font-size:13px;line-height:1.4}
.catalog-app .customer-update-tools{display:flex;align-items:flex-start;flex-wrap:nowrap;gap:8px;margin:0 0 10px}
.catalog-app .customer-update-tools>button{flex:0 1 auto;width:auto;min-height:44px;margin:0}
.catalog-app .catalog-refresh-tools{flex:0 1 auto;min-width:0}
.catalog-app .catalog-refresh-tools #refresh-app{width:auto;max-width:100%;min-height:44px;padding:8px 12px;margin:0;font-size:14px;line-height:1.35;white-space:normal}
.catalog-app .catalog-refresh-tools p{margin:5px 0 0;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.catalog-app .catalog-refresh-tools p:empty{display:none}
.catalog-app .catalog-refresh-tools #refresh-app[aria-busy="true"]{display:inline-flex;align-items:center;gap:8px}
.catalog-app .catalog-refresh-tools #refresh-app[aria-busy="true"]:before{content:'';width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:app-update-spin .8s linear infinite;flex-shrink:0}
.catalog-app .flash-banner{margin:10px 0 14px;min-height:48px;padding:10px 14px}
.catalog-app .catalog-footer{display:flex;justify-content:center;margin:20px 0 12px}
.catalog-app .catalog-footer .owner-entry{margin:0;justify-content:center;min-height:44px;max-width:100%}
@media(max-width:700px){
 .catalog-app>header{padding-top:12px;padding-bottom:8px}
 .catalog-app .customer-update-tools>button{flex:0 1 auto}
 .catalog-app .catalog-refresh-tools{flex:1 1 auto}
 .catalog-app .catalog-refresh-tools #refresh-app{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.catalog-app .catalog-refresh-tools #refresh-app[aria-busy="true"]:before{animation:none}}

/* Keep the whole bottom navigation inside Android/iOS's visible app frame. */
body.catalog-app{height:var(--catalog-visible-height,100dvh);min-height:0;bottom:auto}
body.catalog-app>nav{flex-shrink:0;min-height:72px;padding-top:8px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
body.catalog-app>nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:52px;line-height:1.25}
body.catalog-app>nav button>span{flex:0 0 auto;margin-bottom:4px;line-height:1.1}
body.catalog-app>nav button>b{position:absolute;top:2px;right:5px}

/* Black and pale gold product references and checkout, following the reference. */
.catalog-app .product-code{background:#f0d8a1;color:#051132;border-color:#cba45e}
.catalog-app .filters button,.catalog-app .subfilters button{border:1px solid #e6c887!important;border-radius:24px}
.catalog-app .cash-top{display:flex;min-width:70px;padding:4px 6px;border:0!important;box-shadow:none}
.catalog-app .cash-top span,.catalog-app .cash-top strong{color:#f0d8a1!important}
.catalog-app .cash-top strong{font-size:16px}
.catalog-app .cash-top span{font-size:11px}
@media(max-width:480px){
 .catalog-app .shopping-tools{gap:4px;flex-shrink:0}
 .catalog-app .cash-top{min-width:62px;padding-inline:3px}
 .catalog-app .cash-top strong{font-size:14px}
 .catalog-app .brand{gap:7px}
 .catalog-app .brand img{width:36px;height:36px;flex-shrink:0}
 .catalog-app .brand span{font-size:clamp(19px,5vw,24px);line-height:1.15;white-space:normal}
 .catalog-app .brand small{font-size:10px;line-height:1.3;white-space:normal}
}

/* Live offer marquee: transform-only motion, constrained to the shop width. */
.offer-ticker[hidden]{display:none!important}
.offer-ticker{min-width:0;max-width:100%;margin:10px 0 18px;background:#030a1d;border:1px solid #b2924d;border-radius:14px;overflow:hidden;contain:inline-size}
.offer-ticker-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;border-bottom:1px solid #0b256d}
.offer-ticker-heading>strong{color:#ff4949;font-size:15px;letter-spacing:.07em}
.offer-ticker-pause{background:transparent;color:#eed49a;border:1px solid #7b663d;border-radius:8px;padding:5px 9px;font-size:12px;min-height:32px}
.offer-ticker-window{display:block;width:100%;max-width:100%;padding:0;border:0;border-radius:0;background:#030a1d;color:#fff;text-align:left;overflow:hidden;cursor:pointer}
.offer-ticker-track{display:flex;width:max-content;animation:offer-ticker-move var(--ticker-duration,30s) linear infinite;will-change:transform}
.offer-ticker-group{display:flex;align-items:stretch;flex-shrink:0;min-width:100vw}
.offer-ticker-item{display:flex;align-items:center;flex-shrink:0;gap:10px;width:260px;padding:10px 18px 10px 10px;box-sizing:border-box;border-right:1px solid #091d56}
.offer-ticker-item img{width:60px;height:64px;object-fit:contain;flex-shrink:0;background:#fff;border-radius:7px}
.offer-ticker-symbol{font-size:38px;width:60px;text-align:center;flex-shrink:0}
.offer-ticker-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.offer-ticker-name{color:#fff;font-size:14px;font-weight:700;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.offer-ticker-format{color:#d4c7b1;font-size:11px}
.offer-ticker-price{color:#ff4949;font-size:22px;line-height:1.2;text-shadow:0 0 9px #ff282844}
.offer-ticker-paused .offer-ticker-track,.offer-ticker-window:focus-visible .offer-ticker-track{animation-play-state:paused}
@media(hover:hover){.offer-ticker:hover .offer-ticker-track{animation-play-state:paused}}
.catalog-app[data-view="checkout"] .offer-ticker,.catalog-app[data-view="history"] .offer-ticker,.catalog-app[data-view="favorites"] .offer-ticker{display:none}
@keyframes offer-ticker-move{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.offer-ticker-track{animation:none;will-change:auto}.offer-ticker-window{overflow-x:auto}.offer-ticker-group[aria-hidden="true"]{display:none}.offer-ticker-pause{display:none}}

/* Category selection: large photography and a separate, readable caption. */
.category-screen-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:26px 0 20px}
.category-eyebrow{margin:0 0 8px;color:#d1b578;font-size:10px;letter-spacing:.16em;font-weight:750}
.catalog-app #content .category-screen-heading h1{margin:0;color:#fcf8f0;font:650 clamp(25px,4vw,37px)/1.12 system-ui,-apple-system,sans-serif;letter-spacing:-.045em}
.category-intro{margin:9px 0 0;color:#bdb7ac;font-size:13px;line-height:1.5}
.category-all{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0;background:#071642;color:#e8ca8b;border:1px solid #685638;border-radius:100px;padding:10px 15px;min-height:44px;font-size:12px;font-weight:650}
.catalog-app .modern-categories{gap:18px;align-items:stretch;grid-template-columns:repeat(3,minmax(0,1fr));padding-bottom:8px}
.catalog-app .modern-categories .modern-category{display:flex;flex-direction:column;aspect-ratio:auto;min-width:0;min-height:0;padding:0!important;border:1px solid #0d2d85;border-radius:20px;background:#061339;color:#faf7ee;text-align:left;overflow:hidden;box-shadow:0 8px 20px #02071522;transition:transform .2s ease,border-color .2s ease;content-visibility:visible;contain:none}
.modern-category .category-media{display:block;position:relative;width:100%;aspect-ratio:1.35;overflow:hidden;background:#071949;isolation:isolate}
.catalog-app .modern-categories .category-media>img{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;margin:0;object-fit:cover;filter:none;transition:transform .45s ease}
.catalog-app .modern-categories .category-media>.category-photo-group{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:0;width:100%;height:100%;padding:12px;background:radial-gradient(ellipse at 50% 75%,#fff,#ddd8ca)}
.modern-categories .category-photo-group img{position:static;display:block;width:33.333%;height:90%;object-fit:contain;padding:0;margin:0}
.catalog-app .modern-categories .category-media>.snack-art{display:grid;place-items:center;position:absolute;inset:0;width:100%;height:100%;font-size:68px;background:radial-gradient(ellipse at center,#09205f,#06143c)}
.category-photo-shade{position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(180deg,#02071500 65%,#02071522)}
.modern-category .category-caption{position:relative;display:flex;flex-direction:column;justify-content:center;gap:5px;flex:1;width:100%;min-height:82px;padding:15px 45px 15px 15px;border-top:1px solid #b393522b;background:linear-gradient(135deg,#071745,#061338)}
.category-title{display:block;color:#f6efdf;font:650 17px/1.25 system-ui,-apple-system,sans-serif;letter-spacing:-.025em;overflow-wrap:anywhere}
.category-meta{display:block;color:#c5b591;font-size:11px;line-height:1.4}
.category-arrow{display:grid;place-items:center;position:absolute;right:12px;top:50%;transform:translateY(-50%);width:27px;height:27px;border:1px solid #6b5834;border-radius:50%;color:#e4c37e;font-size:16px}
.modern-category .category-editorial{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;padding:18px;background:radial-gradient(ellipse at top right,#8f392b77,transparent 65%),#071744;color:#ff9a75}
.category-editorial-word{font-size:clamp(26px,4vw,43px);font-weight:850;line-height:.95;letter-spacing:-.06em}
.category-editorial-mark{position:absolute;right:13px;top:11px;font-size:20px}
.category-editorial-tag{font-size:8px;font-weight:750;letter-spacing:.13em;margin-top:3px}
.modern-category.category-flyer .category-editorial{background:radial-gradient(ellipse at top right,#b8934155,transparent 65%),#071744;color:#ebcf91}
@media(hover:hover){.catalog-app .modern-categories .modern-category:hover{transform:translateY(-3px);border-color:#d9b66f}.modern-category:hover .category-media>img{transform:scale(1.035)}}
@media(max-width:700px){.category-screen-heading{align-items:flex-start;flex-wrap:wrap;margin:22px 0 17px;gap:13px}.category-screen-heading>div{flex-basis:100%}.category-all{padding:8px 13px;min-height:40px}.catalog-app .modern-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-app .modern-categories .modern-category{border-radius:16px}.modern-category .category-caption{min-height:80px;padding:13px 38px 13px 11px}.category-title{font-size:clamp(14px,3.8vw,17px)}.category-arrow{right:9px;width:23px;height:23px;font-size:14px}.modern-category .category-editorial{padding:15px}.category-editorial-word{font-size:clamp(25px,7vw,36px)}}
@media(prefers-reduced-motion:reduce){.catalog-app .modern-categories .modern-category,.catalog-app .modern-categories .category-media>img{transition:none}.modern-category:hover .category-media>img{transform:none}}

/* Food7prive: real brands, oversized product photography, compact shopping cards. */
.catalog-app[data-view="home"] #content{max-width:1180px;margin-inline:auto}
.category-screen-heading{padding:10px 0 7px;margin-bottom:22px}
.catalog-app #content .category-screen-heading h1{font-size:clamp(34px,6vw,58px);font-weight:780;letter-spacing:-.065em;max-width:650px}
.category-intro{font-size:14px;color:#aca9a0}
.category-eyebrow{letter-spacing:.2em;font-size:10px;color:#e3c47d}
.category-all{background:#e7cb8b;color:#051235;border:0;font-size:13px;box-shadow:0 4px 22px #d7b76816}
.catalog-app .modern-categories{gap:20px;grid-template-columns:repeat(4,minmax(0,1fr))}
.catalog-app .modern-categories .modern-category{border:1px solid #ffffff17;border-radius:24px;background:#06163f;box-shadow:none;position:relative}
.catalog-app .modern-categories .modern-category .category-media{aspect-ratio:1/1.12;background:#f4f3ed;border-radius:23px 23px 0 0}
.catalog-app .modern-categories .modern-category .category-media>.category-real-product{object-fit:contain;inset:47px 15px 16px;width:calc(100% - 30px);height:calc(100% - 63px);mix-blend-mode:multiply;filter:drop-shadow(0 12px 6px #081c5412);padding:0}
.category-brand{position:absolute;z-index:2;left:13px;top:14px;right:13px;color:#0c2979!important;font-size:10px;font-weight:650;line-height:1.35;letter-spacing:.015em;text-align:left}
.catalog-app .modern-categories .category-photo-shade{display:none}
.catalog-app .modern-categories .modern-category .category-caption{min-height:91px;border:0;padding:17px 44px 18px 16px;background:#06163f;gap:6px}
.catalog-app .modern-categories .modern-category .category-title{color:#fff!important;font-weight:720;font-size:19px;line-height:1.15;letter-spacing:-.035em}
.catalog-app .modern-categories .modern-category .category-meta{color:#b9b7ab!important;font-size:12px;font-weight:450}
.catalog-app .modern-categories .modern-category .category-arrow{border:0;background:#e5c884;color:#051337!important;width:28px;height:28px;right:13px;font-size:19px}
.category-no-photo{display:grid;place-items:center;height:100%;font-size:13px;color:#334673}
.catalog-app .modern-categories .category-offers .category-media{background:#09205e;border-radius:23px 23px 0 0;color:#ffba9f}
.catalog-app .modern-categories .category-flyer .category-media{background:#081c54;border-radius:23px 23px 0 0;color:#e8ce97}
@media(hover:hover){.catalog-app .modern-categories .modern-category:hover{border-color:#d6b56f;transform:translateY(-4px)}.modern-category:hover .category-media>.category-real-product{transform:translateY(-3px) rotate(-3deg) scale(1.025)}}
@media(max-width:1000px){.catalog-app .modern-categories{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.catalog-app .modern-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.catalog-app .modern-categories .modern-category{border-radius:20px}.catalog-app .modern-categories .modern-category .category-media{border-radius:19px 19px 0 0;aspect-ratio:1/1.15}.catalog-app .modern-categories .modern-category .category-caption{padding:15px 38px 16px 13px;min-height:88px}.catalog-app .modern-categories .modern-category .category-title{font-size:clamp(16px,4.3vw,20px)}.category-brand{font-size:10px;left:12px;top:12px}.catalog-app .modern-categories .modern-category .category-arrow{width:25px;height:25px;right:9px;font-size:17px}.category-screen-heading{margin-top:16px}.category-intro{font-size:13px}}
@media(prefers-reduced-motion:reduce){.modern-category:hover .category-media>.category-real-product{transform:none}}

/* WebKit compatibility: explicit viewport rows and a normal-positioned body.
   The public palette, card layout, data and reserved area are unchanged. */
html.catalog-webkit-scroll>body.catalog-app{
 position:relative;inset:auto;bottom:auto;
 display:grid;grid-template-columns:minmax(0,1fr);
 grid-template-rows:auto auto minmax(0,1fr) auto;
 height:var(--catalog-visible-height,100dvh);min-height:0;
}
html.catalog-webkit-scroll>.catalog-app>header{grid-row:1;grid-column:1}
html.catalog-webkit-scroll>.catalog-app>#product-monitor{grid-row:2;grid-column:1}
html.catalog-webkit-scroll>.catalog-app>main{
 grid-row:3;grid-column:1;min-height:0;height:100%;max-height:100%;
 overflow-y:scroll;overflow-x:hidden;-webkit-overflow-scrolling:auto;
 isolation:isolate;
}
html.catalog-webkit-scroll>.catalog-app>nav{grid-row:4;grid-column:1}

.customer-order-received{color:#83e6a3;font-weight:700}
.customer-order-back{background:#bf2020!important;color:#fff!important;border-color:#ff8585!important}
.catalog-app .order-flash-offers{display:block!important;margin:24px 0}
.catalog-app .order-flash-offers[hidden]{display:none!important}
.order-flash-offers .offer-ticker-heading{flex-wrap:wrap}
.order-flash-offers .offer-ticker-heading>strong{font-size:14px}
.order-flash-offers .order-offer-caption{margin:0;padding:8px 12px;font-size:13px;color:#d4c7b1}
.order-flash-offers .order-offer-window{overflow:hidden}
.order-flash-offers .offer-ticker-group{min-width:0}
.order-flash-offers .offer-ticker-item{border:0;border-right:1px solid #091d56;border-radius:0;background:#030a1d;text-align:left;color:#fff;cursor:pointer}
.order-flash-offers.offer-ticker .offer-ticker-track{animation-play-state:running}
.order-flash-offers.offer-ticker-paused .offer-ticker-track,.order-flash-offers.order-offer-keyboard-focus .offer-ticker-track{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.order-flash-offers .order-offer-window{overflow-x:auto}}

.customer-invite{display:inline-flex;padding:12px 20px;border-radius:12px;background:#15803d;color:#fff;font-weight:700;text-decoration:none}

.catalog-app[data-view="order-detail"] main>.offer-ticker{display:none}

.catalog-app[data-view="order-detail"] main>.flash-banner{display:none}

/* v215 — Telefono con «Sito desktop» attivo: la pagina viene ingrandita alla larghezza
   vera del telefono (zoom), quindi altezze e larghezze a schermo intero usano la misura vera. */
html.f7-desk-phone body.catalog-app{height:var(--catalog-visible-height,var(--f7vh))!important}
html.f7-desk-phone .sidebar-container{height:var(--catalog-visible-height,var(--f7vh))!important;width:min(300px,88%)!important}
html.f7-desk-phone body.catalog-app dialog.opening-offers{width:var(--f7vw)!important;max-width:var(--f7vw)!important;height:var(--catalog-visible-height,var(--f7vh))!important;max-height:var(--catalog-visible-height,var(--f7vh))!important}
html.f7-desk-phone,html.f7-desk-phone body{overflow:hidden!important;overscroll-behavior:none}
html.f7-desk-phone .opening-offers .opening-offers-inner{height:100%!important;max-height:none!important}
html.f7-desk-phone #food-order-confirmation{height:var(--f7vh)!important;width:var(--f7vw)!important}
html.f7-desk-phone dialog{max-width:calc(var(--f7vw) - 24px)!important;max-height:calc(var(--f7vh) - 24px)!important}
html.f7-desk-phone .flash-dialog{max-height:calc(var(--f7vh) - 24px)!important}
/* v215 — Il menu categorie mostra tutte le categorie: si allunga e scorre con la pagina. */
.customer-home-dropdown{max-height:none!important;overflow:visible!important}
