/* Корзина и окно заказа — стиль B «Минимализм» (переменные из global.css) */
.ipc-open { overflow: hidden; }
.ipc { position: fixed; inset: 0; z-index: 100; }
.ipc[hidden], .ipc [hidden] { display: none !important; }
.ipc__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .38); }
.ipc__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,.12); animation: ipc-in .22s ease-out; }
@keyframes ipc-in { from { transform: translateX(32px); opacity: 0; } }
.ipc__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line, #E5E4DE); }
.ipc h2 { font: 700 22px/1.15 var(--font-head, sans-serif); letter-spacing: -.02em; margin: 0; }
.ipc__close { width: 44px; height: 44px; border: 0; border-radius: 22px; background: var(--surface, #F2F1EC); color: var(--text, #141414); font-size: 24px; line-height: 1; cursor: pointer; }
.ipc__list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 8px 24px; }
.ipc__empty { padding: 56px 0; text-align: center; color: var(--muted, #5E5D58); }
.ipc__item { display: grid; grid-template-columns: 72px 1fr 36px; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line, #E5E4DE); }
.ipc__item img, .ipc__noimg { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--placeholder, #EDECE6); display: block; }
.ipc__info { min-width: 0; display: grid; gap: 4px; align-content: start; }
.ipc__info a { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.ipc__info b { font-weight: 600; }
.ipc__qty { display: inline-flex; align-items: center; width: max-content; margin-top: 6px; border: 1px solid var(--line-2, #DAD9D3); border-radius: 20px; }
.ipc__qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; color: inherit; cursor: pointer; border-radius: 18px; }
.ipc__qty input { width: 36px; border: 0; background: none; text-align: center; font: inherit; color: inherit; -moz-appearance: textfield; }
.ipc__qty input::-webkit-inner-spin-button, .ipc__qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ipc__remove { width: 36px; height: 36px; border: 0; border-radius: 18px; background: none; color: var(--muted-2, #8A8984); font-size: 22px; cursor: pointer; }
.ipc__remove:hover { background: var(--surface, #F2F1EC); color: var(--text, #141414); }
.ipc__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line, #E5E4DE); display: grid; gap: 10px; }
.ipc__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; margin-bottom: 6px; }
.ipc__total strong { font-size: 22px; }
.ipc__wide { width: 100%; }
.ipc__wide:disabled { opacity: .45; cursor: default; }
.ipc__continue { height: 44px; border: 0; background: none; color: var(--muted, #5E5D58); font: inherit; cursor: pointer; }
.ipc__continue:hover { color: var(--text, #141414); }

.ipc__dialog { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow-y: auto; padding: 28px 24px 24px; border-radius: 28px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.ipc__dialog .ipc__close { position: absolute; top: 16px; right: 16px; }
.ipc__dialog h2 { padding-right: 52px; }
.ipc__hint { margin: 12px 0 18px; font-size: 15px; line-height: 1.5; color: var(--muted, #5E5D58); }
.ipc__field { display: grid; gap: 7px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.ipc__field input { height: 54px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line-2, #DAD9D3); background: #fff; color: var(--text, #141414); font: 16px var(--font-body, sans-serif); }
.ipc__field input:focus { outline: none; border: 2px solid var(--accent, #3558E0); padding: 0 15px; }
.ipc__field input[aria-invalid="true"] { border-color: #C62828; }
.ipc__field small { min-height: 1em; color: #C62828; font-size: 13px; font-weight: 400; }
.ipc__form-error { margin: 0 0 12px; color: #C62828; font-size: 14px; }
.ipc__form-error:empty { display: none; }
.ipc__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.ipc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 110; transform: translate(-50%, 16px); max-width: calc(100% - 32px); padding: 13px 20px; border: 0; border-radius: 24px; background: var(--text, #141414); color: var(--bg, #FAFAF7); font: 500 14px var(--font-body, sans-serif); box-shadow: 0 10px 28px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; cursor: pointer; }
.ipc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (max-width: 640px) { .ipc-toast { bottom: 88px; } }
@media (prefers-reduced-motion: reduce) { .ipc__panel { animation: none; } .ipc-toast { transition: none; } }
