/* Общий виджет корзины (includes/cart_widget.php) - подключается на всех страницах
   сайта. Классы с префиксом ek-cart-/ek-ci- не пересекаются с локальными стилями
   каждой страницы (у разных страниц разные соглашения для модалок). */
.ek-cart-wrap { position: relative; }
.ek-cart-btn { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #9ca3af; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: 0.2s; position: relative; }
.ek-cart-btn:hover { border-color: var(--p, #9c27b0); color: #fff; }
.ek-cart-count { position: absolute; top: -6px; right: -6px; background: var(--p, #9c27b0); color: #fff; font-size: 0.65rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--bg, #0a0a0a); }

.ek-cart-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9500; align-items: center; justify-content: center; padding: 1rem; }
.ek-cart-modal.show { display: flex; }
.ek-cart-modal-box { background: #18181b; border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 1.6rem; max-width: 420px; width: 100%; max-height: 85vh; overflow-y: auto; font-family: 'Manrope', -apple-system, sans-serif; animation: ekCartIn 0.25s ease; }
@keyframes ekCartIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ek-cart-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ek-cart-modal-head h2 { font-size: 1.1rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.ek-cart-modal-x { background: none; border: 1px solid rgba(255,255,255,0.1); color: #9ca3af; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.ek-cart-modal-x:hover { color: #fff; border-color: var(--p, #9c27b0); }
.ek-cart-flash { padding: 0.7rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; font-size: 0.83rem; }
.ek-cart-flash--success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #22c55e; }
.ek-cart-flash--error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #ef4444; }
.ek-cart-empty { text-align: center; padding: 2rem 1rem; color: #6b7280; }
.ek-cart-empty i { font-size: 2.2rem; color: #3f3f46; margin-bottom: 0.7rem; display: block; }
.ek-cart-items { max-height: 320px; overflow-y: auto; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ek-cart-item { display: flex; align-items: center; gap: 0.7rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 0.6rem 0.8rem; }
.ek-ci-icon { font-size: 1.1rem; flex: 0 0 auto; }
.ek-ci-name { flex: 1; font-size: 0.85rem; font-weight: 600; color: #fff; }
.ek-ci-price { font-size: 0.85rem; font-weight: 700; color: #fff; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.ek-ci-remove-form { margin: 0; }
.ek-ci-remove-form button { background: none; border: none; color: #6b7280; cursor: pointer; font-size: 0.9rem; padding: 0.2rem 0.4rem; }
.ek-ci-remove-form button:hover { color: #ef4444; }
.ek-cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 1rem; color: #fff; font-weight: 700; margin-bottom: 0.8rem; }
.ek-cart-pay-btn { width: 100%; padding: 0.85rem; border-radius: 12px; font-size: 0.9rem; font-weight: 800; cursor: pointer; border: none; color: #fff; background: linear-gradient(135deg, var(--p, #9c27b0), var(--s, #7b1fa2)); box-shadow: 0 10px 26px rgba(156,39,176,0.28); transition: 0.2s; }
.ek-cart-pay-btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.ek-cart-lowbal { margin-top: 0.7rem; color: #ef4444; font-size: 0.78rem; text-align: center; }
.ek-cart-lowbal a { color: var(--p, #9c27b0); font-weight: 700; }
