/* MOSKI Paris (B2C) – Barre d'achat flottante mobile (angles droits)
   Adapté de pro.moskiparis.com, sans les éléments B2B */
@media (max-width: 767.98px) {
  body.mk-sb-on #footer,
  body.mk-sb-on .page-footer { padding-bottom: 120px; }
  body.mk-sb-on .mki-pdp-info { padding-bottom: 24px; }

  .mk-sb {
    position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1040; box-sizing: border-box;
    background: #fff; color: #1a1a1a; border: 1px solid #efefef; border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    font-family: inherit;
  }
  .mk-sb *, .mk-sb-panel * { box-sizing: border-box; }

  .mk-sb__btn {
    display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 52px; padding: 0 18px; border-radius: 0;
    font-size: 12px; letter-spacing: .14em; text-decoration: none !important; text-transform: uppercase;
    cursor: pointer; white-space: nowrap;
  }
  .mk-sb__btn--dark { background: #111 !important; color: #fff !important; border: 1px solid #111 !important; }
  .mk-sb__btn:focus-visible, .mk-sb__toggle:focus-visible, .mk-sb-panel button:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
  .mk-sb__btn[disabled] { opacity: .6; cursor: default; }

  .mk-sb--buy { height: 72px; padding: 0 8px 0 10px; display: flex; align-items: center; }
  .mk-sb__line { display: flex; align-items: center; gap: 10px; width: 100%; }
  .mk-sb__toggle { display: flex; align-items: center; gap: 6px; height: 56px; padding: 0; border: 0; background: none; flex-shrink: 0; cursor: pointer; color: #1a1a1a; }
  .mk-sb__toggle[disabled] { cursor: default; opacity: 1; }
  .mk-sb-thumb { position: relative; display: flex; align-items: center; justify-content: center; background: #fafafa; border: 1.5px solid #ececec; width: 62px; height: 52px; flex-shrink: 0; }
  .mk-sb-thumb img { width: 90%; height: 85%; object-fit: contain; display: block; }
  .mk-sb-thumb.is-active, .mk-sb-thumb--bar { border-color: #1a1a1a; }
  .mk-sb-thumb--bar { width: 64px; height: 44px; }
  .mk-sb__chev { display: flex; }
  .mk-sb__sep { width: 1px; height: 32px; background: #e6e6e6; flex-shrink: 0; }
  .mk-sb__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .mk-sb__price { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mk-sb__meta { font-size: 10px; letter-spacing: .12em; color: #6b6b6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mk-sb__add { padding: 0 22px; letter-spacing: .2em; }
  .mk-sb__add.is-added { letter-spacing: .14em; }

  /* Panneau couleur */
  .mk-sb-overlay { position: fixed; inset: 0; background: rgba(17, 17, 17, .18); z-index: 1038; display: none; }
  .mk-sb-panel {
    position: fixed; left: 12px; right: 12px; bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    z-index: 1039; max-height: 60vh; overflow-y: auto;
    background: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .16); padding: 8px 16px 12px; display: none;
  }
  .mk-sb-wrap.is-open .mk-sb-overlay, .mk-sb-wrap.is-open .mk-sb-panel { display: block; }
  .mk-sb-panel__head { height: 40px; display: flex; align-items: center; justify-content: space-between; }
  .mk-sb-panel__title { font-size: 11px; letter-spacing: .2em; color: #4a4a4a; }
  .mk-sb-panel__count { font-size: 11px; color: #6b6b6b; }
  .mk-sb-panel__row { min-height: 64px; display: flex; align-items: center; border-top: 1px solid #f0f0f0; }
  .mk-sb-panel__pick { flex: 1 1 auto; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: #1a1a1a; font: inherit; text-align: left; cursor: pointer; }
  .mk-sb-panel__name { font-size: 13px; }
  .mk-sb-panel__code { font-size: 11px; letter-spacing: .1em; color: #6b6b6b; }
  .mk-sb-panel__check { margin-left: auto; display: flex; visibility: hidden; }
  .mk-sb-panel__row.is-active .mk-sb-panel__check { visibility: visible; }

  .mk-sb__error { position: fixed; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 1041; background: #fff; border: 1px solid #b42318; color: #b42318; font-size: 12px; padding: 10px 12px; }
  .mk-sb__error[hidden] { display: none; }

  /* Apparition seulement quand le bouton de la page n'est plus visible */
  .mk-sb { transition: transform .28s ease, opacity .28s ease; }
  .mk-sb-hide .mk-sb { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; }
  .mk-sb-wrap.is-open.mk-sb-hide .mk-sb { transform: none; opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) { .mk-sb { transition: none; } }

/* ---------- Photo du coloris : glisser + plein écran ---------- */
.mk-cp { position: relative; cursor: zoom-in; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.mk-cp:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.mk-cp__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 64px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 0; background: transparent; color: #1a1a1a; cursor: pointer; padding: 0;
}
.mk-cp__navs { position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.mk-cp__navs .mk-cp__nav { pointer-events: auto; }
.mk-cp__nav--prev { left: calc(50% - 50vw); }
.mk-cp__nav--next { right: calc(50% - 50vw); }
.mk-cp__zoom { position: absolute; right: 4px; bottom: 4px; z-index: 2; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: transparent; color: #1a1a1a; pointer-events: none; }

html.mk-lb-open, html.mk-lb-open body { overflow: hidden; }
.mk-lb { position: fixed; inset: 0; z-index: 1060; background: #fff; color: #1a1a1a; display: flex; flex-direction: column; font-family: inherit; }
.mk-lb[hidden] { display: none; }
.mk-lb__head { flex: 0 0 auto; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 16px; border-bottom: 1px solid #ececec; }
.mk-lb__title { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #4a4a4a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-lb__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: #1a1a1a; cursor: pointer; padding: 0; }
.mk-lb__stage { position: relative; flex: 1 1 auto; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fafafa; touch-action: pan-y; }
.mk-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; cursor: zoom-in; -webkit-user-drag: none; }
.mk-lb.is-zoomed .mk-lb__stage { overflow: auto; display: block; touch-action: pan-x pan-y; }
.mk-lb.is-zoomed .mk-lb__img { max-width: none; max-height: none; width: 250%; cursor: zoom-out; }
.mk-lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 64px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 0; background: transparent; color: #1a1a1a; cursor: pointer; padding: 0;
}
.mk-lb__nav[hidden] { display: none; }
.mk-lb__nav--prev { left: 0; }
.mk-lb__nav--next { right: 0; }
.mk-lb.is-zoomed .mk-lb__nav { display: none; }
.mk-lb__hint { flex: 0 0 auto; text-align: center; font-size: 11px; letter-spacing: .08em; color: #6b6b6b; padding: 8px 16px 0; }
.mk-lb__thumbs { flex: 0 0 auto; display: flex; gap: 8px; justify-content: center; padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); overflow-x: auto; }
.mk-lb__thumb { width: 56px; height: 46px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0; background: #fafafa; border: 1.5px solid #ececec; border-radius: 0; cursor: pointer; }
.mk-lb__thumb.is-active { border-color: #1a1a1a; }
.mk-lb__thumb img { width: 90%; height: 85%; object-fit: contain; display: block; }

/* Bouton panier du plein écran (même sac que l'en-tête) */
.mk-lb__bag { position: absolute; right: 16px; bottom: calc(108px + env(safe-area-inset-bottom, 0px)); z-index: 3; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #1a1a1a; border-radius: 0; background: #fff; color: #1a1a1a; cursor: pointer; }
.mk-lb__bag.is-busy { opacity: .5; }
.mk-lb__bag:focus-visible, .mk-lb__nav:focus-visible, .mk-cp__nav:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.mk-lb.is-zoomed .mk-lb__bag { display: none; }

/* Confirmation d'ajout */
.mk-toast { position: fixed; left: 12px; right: 12px; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); z-index: 1070; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #111; color: #fff; font-family: inherit; font-size: 12px; letter-spacing: .06em; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.mk-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.mk-toast.is-error { background: #b42318; }
.mk-toast__link { color: #fff !important; text-decoration: underline !important; white-space: nowrap; }
html.mk-lb-open .mk-toast { bottom: calc(172px + env(safe-area-inset-bottom, 0px)); }

/* Carrousel "Vous aimerez aussi" */
.mk-reco { margin: 34px -14px 8px; display: flex; flex-direction: column; gap: 16px; }
.mk-reco__head { padding: 0 14px; }
.mk-reco__title { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: .24em; color: #1a1a1a; }
.mk-reco__track { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 6px; scroll-snap-type: x mandatory; scroll-padding-left: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mk-reco__track::-webkit-scrollbar { display: none; }
.mk-reco__card { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; color: #1a1a1a !important; text-decoration: none !important; }
.mk-reco__img { height: 150px; background: #f6f6f6; display: flex; align-items: center; justify-content: center; }
.mk-reco__img img { width: 92%; height: 92%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.mk-reco__name { font-size: 13px; letter-spacing: .06em; }
.mk-reco__price { font-size: 12px; color: #6b6b6b; }

/* Footer compact (mobile) */
@media (max-width: 767.98px) {
  .mk-ft-compact .moski-footer-grid { display: flex !important; flex-direction: column !important; gap: 0 !important; padding-bottom: 0 !important; }
  .mk-ft-compact .moski-footer-intro { margin: 0 0 14px !important; padding: 0 !important; }
  .mk-ft-compact .moski-footer-intro a { margin-top: 22px !important; }
  .mk-ft-compact .moski-footer-column { margin: 0 !important; padding: 0 !important; border-top: 1px solid #ececec; align-items: stretch !important; }
  .mk-ft-compact .moski-footer-column:last-child { border-bottom: 1px solid #ececec; }
  .mk-ft-compact .moski-footer-column h4 { margin: 0 !important; padding: 0 !important; width: 100% !important; }
  .mk-ft-toggle { width: 100%; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; background: none; color: #1a1a1a; font: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
  .mk-ft-sign { font-size: 16px; letter-spacing: 0; }
  .mk-ft-links { display: none; flex-direction: column; gap: 12px; padding: 0 0 16px; }
  .mk-ft-compact .moski-footer-column.is-open .mk-ft-links { display: flex; }
  .mk-ft-links a { margin: 0 !important; padding: 0 !important; font-size: 13px; }
  .mk-ft-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 16px 0 4px; font-size: 11px; }
  .mk-ft-legal a { color: #4a4a4a !important; }
  .mk-ft-compact .moski-footer-bottom { margin-top: 10px !important; padding-top: 10px !important; }
}

/* ---------- Tunnel de commande : choix en boutons ronds ---------- */
body#checkout a.mk-choice, body#checkout a.mk-choice:hover, body#checkout a.mk-choice:focus { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 14px !important; width: 100% !important; max-width: none !important; height: auto !important; min-height: 52px !important; padding: 12px 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: #111 !important; text-decoration: none !important; text-transform: none !important; letter-spacing: .02em !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.35 !important; text-align: left !important; box-shadow: none !important; cursor: pointer; }
body#checkout a.mk-choice:hover .mk-choice__label { text-decoration: underline; }
body#checkout a.mk-choice:focus-visible { outline: 2px solid #111 !important; outline-offset: 2px; }
.mk-choice__dot { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #111; background: #fff; box-sizing: border-box; }
.mk-choice.is-checked .mk-choice__dot { background: #111; box-shadow: inset 0 0 0 5px #fff; }
body#checkout .mk-checkout-add-address-wrap { display: block !important; width: 100% !important; margin: 18px 0 0 !important; padding: 0 !important; border-top: 1px solid #e6e6e6 !important; }
body#checkout a.mk-choice--diff { border-top: 1px solid #e6e6e6 !important; border-bottom: 1px solid #e6e6e6 !important; }

/* ---------- Mes adresses : liste en cartes MOSKI ---------- */
body#addresses .addresses__list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important;gap:16px!important;margin:18px 0 0!important}
body#addresses .address-card{border:1px solid #e3e3e3!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;padding:22px!important;margin:0!important;min-height:0!important}
body#addresses .address-card__container{padding:0!important}
body#addresses .address-card__alias{display:block!important;font-size:11px!important;font-weight:600!important;letter-spacing:.18em!important;text-transform:uppercase!important;color:#111!important;margin:0 0 14px!important}
body#addresses .address-card__content{font-size:13px!important;line-height:1.7!important;color:#333!important;margin:0 0 18px!important;font-style:normal!important}
body#addresses .address-card__actions{display:flex!important;gap:22px!important;padding-top:14px!important;border-top:1px solid #efefef!important}
body#addresses .address-card__actions a{font-size:10px!important;letter-spacing:.16em!important;text-transform:uppercase!important;color:#111!important;text-decoration:underline!important;text-underline-offset:4px!important}
body#addresses .address-card__actions a.address-card__delete{color:#8b8b8b!important;text-decoration-color:#bdbdbd!important}
body#addresses .address-card--add-address{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:14px!important;border-style:dashed!important;border-color:#cfcfcf!important;min-height:180px!important;text-decoration:none!important;color:#111!important}
body#addresses .address-card__add-text{font-size:11px!important;letter-spacing:.18em!important;text-transform:uppercase!important;color:#111!important}
body#addresses .address-card__add-icon{width:44px!important;height:44px!important;border-radius:0!important;background:#111!important;border-color:#111!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important}

/* ---------- Tunnel : récapitulatif avec photos qui suit le scroll ---------- */
.mk-rc-lines { display: flex; flex-direction: column; }
.mk-rc-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #ececec; color: #1a1a1a !important; text-decoration: none !important; }
.mk-rc-line__img { width: 64px; height: 48px; background: #f6f6f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mk-rc-line__img img { width: 92%; height: 92%; object-fit: contain; mix-blend-mode: multiply; display: block; }
.mk-rc-line__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mk-rc-line__name { font-size: 13px; letter-spacing: .06em; }
.mk-rc-line__meta { font-size: 11px; color: #6b6b6b; line-height: 1.4; overflow-wrap: anywhere; }
.mk-rc-line__price { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk-rc-lines--desk { margin: 4px 0 14px; }
.mk-rc { display: none; }
@media (max-width: 767.98px) {
  .mk-rc-lines--desk { display: none; }
  body#checkout .mk-rc { display: block; position: -webkit-sticky; position: sticky; top: var(--mk-rc-top, 72px); z-index: 900; margin: 0 0 16px; background: #f6f6f6; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; }
  .mk-rc__bar { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 0; background: none; color: #1a1a1a; font: inherit; text-align: left; cursor: pointer; }
  .mk-rc__bar:focus-visible { outline: 2px solid #111; outline-offset: -2px; }
  .mk-rc__thumbs { display: flex; flex-shrink: 0; }
  .mk-rc__thumbs img { width: 40px; height: 30px; object-fit: contain; background: #fff; border: 1px solid #ececec; display: block; }
  .mk-rc__thumbs img + img { margin-left: -10px; }
  .mk-rc__lbl { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .mk-rc__lbl b { font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
  .mk-rc__lbl small { font-size: 11px; color: #6b6b6b; }
  .mk-rc__total { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .mk-rc__chev { display: flex; transition: transform .2s ease; }
  .mk-rc.is-open .mk-rc__chev { transform: rotate(180deg); }
  .mk-rc__body { padding: 0 14px 14px; max-height: calc(100vh - var(--mk-rc-top, 72px) - 140px); overflow-y: auto; overscroll-behavior: contain; }
  .mk-rc__body .mk-rc-line { border-bottom-color: #e4e4e4; }
  .mk-rc-tot { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; font-size: 12px; }
  .mk-rc-tot__row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
  .mk-rc-tot__row.is-total { font-size: 15px; padding-top: 4px; }
  .mk-rc-tot__row.is-note { color: #6b6b6b; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .mk-rc__chev { transition: none; } }

/* ---------- Responsive : rien ne dépasse de l'écran sur les côtés (rangée du thème) ---------- */
#wrapper { overflow-x: clip; }
@supports not (overflow: clip) { #wrapper > .columns-container > .row { margin-left: 0; margin-right: 0; } }
