/* НИКТРЕЙД · корзина (v3). Мини-корзина здесь не нужна: на странице есть полный список. */
.v3-dock { display: none !important; }
body.has-dock, body.has-dock-expanded { padding-bottom: 0 !important; }

.shop-btn.is-ghost { border: 1px solid var(--line); background: #fff; color: var(--primary); }
.shop-btn.is-ghost:hover { border-color: #c9c5ff; background: var(--lav); }
.shop-alert { width: fit-content; max-width: 100%; margin-bottom: 14px; padding: 11px 16px; border-radius: 12px; background: #e9f8f0; color: #17744a; font-weight: 700; }
.shop-alert.is-error { background: #fdeceb; color: #b42318; }

.shop-cart { padding: 4px 0 30px; }
.shop-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 22px; align-items: start; }
.shop-cart-list { border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 4px 20px; }
.shop-cart-row { display: grid; grid-template-columns: 104px minmax(180px, 1fr) minmax(96px, .5fr) 132px minmax(100px, .5fr) 80px; gap: 16px; align-items: center; min-width: 0; padding: 18px 0; }
.shop-cart-row + .shop-cart-row { border-top: 1px solid var(--line); }
.shop-cart-image { display: grid; place-items: center; width: 104px; height: 104px; overflow: hidden; border-radius: 16px; background: var(--lav); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.shop-cart-image img { width: 100%; height: 100%; padding: 8px; object-fit: contain; }
.shop-cart-info { min-width: 0; }
.shop-cart-brand { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.shop-cart-name { margin: 2px 0 0; font-size: 16px; font-weight: 800; line-height: 1.3; }
.shop-cart-name a:hover { color: var(--primary); }
.shop-cart-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.shop-cart-meta span { padding: 3px 9px; border-radius: 999px; background: #f1f2fb; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.shop-cart-cell { display: grid; gap: 4px; min-width: 0; font-weight: 800; }
.shop-cart-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.shop-cart-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.shop-cart-price del { color: #9aa1bd; font-size: 12px; font-weight: 700; }
.shop-cart-sum { color: var(--navy); font-size: 17px; }
.shop-cart-qty { display: inline-flex; width: fit-content; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.shop-cart-qty form { display: contents; }
.shop-cart-qty button { width: 38px; min-height: 40px; border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 19px; font-weight: 800; cursor: pointer; }
.shop-cart-qty button:hover { background: var(--lav); }
.shop-cart-qty-value { min-width: 38px; text-align: center; font-weight: 800; }
.shop-cart-actions { display: flex; justify-content: flex-end; }
.shop-cart-remove { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.shop-cart-remove:hover { border-color: #f2b8ba; color: var(--red); }

.shop-cart-summary { position: sticky; top: 104px; display: grid; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.shop-cart-summary h2 { margin: 0; font-size: 22px; font-weight: 800; }
.shop-cart-lines { display: grid; gap: 12px; }
.shop-cart-line { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 15px; font-weight: 600; }
.shop-cart-line strong { color: var(--ink); text-align: right; }
.shop-cart-line.is-discount strong { color: var(--green); }
.shop-cart-line.is-final { align-items: baseline; margin-top: 2px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-size: 19px; font-weight: 800; }
.shop-cart-line.is-final strong { color: var(--primary); font-size: 24px; }
.shop-cart-note { margin: -4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.shop-cart-go { width: 100%; }

.shop-cart-empty { display: grid; justify-items: center; gap: 14px; padding: clamp(40px, 7vw, 72px) 24px; border: 1px dashed var(--line); border-radius: 20px; background: #fff; text-align: center; }
.shop-cart-empty-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--lav); color: var(--primary); font-size: 28px; font-weight: 800; }
.shop-cart-empty h2 { margin: 0; font-size: 24px; }
.shop-cart-empty p { max-width: 420px; margin: 0 0 4px; color: var(--muted); line-height: 1.5; }

.shop-cart-bar { display: none; }

@media (max-width: 1180px) {
    .shop-cart-row { grid-template-columns: 92px minmax(150px, 1fr) 100px 124px 96px 70px; gap: 12px; }
    .shop-cart-image { width: 92px; height: 92px; }
}
@media (max-width: 980px) {
    .shop-cart-layout { grid-template-columns: minmax(0, 1fr); }
    .shop-cart-summary { position: static; }
}
@media (max-width: 760px) {
    .shop-cart { padding-bottom: 96px; }
    .shop-cart .shop-head { align-items: flex-start; flex-direction: column; }
    .shop-cart-list { padding: 2px 14px; border-radius: 16px; }
    .shop-cart-row { grid-template-columns: 84px minmax(0, 1fr); gap: 10px 12px; padding: 14px 0; }
    .shop-cart-image { align-self: start; width: 84px; height: 84px; border-radius: 14px; }
    .shop-cart-info, .shop-cart-cell, .shop-cart-actions { grid-column: 2; }
    .shop-cart-cell { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .shop-cart-actions { justify-content: flex-start; }
    .shop-cart-summary .shop-cart-go { display: none; }
    .shop-cart-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -10px 26px rgba(16, 23, 47, .12); }
    .shop-cart-bar-total { display: grid; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
    .shop-cart-bar-total strong { color: var(--primary); font-size: 19px; }
}
