/* Tiroir du panier, repris à l'identique du thème Noveza (snippet mbtb-cart-drawer). Polices : Work Sans, comme sur Noveza. */
.mcd { --mbtb-heading: "Work Sans", system-ui, sans-serif; --mbtb-body: "Work Sans", system-ui, sans-serif; }
.mcd { --mcd-ink: #161616; --mcd-mute: #6f6a64; --mcd-line: #ebe7e2; --mcd-soft: #f6f3ef; --mcd-acc: var(--mbtb-accent, #c9835f); position: fixed; inset: 0; z-index: 2000; visibility: hidden; pointer-events: none; }
.mcd.is-open { visibility: visible; pointer-events: auto; }
.mcd__ov { position: absolute; inset: 0; background: rgba(22,20,18,.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.mcd.is-open .mcd__ov { opacity: 1; }
.mcd__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: #fff; color: var(--mcd-ink); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s cubic-bezier(.2,.8,.2,1); box-shadow: -18px 0 50px rgba(0,0,0,.16); }
.mcd.is-open .mcd__panel { transform: none; }
.mcd__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 18px; }
.mcd__title { margin: 0; font: 600 1.25rem/1 var(--mbtb-heading); letter-spacing: .01em; }
.mcd__title small { font: 600 .6875rem/1 var(--mbtb-body, "Work Sans", sans-serif); letter-spacing: .12em; color: var(--mcd-mute); margin-left: 8px; text-transform: uppercase; }
.mcd__x { appearance: none; background: var(--mcd-soft); border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: inherit; display: grid; place-items: center; transition: background .2s, transform .2s; }
.mcd__x:hover { background: #ebe6df; transform: rotate(90deg); }
.mcd__x svg { width: 16px; height: 16px; }
.mcd__ship { margin: 0 -22px 4px; padding: 11px 22px; white-space: nowrap; background: #161616; color: #fff; justify-content: center; display: flex; align-items: center; gap: 10px; font-size: .78125rem; line-height: 1.3; }
.mcd__ship svg { width: 18px; height: 18px; flex: none; color: #fff; }
.mcd__ship b { font-weight: 700; }
.mcd__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 8px; }
.mcd__item { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--mcd-line); animation: mcdIn .4s ease both; }
@keyframes mcdIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mcd__img { width: 92px; aspect-ratio: 3/4; object-fit: cover; background: var(--mcd-soft); display: block; }
.mcd__name { font-size: .875rem; line-height: 1.35; font-weight: 600; color: inherit; text-decoration: none; display: block; }
.mcd__var { font-size: .75rem; color: var(--mcd-mute); margin-top: 4px; }
.mcd__row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
.mcd__qty { display: inline-flex; align-items: center; background: var(--mcd-soft); border-radius: 999px; }
.mcd__qty button { appearance: none; background: none; border: 0; width: 32px; height: 32px; font-size: 1.05rem; cursor: pointer; color: inherit; border-radius: 50%; transition: background .2s; }
.mcd__qty button:hover { background: #ebe6df; }
.mcd__qty span { min-width: 22px; text-align: center; font-size: .8125rem; font-weight: 600; }
.mcd__price { font-size: .9375rem; font-weight: 700; white-space: nowrap; }
.mcd__rm { appearance: none; background: none; border: 0; padding: 0; margin-top: 10px; font-size: .71875rem; color: var(--mcd-mute); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mcd__rm:hover { color: var(--mcd-ink); }
.mcd__empty { padding: 56px 8px 32px; text-align: center; color: var(--mcd-mute); font-size: .9375rem; }
.mcd__empty a { display: inline-block; margin-top: 18px; color: var(--mcd-ink); font-weight: 600; }
.mcd__up { padding: 20px 0 10px; }
.mcd__uphd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.mcd__uptt { font: 600 .6875rem/1 var(--mbtb-body, "Work Sans", sans-serif); letter-spacing: .16em; text-transform: uppercase; }
.mcd__uplist { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -22px; padding-right: 22px; scrollbar-width: none; touch-action: pan-x pan-y; }
.mcd__uplist::-webkit-scrollbar { display: none; }
.mcd__arrows { display: inline-flex; gap: 6px; }
.mcd__arr { appearance: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--mcd-line); background: #fff; color: var(--mcd-ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.mcd__arr:hover { background: var(--mcd-ink); color: #fff; }
.mcd__arr svg { width: 14px; height: 14px; }
.mcd__uplist { cursor: grab; }
.mcd__uplist.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.mcd__uplist img { -webkit-user-drag: none; user-select: none; }
.mcd__card { flex: 0 0 150px; scroll-snap-align: start; position: relative; }
.mcd__cardimg { position: relative; display: block; aspect-ratio: 3/4; background: var(--mcd-soft); overflow: hidden; }
.mcd__cardimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mcd__card:hover .mcd__cardimg img { transform: scale(1.04); }
.mcd__plus { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: var(--mcd-ink); font-size: 1.2rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: background .2s, color .2s; }
.mcd__plus:hover { background: var(--mcd-ink); color: #fff; }
.mcd__cardname { display: block; margin-top: 8px; font-size: .78125rem; line-height: 1.3; color: inherit; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcd__cardprice { font-size: .78125rem; font-weight: 700; margin-top: 3px; }
.mcd__foot { padding: 16px 22px 20px; border-top: 1px solid var(--mcd-line); background: #fff; box-shadow: 0 -10px 24px rgba(0,0,0,.04); }
.mcd__sub { display: flex; align-items: baseline; justify-content: space-between; }
.mcd__sub span:first-child { font-size: .78125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.mcd__sub span:last-child { font: 600 1.5rem/1 var(--mbtb-heading); }
.mcd__note { font-size: .71875rem; color: var(--mcd-mute); margin: 6px 0 14px; }
.mcd__btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 1.15rem 1rem; background: var(--mcd-ink); color: #fff; border: 1px solid var(--mcd-ink); font: 700 .71875rem/1 var(--mbtb-body, "Work Sans", sans-serif); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s; }
.mcd__btn:hover { background: #000; }
.mcd__btn svg { width: 14px; height: 14px; transition: transform .25s; }
.mcd__btn:hover svg { transform: translateX(4px); }
.mcd__trust { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: .6875rem; color: var(--mcd-mute); }
.mcd__trust span { display: inline-flex; align-items: center; gap: 5px; }
.mcd__trust svg { width: 13px; height: 13px; }
.mcd__link { display: block; text-align: center; margin-top: 10px; font-size: .75rem; color: var(--mcd-mute); text-underline-offset: 3px; }
.mcd.is-busy .mcd__body { opacity: .5; transition: opacity .2s; }
@media (max-width: 749px) { .mcd__foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); } .mcd__note, .mcd__trust { display: none; } .mcd__ship { margin-inline: -18px; padding-inline: 18px; } .mcd__sub { margin-bottom: 10px; } .mcd__link { margin-top: 8px; } .mcd__head { padding: 16px 18px 14px; } .mcd__body { padding-inline: 18px; } .mcd__uplist { margin-right: -18px; padding-right: 18px; } .mcd__item { grid-template-columns: 80px minmax(0,1fr); gap: 14px; padding: 14px 0; } .mcd__img { width: 80px; } }
@media (prefers-reduced-motion: reduce) { .mcd__panel, .mcd__ov, .mcd__item { transition: none; animation: none; } }
