/* MERIHA — carrinho lateral */
.mh-cart{--mc-ink:#1d2a26;--mc-gray:#6b7672;--mc-line:#e6ebe9;--mc-green:#4c9a2a;--mc-up:#eef4f2;--mc-btn:#24332e;
  position:fixed;inset:0;z-index:2147483000;visibility:hidden;pointer-events:none;
  font-family:'Hanken Grotesk','Hiragino Sans','Hiragino Kaku Gothic ProN','Noto Sans JP','Noto Sans CJK JP','Yu Gothic UI','Meiryo',sans-serif;color:var(--mc-ink);line-height:1.45;-webkit-font-smoothing:antialiased}
.mh-cart *{box-sizing:border-box}
.mh-cart.is-open{visibility:visible;pointer-events:auto}
.mh-cart__backdrop{position:absolute;inset:0;background:rgba(10,15,13,.45);opacity:0;transition:opacity .25s}
.mh-cart.is-open .mh-cart__backdrop{opacity:1}
.mh-cart__panel{position:absolute;top:0;right:0;bottom:0;width:min(420px,100%);background:#fff;display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .3s cubic-bezier(.2,.8,.2,1);outline:none;box-shadow:-8px 0 30px rgba(0,0,0,.12)}
.mh-cart.is-open .mh-cart__panel{transform:none}
html.mh-cart-lock,html.mh-cart-lock body{overflow:hidden}
.mh-cart.is-busy .mh-cart__body,.mh-cart.is-busy .mh-cart__foot{opacity:.6;pointer-events:none;transition:opacity .15s}

.mh-cart__head{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 12px;flex:none}
.mh-cart__title{margin:0;font-size:18px;font-weight:600;letter-spacing:.01em;color:var(--mc-ink)}
.mh-cart__x{appearance:none;border:0;background:none;padding:6px;margin:-6px;cursor:pointer;color:var(--mc-ink);line-height:0}
.mh-cart__x svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}

.mh-cart__body{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:4px 16px 12px}
.mh-cart__items{list-style:none;margin:0;padding:0}
.mh-cart__item{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:start;padding:12px 0}
.mh-cart__pic{position:relative;width:64px;height:64px}
.mh-cart__pic img{width:64px;height:64px;object-fit:cover;border-radius:8px;background:#f2f4f3;display:block;border:1px solid var(--mc-line)}
.mh-cart__qbadge{position:absolute;top:-8px;right:-8px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#6f7774;color:#fff;font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center}
.mh-cart__rm{position:absolute;top:-8px;left:-8px;width:20px;height:20px;border-radius:999px;border:0;background:#dfe3e1;color:#333;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
.mh-cart__rm svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.mh-cart__info{min-width:0}
.mh-cart__name{display:block;font-size:14px;font-weight:600;color:var(--mc-ink);text-decoration:none;line-height:1.35}
.mh-cart__vt{display:block;font-size:12px;color:var(--mc-gray);margin-top:2px}
.mh-cart__qty{display:inline-flex;align-items:center;margin-top:8px;border:1px solid #d5dcd9;border-radius:6px;overflow:hidden;height:30px}
.mh-cart__qty button{appearance:none;border:0;background:#fff;width:30px;height:100%;font-size:16px;line-height:1;color:var(--mc-ink);cursor:pointer;padding:0}
.mh-cart__qty span{min-width:30px;text-align:center;font-size:14px;border-left:1px solid #d5dcd9;border-right:1px solid #d5dcd9;height:100%;display:flex;align-items:center;justify-content:center}
.mh-cart__price{text-align:right;font-size:14px;white-space:nowrap;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.mh-cart__price s{color:var(--mc-gray);font-size:13px}
.mh-cart__price b{font-weight:600}
.mh-cart__price em{font-style:normal;color:var(--mc-green);font-size:12px;font-weight:600}
.mh-cart__free{color:var(--mc-ink);letter-spacing:.04em}
.mh-cart__empty{text-align:center;padding:48px 8px;color:var(--mc-gray)}

.mh-cart__foot{flex:none;border-top:1px solid var(--mc-line);background:#fff;max-height:62vh;overflow-y:auto}
.mh-cart__foot[hidden]{display:none}
.mh-cart__up{background:var(--mc-up);padding:12px 12px 10px}
.mh-cart__up[hidden]{display:none}
.mh-cart__up-title{margin:0 0 8px;font-size:13px;font-weight:600;text-align:center;color:var(--mc-ink)}
.mh-cart__up-wrap{position:relative;display:flex;align-items:center}
.mh-cart__up-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;flex:1;gap:0}
.mh-cart__up-track::-webkit-scrollbar{display:none}
.mh-cart__up-card{flex:0 0 100%;scroll-snap-align:start;display:grid;grid-template-columns:56px 1fr auto;gap:10px;align-items:center;padding:4px 22px}
.mh-cart__up-card img{width:56px;height:56px;object-fit:cover;border-radius:6px;background:#fff}
.mh-cart__up-name{display:block;font-size:13px;font-weight:600;line-height:1.3}
.mh-cart__up-name small{display:block;font-weight:400;color:var(--mc-gray);font-size:11px}
.mh-cart__up-add{margin-top:6px;appearance:none;background:#fff;border:1px solid var(--mc-ink);color:var(--mc-ink);border-radius:4px;padding:5px 14px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit}
.mh-cart__up-add.is-loading{opacity:.5}
.mh-cart__up-price{text-align:right;font-size:13px;display:flex;flex-direction:column;align-items:flex-end}
.mh-cart__up-price s{color:var(--mc-gray);font-size:12px}
.mh-cart__arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:1;appearance:none;border:0;background:none;padding:2px;cursor:pointer;color:#6f7774;line-height:0}
.mh-cart__arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mh-cart__arrow--l{left:-4px}.mh-cart__arrow--r{right:-4px}
.mh-cart__dots{display:flex;justify-content:center;gap:6px;margin-top:8px}
.mh-cart__dots span{width:16px;height:3px;border-radius:2px;background:#cfd8d4}
.mh-cart__dots span.on{background:var(--mc-ink)}

.mh-cart__code{border-bottom:1px solid var(--mc-line)}
.mh-cart__code summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:12px 16px;font-size:14px;font-weight:500;cursor:pointer}
.mh-cart__code summary::-webkit-details-marker{display:none}
.mh-cart__code summary svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform .2s}
.mh-cart__code[open] summary svg{transform:rotate(180deg)}
.mh-cart__code-form{display:flex;gap:8px;padding:0 16px 12px}
.mh-cart__code-form input{flex:1;min-width:0;height:40px;border:1px solid #cdd5d2;border-radius:6px;padding:0 12px;font-size:16px;font-family:inherit}
.mh-cart__code-form button{height:40px;padding:0 16px;border:0;border-radius:6px;background:var(--mc-btn);color:#fff;font-weight:600;font-size:14px;cursor:pointer;font-family:inherit}
.mh-cart__code-msg{margin:-4px 16px 12px;font-size:12px}
.mh-cart__code-msg.ok{color:var(--mc-green)}.mh-cart__code-msg.err{color:#c0392b}

.mh-cart__sum{padding:10px 16px 4px}
.mh-cart__row{display:flex;justify-content:space-between;align-items:center;font-size:14px;margin-bottom:6px;gap:8px}
.mh-cart__row--total{font-size:16px}
.mh-cart__row--total b{font-size:18px;font-weight:700}
.mh-cart__chip{display:inline-flex;align-items:center;gap:6px;margin-left:6px;padding:2px 4px 2px 10px;border:1px dashed var(--mc-green);border-radius:999px;background:#f3f9ef;font-size:13px}
.mh-cart__chip button{appearance:none;border:0;background:#9aa39f;color:#fff;width:18px;height:18px;border-radius:999px;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}
.mh-cart__chip svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.4}
.mh-cart__minus{color:var(--mc-green);font-weight:600}
.mh-cart__note{margin:0 0 4px;font-size:13px;color:var(--mc-gray)}

.mh-cart__btn{display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;font-family:inherit;cursor:pointer}
.mh-cart__checkout{margin:8px 16px 6px;height:52px;border-radius:4px;background:var(--mc-btn);color:#fff!important;font-size:17px;font-weight:600;letter-spacing:.04em}
.mh-cart__checkout svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mh-cart__checkout:hover{filter:brightness(1.15)}
.mh-cart__btn--ghost{margin:16px auto 0;background:#fff;border:1px solid var(--mc-ink);color:var(--mc-ink);border-radius:4px;padding:10px 18px;font-size:14px;font-weight:600}
.mh-cart__secure{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 16px 14px;font-size:12px;color:var(--mc-gray);padding-bottom:env(safe-area-inset-bottom)}
.mh-cart__secure svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
@media (prefers-reduced-motion:reduce){.mh-cart__panel,.mh-cart__backdrop{transition:none}}
