:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; padding: 28px; color: #f8f5f0; background: #101010; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 10%, rgba(250,132,44,.16), transparent 56%); }
.construction { position: relative; width: 100%; max-width: 660px; text-align: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(27px, 6vw, 38px); font-weight: 850; letter-spacing: -.065em; }
.brand img { width: 49px; height: 49px; object-fit: contain; border-radius: 12px; }
.brand span { color: #ff9f48; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; margin: 44px auto 17px; border: 1px solid #504032; border-radius: 999px; background: #241c16; color: #ffbb7a; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #ffa34c; box-shadow: 0 0 12px #ff9839; }
h1 { font-size: clamp(44px, 9vw, 76px); letter-spacing: -.075em; line-height: 1.03; margin: 0 0 22px; }
h1 em { font-style: normal; color: #ff9f48; }
p { color: #bdb8b2; font-size: clamp(16px, 2.3vw, 19px); line-height: 1.65; max-width: 480px; margin: 0 auto; }
.line { width: 56px; height: 3px; margin: 39px auto; border-radius: 3px; background: #ff9f48; }
footer { color: #77716c; font-size: 13px; }

.app-panel { position: relative; width: 100%; max-width: 600px; text-align: center; }
.app-panel .brand { text-decoration: none; color: #f8f5f0; }
.app-link { color: #ffad67; font-weight: 650; text-decoration: none; }
.app-link:hover { text-decoration: underline; }
.login-form { display: flex; flex-direction: column; gap: 12px; margin: 24px auto; max-width: 360px; text-align: left; }
.login-form label { color: #d1cbc5; font-size: 14px; }
.login-form input { width: 100%; border: 1px solid #51463e; border-radius: 11px; padding: 13px 14px; color: #f8f5f0; background: #201c19; font: inherit; }
button { border: 0; border-radius: 11px; background: #ff9f48; padding: 13px 20px; color: #18110b; font: inherit; font-weight: 750; cursor: pointer; }
.form-error { color: #ffb6a8; font-size: 14px; }

.login-form small { color: #a99f97; }
.slug-field { display:flex; align-items:center; border: 1px solid #51463e; border-radius: 11px; background: #201c19; overflow: hidden; }
.slug-field span { padding: 0 0 0 13px; color: #ffba7d; white-space: nowrap; font-size: 14px; }
.slug-field input { border: 0; min-width: 0; padding-left: 3px; }
.register-panel { padding-block: 25px; }
.register-panel h1 { font-size: clamp(38px, 7vw, 62px); }
.auth-links { display:flex; flex-wrap:wrap; gap: 12px 20px; align-items:center; justify-content:center; margin: 22px 0; }
.form-success { color: #a9eec1; font-size: 15px; }
.app-panel h2 { font-size: 24px; }

/* Shop administration */
body:has(.shop-admin) { display:block; padding:0; min-height:100svh; background:#121212; }
body:has(.shop-admin)::before { opacity:.4; }
.shop-admin { position:relative; width:min(1160px, 100%); margin:0 auto; padding:24px clamp(16px,4vw,42px) 55px; color:#f8f5f0; }
.admin-top { display:flex; justify-content:space-between; align-items:center; gap:18px; padding-bottom:26px; border-bottom:1px solid #35312d; }
.admin-brand { display:inline-flex; align-items:center; gap:9px; text-decoration:none; color:#fff; font-size:21px; letter-spacing:-.045em; }
.admin-brand img { width:35px; height:35px; border-radius:9px; object-fit:contain; }
.admin-brand span { color:#ff9f48; }
.admin-subtitle { margin-left:44px; color:#89817a; font-size:12px; }
.admin-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.admin-actions a,.admin-breadcrumb a { color:#e5c3a9; text-decoration:none; font-size:14px; }
.admin-actions form { margin:0; }
.button-ghost { background:#29231e; color:#f0d4be; padding:9px 12px; font-size:13px; }
.admin-heading { display:flex; align-items:end; justify-content:space-between; gap:14px; padding:30px 0 25px; }
.admin-heading h1 { font-size:clamp(32px,5vw,48px); letter-spacing:-.05em; margin:4px 0 10px; }
.admin-heading p,.admin-card p { font-size:14px; color:#a9a19a; margin:0 0 14px; line-height:1.6; }
.admin-eyebrow { color:#ffad67; font-size:11px; font-weight:800; letter-spacing:.12em; }
.admin-count { color:#fbb47c; border:1px solid #62452d; background:#30241b; border-radius:10px; padding:9px 12px; font-size:13px; white-space:nowrap; }
.admin-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:18px; }
.admin-card { border:1px solid #3b3632; background:#1e1c1a; border-radius:18px; padding:24px; text-align:left; }
.admin-card h2 { font-size:21px; margin:9px 0 12px; letter-spacing:-.025em; }
.admin-card-header,.admin-card-footer { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.admin-card-footer { margin-top:25px; }
.admin-shop-avatar { width:46px; height:46px; display:grid; place-items:center; border-radius:13px; background:#4e311a; color:#ffb87c; font-size:24px; font-weight:800; }
.status-tag { display:inline-flex; border:1px solid #685036; background:#342717; color:#f2be80; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }
.status-live { border-color:#345942; background:#193425; color:#abe2b7; }
.admin-url { color:#bcb1a7; font-size:14px; word-break:break-all; }
.admin-role { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:#908880; }
.button-primary { display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:10px; background:#ff9f48; color:#211308; padding:11px 15px; font-size:14px; font-weight:750; text-decoration:none; cursor:pointer; }
.admin-breadcrumb { display:flex; align-items:center; gap:9px; padding-top:23px; font-size:14px; color:#a69c93; }
.admin-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:18px; }
.admin-side { display:flex; flex-direction:column; gap:18px; }
.admin-form { display:flex; flex-direction:column; gap:12px; margin-top:24px; }
.admin-form label { color:#e5d8ce; font-size:14px; font-weight:650; }
.admin-form input { width:100%; border:1px solid #51463e; border-radius:11px; padding:13px; background:#292521; color:#fff; font:inherit; }
.admin-form small { color:#9e958c; line-height:1.45; }
.admin-form .slug-field input { border:0; }
.admin-form button { margin-top:12px; align-self:flex-start; }
.module-row { border-top:1px solid #38322e; padding:12px 0; display:flex; gap:12px; align-items:center; color:#c0b7ad; font-size:14px; }
.notice-success,.notice-error { border-radius:12px; padding:14px; margin-bottom:18px; font-size:14px; }
.notice-success { background:#193425; border:1px solid #386044; color:#c4f0ca; }
.notice-error { background:#482322; border:1px solid #854440; color:#ffd0ca; }
@media(max-width:720px) {
  .admin-layout { grid-template-columns:1fr; }
  .admin-top { align-items:flex-start; }
  .admin-actions { justify-content:flex-end; }
  .admin-heading { align-items:start; }
  .admin-card { padding:19px; }
}

.remember-option { display:flex; align-items:center; gap:10px; cursor:pointer; margin:6px 0 8px; font-size:14px; }
.login-form .remember-option input { width:18px; height:18px; flex:0 0 18px; accent-color:#ff9f48; }
.remember-option span { color:#d6cbc1; }

.catalog-import { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:18px; }
.catalog-import p { max-width:680px; }
.catalog-import form { flex-shrink:0; }
.catalog-layout { align-items:start; }
.compact-form { margin:15px 0 24px; }
.catalog-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.admin-form select,.admin-form textarea { border:1px solid #51463e; border-radius:11px; padding:13px; background:#292521; color:#fff; width:100%; font:inherit; min-width:0; }
.catalog-checks { display:flex; flex-wrap:wrap; gap:12px; }
.catalog-checks label { display:inline-flex; align-items:center; gap:8px; font-weight:500; }
.catalog-checks input { width:auto; accent-color:#ff9f48; }
.catalog-list { display:flex; flex-direction:column; gap:6px; }
.catalog-item { border-top:1px solid #39332d; padding:12px 0; }
.catalog-item summary { cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:15px; }
.catalog-item summary::-webkit-details-marker { display:none; }
.catalog-item summary strong { font-weight:650; }
.catalog-item summary small { color:#a9a19a; font-size:12px; display:block; margin-top:4px; }
.catalog-item summary b { white-space:nowrap; color:#ffbc81; }
.catalog-item .admin-form { margin:12px 0; }
@media(max-width:720px) { .catalog-import { flex-direction:column; align-items:stretch; } .catalog-fields { grid-template-columns:1fr; } }

/* BarFood identity 2026 — light, clean fast-food UI */
:root { color-scheme: light; --bf-bg:#f7f8fa; --bf-white:#fff; --bf-ink:#17191d; --bf-muted:#68717e; --bf-line:#e4e7ec; --bf-red:#e6332a; --bf-red-dark:#c52520; }
body { color:var(--bf-ink); background:var(--bf-bg); }
body::before { background: radial-gradient(ellipse at 50% 0%,rgba(231,64,46,.05), transparent 60%); }
body:has(.shop-admin) { background:var(--bf-bg); color:var(--bf-ink); }
body:has(.shop-admin)::before { display:none; }
.brand span,.admin-brand span { color:var(--bf-red); }
.brand,.app-panel .brand,.admin-brand { color:var(--bf-ink); }
p,.admin-heading p,.admin-card p { color:var(--bf-muted); }
.pill,.admin-count { background:#fff1ef; border-color:#ffdad5; color:var(--bf-red); }
.dot { background:var(--bf-red); box-shadow:none; }
h1 em,.admin-eyebrow { color:var(--bf-red); }
.line { background:var(--bf-red); }
footer { color:#848c95; }
.admin-top { border-color:var(--bf-line); }
.admin-subtitle,.admin-role { color:var(--bf-muted); }
.admin-actions a,.admin-breadcrumb a { color:var(--bf-ink); }
.admin-heading h1 { color:var(--bf-ink); }
.admin-card { background:#fff; border:1px solid var(--bf-line); color:var(--bf-ink); box-shadow:0 4px 16px rgba(25,32,42,.035); }
.admin-card h2 { color:var(--bf-ink); }
.admin-shop-avatar { background:#fff0ed; color:var(--bf-red); }
.status-tag { background:#fff5e6; color:#98610b; border-color:#ffe2b2; }
.status-live { background:#eaf8ee; color:#258247; border-color:#c5ebcf; }
.admin-url,.module-row { color:var(--bf-muted); }
.module-row { border-color:var(--bf-line); }
.button-primary,button:not(.button-ghost):not(.product-edit-btn):not(.dialog-close) { background:var(--bf-red); color:#fff; }
.button-primary:hover,button:not(.button-ghost):not(.product-edit-btn):not(.dialog-close):hover { background:var(--bf-red-dark); }
.button-ghost { background:#fff; border:1px solid var(--bf-line); color:var(--bf-ink); }
.app-link { color:var(--bf-red); }
.admin-form input,.admin-form select,.admin-form textarea,.login-form input { background:#fff; border:1px solid #d7dce3; color:var(--bf-ink); }
.login-form label,.admin-form label { color:#404854; }
.slug-field { background:#fff; border-color:#d7dce3; }
.slug-field span { color:var(--bf-red); }
.form-error { color:#c42625; }
.form-success { color:#167a44; }
.notice-success { background:#eefaf2; border-color:#bbebcc; color:#116b36; }
.notice-error { background:#fff0f0; border-color:#f5c6c6; color:#b12828; }
.catalog-checks input,.login-form .remember-option input { accent-color:var(--bf-red); }
.remember-option span,.catalog-item summary small,.catalog-item summary b { color:var(--bf-muted); }
.catalog-item { border-color:var(--bf-line); }
.bf-catalog { width:min(1320px,100%); }
.catalog-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; background:#fff; border:1px solid var(--bf-line); border-radius:22px; padding:30px; margin:28px 0 20px; }
.catalog-hero h1 { font-size:clamp(32px,5vw,54px); letter-spacing:-.05em; margin:8px 0 12px; }
.catalog-hero p { font-size:15px; margin:0; }
.catalog-hero-metrics { display:grid; grid-template-columns:auto auto; gap:3px 12px; align-items:baseline; }
.catalog-hero-metrics strong { font-size:26px; color:var(--bf-ink); text-align:right; }
.catalog-hero-metrics small { font-size:12px; color:var(--bf-muted); }
.catalog-tabs { display:flex; gap:10px; overflow-x:auto; scrollbar-width:thin; padding:4px 0 15px; border-bottom:1px solid var(--bf-line); }
.catalog-tab { display:flex; align-items:center; gap:8px; white-space:nowrap; padding:11px 16px; border:1px solid var(--bf-line); background:#fff; border-radius:13px; color:#343b45; font-size:14px; font-weight:700; text-decoration:none; }
.catalog-tab small { background:#f1f3f5; color:#7b828a; border-radius:99px; min-width:23px; padding:3px 6px; font-size:11px; text-align:center; }
.catalog-tab.is-active { border-color:var(--bf-red); color:#fff; background:var(--bf-red); }
.catalog-tab.is-active small { background:rgba(255,255,255,.21); color:#fff; }
.catalog-section-head { display:flex; gap:20px; justify-content:space-between; align-items:end; margin:25px 0 18px; }
.catalog-section-head h2 { margin:6px 0 0; font-size:clamp(24px,3vw,34px); letter-spacing:-.035em; }
.catalog-section-head h2 small { color:#9299a3; font-size:15px; margin-left:7px; }
.catalog-head-actions { display:flex; align-items:center; gap:16px; }
.catalog-head-actions>a:first-child { color:#626b75; text-decoration:none; font-size:14px; }
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(205px,1fr)); gap:17px; }
.product-card { background:#fff; overflow:hidden; border:1px solid var(--bf-line); border-radius:19px; box-shadow:0 4px 16px rgba(25,32,42,.04); }
.product-photo { position:relative; height:158px; background:#f4f5f7; display:grid; place-items:center; overflow:hidden; }
.product-photo img { width:100%; height:100%; object-fit:cover; }
.product-fallback { display:grid; place-items:center; font-size:54px; height:100%; width:100%; }
.product-state { position:absolute; top:12px; left:12px; background:#fff; color:#a83125; border:1px solid #f0d3ce; font-size:11px; font-weight:750; border-radius:20px; padding:6px 9px; }
.product-card-body { padding:16px; }
.product-category { color:#e0473a; font-weight:800; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.product-card h3 { font-size:17px; margin:7px 0 18px; line-height:1.25; min-height:42px; }
.product-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:7px; }
.product-card-bottom b { font-size:21px; white-space:nowrap; letter-spacing:-.03em; }
.product-edit-btn { padding:9px 12px; border:1px solid #e7c7c4; background:#fff6f5; color:#cf322b; font-size:12px; border-radius:10px; cursor:pointer; }
.product-edit-btn:hover { background:#ffebe8; }
.product-dialog { width:min(480px,calc(100% - 28px)); max-height:90vh; overflow:auto; border:1px solid var(--bf-line); border-radius:19px; padding:23px; color:var(--bf-ink); background:#fff; box-shadow:0 20px 70px rgba(0,0,0,.2); }
.product-dialog::backdrop { background:rgba(24,32,42,.55); }
.dialog-title { display:flex; justify-content:space-between; align-items:center; }
.dialog-title h2 { font-size:22px; margin:0; }
.dialog-title button { border:0; background:#f2f3f5; color:#444; border-radius:8px; font-size:24px; padding:3px 11px; cursor:pointer; }
.dialog-product-photo { width:100%; max-height:150px; object-fit:contain; background:#f7f8fa; border-radius:10px; }
.catalog-bottom-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; margin:30px 0; }
.catalog-bottom-grid .admin-card { scroll-margin-top:25px; }
.catalog-category-edit { border-top:1px solid var(--bf-line); padding:12px 0; }
.catalog-category-edit summary { display:flex; justify-content:space-between; cursor:pointer; font-weight:700; }
.catalog-category-edit small { color:var(--bf-muted); font-weight:400; }
.catalog-legacy { background:#fff; border:1px solid var(--bf-line); border-radius:13px; margin:18px 0; padding:15px 20px; color:var(--bf-muted); }
.catalog-legacy summary { cursor:pointer; font-size:14px; font-weight:700; }
.catalog-legacy form { margin-top:15px; }
.catalog-empty { grid-column:1/-1; padding:50px 20px; text-align:center; border:1px dashed #d8dce2; border-radius:16px; color:var(--bf-muted); }
@media(max-width:760px) { .catalog-hero { padding:21px; } .catalog-hero-metrics { display:none; } .catalog-bottom-grid { grid-template-columns:1fr; } .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; } .product-photo { height:135px; } .product-card-body { padding:12px; } .product-card h3 { font-size:15px; } .product-card-bottom b { font-size:17px; } .product-edit-btn { padding:8px; } .catalog-section-head { align-items:start; } }
@media(max-width:430px) { .catalog-section-head { flex-wrap:wrap; } .catalog-tabs { margin-right:-16px; } .product-photo { height:105px; } .catalog-hero { margin-top:18px; } .admin-top { gap:8px; } }

/* Contraste explicite : aucun titre blanc sur fond clair */
.shop-admin,
.shop-admin h1,
.shop-admin h2,
.shop-admin h3,
.shop-admin h4,
.shop-admin strong,
.shop-admin .catalog-hero h1,
.shop-admin .catalog-section-head h2,
.shop-admin .product-card h3,
.shop-admin .product-dialog h2,
.shop-admin .admin-card h2 {
  color: #17191d;
}
.shop-admin .catalog-section-head h2 small,
.shop-admin .catalog-hero p,
.shop-admin .product-card-body small,
.shop-admin .admin-subtitle {
  color: #68717e;
}
.shop-admin .admin-eyebrow,
.shop-admin .product-category {
  color: #d52b27;
}
.shop-admin .catalog-tab.is-active,
.shop-admin .catalog-tab.is-active small,
.shop-admin .button-primary {
  color: #fff;
}
.app-panel h1,
.app-panel h2,
.construction h1 {
  color: #17191d;
}

.catalog-tab-photo { width:44px; height:44px; object-fit:cover; border-radius:10px; background:#f3f4f6; }
.catalog-pick { margin-top:20px; background:#fff; font-size:16px; }

/* Corbeille produits — fond clair */
.catalog-delete-form { margin-top:14px; padding-top:14px; border-top:1px solid var(--bf-line); }
.catalog-delete-btn { border:1px solid #f1b8b8 !important; border-radius:10px; background:#fff1f1 !important; color:#bd2424 !important; font-size:13px; font-weight:700; padding:11px 14px; cursor:pointer; width:100%; }
.catalog-delete-btn:hover { background:#ffe4e4 !important; }
.catalog-trash-row { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--bf-line); color:var(--bf-ink); }
.catalog-restore-btn { background:#e9f8ef !important; border:1px solid #b6dec4 !important; color:#247346 !important; font-size:13px; border-radius:9px; padding:8px 12px; cursor:pointer; }

/* Variantes produit BarFood */
.catalog-option-section { margin-top:20px; padding-top:18px; border-top:1px solid var(--bf-line); }
.catalog-option-section h3 { margin:0 0 5px; font-size:17px; color:var(--bf-ink); }
.catalog-option-section h3 small { font-size:13px; color:var(--bf-muted); }
.catalog-option-note { color:var(--bf-muted); font-size:12px; line-height:1.45; margin:0 0 14px; }
.catalog-option-row { padding:10px 0; border-top:1px solid var(--bf-line); }
.catalog-option-row summary { display:flex; gap:10px; align-items:center; cursor:pointer; font-size:14px; }
.catalog-option-row summary img { width:46px; height:46px; object-fit:cover; border-radius:10px; background:#f2f3f5; }
.catalog-option-row summary span { flex:1; }
.catalog-option-row summary strong { color:var(--bf-ink); white-space:nowrap; }
.catalog-option-form { margin:12px 0; }
.catalog-option-add { margin-top:14px; border:1px dashed #e4b0ac; border-radius:12px; padding:12px; }
.catalog-option-add summary { cursor:pointer; color:#be2e27; font-weight:700; font-size:14px; }
.catalog-option-add .admin-form { margin-top:12px; }

/* Catalogue V2 — édition sans popup, contexte préservé */
.catalog-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(350px,440px); gap:19px; align-items:start; scroll-margin-top:18px; }
.catalog-workspace > .product-grid { grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); gap:13px; min-width:0; }
.catalog-workspace:not(:has(.catalog-inline-editor)) { display:block; }
.catalog-workspace:not(:has(.catalog-inline-editor)) > .product-grid { grid-template-columns:repeat(auto-fill,minmax(205px,1fr)); }
.product-edit-btn { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; font-weight:700; }
.product-edit-btn.is-selected, .product-card:has(.product-edit-btn.is-selected) { border-color:var(--bf-red); }
.product-edit-btn.is-selected { background:#ffe9e7; color:#a9241f; }
.catalog-inline-editor { position:sticky; top:12px; max-height:calc(100vh - 24px); overflow-y:auto; overscroll-behavior:contain; background:#fff; border:1px solid #ebc3c0; border-radius:19px; padding:21px; box-shadow:0 10px 32px rgba(30,34,42,.09); scroll-margin-top:15px; min-width:0; }
.catalog-editor-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:15px; }
.catalog-editor-head h2 { font-size:23px; letter-spacing:-.03em; line-height:1.15; margin:5px 0 0; color:var(--bf-ink); }
.catalog-editor-close { padding:9px 12px; border-radius:10px; text-decoration:none; white-space:nowrap; font-size:13px; }
.catalog-inline-editor .dialog-product-photo { max-height:125px; }
.catalog-inline-editor .admin-form { gap:9px; }
.catalog-inline-editor .admin-form label { font-size:13px; }
.catalog-inline-editor .admin-form input, .catalog-inline-editor .admin-form select, .catalog-inline-editor .admin-form textarea { padding:10px 11px; }
.shop-admin .btnpos { display:inline-flex; justify-content:center; align-items:center; padding:10px 15px; background:#228052 !important; color:#fff !important; border:1px solid #1b7047 !important; border-radius:10px; font-size:14px; font-weight:750; cursor:pointer; }
.shop-admin .btnpos:hover { background:#17633d !important; }
.catalog-inline-editor .catalog-option-section { margin-top:15px; }
.catalog-inline-editor .catalog-option-row summary { min-height:38px; }
.catalog-inline-editor .catalog-delete-btn { padding:8px 12px; }
@media(max-width:1000px) {
 .catalog-workspace { grid-template-columns:minmax(0,1fr); }
 .catalog-inline-editor { position:static; max-height:none; }
 .catalog-workspace > .product-grid { grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); }
}
@media(max-width:550px) {
 .catalog-workspace > .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .catalog-inline-editor { padding:15px; }
}

/* UX catalogue v9 : un seul défilement, celui de la page.
   Pas de panneau sticky avec scrollbar interne. */
.bf-catalog .catalog-inline-editor {
  position:relative;
  top:auto;
  max-height:none;
  height:auto;
  overflow:visible;
  overscroll-behavior:auto;
  scroll-margin-top:18px;
  align-self:start;
}
.bf-catalog .catalog-workspace {
  align-items:start;
}

/* Boutique client — BarFood */
body:has(.bf-storefront) { background:#f8f9fb; color:#17191d; }
body:has(.bf-storefront)::before { display:none; }
.bf-storefront { width:min(1220px,calc(100% - 36px)); margin:auto; padding-bottom:45px; color:#17191d; }
.bf-store-header { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:19px 0; border-bottom:1px solid #e5e7ec; }
.bf-store-brand { display:flex; gap:9px; align-items:center; color:#17191d; text-decoration:none; font-size:22px; font-weight:850; }
.bf-store-brand img { width:42px; height:42px; object-fit:contain; }
.bf-store-brand b { color:#e6332a; }
.bf-store-location { font-size:13px; font-weight:650; color:#68717e; }
.bf-store-preview { display:flex; justify-content:space-between; gap:15px; padding:12px 17px; margin:14px 0; background:#fff2e7; color:#985315; border:1px solid #ffd9b2; border-radius:12px; font-size:13px; font-weight:700; }
.bf-store-preview a { color:#985315; }
.bf-store-hero { background:linear-gradient(110deg,#fce8e7,#fff); border-radius:24px; padding:40px 34px; margin:24px 0; }
.bf-store-eyebrow { color:#d3322b; font-weight:850; font-size:12px; letter-spacing:.12em; }
.bf-store-hero h1 { color:#16191e; font-size:clamp(36px,5vw,60px); margin:8px 0; letter-spacing:-.055em; }
.bf-store-hero p { color:#66717e; margin:0; font-size:16px; }
.bf-store-categories { display:flex; gap:12px; overflow-x:auto; padding:4px 0 20px; scroll-behavior:smooth; }
.bf-store-category { background:#fff; display:flex; flex:0 0 auto; align-items:center; gap:11px; border:1px solid #e4e7ed; border-radius:14px; padding:10px 16px 10px 10px; text-decoration:none; color:#242933; font-weight:750; }
.bf-store-category:hover { border-color:#e6332a; color:#c82b25; }
.bf-store-category img { width:58px; height:58px; object-fit:cover; border-radius:10px; }
.bf-store-section { scroll-margin-top:20px; margin:18px 0 35px; }
.bf-store-section h2 { color:#17191d; font-size:clamp(25px,3vw,34px); letter-spacing:-.035em; margin:0 0 17px; }
.bf-store-products { display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:17px; }
.bf-store-product { background:#fff; border:1px solid #e5e7ec; border-radius:18px; overflow:hidden; box-shadow:0 3px 13px rgba(20,28,40,.04); }
.bf-store-product-image,.bf-store-placeholder { width:100%; aspect-ratio:16/10; object-fit:cover; display:grid; place-items:center; background:#f1f3f5; font-size:68px; }
.bf-store-product-info { padding:18px; }
.bf-store-product h3 { color:#17191d; font-size:21px; line-height:1.2; margin:0 0 9px; }
.bf-store-product-info p { margin:0 0 12px; color:#6b737e; font-size:13px; line-height:1.5; }
.bf-store-price { color:#d7302b; font-size:20px; font-weight:850; }
.bf-store-variants { border-top:1px solid #e9ebee; margin-top:14px; padding-top:12px; }
.bf-store-variants summary { cursor:pointer; font-size:13px; font-weight:800; color:#b52e29; }
.bf-store-variant { display:flex; align-items:center; gap:9px; padding:11px 0; border-bottom:1px solid #f0f1f3; }
.bf-store-variant img { width:46px; height:46px; object-fit:cover; border-radius:9px; }
.bf-store-variant div { flex:1; min-width:0; }
.bf-store-variant strong { font-size:13px; color:#252b31; display:block; }
.bf-store-variant small { color:#76808b; font-size:11px; display:block; margin-top:3px; }
.bf-store-variant b { font-size:14px; color:#d7302b; white-space:nowrap; }
.bf-store-empty { background:#fff; border-radius:15px; border:1px solid #e5e7ec; padding:50px 20px; text-align:center; color:#69727d; }
.bf-store-footer { padding:28px 0; text-align:center; font-size:12px; color:#8b929b; }
@media(max-width:640px) { .bf-storefront { width:calc(100% - 24px); } .bf-store-hero { padding:25px 20px; } .bf-store-category img { width:46px; height:46px; } .bf-store-products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .bf-store-product-info { padding:12px; } .bf-store-product h3 { font-size:16px; } .bf-store-product-image,.bf-store-placeholder { aspect-ratio:1; } .bf-store-price { font-size:17px; } .bf-store-variant { flex-wrap:wrap; } .bf-store-variant b { margin-left:auto; } }

/* Mode shop responsive v11 : taille réelle du viewport, sans zoom logiciel.
   La page remplace le centrage global hérité de l'accueil. */
html:has(.bf-storefront) { width:100%; max-width:100%; overflow-x:clip; }
body:has(.bf-storefront) {
  display:block;
  padding:0;
  margin:0;
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:100svh;
  overflow-x:clip;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  color-scheme:light;
}
.bf-storefront { width:min(1220px,100%); max-width:100%; padding:0 clamp(12px,3vw,28px) 45px; min-width:0; }
.bf-storefront *, .bf-storefront *::before, .bf-storefront *::after { min-width:0; }
.bf-storefront .bf-store-hero p { max-width:none; margin:0; }
.bf-store-categories { max-width:100%; -webkit-overflow-scrolling:touch; }
.bf-store-category img { object-fit:contain; background:#f5f6f8; padding:3px; flex-shrink:0; }
.bf-store-product-image { object-fit:contain; padding:10px; background:#f5f6f8; }
.bf-store-variant img { object-fit:contain; background:#f5f6f8; padding:3px; flex-shrink:0; }
.bf-store-product-info, .bf-store-variant div, .bf-store-product { min-width:0; }
.bf-store-product-info p, .bf-store-variant small { overflow-wrap:anywhere; }
@media(max-width:640px) {
  .bf-storefront { padding:0 12px 32px; }
  .bf-store-header { padding:12px 0; gap:8px; }
  .bf-store-brand { font-size:18px; gap:6px; }
  .bf-store-brand img { width:34px; height:34px; }
  .bf-store-location { font-size:11px; text-align:right; }
  .bf-store-preview { flex-wrap:wrap; padding:10px 12px; }
  .bf-store-hero { margin:14px 0; padding:22px 18px; border-radius:17px; }
  .bf-store-hero h1 { font-size:clamp(28px,8vw,42px); }
  .bf-store-hero p { font-size:14px; line-height:1.45; }
  .bf-store-categories { gap:8px; padding-bottom:14px; }
  .bf-store-category { padding:7px 10px 7px 7px; font-size:13px; gap:8px; }
  .bf-store-category img { width:42px; height:42px; }
  .bf-store-section { margin:15px 0 25px; }
  .bf-store-section h2 { font-size:24px; }
  .bf-store-products { grid-template-columns:minmax(0,1fr); gap:12px; }
  .bf-store-product { display:grid; grid-template-columns:minmax(110px,38%) minmax(0,1fr); align-items:start; }
  .bf-store-product-image,.bf-store-placeholder { width:100%; height:100%; aspect-ratio:auto; min-height:145px; padding:7px; font-size:40px; }
  .bf-store-product-info { padding:12px; }
  .bf-store-product h3 { font-size:17px; }
  .bf-store-product-info p { font-size:12px; line-height:1.4; }
  .bf-store-price { font-size:16px; }
  .bf-store-variants { grid-column:1/-1; }
  .bf-store-variant img { width:42px; height:42px; }
}
@media(max-width:370px) {
  .bf-store-product { grid-template-columns:minmax(90px,34%) minmax(0,1fr); }
  .bf-store-product-image,.bf-store-placeholder { min-height:120px; }
  .bf-store-product-info { padding:10px; }
  .bf-store-product h3 { font-size:15px; }
}

/* Shop v12 — identité boutique, valign en haut et visuels non recadrés. */
.bf-store-header { align-items:center; }
.bf-store-brand { min-width:0; max-width:100%; gap:11px; }
.bf-shop-monogram {
  flex:0 0 42px;
  display:grid; place-items:center;
  width:42px; height:42px;
  border-radius:12px;
  background:#e6332a; color:#fff;
  font-size:23px; font-weight:850;
  line-height:1;
}
.bf-shop-logo { width:42px; height:42px; border-radius:12px; object-fit:contain; background:#fff; }
.bf-store-brand .bf-shop-name { color:#17191d; font-size:inherit; font-weight:850; line-height:1.15; overflow-wrap:anywhere; }
.bf-store-category { align-items:center; }
.bf-store-category img { border-radius:12px; }
.bf-store-products { align-items:start; }
.bf-store-product { align-self:start; }
.bf-store-product-image {
  display:block;
  width:calc(100% - 20px);
  margin:10px 10px 0;
  height:auto;
  border-radius:13px;
  object-fit:contain;
  padding:6px;
  vertical-align:top;
}
.bf-store-placeholder {
  width:calc(100% - 20px);
  margin:10px 10px 0;
  border-radius:13px;
}
.bf-store-product-info { align-self:start; }
.bf-store-variant { align-items:flex-start; }
.bf-store-variant img { border-radius:11px; }
@media(max-width:640px) {
  .bf-shop-monogram { flex-basis:34px; width:34px; height:34px; border-radius:10px; font-size:19px; }
  .bf-shop-logo { width:34px; height:34px; border-radius:10px; }
  .bf-store-header { align-items:center; }
  .bf-store-product { align-items:start; }
  .bf-store-product-image,.bf-store-placeholder {
    width:calc(100% - 12px);
    height:auto;
    min-height:0;
    aspect-ratio:1 / 1;
    margin:6px 6px 6px;
    border-radius:12px;
    padding:5px;
    align-self:start;
  }
  .bf-store-product-info { align-self:start; }
  .bf-store-variant img { border-radius:9px; }
}

/* Shop v13 : cartes compactes, variantes ouvertes et panier. */
.bf-store-cart-label {
  flex:0 0 auto; background:#fff; border:1px solid #e8e8ec;
  color:#30343b; border-radius:999px; font-size:15px; font-weight:750;
  padding:8px 13px; white-space:nowrap;
}
.bf-store-cart-label b {
  display:inline-grid; place-items:center; min-width:25px; height:25px;
  margin-left:5px; padding:0 5px; border-radius:999px; background:#e6332a; color:#fff;
}
.bf-store-products { grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr)); gap:14px; }
.bf-store-product {
  display:block; overflow:hidden; border-radius:17px;
  align-self:start; min-width:0;
}
.bf-store-product-top {
  display:grid; grid-template-columns:115px minmax(0,1fr);
  gap:13px; align-items:start; padding:13px; min-width:0;
}
.bf-store-product-top .bf-store-product-image,
.bf-store-product-top .bf-store-placeholder {
  display:grid; place-items:center; width:115px; height:115px;
  min-height:0; max-width:100%; aspect-ratio:1;
  margin:0; padding:4px; border-radius:12px; object-fit:contain; background:#f5f6f8;
  font-size:37px;
}
.bf-store-product-top .bf-store-product-info { padding:0; align-self:start; min-width:0; }
.bf-store-product-info h3 { font-size:20px; line-height:1.2; margin:0 0 6px; }
.bf-store-product-info p {
  max-width:none; margin:0 0 9px; font-size:14px; line-height:1.38;
  color:#69717c; display:-webkit-box; -webkit-line-clamp:2;
  -webkit-box-orient:vertical; overflow:hidden;
}
.bf-store-product-action { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.bf-store-price { font-size:19px; white-space:nowrap; }
.bf-cart-add-form { margin:0; flex:0 0 auto; }
.bf-storefront .bf-cart-add-btn {
  display:inline-flex; align-items:center; justify-content:center;
  border:0; border-radius:9px; background:#e6332a; color:#fff;
  font-size:14px; font-weight:800; padding:10px 13px;
  line-height:1.15; cursor:pointer; min-height:38px; white-space:nowrap;
}
.bf-storefront .bf-cart-add-btn:hover { background:#c72822; }
.bf-storefront .bf-cart-add-btn:disabled { opacity:.55; cursor:wait; }
.bf-store-variants { display:block; border-top:1px solid #eceef1; margin:0; padding:0 13px 7px; }
.bf-store-variants-title { padding:11px 0 4px; color:#535c67; font-size:14px; font-weight:800; }
.bf-store-variant {
  display:flex; align-items:center; gap:9px; min-width:0;
  padding:10px 0; border-bottom:1px solid #f0f1f3;
}
.bf-store-variant:last-child { border-bottom:0; }
.bf-store-variant img { width:46px; height:46px; flex:0 0 46px; border-radius:10px; object-fit:contain; }
.bf-store-variant-details { flex:1 1 auto; min-width:0; }
.bf-store-variant-details strong { display:block; font-size:16px; font-weight:800; line-height:1.2; color:#20252b; }
.bf-store-variant-details small {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; overflow:hidden;
  font-size:13px; line-height:1.3; margin-top:3px; color:#6e7780;
}
.bf-store-variant-price { flex:0 0 auto; white-space:nowrap; font-size:16px; font-weight:850; color:#bd2924; }
.bf-store-variant .bf-cart-add-btn { padding:8px 10px; min-height:35px; font-size:13px; }
.bf-cart-toast {
  position:fixed; z-index:9999; top:calc(env(safe-area-inset-top,0px) + 12px);
  left:50%; transform:translateX(-50%);
  background:#176b44; color:#fff; font-size:15px; font-weight:750;
  padding:13px 20px; box-shadow:0 9px 28px rgba(0,0,0,.22);
  border-radius:12px; width:max-content; max-width:calc(100vw - 24px);
  text-align:center; overflow-wrap:anywhere;
}
.bf-cart-toast[hidden] { display:none; }
.bf-cart-toast.is-error { background:#b72929; }
@media(max-width:640px) {
  .bf-store-products { display:grid; grid-template-columns:minmax(0,1fr); gap:11px; }
  .bf-store-product { display:block; }
  .bf-store-product-top { grid-template-columns:100px minmax(0,1fr); gap:12px; padding:11px; }
  .bf-store-product-top .bf-store-product-image,.bf-store-product-top .bf-store-placeholder {
    width:100px; height:100px; aspect-ratio:1; margin:0; min-height:0; padding:4px; border-radius:11px;
  }
  .bf-store-product-info h3 { font-size:19px; }
  .bf-store-product-info p { font-size:14px; -webkit-line-clamp:2; }
  .bf-store-price { font-size:18px; }
  .bf-store-variant { flex-wrap:nowrap; }
  .bf-store-variant img { width:42px; height:42px; flex-basis:42px; }
  .bf-store-variant-details strong { font-size:15px; }
  .bf-store-variant-price { font-size:15px; }
  .bf-store-variant .bf-cart-add-btn { font-size:13px; padding:8px; }
}
@media(max-width:385px) {
  .bf-store-product-top { grid-template-columns:84px minmax(0,1fr); }
  .bf-store-product-top .bf-store-product-image,.bf-store-product-top .bf-store-placeholder { width:84px; height:84px; }
  .bf-store-variant { gap:6px; }
  .bf-store-variant img { width:35px; height:35px; flex-basis:35px; }
  .bf-store-variant-price { font-size:14px; }
  .bf-store-variant .bf-cart-add-btn { padding:7px; }
}

/* Shop v14 : accordéon par produit, fermé au départ. */
.bf-store-variants[hidden] { display:none !important; }
.bf-store-toggle { cursor:pointer; position:relative; padding-right:27px; }
.bf-store-toggle::after {
  content:"⌄"; position:absolute; right:12px; top:17px;
  color:#c52f2a; font-weight:900; font-size:25px; line-height:1;
  transition:transform .18s ease;
}
.bf-store-product.is-expanded .bf-store-toggle::after { transform:rotate(180deg); }
.bf-store-toggle:hover { background:#fffafa; }
.bf-store-toggle:focus-visible { outline:3px solid #e6332a; outline-offset:-3px; border-radius:12px; }
.bf-store-collapse-hint { float:right; color:#9299a1 !important; font-weight:500; font-size:12px; }
@media(max-width:640px) {
  .bf-store-toggle { padding-right:24px; }
  .bf-store-toggle::after { right:8px; top:13px; font-size:23px; }
  .bf-store-collapse-hint { font-size:11px; }
}

/* Shop v15 : sélection de variante et panier latéral. */
.bf-store-choose {
  display:inline-flex; align-items:center; gap:5px;
  border-radius:9px; background:#fff0ef; border:1px solid #f0b7b1;
  color:#b92a24; font-size:14px; font-weight:850;
  padding:9px 11px; line-height:1.15;
  white-space:nowrap;
}
.bf-store-product.is-expanded .bf-store-choose span { transform:rotate(180deg); }
.bf-store-cart-label { cursor:pointer; }
.bf-store-cart-label:hover { background:#fff5f3; border-color:#e9b5ae; }
.bf-cart-toast.is-clickable { cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.bf-cart-overlay[hidden],.bf-cart-panel[hidden] { display:none!important; }
.bf-cart-overlay {
  position:fixed; inset:0; z-index:10001; background:rgba(20,24,31,.48);
}
.bf-cart-panel {
  position:fixed; right:0; top:0; bottom:0;
  width:min(440px,100vw); height:100dvh;
  z-index:10002; background:#fff; color:#1b2129;
  display:flex; flex-direction:column;
  box-shadow:-10px 0 45px rgba(0,0,0,.18);
}
body.bf-cart-opened { overflow:hidden; }
.bf-cart-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px; border-bottom:1px solid #e7e9ec; }
.bf-cart-panel-head small { color:#a72e29; font-weight:800; font-size:12px; }
.bf-cart-panel-head h2 { margin:3px 0 0; color:#17191d; font-size:26px; }
.bf-cart-close { background:#f3f4f6; color:#262b33; font-size:28px; line-height:1; width:40px; height:40px; padding:0; }
.bf-cart-panel-body { padding:5px 18px; flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.bf-cart-empty { color:#707783; text-align:center; padding:45px 12px; margin:0; }
.bf-cart-line { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:17px 2px; border-bottom:1px solid #eff0f2; }
.bf-cart-line-info { flex:1; min-width:0; }
.bf-cart-line-info strong { display:block; font-size:16px; color:#21262d; line-height:1.3; }
.bf-cart-line-info small { display:block; margin-top:5px; font-size:13px; color:#7c8490; }
.bf-cart-line-right { flex:0 0 auto; text-align:right; }
.bf-cart-line-right > strong { color:#be2823; font-size:16px; white-space:nowrap; }
.bf-cart-qty { display:flex; align-items:center; justify-content:flex-end; gap:7px; margin-top:9px; }
.bf-cart-qty button { background:#f3f4f6; border:1px solid #dfe2e7; color:#2c333d; border-radius:8px; padding:0; width:32px; height:32px; font-size:18px; }
.bf-cart-qty button:last-child { color:#bf2f28; background:#fff2f1; }
.bf-cart-qty span { font-size:15px; font-weight:750; min-width:14px; text-align:center; }
.bf-cart-panel-foot { border-top:1px solid #e8e9ec; padding:17px 20px 20px; background:#fff; }
.bf-cart-total { display:flex; justify-content:space-between; gap:12px; font-size:21px; color:#20262d; }
.bf-cart-total strong:last-child { color:#be2924; white-space:nowrap; }
.bf-cart-foot-actions { display:flex; gap:9px; margin-top:18px; }
.bf-cart-foot-actions button { flex:1; padding:12px 10px; font-size:13px; }
.bf-cart-clear { background:#f4f5f7; color:#b52c27; border:1px solid #e6e8eb; }
.bf-cart-continue { background:#e6332a; color:#fff; }
.bf-cart-panel-foot p { color:#8b939e; font-size:12px; line-height:1.4; text-align:center; margin:12px 0 0; }
@media(max-width:640px) {
 .bf-store-choose { font-size:13px; padding:8px 9px; white-space:normal; }
 .bf-store-product-action { align-items:center; }
 .bf-store-price { white-space:nowrap; }
 .bf-cart-panel { width:100%; }
 .bf-cart-panel-head { padding-top:max(20px,env(safe-area-inset-top)); }
 .bf-cart-panel-foot { padding-bottom:max(20px,env(safe-area-inset-bottom)); }
}

/* Shop v16 : options toujours affichées, prix de base sans préfixe. */
.bf-store-product-top { cursor:default; }
.bf-store-variants { display:block; }
.bf-store-variants-title { font-size:15px; color:#4c5561; }
.bf-store-choose,.bf-store-collapse-hint { display:none!important; }

/* La carte se lit de haut en bas, puis dans la colonne suivante. */
.bf-storefront .bf-store-menu { column-count:1; column-gap:14px; }
.bf-storefront .bf-store-section {
  margin:0;
  break-inside:avoid;
}
.bf-storefront .bf-store-category-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:84px;
  margin:0 0 12px;
  padding:0 0 0 16px;
  border:1px solid #e5e7ec;
  border-radius:17px;
  background:#17191d;
  box-shadow:0 3px 13px rgba(20,28,40,.04);
  color:#fff;
  font-size:clamp(24px,2.4vw,30px);
  line-height:1.25;
  overflow-wrap:anywhere;
  break-inside:avoid;
  break-after:avoid;
}
.bf-storefront .bf-store-category-copy { padding:10px 0; }
.bf-storefront .bf-store-category-copy h2 { margin:0; color:inherit; font-size:inherit; }
.bf-storefront .bf-store-category-copy p { margin:4px 0 0; color:#e0e2e6; font-size:13px; line-height:1.35; }
.bf-storefront .bf-store-category-banner img {
  flex:0 0 auto;
  width:82px;
  height:82px;
  object-fit:cover;
  border-radius:0 16px 16px 0;
}
@media (min-width:760px) {
  .bf-storefront .bf-store-categories { display:none; }
}
.bf-storefront .bf-store-products { display:block; }
.bf-storefront .bf-store-product {
  break-inside:avoid;
  margin:0 0 12px;
}
@media (min-width:760px) {
  .bf-storefront .bf-store-menu { column-count:2; }
}
@media (min-width:1120px) {
  .bf-storefront .bf-store-menu { column-count:3; }
}

.bf-storefront .bf-store-product.has-options .bf-store-product-info p {
  -webkit-line-clamp:4;
}
