/* xnight admin — «Магазин» tab */

.ashop { display: flex; flex-direction: column; gap: 16px; padding: 4px 0 24px; }
.ashop * { box-sizing: border-box; }

.ashop-card { padding: 20px; border: 1px solid var(--border-color); border-radius: 20px; background: var(--card-bg); }
.ashop-card.is-hero { border-color: rgba(245, 158, 11, .32); background: linear-gradient(135deg, rgba(245, 158, 11, .09), rgba(236, 72, 153, .05)); }
.ashop-kicker { color: #f59e0b; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.ashop-card h4 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--text-main); font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; }
.ashop-lead { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.ashop-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.ashop-stat { padding: 12px 14px; border-radius: 16px; background: var(--input-bg); border: 1px solid var(--border-color); cursor: pointer; transition: border-color .15s; }
.ashop-stat:hover { border-color: #f59e0b; }
.ashop-stat span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.ashop-stat b { display: block; margin-top: 2px; font-size: 20px; font-weight: 800; color: var(--text-main); font-variant-numeric: tabular-nums; }

.ashop-toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.ashop-search { flex: 1; min-width: 180px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-main); font: inherit; font-weight: 600; outline: none; }
.ashop-search:focus { border-color: #1d9bf0; }
.ashop-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: var(--input-bg); border: 1px solid var(--border-color); }
.ashop-seg button { padding: 7px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ashop-seg button.is-on { background: var(--text-main); color: var(--bg-color, #000); }
.ashop-select { padding: 9px 12px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-main); font: inherit; font-size: 13px; font-weight: 700; }

.ashop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: 999px; border: none; background: var(--text-main); color: var(--bg-color, #000); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; transition: opacity .15s, transform .1s; }
.ashop-btn:hover { opacity: .88; }
.ashop-btn:active { transform: scale(.97); }
.ashop-btn:disabled { opacity: .45; cursor: not-allowed; }
.ashop-btn.is-ghost { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.ashop-btn.is-ghost:hover { background: rgba(128, 128, 128, .12); opacity: 1; }
.ashop-btn.is-sm { padding: 7px 13px; font-size: 13px; }
.ashop-btn.is-accent { background: #f59e0b; color: #1a1000; }

.ashop-bulk { display: none; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 16px; background: rgba(29, 155, 240, .1); border: 1px solid rgba(29, 155, 240, .35); }
.ashop-bulk.is-on { display: flex; }
.ashop-bulk b { color: #1d9bf0; margin-right: 4px; }
.ashop-bulk input { width: 110px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-main); font: inherit; font-size: 13px; font-weight: 700; }

.ashop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ashop-item { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: var(--card-bg); border: 1px solid var(--border-color); transition: border-color .15s, opacity .2s; contain: layout paint; }
.ashop-item.is-hidden { opacity: .55; }
.ashop-item.is-sel { border-color: #1d9bf0; box-shadow: 0 0 0 1px #1d9bf0; }
.ashop-top { display: flex; gap: 12px; align-items: center; }
.ashop-art { width: 64px; height: 64px; flex: none; border-radius: 16px; background: radial-gradient(circle at 50% 40%, var(--input-bg), transparent 75%), var(--input-bg); display: grid; place-items: center; overflow: hidden; }
.ashop-art img { width: 80%; height: 80%; object-fit: contain; }
.ashop-name { min-width: 0; flex: 1; }
.ashop-name b { display: block; font-size: 15px; font-weight: 800; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ashop-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ashop-chip { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; background: var(--input-bg); color: var(--text-muted); }
.ashop-chip.hidden { background: rgba(244, 33, 46, .14); color: #f4212e; }
.ashop-chip.sold { background: rgba(245, 158, 11, .15); color: #f59e0b; }
.ashop-chip.nft { background: rgba(139, 92, 246, .15); color: #a78bfa; }
.ashop-chip.edited { background: rgba(29, 155, 240, .14); color: #1d9bf0; }
.ashop-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; accent-color: #1d9bf0; cursor: pointer; }

.ashop-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ashop-f { display: flex; flex-direction: column; gap: 4px; }
.ashop-f span { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.ashop-f input { width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--input-bg); color: var(--text-main); font: inherit; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; outline: none; transition: border-color .15s; }
.ashop-f input:focus { border-color: #1d9bf0; }
.ashop-f input.is-saved { border-color: #00ba7c; }
.ashop-f input.is-err { border-color: #f4212e; }
.ashop-supply { height: 6px; border-radius: 99px; background: var(--input-bg); overflow: hidden; }
.ashop-supply i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1d9bf0, #a78bfa); }
.ashop-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ashop-sub { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.ashop-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--text-main); user-select: none; }
.ashop-switch input { display: none; }
.ashop-switch i { position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--border-color); transition: background .2s; flex: none; }
.ashop-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.16, 1, .3, 1); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.ashop-switch input:checked + i { background: #00ba7c; }
.ashop-switch input:checked + i::after { transform: translateX(16px); }

.ashop-more { display: flex; justify-content: center; }
.ashop-empty { padding: 24px 4px; color: var(--text-muted); text-align: center; font-size: 14px; }

.ashop-modal { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.ashop-modal .box { width: 100%; max-width: 440px; padding: 24px; border-radius: 26px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.ashop-modal h5 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--text-main); }
.ashop-modal p { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.ashop-modal .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
