/* ============================================================
   commandes-shabbat.css — Système de commande Shabbat
   Requiert bekef.css chargé avant ce fichier.
   ============================================================ */

/* ── Teaser catégories ── */
.cat-teaser { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cat-teaser .pill { display: inline-flex; align-items: center; gap: 8px; }
.cat-teaser .pill .em { font-size: 14px; }

.shabbat-teaser-grid{ display:grid; grid-template-columns:1fr .8fr; gap:64px; align-items:center;}

/* ── Menu de commande ── */
.shop-menu { display: flex; flex-direction: column; }
.cat { margin-top: 26px; }
.cat:first-child { margin-top: 0; }
.cat-head { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.cat-head .cat-ico { font-size: 15px; }

/* ── Items ── */
.item { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 15px 2px; border-bottom: 1px solid var(--line-soft); transition: background .2s; }
.item:last-child { border-bottom: 0; }
.item:hover { background: rgba(201,168,76,.035); }
.item-nm { font-size: 15.5px; color: var(--text); }
.item-desc { font-size: 12px; color: var(--text-faint); margin-top: 3px; font-weight: 300; }
.item-pr { font-family: var(--serif); font-size: 19px; color: var(--gold); white-space: nowrap; min-width: 70px; text-align: right; }
.item-pr small { font-family: var(--sans); font-size: 10.5px; color: var(--text-faint); }

/* ── Stepper ── */
.stepper { display: flex; align-items: center; gap: 6px; }
.st-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--gold); font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .18s; font-family: var(--sans); padding: 0; }
.st-btn:hover { border-color: var(--gold); background: rgba(201,168,76,.1); }
.st-btn:active { transform: scale(.9); }
.st-qty { min-width: 20px; text-align: center; font-size: 14px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.st-qty.has { color: var(--gold); font-weight: 600; }

/* ── Soldout ── */
.item.soldout { opacity: .45; }
.item.soldout .item-nm { text-decoration: line-through; color: var(--text-faint); }
.item.soldout .item-pr { color: var(--text-faint); }
.item.soldout .st-btn { border-color: var(--line-soft); color: var(--text-faint); cursor: not-allowed; pointer-events: none; }
.badge-out { display: inline-block; margin-left: 9px; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #d9956f; border: 1px solid rgba(217,149,111,.42); background: rgba(217,149,111,.09); border-radius: 999px; padding: 3px 8px; vertical-align: middle; }

/* ── Modal ── */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(6,6,5,.78); backdrop-filter: blur(4px); }
.modal-panel { position: absolute; inset: 3vh 50% auto auto; transform: translateX(50%); width: min(1080px,94vw); max-height: 94vh; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.6); display: flex; flex-direction: column; }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; border-bottom: 1px solid var(--line-soft); flex: none; }
.modal-bar .mb-week { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.modal-bar h3 { font-size: 22px; margin-top: 4px; }
.modal-close { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text-dim); font-size: 20px; line-height: 1; cursor: pointer; transition: .18s; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-grid { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 0; flex: 1; }
.modal-menu { overflow-y: auto; padding: 24px 28px; border-right: 1px solid var(--line-soft); }
.modal-form { overflow-y: auto; padding: 24px 28px; background: var(--bg-3); }
.modal-menu::-webkit-scrollbar, .modal-form::-webkit-scrollbar { width: 8px; }
.modal-menu::-webkit-scrollbar-thumb, .modal-form::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* Barre progression livraison gratuite*/
.free-delivery-box{
   margin-bottom:18px;
   padding:14px 16px;
   border:1px solid var(--gold);
   border-radius:8px;
   background:linear-gradient(
       135deg,
       rgba(201,168,76,.12),
       rgba(201,168,76,.04)
   );
}

.fd-title{
   color:var(--gold);
   font-weight:700;
   margin-bottom:10px;
}

.fd-progress{
   height:8px;
   background:#2b2720;
   border-radius:999px;
   overflow:hidden;
}

.fd-progress-bar{
   height:100%;
   width:0%;
   background:linear-gradient(
       90deg,
       var(--gold),
       var(--gold-bright)
   );
   transition:.35s;
}

.fd-text{
   margin-top:10px;
   font-size:13px;
   color:var(--text);
}

/* ── Formulaire modal ── */
.mf-legend { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 4px 0 14px; }
.mf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.mf-row.one { grid-template-columns: 1fr; }
.phone { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }

/* ── Récap ── */
.recap { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.recap-head { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.recap-head .count { color: var(--text-dim); font-weight: 500; letter-spacing: .04em; }
.ss-empty { font-size: 13px; color: var(--text-faint); font-weight: 300; padding: 18px 0; text-align: center; line-height: 1.5; }
.ss-list { list-style: none; display: none; flex-direction: column; margin: 8px 0 0; }
.ss-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.ss-qn { font-size: 13.5px; color: var(--text); font-weight: 300; }
.ss-qn b { color: var(--gold); font-weight: 600; font-family: var(--serif); font-size: 14.5px; }
.ss-lp { font-family: var(--serif); font-size: 16px; color: var(--text); white-space: nowrap; }
.ss-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 16px 0; }
.ss-total .l { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.ss-total .v { font-family: var(--serif); font-size: 28px; color: var(--gold); line-height: 1; white-space: nowrap; }
.mf-submit { width: 100%; justify-content: center; }
.mf-note { margin-top: 14px; font-size: 11.5px; color: var(--text-faint); display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.mf-note .dot { margin-top: 6px; }

/* ── Salades ── */
.salade-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line-soft); }
.salade-item:last-child { border-bottom: 0; }
.salade-nm { font-size: 13.5px; color: var(--text); font-weight: 300; }

/* ============================================================
   MOBILE ≤ 860px — 3 écrans empilés
   ============================================================ */
@media (max-width: 860px) {
  .modal-panel { position: fixed; inset: 0; transform: none; width: 100vw; height: 100%; max-height: 100%; border-radius: 0; border: 0; overflow: hidden; display: flex; flex-direction: column; }
  .modal-grid { display: none !important; }
  .mk-wrapper { flex: 1; position: relative; overflow: hidden; background: var(--bg-2); }
  .mk-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg-2); transition: transform .32s cubic-bezier(.4,0,.2,1); }
  .mk-screen.mk-right { transform: translateX(100%); }
  .mk-screen.mk-left { transform: translateX(-100%); }
  .mk-menu-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 16px 0; -webkit-overflow-scrolling: touch; }
  .mk-menu-scroll::-webkit-scrollbar { display: none; }
  .mk-spacer { flex-shrink: 0; }
  .mk-sticky { flex-shrink: 0; background: var(--bg-3); border-top: 1px solid var(--line); padding: 12px 16px 16px; box-shadow: 0 -8px 24px rgba(0,0,0,.45); transform: translateY(100%); transition: transform .22s ease; }
  .mk-sticky.mk-vis { transform: translateY(0); }
  .mk-sticky-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
  .mk-sticky-label { font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
  .mk-sticky-count { font-size: 10px; color: var(--text-faint); margin-left: 6px; }
  .mk-sticky-total { font-family: var(--serif); font-size: 24px; color: var(--gold); line-height: 1; }
  .mk-sticky-lines { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
  .mk-sticky-line { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-dim); font-weight: 300; }
  .mk-sticky-line b { color: var(--gold); font-family: var(--serif); font-size: 11px; font-weight: 400; }
  .mk-btn-next { width: 100%; background: var(--gold); color: #0e0e0c; border: none; border-radius: 3px; padding: 12px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .05em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .mk-co-bar { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
  .mk-btn-back { background: transparent; border: 1px solid var(--line); border-radius: 20px; color: var(--text-dim); font-family: var(--sans); font-size: 10px; font-weight: 600; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
  .mk-co-title { font-size: 11px; font-weight: 600; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; }
  .mk-co-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px; -webkit-overflow-scrolling: touch; }
  .mk-co-scroll::-webkit-scrollbar { display: none; }
  .mk-recap-box { background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 6px; padding: 14px 16px; margin-bottom: 20px; }
  .mk-recap-box-title { font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
  .mk-modify { font-size: 10px; color: var(--text-faint); font-weight: 400; text-transform: none; letter-spacing: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
  .mk-order-line { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
  .mk-order-line:last-child { border-bottom: 0; }
  .mk-order-nm { font-size: 13px; color: var(--text); font-weight: 300; }
  .mk-order-nm b { color: var(--gold); font-family: var(--serif); font-size: 14px; font-weight: 400; margin-right: 3px; }
  .mk-order-pr { font-family: var(--serif); font-size: 14px; color: var(--text-dim); white-space: nowrap; }
  .mk-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .mk-total-lbl { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
  .mk-total-val { font-family: var(--serif); font-size: 30px; color: var(--gold); line-height: 1; }
  .mk-legend { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
  .mk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  .mk-row.one { grid-template-columns: 1fr; }
  .mk-field { display: flex; flex-direction: column; gap: 5px; }
  .mk-field label { font-size: 11px; color: var(--text-dim); }
  .mk-field label .req { color: var(--gold); }
  .mk-field input, .mk-field select, .mk-field textarea { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 3px; padding: 11px 12px; color: var(--text); font-family: var(--sans); font-size: 14px; font-weight: 300; transition: border-color .2s; width: 100%; }
  .mk-field input:focus, .mk-field select:focus, .mk-field textarea:focus { outline: none; border-color: var(--gold); }
  .mk-field input::placeholder, .mk-field textarea::placeholder { color: var(--text-faint); }
  .mk-phone { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
  .mk-btn-send { width: 100%; background: var(--gold); color: #0e0e0c; border: none; border-radius: 3px; padding: 14px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .05em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; }
  .mk-note { font-size: 11px; color: var(--text-faint); margin-top: 10px; line-height: 1.5; text-align: center; }
  .mk-confirm { align-items: center; justify-content: center; gap: 18px; padding: 32px; text-align: center; }
  .mk-confirm-icon { font-size: 56px; }
  .mk-confirm-title { font-family: var(--serif); font-size: 28px; color: var(--gold); line-height: 1.2; }
  .mk-confirm-msg { font-size: 14px; color: var(--text-dim); font-weight: 300; line-height: 1.7; max-width: 280px; }
  .mk-confirm-seal { font-size: 11px; color: var(--text-faint); letter-spacing: .1em; }
  .shabbat-teaser-grid{display:block;}
  #infos-pratiques .info-card{margin-top:28px;padding:22px 20px;border-radius:12px;background:linear-gradient(135deg, rgba(201,168,76,.10), rgba(255,255,255,.03));} 
  #infos-pratiques .actions{flex-direction:column;}
  #infos-pratiques .actions .btn{width:100%;justify-content:center;}
  #infos-pratiques .cat-teaser{gap:8px;}
  #infos-pratiques .pill{font-size:12px;padding:8px 12px;}
  .hero-visual { display: none; }
}