*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-tap-highlight-color:transparent}body{overscroll-behavior:none}.piwii-app{min-height:100dvh;padding:0 16px calc(108px + env(safe-area-inset-bottom));max-width:760px;margin:0 auto;background:radial-gradient(circle at 85% -10%,color-mix(in srgb,var(--accent) 26%,transparent),transparent 30%),var(--bg)}button,input{font:inherit}.app-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:calc(12px + env(safe-area-inset-top)) 0 12px;background:linear-gradient(to bottom,var(--bg) 74%,transparent)}.brand-wrap{display:flex;gap:10px;align-items:center;min-width:0}.brand-wrap.section-mode{gap:9px}.section-brand-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 18%,var(--surface));font-size:22px;flex:0 0 auto}.section-brand-title{font-size:18px;line-height:1.05;letter-spacing:-.35px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-logo,.brand-mark{width:44px;height:44px;border-radius:14px;object-fit:cover;flex:0 0 auto}.brand-mark{display:grid;place-items:center;background:var(--accent);font-weight:900;letter-spacing:-1px}.brand-copy{min-width:0}.brand-copy strong,.brand-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-copy strong{font-size:17px}.brand-copy span{color:var(--muted);font-size:12px;margin-top:2px}.round-btn{border:1px solid rgba(255,255,255,.08);background:var(--surface);color:var(--text);width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-size:20px;cursor:pointer}.search-toggle svg,.search-icon-svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.search-panel{display:none;position:sticky;top:calc(68px + env(safe-area-inset-top));z-index:26;padding:0 0 8px}.search-panel.open{display:block}.search-shell{display:flex;align-items:center;gap:8px;background:color-mix(in srgb,var(--surface) 96%,transparent);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:0 12px;box-shadow:0 12px 40px rgba(0,0,0,.22)}.search-icon-svg{color:var(--muted);flex:0 0 auto}.search-shell input{width:100%;border:0;background:transparent;color:var(--text);outline:0;padding:14px 2px;font-size:15px}.search-shell input::placeholder{color:color-mix(in srgb,var(--muted) 82%,transparent)}.clear-search{border:0;background:transparent;color:var(--muted);font-size:24px;display:grid;place-items:center;cursor:pointer;width:34px;height:34px;border-radius:10px}.content{padding:18px 0 28px}.content.group-view{padding-top:0}.hero{background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 92%,#000),color-mix(in srgb,var(--accent) 45%,#101010));border-radius:28px;padding:24px;box-shadow:0 18px 50px rgba(0,0,0,.24);margin-bottom:18px}.hero .eyebrow{color:#fff}.hero h1{margin:7px 0 8px;font-size:29px;line-height:1.02;letter-spacing:-1px}.hero p{margin:0;max-width:460px;color:rgba(255,255,255,.78);font-size:14px;line-height:1.45}.eyebrow{text-transform:uppercase;font-weight:800;letter-spacing:.12em;font-size:10px;color:var(--muted)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:24px 2px 12px}.section-head h2{margin:4px 0 0;font-size:21px;letter-spacing:-.5px}.section-head small{color:var(--muted)}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.category-card{border:1px solid rgba(255,255,255,.07);background:var(--surface);color:var(--text);border-radius:20px;padding:15px 12px;text-align:left;min-height:112px;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between}.category-card.active,.category-card:hover{border-color:color-mix(in srgb,var(--accent) 52%,transparent);background:color-mix(in srgb,var(--accent) 14%,var(--surface))}.category-icon{font-size:26px}.category-card strong{font-size:14px;line-height:1.15}.category-card small{color:var(--muted);font-size:11px;margin-top:3px}.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 1px 10px;scrollbar-width:none;position:sticky;top:calc(68px + env(safe-area-inset-top));z-index:20;background:linear-gradient(to bottom,var(--bg) 76%,transparent)}.group-chips{margin:0 -1px;padding-top:4px;padding-bottom:9px;background:var(--bg);box-shadow:0 8px 16px color-mix(in srgb,var(--bg) 78%,transparent)}.group-products{padding-top:3px}.chips::-webkit-scrollbar{display:none}.chip{white-space:nowrap;border:1px solid rgba(255,255,255,.08);background:var(--surface);color:var(--muted);border-radius:999px;padding:9px 13px;font-weight:700;font-size:12px;cursor:pointer}.chip.active{background:var(--accent);color:#fff;border-color:var(--accent)}.product-list{display:grid;gap:10px}.product-card{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;background:var(--surface);border:1px solid rgba(255,255,255,.065);border-radius:20px;padding:14px;min-height:86px}.product-main{display:flex;gap:12px;min-width:0}.product-image{width:58px;height:58px;border-radius:14px;object-fit:cover;background:#222;flex:0 0 auto}.product-image.placeholder{display:grid;place-items:center;font-size:25px;background:color-mix(in srgb,var(--accent) 16%,#202020)}.product-copy{min-width:0}.product-title-row{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.product-copy h3{font-size:15px;margin:0;line-height:1.2}.badge{font-size:9px;text-transform:uppercase;letter-spacing:.06em;padding:4px 6px;border-radius:999px;background:color-mix(in srgb,var(--accent) 18%,transparent);color:color-mix(in srgb,var(--accent) 42%,#fff);font-weight:900}.product-meta{color:var(--muted);font-size:11px;margin-top:5px;display:flex;gap:8px}.product-desc{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-action{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.price{font-weight:900;font-size:14px;white-space:nowrap}.add-btn{border:0;background:var(--accent);color:#fff;min-width:42px;height:36px;border-radius:12px;font-weight:900;font-size:19px;cursor:pointer}.featured-strip{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:6px}.featured-strip::-webkit-scrollbar{display:none}.featured-card{min-width:220px;background:var(--surface);border:1px solid rgba(255,255,255,.07);border-radius:22px;padding:14px;cursor:pointer}.featured-top{display:flex;justify-content:space-between;gap:12px}.featured-card strong{font-size:14px}.featured-card .price{display:block;margin-top:18px;color:var(--text)}.featured-card small{color:var(--muted)}.empty-state{padding:38px 20px;border:1px dashed rgba(255,255,255,.13);border-radius:22px;text-align:center;color:var(--muted)}.empty-state strong{display:block;color:var(--text);font-size:17px;margin-bottom:5px}.bottom-nav{position:fixed;z-index:40;left:50%;bottom:calc(10px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 20px),740px);height:70px;border:1px solid rgba(255,255,255,.08);background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(24px);border-radius:24px;padding:7px;display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 20px 50px rgba(0,0,0,.42)}.nav-btn{border:0;background:transparent;color:var(--muted);border-radius:17px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:18px;cursor:pointer;min-width:0}.nav-btn span:last-child{font-size:10px;font-weight:800;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 2px}.nav-btn.active{background:color-mix(in srgb,var(--accent) 18%,transparent);color:#fff}.basket-fab{position:fixed;z-index:39;right:max(18px,calc((100vw - 760px)/2 + 18px));bottom:calc(92px + env(safe-area-inset-bottom));border:0;background:var(--accent);color:#fff;border-radius:18px;padding:10px 14px;display:flex;gap:9px;align-items:center;box-shadow:0 14px 35px color-mix(in srgb,var(--accent) 32%,transparent);cursor:pointer}.basket-icon{font-size:19px}.basket-copy{display:flex;flex-direction:column;align-items:flex-start}.basket-copy strong{font-size:12px}.basket-copy small{font-size:9px;opacity:.8;margin-top:1px}.sheet-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.62);z-index:60;opacity:0;pointer-events:none;transition:.2s}.sheet-backdrop.open{opacity:1;pointer-events:auto}.sheet{position:fixed;left:50%;bottom:0;z-index:70;width:min(100%,760px);max-height:82dvh;overflow:auto;background:#111;border:1px solid rgba(255,255,255,.08);border-bottom:0;border-radius:28px 28px 0 0;padding:10px 16px calc(20px + env(safe-area-inset-bottom));transform:translate(-50%,105%);transition:transform .25s ease}.sheet.open{transform:translate(-50%,0)}.sheet-handle{width:44px;height:4px;background:#444;border-radius:99px;margin:2px auto 14px}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.sheet-head h2{margin:4px 0 0;font-size:23px}.basket-lines{display:grid;gap:8px}.basket-line{display:grid;grid-template-columns:1fr auto;gap:10px;background:#191919;border-radius:18px;padding:12px}.basket-line strong{display:block;font-size:13px}.basket-line small{color:var(--muted);display:block;margin-top:4px}.qty{display:flex;align-items:center;gap:7px}.qty button{width:31px;height:31px;border:0;border-radius:10px;background:#2a2a2a;color:#fff;font-size:18px;cursor:pointer}.qty span{font-weight:900;min-width:18px;text-align:center}.basket-summary{margin-top:14px;padding:15px;background:color-mix(in srgb,var(--accent) 12%,#161616);border-radius:19px;display:flex;align-items:center;justify-content:space-between;gap:14px}.basket-summary span,.basket-summary strong{display:block}.basket-summary span{font-size:11px;color:var(--muted)}.basket-summary strong{font-size:21px;margin-top:3px}.secondary-btn{border:1px solid rgba(255,255,255,.12);background:#222;color:#fff;border-radius:12px;padding:9px 12px;font-weight:800;font-size:11px;cursor:pointer}.basket-note{color:var(--muted);font-size:10px;line-height:1.4;margin:10px 3px 0}@media(max-width:520px){.piwii-app{padding-left:12px;padding-right:12px}.category-grid{gap:8px}.category-card{min-height:104px;padding:13px 10px}.hero{padding:20px;border-radius:24px}.hero h1{font-size:25px}.product-card{padding:12px}.product-image{width:52px;height:52px}.basket-fab{right:14px}.search-panel{top:calc(66px + env(safe-area-inset-top))}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* V1.3.0 — barre de rubrique compacte + filtres collés sans transparence */
.piwii-app.section-active .app-header{padding-bottom:8px;background:#000}
.piwii-app.section-active .search-panel{top:calc(62px + env(safe-area-inset-top))}
.piwii-app.section-active .group-chips{top:calc(62px + env(safe-area-inset-top));margin:0 -1px;padding:3px 1px 8px;background:#000;box-shadow:0 -8px 0 #000,0 8px 14px rgba(0,0,0,.42)}
.piwii-app.section-active .group-products{padding-top:11px}

/* V1.6.2 — accès équipe masqué sur la carte publique + mot de passe obligatoire */
.product-card.sold-out{opacity:.68;border-color:rgba(255,155,70,.2)}
.product-card.sold-out .product-image{filter:grayscale(.65)}
.sold-out-badge{font-size:9px;text-transform:uppercase;letter-spacing:.06em;padding:4px 7px;border-radius:999px;background:rgba(255,145,55,.16);color:#ffb06d;font-weight:900}
.add-btn.disabled{background:#3a3a3a;color:#999;cursor:not-allowed}

/* V1.7.1 — plusieurs formats par produit, stock commun + affichage mobile compact */
.product-card.has-variants{grid-template-columns:1fr;align-items:stretch;padding:11px 12px;gap:8px;min-height:0}.product-card.has-variants .product-main{padding-right:0;gap:10px}.product-card.has-variants .product-image{width:48px;height:48px;border-radius:12px}.product-card.has-variants .product-meta{margin-top:3px}.product-card.has-variants .product-desc{margin-top:3px}.variant-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:0}.variant-choice{min-width:0;border:1px solid rgba(255,255,255,.08);background:#171717;color:var(--text);border-radius:11px;padding:7px 7px;display:grid;grid-template-columns:1fr auto;grid-template-areas:'label plus' 'price plus';gap:1px 5px;text-align:left;cursor:pointer}.variant-choice span{grid-area:label;color:var(--muted);font-size:9px;font-weight:800;white-space:nowrap}.variant-choice strong{grid-area:price;font-size:11px;white-space:nowrap}.variant-choice b{grid-area:plus;align-self:center;justify-self:end;width:25px;height:25px;border-radius:8px;display:grid;place-items:center;background:var(--accent);color:#fff;font-size:15px}.variant-choice.disabled{opacity:.55;cursor:not-allowed}.variant-choice.disabled b{background:#3a3a3a;color:#999}@media(max-width:420px){.product-card.has-variants{padding:9px 10px;gap:7px}.product-card.has-variants .product-image{width:44px;height:44px}.variant-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.variant-choice{padding:6px 5px;border-radius:10px;grid-template-columns:1fr;grid-template-areas:'label' 'price';text-align:center;place-items:center}.variant-choice span{font-size:8px}.variant-choice strong{font-size:10px}.variant-choice b{display:none}}

/* V1.8.0 — accueil plus compact + accès À emporter */
.content:not(.group-view):not(.search-view){padding-top:8px}
.home-intro{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:2px 2px 12px}
.home-intro h1{margin:3px 0 0;font-size:23px;line-height:1.05;letter-spacing:-.65px}
.home-intro small{color:var(--muted);font-size:11px;padding-bottom:2px;white-space:nowrap}
.home-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.home-category-grid .category-card{min-height:92px;padding:12px 11px;border-radius:18px}
.home-category-grid .category-icon{font-size:24px}
.home-category-grid .takeaway-card{background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 17%,var(--surface)),var(--surface));border-color:color-mix(in srgb,var(--accent) 35%,rgba(255,255,255,.08))}
.home-category-grid .takeaway-card strong{color:#fff}
.home-featured-head{margin-top:18px}
@media(max-width:620px){.home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-category-grid .category-card{min-height:84px;display:grid;grid-template-columns:auto 1fr;align-items:center;justify-content:initial;gap:10px}.home-category-grid .category-icon{font-size:23px}.home-category-grid .category-card strong{font-size:13px}.home-category-grid .category-card small{font-size:10px}}
@media(max-width:420px){.app-header{padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:8px}.brand-logo,.brand-mark{width:40px;height:40px;border-radius:12px}.brand-copy strong{font-size:16px}.brand-copy span{font-size:11px}.round-btn{width:38px;height:38px;border-radius:12px}.content:not(.group-view):not(.search-view){padding-top:4px}.home-intro{margin-top:0;margin-bottom:9px}.home-intro h1{font-size:21px}.home-category-grid{gap:7px}.home-category-grid .category-card{min-height:76px;padding:10px;border-radius:16px}.home-featured-head{margin-top:15px;margin-bottom:9px}.featured-card{min-width:195px;padding:12px;border-radius:18px}.featured-card .price{margin-top:12px}}
