/* Боковая корзина (mini-cart.php, js/script.js - lpMiniCart) */
.mc-overlay{position:fixed;inset:0;z-index:100001;background:rgba(17,17,20,.42);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.mc-panel{--mc-ink:#18181b;--mc-mute:#71717a;--mc-line:#ececef;--mc-soft:#f6f6f7;--mc-ok:#1f8a3b;--mc-bad:#c62828;
	position:fixed;top:0;right:0;bottom:0;z-index:100002;width:440px;max-width:100%;background:#fff;display:flex;flex-direction:column;
	box-shadow:-12px 0 40px rgba(0,0,0,.14);transform:translateX(100%);transition:transform .3s cubic-bezier(.2,.8,.2,1);
	font-family:inherit;color:var(--mc-ink);visibility:hidden}
html.mc-open .mc-overlay{opacity:1;visibility:visible}
html.mc-open .mc-panel{transform:none;visibility:visible}
html.mc-open,html.mc-open body{overflow:hidden}
.mc-panel.is-busy .mc-body,.mc-panel.is-busy .mc-foot{opacity:.55;pointer-events:none;transition:opacity .15s}
.mc-loading{flex:1;display:flex;align-items:center;justify-content:center}
.mc-loading i{width:28px;height:28px;border-radius:50%;border:2.5px solid var(--mc-line);border-top-color:var(--mc-ink);animation:mcspin .7s linear infinite}
@keyframes mcspin{to{transform:rotate(360deg)}}

.mc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 16px;border-bottom:1px solid var(--mc-line)}
.mc-head b{font-size:20px;font-weight:600;margin-right:10px}
.mc-head span{font-size:14px;color:var(--mc-mute)}
.mc-x{position:relative;flex:0 0 36px;width:36px;height:36px;border:0;border-radius:50%;background:var(--mc-soft);cursor:pointer;transition:background .15s}
.mc-x:hover{background:#ebebee}
.mc-x:before,.mc-x:after{content:"";position:absolute;left:11px;top:17px;width:14px;height:1.6px;background:var(--mc-ink);border-radius:1px;transform:rotate(45deg)}
.mc-x:after{transform:rotate(-45deg)}

.mc-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:4px 20px 16px}
.mc-list{list-style:none;margin:0;padding:0}
.mc-item{position:relative;display:flex;gap:14px;padding:16px 28px 16px 0;border-bottom:1px solid var(--mc-line)}
.mc-item:last-child{border-bottom:0}
.mc-img{flex:0 0 72px;width:72px;height:72px;border-radius:10px;background:var(--mc-soft);display:flex;align-items:center;justify-content:center;overflow:hidden}
.mc-img img{width:62px;height:62px;object-fit:contain;mix-blend-mode:multiply}
.mc-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mc-brand{font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:var(--mc-mute)}
.mc-name{font-size:14px;line-height:1.3;color:var(--mc-ink);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mc-name:hover{text-decoration:underline}
.mc-unit{font-size:12px;color:var(--mc-mute)}
.mc-unit s{margin-left:4px;opacity:.8}
.mc-na{font-size:12px;font-weight:600;color:var(--mc-bad)}
.mc-item.is-na .mc-img img{opacity:.45;filter:grayscale(1)}
.mc-item.is-na .mc-line{color:var(--mc-mute);text-decoration:line-through;font-weight:500}
.mc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
.mc-qty{display:inline-flex;align-items:center;height:32px;border:1px solid var(--mc-line);border-radius:16px;background:#fff}
.mc-qty span{min-width:26px;text-align:center;font-size:14px;font-weight:500}
.mc-qty button{position:relative;width:32px;height:30px;border:0;background:none;cursor:pointer;border-radius:16px}
.mc-qty button:hover:not([disabled]){background:var(--mc-soft)}
.mc-qty button[disabled]{opacity:.3;cursor:default}
.mc-qty button:before,.mc-plus:after{content:"";position:absolute;left:11px;top:14px;width:10px;height:1.6px;background:var(--mc-ink);border-radius:1px}
.mc-plus:after{transform:rotate(90deg)}
.mc-line{font-size:15px;font-weight:600;white-space:nowrap}
.mc-del{position:absolute;top:14px;right:-4px;width:28px;height:28px;border:0;border-radius:50%;background:none;cursor:pointer;opacity:.45;transition:opacity .15s,background .15s;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V5h6v2M6.5 7l1 12.5h9L17.5 7M10 11v5M14 11v5'/%3E%3C/svg%3E");background-size:18px;background-position:center;background-repeat:no-repeat}
.mc-del:hover{opacity:1;background-color:var(--mc-soft)}

.mc-gift{margin:14px 0 4px;padding:14px;border:1px solid #e7dfc6;border-radius:12px;background:#fffdf6}
.mc-gift.is-open{border-color:#cfe8d5;background:#f5fbf6}
.mc-gift-h{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:14px}
.mc-gift-h svg{width:18px;height:18px;color:#c8960f}
.mc-gift.is-open .mc-gift-h svg{color:var(--mc-ok)}
.mc-gift-txt{font-size:13px;line-height:1.35;color:#3f3f46}
.mc-gift-row{display:flex;align-items:center;gap:10px}
.mc-gift-thumbs{display:flex;gap:6px;flex:0 0 auto}
.mc-gift-thumbs span{width:40px;height:40px;border-radius:8px;background:#fff;border:1px solid var(--mc-line);display:flex;align-items:center;justify-content:center;overflow:hidden}
.mc-gift-thumbs img{width:34px;height:34px;object-fit:contain}
.mc-gift-btn{display:flex;align-items:center;justify-content:center;height:40px;margin-top:12px;border-radius:20px;background:var(--mc-ink);color:#fff!important;font-size:14px;font-weight:600;text-decoration:none}
.mc-gift-btn:hover{background:#000}
.mc-gift-chosen{display:flex;align-items:center;gap:10px}
.mc-gift-chosen img{flex:0 0 44px;width:44px;height:44px;object-fit:contain;border-radius:8px;background:#fff}
.mc-gift-chosen span{flex:1;min-width:0;font-size:13px;line-height:1.3}
.mc-gift-chosen small{display:block;font-size:11px;font-weight:600;letter-spacing:.3px;text-transform:uppercase;color:var(--mc-ok)}
.mc-gift-link{font-size:13px;font-weight:600;color:var(--mc-ink)!important;text-decoration:underline}
.mc-gift-more{margin-top:10px;font-size:12px;color:var(--mc-mute)}
.mc-gift-bar{display:block;height:5px;margin-top:10px;border-radius:3px;background:rgba(0,0,0,.08);overflow:hidden}
.mc-gift-bar i{display:block;height:100%;border-radius:3px;background:#e0a800}

.mc-foot{padding:14px 20px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--mc-line);background:#fff}
.mc-sum{display:flex;justify-content:space-between;font-size:14px;color:var(--mc-mute);margin-bottom:4px}
.mc-disc span:last-child{color:var(--mc-bad)}
.mc-total{display:flex;align-items:baseline;justify-content:space-between;margin:4px 0 2px}
.mc-total span{font-size:16px;font-weight:500}
.mc-total b{font-size:22px;font-weight:700}
.mc-note{font-size:12px;color:var(--mc-mute);margin-bottom:12px}
.mc-btn{display:flex;align-items:center;justify-content:center;width:100%;height:50px;border:0;border-radius:25px;background:var(--mc-ink);color:#fff!important;font-size:16px;font-weight:600;text-decoration:none;cursor:pointer;transition:background .15s}
.mc-btn:hover{background:#000}
.mc-btn-light{margin-top:8px;height:44px;background:#fff;color:var(--mc-ink)!important;border:1px solid var(--mc-line);font-size:15px;font-weight:500}
.mc-btn-light:hover{background:var(--mc-soft)}

.mc-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:30px}
.mc-empty-i{width:76px;height:76px;border-radius:50%;background:var(--mc-soft);display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.mc-empty-i img{opacity:.55}
.mc-empty b{font-size:18px}
.mc-empty span{font-size:14px;color:var(--mc-mute);margin-bottom:16px}
.mc-empty .mc-btn{max-width:260px}

@media (max-width:520px){
	.mc-panel{width:100%}
	.mc-head{padding:14px 16px 12px}
	.mc-body{padding:0 16px 12px}
	.mc-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
	.mc-img{flex-basis:64px;width:64px;height:64px}
	.mc-img img{width:56px;height:56px}
}
