/*
 * Slide-out cart (Steven Saldana's "G1 · Cart — One-time" frame; Paul's go-ahead 20 Oct 2026), drawn by
 * public/assets/js/cart-drawer-v4.js. His sizes: 610px panel, 32px title, 20px names and prices, 214 x 45 steppers,
 * 44px remove button, teal #3FA7C2, cream suggestion card, full-width Secure Checkout. Phones: the full screen.
 */
.mpcd { position: fixed; inset: 0; z-index: 10060; font-family: Montserrat, sans-serif; color: #383838; }
.mpcd[hidden] { display: none; }
.mpcd *, .mpcd *::before, .mpcd *::after { box-sizing: border-box; }
.mpcd__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s ease; }
.mpcd__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(610px, 100vw); background: #fff; box-shadow: -20px 0 60px rgba(20, 33, 31, .18); transform: translateX(100%); transition: transform .28s ease; }
.mpcd.is-open .mpcd__overlay { opacity: 1; }
.mpcd.is-open .mpcd__panel { transform: none; }
.mpcd__panel:focus { outline: none; }
.mpcd button:focus:not(:focus-visible), .mpcd a:focus:not(:focus-visible) { outline: none; }
.mpcd button:focus-visible, .mpcd a:focus-visible { outline: 2px solid #3FA7C2; outline-offset: 2px; }
html.mpcd-open, html.mpcd-open body { overflow: hidden; }
.mpcd.is-busy .mpcd__body, .mpcd.is-busy .mpcd__foot { opacity: .6; pointer-events: none; }

.mpcd__head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 30px 44px 24px 35px; border-bottom: 1px solid #DCDCDC; }
.mpcd__head h2 { margin: 0; font: 700 32px/1.25 Montserrat, sans-serif; color: #383838; letter-spacing: 0; text-transform: none; }
.mpcd__close { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0 !important; border-radius: 50%; background: none !important; box-shadow: none !important; color: #383838; cursor: pointer; }
.mpcd__close svg { width: 44px; height: 44px; }
.mpcd__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* items */
.mpcd-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; column-gap: 20px; row-gap: 26px; padding: 26px 46px 30px 40px; border-bottom: 1px solid #DCDCDC; }
.mpcd-item__pic { display: flex; align-items: center; justify-content: center; height: 104px; }
.mpcd-pic { display: flex; align-items: center; justify-content: center; width: 76px; height: 104px; }
.mpcd-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mpcd-pic--duo img { max-width: 52%; max-height: 88px; }
.mpcd-pic--duo img + img { margin-left: -8px; }
.mpcd-item__main { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.mpcd-item__main h3 { margin: 0; font: 700 20px/1.25 Montserrat, sans-serif; letter-spacing: 0; text-transform: none; }
.mpcd-item__main h3 a { color: #383838 !important; text-decoration: none !important; }
.mpcd-item__short { margin: 0; font: 500 14px/1.5 Montserrat, sans-serif; color: #4C4C4C; }
.mpcd-item__auto { margin: 0; font: 500 13px/1.5 Montserrat, sans-serif; color: #4C4C4C; }
.mpcd-item__auto a { color: #3FA7C2; font-weight: 700; text-decoration: underline; }
.mpcd-pill { display: inline-block; margin-right: 4px; padding: 1px 8px; border: 1px solid #3FA7C2; border-radius: 999px; color: #2E8BA4; font: 700 11px/1.5 Montserrat, sans-serif; }
.mpcd-qty { display: inline-flex; align-items: center; justify-content: space-between; width: 214px; height: 45px; margin-top: 6px; padding: 0 14px; border: 1px solid #C9C9C9; border-radius: 6px; background: #fff; }
.mpcd-qty button, .mpcd-pair__nav, .mpcd-item__del, .mpcd-pair__add, .mpcd-link { box-shadow: none !important; min-width: 0; }
.mpcd-qty button { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; color: #383838; cursor: pointer; }
.mpcd-qty button[disabled] { opacity: .35; cursor: default; }
.mpcd-qty button svg { width: 24px; height: 24px; }
.mpcd-qty b { font: 600 18px/1 Montserrat, sans-serif; }
.mpcd-qty--fixed { justify-content: center; font: 600 15px/1 Montserrat, sans-serif; }
.mpcd-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; padding: 22px 0 0; }
.mpcd-item__price { font: 600 20px/1.2 Montserrat, sans-serif; color: #383838; white-space: nowrap; }
.mpcd-item__del { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #C9C9C9; border-radius: 6px; background: #fff; color: #383838; cursor: pointer; }
.mpcd-item__del svg { width: 22px; height: 22px; }
.mpcd-item__del:hover, .mpcd-qty button:not([disabled]):hover { color: #3FA7C2; }

/* buttons */
.mpcd-btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 57px; padding: 0 20px; border-radius: 8px; background: #3FA7C2; color: #fff !important; font: 600 16px/1.2 Montserrat, sans-serif; text-decoration: none !important; text-align: center; cursor: pointer; }
.mpcd-btn:hover { background: #3596AF; }
.mpcd-btn svg { flex: none; width: 26px; height: 14px; }
.mpcd-btn--sub { grid-column: 1 / -1; }
.mpcd-link { padding: 0; border: 0; background: none; color: #3FA7C2; font: 700 15px/1.3 Montserrat, sans-serif; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* pairs well with */
.mpcd__pairs { padding: 40px 30px 44px; text-align: center; }
.mpcd__pairs[hidden] { display: none; }
.mpcd__pairs h3 { margin: 0 0 22px; font: 700 20px/1.25 Montserrat, sans-serif; letter-spacing: 0; text-transform: none; }
.mpcd-pair { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; align-items: center; gap: 20px; }
.mpcd-pair__nav { width: 24px; height: 40px; padding: 0; border: 0; background: none; color: #383838; font: 300 40px/1 Montserrat, sans-serif; cursor: pointer; }
.mpcd-pair__card { display: grid; grid-template-columns: 100px minmax(0, 1fr) 56px; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 20px; background: #FCF4EA; text-align: left; }
.mpcd-pair__pic { display: flex; align-items: center; justify-content: center; width: 100px; height: 100px; border: 1px solid #DCDCDC; border-radius: 12px; background: #fff; }
.mpcd-pair__pic .mpcd-pic { width: 84px; height: 84px; }
.mpcd-pair__pic .mpcd-pic--duo img { max-height: 76px; }
.mpcd-pair__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mpcd-pair__txt a { color: #383838 !important; font: 700 20px/1.5 Montserrat, sans-serif; text-decoration: none !important; }
.mpcd-pair__txt b { color: #3FA7C2; font: 700 20px/1.2 Montserrat, sans-serif; }
.mpcd-pair__add { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: #383838; color: #fff; cursor: pointer; }
.mpcd-pair__add svg { width: 26px; height: 26px; }
.mpcd-pair__add:hover { background: #3FA7C2; }

/* footer */
.mpcd__foot { flex: none; padding: 24px 46px 22px 33px; border-top: 1px solid #DCDCDC; background: #fff; }
.mpcd__foot:empty { display: none; }
.mpcd .mpcd-total, .mpcd .mpcd-total span, .mpcd .mpcd-total b { color: #383838 !important; }
.mpcd-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 22px 10px; }
.mpcd-total span { font: 700 20px/1.2 Montserrat, sans-serif; }
.mpcd-total b { font: 600 24px/1.2 Montserrat, sans-serif; }
.mpcd-btn--checkout { height: 64px; margin-left: 10px; font-size: 18px; }
.mpcd-trust { margin: 14px 0 0 10px; font: 500 13px/1.4 Montserrat, sans-serif; color: #4C4C4C; text-align: center; }
.mpcd__err { position: absolute; left: 24px; right: 24px; bottom: 16px; margin: 0; padding: 12px 16px; border: 1px solid #F5C2C2; border-radius: 10px; background: #FDECEC; color: #A33030; font: 600 14px/1.4 Montserrat, sans-serif; }
.mpcd__err[hidden] { display: none; }

/* empty (Steven's G1) */
.mpcd-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 40px 40px; text-align: center; }
.mpcd-empty__icon { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: #EAF5F9; color: #3FA7C2; }
.mpcd-empty__icon svg { width: 44px; height: 44px; }
.mpcd-empty h3 { margin: 0; font: 800 26px/1.2 Montserrat, sans-serif; letter-spacing: 0; text-transform: none; }
.mpcd-empty p { max-width: 420px; margin: 0; font: 500 16px/1.55 Montserrat, sans-serif; color: #6B7A82; }
.mpcd-empty .mpcd-btn { width: 100%; max-width: 420px; }

/* phones */
@media (max-width: 640px) {
    .mpcd__panel { width: 100vw; }
    .mpcd__head { padding: 18px 20px 16px; }
    .mpcd__head h2 { font-size: 24px; }
    .mpcd__close, .mpcd__close svg { width: 36px; height: 36px; }
    .mpcd-item { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 16px; padding: 18px 20px 20px; }
    .mpcd-item__pic, .mpcd-pic { width: 64px; height: 92px; }
    .mpcd-item__main h3 { font-size: 16px; }
    .mpcd-item__short { font-size: 13px; }
    .mpcd-item__price { font-size: 18px; }
    .mpcd-item__side { padding-top: 0; }
    .mpcd-qty { width: min(190px, 100%); height: 44px; padding: 0 10px; }
    .mpcd-item__del { width: 40px; height: 40px; }
    .mpcd-btn { height: 52px; font-size: 15px; }
    .mpcd__pairs { padding: 26px 14px 30px; }
    .mpcd__pairs h3 { margin-bottom: 16px; font-size: 17px; }
    .mpcd-pair { grid-template-columns: 18px minmax(0, 1fr) 18px; gap: 8px; }
    .mpcd-pair__nav { width: 18px; font-size: 32px; }
    .mpcd-pair__card { grid-template-columns: 72px minmax(0, 1fr) 44px; gap: 12px; padding: 10px; border-radius: 16px; }
    .mpcd-pair__pic { width: 72px; height: 72px; }
    .mpcd-pair__pic .mpcd-pic { width: 60px; height: 60px; }
    .mpcd-pair__txt a { font-size: 14px; line-height: 1.35; }
    .mpcd-pair__txt b { font-size: 15px; }
    .mpcd-pair__add { width: 44px; height: 44px; }
    .mpcd-pair__add svg { width: 22px; height: 22px; }
    .mpcd__foot { padding: 16px 20px 18px; }
    .mpcd-total, .mpcd-btn--checkout, .mpcd-trust { margin-left: 0; }
    .mpcd-total { margin-bottom: 14px; }
    .mpcd-total span { font-size: 17px; }
    .mpcd-total b { font-size: 21px; }
    .mpcd-btn--checkout { height: 56px; font-size: 17px; }
    .mpcd-trust { font-size: 11px; }
    .mpcd-empty { padding: 48px 20px 30px; }
    .mpcd-empty h3 { font-size: 24px; }
}
/* short screens (phones sideways): smaller head and foot so the items keep room */
@media (max-height: 520px) {
    .mpcd__head { padding-top: 12px; padding-bottom: 10px; }
    .mpcd__head h2 { font-size: 22px; }
    .mpcd__close, .mpcd__close svg { width: 34px; height: 34px; }
    .mpcd__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
    .mpcd-total { flex-direction: column; gap: 2px; margin: 0; }
    .mpcd-total span { font-size: 15px; }
    .mpcd-total b { font-size: 19px; }
    .mpcd-btn--checkout { height: 48px; margin: 0; font-size: 16px; }
    .mpcd-trust { grid-column: 1 / -1; margin: 0; font-size: 11px; }
    .mpcd-item { padding-top: 14px; padding-bottom: 16px; row-gap: 12px; }
}
