/* ==========================================================================
   Магазин цифровых товаров (v2.20): витрина, товар, корзина, покупки, мой магазин, мои товары, всплывающие уведомления.
   Страницы — templates/shop*.tpl, сценарий — shop.js. Цвета и скругления — из темы «Глубокий космос» (переменные --sp-*).
   ========================================================================== */
.shp { padding: 0 7px 14px; color: var(--sp-text, #d5def3); font-size: 14px; line-height: 1.5; }
.shp *, .shp *::before, .shp *::after { box-sizing: border-box; }
.shp a { text-decoration: none; }
.shp small { font-size: 12px; }
.shp [hidden] { display: none !important; }

/* --- кнопки --- */
.shp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 18px; border: 0; border-radius: 12px; cursor: pointer;
  font: 600 14px/1.2 var(--sp-font, Arial, sans-serif); color: #fff !important; text-align: center;
  background: var(--sp-accent-grad, linear-gradient(135deg, #2b6cf6, #6d3df0 55%, #b42ee0)); box-shadow: 0 8px 20px -10px rgba(90, 90, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .18s, filter .18s, box-shadow .18s; }
.shp-btn:hover { transform: translateY(-1px); filter: brightness(1.12); }
.shp-btn:active { transform: translateY(1px); }
.shp-btn:disabled, .shp-btn.is-busy { cursor: default; filter: grayscale(.7) brightness(.75); transform: none; pointer-events: none; }
.shp-btn--ghost { color: var(--sp-head, #f2f6ff) !important; background: rgba(124, 180, 255, .1); box-shadow: inset 0 0 0 1px rgba(148, 178, 255, .38); }
.shp-btn--ghost:hover { background: rgba(124, 180, 255, .2); filter: none; }
.shp-btn--big { min-height: 48px; padding: 12px 26px; font-size: 15px; }

/* --- вкладки магазина --- */
.shp-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 16px; padding: 6px; border-radius: 16px; background: rgba(6, 10, 30, .45); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); }
.shp-nav__i { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 9px; border-radius: 11px;
  color: #c2cdea; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background-color .18s, color .18s; }
.shp-nav__i:hover { background: rgba(124, 180, 255, .12); color: #fff; }
.shp-nav__i.is-cur { color: #fff; background: var(--sp-accent-grad, linear-gradient(135deg, #2b6cf6, #6d3df0 55%, #b42ee0)); box-shadow: 0 8px 18px -10px rgba(90, 90, 255, .95); }
.shp .shp-nav__n { color: #2b1a00 !important; }
.shp-nav__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; font-style: normal; color: #2b1a00; background: var(--sp-gold, #fcd77a); }
.shp-tabs { display: flex; gap: 6px; margin: 0 0 14px; border-bottom: 1px solid rgba(148, 178, 255, .18); }
.shp-tabs a { padding: 9px 16px; border-radius: 10px 10px 0 0; color: #b9c5e6; font-weight: 600; }
.shp-tabs a.is-cur { color: #fff; background: rgba(124, 180, 255, .14); box-shadow: inset 0 -2px 0 var(--sp-cyan, #67e8f9); }

/* --- поиск и отбор --- */
.shp-find { display: grid; grid-template-columns: 2fr 1.4fr 1.3fr .8fr .8fr; gap: 10px 12px; align-items: end; margin: 0 0 14px; padding: 14px; border-radius: 16px;
  background: rgba(11, 16, 38, .5); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); }
.shp-find__f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shp-find__f > span, .shp-f > span { font-size: 12px; color: #9fb0d8; }
.shp input[type="text"], .shp input[type="search"], .shp input[type="url"], .shp select, .shp textarea {
  width: 100%; min-height: 40px; padding: 9px 12px; border-radius: 11px; border: 1px solid rgba(148, 178, 255, .28); background: var(--sp-field, rgba(4, 8, 24, .62));
  color: var(--sp-head, #f2f6ff); font: 14px/1.4 var(--sp-font, Arial, sans-serif); outline: none; transition: border-color .18s, box-shadow .18s; }
.shp textarea { resize: vertical; min-height: 84px; }
.shp input:focus, .shp select:focus, .shp textarea:focus { border-color: var(--sp-cyan, #67e8f9); box-shadow: 0 0 0 3px rgba(103, 232, 249, .16); }
.shp select option { background: #0b1026; color: #e8eeff; }
.shp-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: #c9d5f3; }
.shp-find .shp-check { grid-column: 1 / 4; }
.shp-check input { width: 18px; height: 18px; flex: none; accent-color: #6d3df0; }
.shp-check--box { display: flex; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(252, 215, 122, .07); box-shadow: inset 0 0 0 1px rgba(252, 215, 122, .28); }
.shp-check--box input { margin-top: 2px; }
.shp-find__btns { grid-column: 4 / 6; display: flex; gap: 8px; justify-content: flex-end; }

/* --- разделы и сортировка --- */
.shp-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.shp-cat { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; color: #c9d5f3; font-size: 13px; background: rgba(124, 180, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(148, 178, 255, .22); transition: background-color .18s, box-shadow .18s, color .18s; }
.shp-cat b { font-size: 11px; font-weight: 700; color: #8f9cc4; }
.shp-cat:hover { color: #fff; background: rgba(124, 180, 255, .18); }
.shp-cat.is-cur { color: #fff; background: linear-gradient(135deg, rgba(43, 108, 246, .55), rgba(109, 61, 240, .5)); box-shadow: inset 0 0 0 1px rgba(160, 205, 255, .6); }
.shp-cat.is-cur b { color: #e7ecff; }
.shp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 14px; }
.shp-bar__n { color: #9fb0d8; }
.shp-bar__n b { color: var(--sp-head, #f2f6ff); }
.shp-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: #9fb0d8; }
.shp-sort a { padding: 4px 10px; border-radius: 999px; color: #b9c5e6; }
.shp-sort a:hover { color: #fff; background: rgba(124, 180, 255, .14); }
.shp-sort a.is-cur { color: #fff; background: rgba(124, 180, 255, .22); box-shadow: inset 0 0 0 1px rgba(160, 205, 255, .45); }

/* --- витрина: три карточки в ряд, три ряда на странице --- */
.shp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shp-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; color: inherit;
  background: linear-gradient(180deg, rgba(20, 28, 66, .72), rgba(9, 13, 31, .86)); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)), 0 10px 26px -18px rgba(0, 0, 0, .9);
  transition: transform .22s, box-shadow .22s; }
.shp-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--sp-edge-hi, rgba(160, 205, 255, .5)), 0 18px 36px -18px rgba(80, 100, 255, .75); }
.shp-card__pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(circle at 30% 25%, #2a3170, #11163e 60%, #070a22); }
.shp-card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.shp-card:hover .shp-card__pic img { transform: scale(1.06); }
.shp-card__pic.is-empty, .shp-item__pic.is-empty, .shp-row__pic.is-empty, .shp-imgpick__view.is-empty { display: grid; place-items: center; }
.shp-card__pic.is-empty > i { font-size: 46px; color: rgba(160, 205, 255, .5); filter: drop-shadow(0 0 16px rgba(103, 232, 249, .4)); }
.shp-tag { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1.5; color: #062b1a;
  background: linear-gradient(135deg, #a7f3d0, #34d399); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .7); }
.shp-tag--ref { left: auto; right: 10px; color: #2b1a00; background: linear-gradient(135deg, #ffe9a6, #f0a92b); }
.shp-card__body { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; padding: 12px 14px 14px; min-width: 0; }
.shp-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; font-weight: 700; font-size: 15px; line-height: 1.35;
  color: var(--sp-head, #f2f6ff); overflow-wrap: anywhere; }
.shp-card__meta { display: block; font-size: 12px; color: #9fb0d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shp-card__meta i { width: 15px; color: #7cb4ff; }
.shp-card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px solid rgba(148, 178, 255, .14); }
.shp-card__price { font-size: 19px; font-weight: 800; color: var(--sp-gold, #fcd77a); white-space: nowrap; text-shadow: 0 0 14px rgba(252, 215, 122, .35); }
.shp-card__price small { font-size: 12px; font-weight: 600; color: #cdb77a; }
.shp-card__sold { font-size: 11px; color: #8f9cc4; white-space: nowrap; }

/* --- пустые состояния, плашки, показатели --- */
.shp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 18px; border-radius: 16px; text-align: center;
  background: rgba(11, 16, 38, .45); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); }
.shp-empty > i { font-size: 44px; color: rgba(160, 205, 255, .55); }
.shp-empty > b { font-size: 17px; color: var(--sp-head, #f2f6ff); }
.shp-empty > span { color: #9fb0d8; max-width: 440px; }
.shp-empty .shp-btn { margin-top: 8px; }
.shp-note { display: block; padding: 10px 14px; margin: 0 0 12px; border-radius: 12px; font-size: 13px; color: #cfdaf5; background: rgba(124, 180, 255, .09); box-shadow: inset 0 0 0 1px rgba(124, 180, 255, .26); }
.shp-note--ok { color: #c9f7dd; background: rgba(94, 227, 154, .1); box-shadow: inset 0 0 0 1px rgba(94, 227, 154, .36); }
.shp-note--warn { color: #fbe6b0; background: rgba(252, 215, 122, .09); box-shadow: inset 0 0 0 1px rgba(252, 215, 122, .32); }
.shp-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin: 0 0 14px; border-radius: 14px; }
.shp-alert > i { flex: none; margin-top: 2px; font-size: 18px; }
.shp-alert--warn { color: #fbe6b0; background: rgba(252, 215, 122, .09); box-shadow: inset 0 0 0 1px rgba(252, 215, 122, .34); }
.shp-alert--ok { color: #c9f7dd; background: rgba(94, 227, 154, .1); box-shadow: inset 0 0 0 1px rgba(94, 227, 154, .38); }
.shp-st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.6; white-space: nowrap; color: #c9d6f5; background: rgba(148, 163, 184, .16); }
.shp-st--ok { color: #9af0c1; background: rgba(94, 227, 154, .14); }
.shp-st--wait { color: #fbe6b0; background: rgba(252, 215, 122, .14); }
.shp-st--bad { color: #ffc0c6; background: rgba(255, 122, 133, .16); }
.shp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.shp-kpi { padding: 12px 14px; border-radius: 14px; background: rgba(11, 16, 38, .5); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); }
.shp-kpi span { display: block; font-size: 12px; color: #9fb0d8; }
.shp-kpi b { display: block; margin-top: 3px; font-size: 19px; color: var(--sp-head, #f2f6ff); white-space: nowrap; }
.shp-h { margin: 18px 0 10px; font-size: 16px; color: var(--sp-head, #f2f6ff); }
.shp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }

/* --- страница товара --- */
.shp-crumbs { margin: 0 0 12px; font-size: 13px; color: #8f9cc4; }
.shp-crumbs i { margin: 0 6px; font-size: 10px; }
.shp-item { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; margin: 0 0 18px; }
.shp-item__pic { align-self: start; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: radial-gradient(circle at 30% 25%, #2a3170, #11163e 60%, #070a22);
  box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)), 0 20px 44px -26px rgba(80, 100, 255, .8); }
.shp-item__pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shp-item__pic.is-empty > i { font-size: 90px; color: rgba(160, 205, 255, .5); }
.shp-item__side { min-width: 0; }
.shp-item__title { margin: 0 0 10px; font-size: 24px; line-height: 1.25; color: var(--sp-head, #f2f6ff); overflow-wrap: anywhere; }
.shp-item__price { margin: 0 0 14px; font-size: 34px; font-weight: 800; line-height: 1.25; color: var(--sp-gold, #fcd77a); text-shadow: 0 0 22px rgba(252, 215, 122, .4); }
.shp-item__price small { font-size: 16px; font-weight: 600; color: #cdb77a; }
.shp-item__buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.shp-item__buy .shp-btn { flex: 1 1 180px; min-height: 48px; font-size: 15px; }
.shp-item__buy .shp-note { flex: 1 1 100%; margin: 0; }
.shp-item__hint { margin: 0 0 14px; font-size: 12px; color: #9fb0d8; }
.shp-item__hint i { color: var(--sp-green, #5ee39a); }
.shp-facts { list-style: none; margin: 0 0 14px; padding: 0; border-radius: 14px; overflow: hidden; background: rgba(11, 16, 38, .5); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); }
.shp-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; font-size: 13px; }
.shp-facts li + li { border-top: 1px solid rgba(148, 178, 255, .1); }
.shp-facts span { color: #9fb0d8; }
.shp-facts b { color: var(--sp-head, #f2f6ff); text-align: right; }
.shp-seller { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: inherit; background: rgba(124, 180, 255, .08); box-shadow: inset 0 0 0 1px rgba(148, 178, 255, .26); transition: background-color .18s; }
.shp-seller:hover { background: rgba(124, 180, 255, .16); }
.shp-seller > span:nth-child(2) { flex: 1 1 0; min-width: 0; }
.shp-seller b { display: block; color: var(--sp-head, #f2f6ff); overflow-wrap: anywhere; }
.shp-seller small { color: #9fb0d8; }
.shp-seller__ico, .shp-shophead__ico, .shp-hero__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 19px; color: #fff; background: linear-gradient(135deg, #6366f1, #22d3ee); }
.shp-block { margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; background: rgba(11, 16, 38, .45); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); }
.shp-block > h2 { margin: 0 0 10px; font-size: 17px; color: var(--sp-head, #f2f6ff); }
.shp-block > h2 i { color: var(--sp-gold, #fcd77a); margin-right: 4px; }
.shp-block > p { margin: 0 0 12px; }
.shp-descr { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.shp-refbox { background: linear-gradient(135deg, rgba(252, 215, 122, .1), rgba(11, 16, 38, .45) 60%); box-shadow: inset 0 0 0 1px rgba(252, 215, 122, .3); }
.shp-refbox p b { color: var(--sp-gold, #fcd77a); white-space: nowrap; }
.shp-copy { display: flex; gap: 8px; align-items: stretch; }
.shp-copy input { flex: 1 1 0; min-width: 0; font-size: 13px; }
.shp-copy .shp-btn { flex: none; }
.shp-rules { margin: 0; padding-left: 20px; list-style: disc; }
.shp-rules li::marker { color: var(--sp-cyan, #67e8f9); }
.shp-rules li { margin: 0 0 6px; }

/* --- строки: корзина, покупки, мои товары --- */
.shp-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 0 0 10px; border-radius: 14px; background: rgba(11, 16, 38, .5); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); }
.shp-row.is-off { opacity: .62; }
.shp-row__pic { flex: none; display: block; width: 92px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 30% 25%, #2a3170, #11163e 60%, #070a22); }
.shp-row__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shp-row__pic.is-empty > i { font-size: 24px; color: rgba(160, 205, 255, .5); }
.shp-row__main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.shp-row__title { font-weight: 700; font-size: 15px; color: var(--sp-head, #f2f6ff) !important; overflow-wrap: anywhere; }
.shp-row__title:hover { color: var(--sp-link-hover, #e0f4ff) !important; }
.shp-row__meta { font-size: 12px; color: #9fb0d8; }
.shp-row__why { font-size: 12px; color: #ffc0c6; }
.shp-row__price { flex: none; font-size: 17px; font-weight: 800; color: var(--sp-gold, #fcd77a); white-space: nowrap; }
.shp-row__price small { font-size: 12px; font-weight: 600; color: #cdb77a; }
.shp-row__del, .shp-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; cursor: pointer;
  font: 600 13px/1 var(--sp-font, Arial, sans-serif); color: #c9d5f3 !important; background: rgba(124, 180, 255, .1); box-shadow: inset 0 0 0 1px rgba(148, 178, 255, .3); transition: background-color .18s, color .18s; }
.shp-row__del:hover, .shp-ico--bad:hover { color: #fff !important; background: rgba(255, 122, 133, .28); box-shadow: inset 0 0 0 1px rgba(255, 122, 133, .6); }
.shp-ico:hover { color: #fff !important; background: rgba(124, 180, 255, .22); }
.shp-ico span { display: none; }
.shp-row__acts { flex: none; display: flex; gap: 6px; }
.shp-total { margin: 14px 0 0; padding: 16px 18px; border-radius: 16px; background: rgba(11, 16, 38, .55); box-shadow: inset 0 0 0 1px var(--sp-edge-hi, rgba(160, 205, 255, .4)); }
.shp-total__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.shp-total__sum span { color: #b9c5e6; }
.shp-total__sum b { font-size: 26px; color: var(--sp-gold, #fcd77a); white-space: nowrap; }
.shp-total__hint { margin: 10px 0 0; font-size: 12px; color: #9fb0d8; }
.shp-pays { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.shp-pay { flex: 1 1 200px; cursor: pointer; }
.shp-pay input { position: absolute; opacity: 0; pointer-events: none; }
.shp-pay span { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 14px; border-radius: 12px; color: #c9d5f3; background: rgba(124, 180, 255, .08); box-shadow: inset 0 0 0 1px rgba(148, 178, 255, .28); transition: box-shadow .18s, background-color .18s; }
.shp-pay input:checked + span { color: #fff; background: rgba(109, 61, 240, .28); box-shadow: inset 0 0 0 2px var(--sp-cyan, #67e8f9); }
.shp-pay input:focus-visible + span { outline: 2px solid var(--sp-cyan, #67e8f9); outline-offset: 2px; }
.shp-payform { margin: 14px 0 0; padding: 18px; border-radius: 16px; text-align: center; background: rgba(94, 227, 154, .08); box-shadow: inset 0 0 0 1px rgba(94, 227, 154, .36); }
.shp-payform__head { margin: 0 0 12px; }
.shp-payform__head b { display: block; font-size: 18px; color: var(--sp-head, #f2f6ff); }
.shp-payform__head span { color: #c9f7dd; }
.shp-payform .btn { display: inline-block; margin: 4px; }
.shp-buy { margin: 0 0 12px; padding: 14px 16px; border-radius: 16px; background: rgba(11, 16, 38, .5); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); }
.shp-buy__top { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.shp-buy__right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.shp-buy__get { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0 0 10px; }
.shp-buy__get .shp-copy { flex: 1 1 280px; }
.shp-buy__note { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; font-size: 13px; overflow-wrap: anywhere; background: rgba(4, 8, 24, .5); box-shadow: inset 0 0 0 1px rgba(148, 178, 255, .2); }
.shp-buy .shp-note:last-child, .shp-buy__get:last-child, .shp-buy__note:last-child { margin-bottom: 0; }
.shp-claim summary { cursor: pointer; font-size: 13px; color: var(--sp-link, #8fd3ff); }
.shp-claim[open] summary { margin-bottom: 10px; }
.shp-claim textarea { margin: 0 0 10px; }

/* --- мой магазин --- */
.shp-hero, .shp-shophead { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; padding: 18px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(43, 108, 246, .2), rgba(180, 46, 224, .12) 60%, rgba(11, 16, 38, .45)); box-shadow: inset 0 0 0 1px var(--sp-edge-hi, rgba(160, 205, 255, .4)); }
.shp-hero__ico { width: 64px; height: 64px; border-radius: 18px; font-size: 28px; }
.shp-hero h2 { margin: 0 0 6px; font-size: 20px; color: var(--sp-head, #f2f6ff); }
.shp-hero p { margin: 0; color: #c9d5f3; }
.shp-shophead > div { flex: 1 1 0; min-width: 0; }
.shp-shophead b { display: block; font-size: 19px; color: var(--sp-head, #f2f6ff); overflow-wrap: anywhere; }
.shp-shophead span { font-size: 13px; color: #9fb0d8; }
.shp-shophead p { margin: 6px 0 0; font-size: 13px; color: #c9d5f3; overflow-wrap: anywhere; }
.shp-steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: shp; display: grid; gap: 10px; }
.shp-steps li { counter-increment: shp; position: relative; padding: 12px 14px 12px 56px; border-radius: 14px; background: rgba(11, 16, 38, .45); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); }
.shp-steps li::before { content: counter(shp); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; color: #fff; background: var(--sp-accent-grad, linear-gradient(135deg, #2b6cf6, #6d3df0 55%, #b42ee0)); }
.shp-steps b { color: var(--sp-head, #f2f6ff); }

/* --- формы «блоками» (v2.21): каждое поле — полоса на всю ширину, слева название и пояснение, справа поле; полосы идут одна под другой --- */
.shp-lines { display: block; margin: 0; }
.shp-line { display: grid; grid-template-columns: minmax(0, 32%) minmax(0, 1fr); gap: 8px 22px; align-items: start; margin: 0 0 12px; padding: 14px 16px; border-radius: 14px;
  background: rgba(11, 16, 38, .5); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); transition: box-shadow .18s; }
.shp-line:focus-within { box-shadow: inset 0 0 0 1px var(--sp-edge-hi, rgba(160, 205, 255, .5)); }
.shp-line__lbl { display: block; min-width: 0; padding-top: 9px; cursor: default; }
label.shp-line__lbl { cursor: pointer; }
.shp-line__lbl b { display: block; font-size: 14px; color: var(--sp-head, #f2f6ff); }
.shp-line__lbl small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: #93a3c9; }
.shp-line__ctl { min-width: 0; }
.shp-line__ctl .shp-calc { margin-top: 8px; }
.shp-line__ctl .shp-check--box { margin: 0; }
.shp-lines__foot { margin: 16px 0 0; }

/* --- формы --- */
.shp-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 760px; }
.shp-form > * { grid-column: 1 / -1; min-width: 0; }
.shp-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.shp-f > span i { font-style: normal; color: #7f8bb3; }
.shp-f > span i::before { content: "— "; }
.shp-f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.shp-imgpick { display: flex; align-items: center; gap: 14px; }
.shp-imgpick__view { flex: none; display: block; width: 160px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 30% 25%, #2a3170, #11163e 60%, #070a22); box-shadow: inset 0 0 0 1px rgba(148, 178, 255, .28); }
.shp-imgpick__view img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shp-imgpick__view.is-empty > i { font-size: 34px; color: rgba(160, 205, 255, .5); }
.shp-imgpick small { display: block; margin-top: 8px; color: #9fb0d8; overflow-wrap: anywhere; }
.shp-filebtn { position: relative; overflow: hidden; }
.shp-filebtn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.shp-calc { justify-content: center; min-height: 62px; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: #cfdaf5; background: rgba(94, 227, 154, .07); box-shadow: inset 0 0 0 1px rgba(94, 227, 154, .26); }
.shp-calc:empty { display: none; }
.shp-calc b { color: #9af0c1; white-space: nowrap; }

/* --- таблицы --- */
.shp-tblwrap { overflow-x: auto; margin: 0 0 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); }
.shp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.shp-tbl th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; color: #9fb0d8; white-space: nowrap; background: rgba(43, 108, 246, .14); }
.shp-tbl td { padding: 10px 12px; vertical-align: top; border-top: 1px solid rgba(148, 178, 255, .1); overflow-wrap: anywhere; }
.shp-tbl .is-num { text-align: right; white-space: nowrap; }
.shp-tbl small { display: block; color: #8f9cc4; font-size: 11px; }
.shp-tbl a { color: var(--sp-link, #8fd3ff); }

/* --- всплывающие уведомления магазина (правый нижний угол) --- */
.shp-pops { position: fixed; right: 18px; bottom: 86px; z-index: 990; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 24px)); pointer-events: none; }
.shp-pop { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 40px 14px 14px; position: relative; border-radius: 16px; color: var(--sp-text, #d5def3);
  background: linear-gradient(135deg, rgba(26, 34, 84, .97), rgba(12, 16, 40, .97)); box-shadow: 0 22px 50px -16px rgba(0, 0, 0, .95), inset 0 0 0 1px var(--sp-edge-hi, rgba(160, 205, 255, .5));
  animation: shp-pop-in .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.shp-pop.is-out { animation: shp-pop-out .3s ease-in both; }
.shp-pop__ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 18px; color: #fff; background: linear-gradient(135deg, #6366f1, #22d3ee); }
.shp-pop--sale .shp-pop__ico, .shp-pop--ref .shp-pop__ico { background: linear-gradient(135deg, #f0a92b, #f472b6); }
.shp-pop--refund .shp-pop__ico, .shp-pop--claim .shp-pop__ico, .shp-pop--bad .shp-pop__ico { background: linear-gradient(135deg, #f43f5e, #b42ee0); }
.shp-pop--ok .shp-pop__ico, .shp-pop--buy .shp-pop__ico { background: linear-gradient(135deg, #10b981, #22d3ee); }
.shp-pop__txt { flex: 1 1 0; min-width: 0; }
.shp-pop__txt b { display: block; margin-bottom: 2px; font-size: 14px; color: var(--sp-head, #f2f6ff); }
.shp-pop__txt span { display: block; font-size: 13px; overflow-wrap: anywhere; }
.shp-pop__txt a { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--sp-cyan, #67e8f9); }
.shp-pop__x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; cursor: pointer; font-size: 15px; color: #9fb0d8; background: transparent; }
.shp-pop__x:hover { color: #fff; background: rgba(255, 255, 255, .1); }
@keyframes shp-pop-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shp-pop-out { to { opacity: 0; transform: translateX(30px); } }
@media (prefers-reduced-motion: reduce) { .shp-pop, .shp-pop.is-out { animation: none; } .shp-card, .shp-card__pic img, .shp-btn { transition: none; } }

/* --- планшет и телефон --- */
@media (max-width: 900px) {
  .shp-find { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shp-find__f--wide, .shp-find .shp-check, .shp-find__btns { grid-column: 1 / -1; }
  .shp-find__btns { justify-content: stretch; }
  .shp-find__btns .shp-btn { flex: 1 1 0; }
}
@media (max-width: 760px) {
  .shp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shp-item { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shp-item__title { font-size: 21px; }
  .shp-item__price { font-size: 30px; }
}
@media (max-width: 600px) {
  .shp { padding: 0 2px 12px; }
  .shp-nav { gap: 6px; }
  .shp-nav__i { flex: 1 1 calc(50% - 6px); padding: 8px 8px; font-size: 13px; }
  .shp-cats { flex-wrap: nowrap; overflow-x: auto; margin-right: -2px; padding-bottom: 6px; scrollbar-width: thin; }
  .shp-cat { flex: none; }
  .shp-card__body { padding: 10px 10px 12px; }
  .shp-card__title { font-size: 14px; }
  .shp-card__foot { flex-direction: column; align-items: flex-start; gap: 2px; }
  .shp-card__price { font-size: 17px; }
  .shp-tag { left: 6px; top: 6px; padding: 2px 7px; font-size: 10px; }
  .shp-tag--ref { left: 6px; right: auto; top: auto; bottom: 6px; }
  .shp-row { flex-wrap: wrap; gap: 10px 12px; }
  .shp-row__pic { width: 72px; }
  .shp-row__main { flex: 1 1 calc(100% - 90px); }
  .shp-row__price { margin-left: 84px; }
  .shp-row__del { margin-left: auto; }
  .shp-row__acts { flex: 1 1 100%; }
  .shp-row__acts .shp-ico { flex: 1 1 0; height: 42px; }
  .shp-ico span { display: inline; }
  .shp-buy__top { flex-wrap: wrap; }
  .shp-buy__right { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .shp-buy__get .shp-btn, .shp-copy .shp-btn { flex: 1 1 100%; }
  .shp-copy { flex-wrap: wrap; }
  .shp-copy input { flex: 1 1 100%; }
  .shp-f2 { grid-template-columns: minmax(0, 1fr); }
  .shp-line { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; }
  .shp-line__lbl { padding-top: 0; }
  .shp-imgpick { flex-direction: column; align-items: flex-start; }
  .shp-hero, .shp-shophead { flex-wrap: wrap; }
  .shp-shophead .shp-btn { flex: 1 1 100%; }
  .shp-actions .shp-btn { flex: 1 1 100%; }
  .shp-total__sum { flex-direction: column; gap: 2px; }
  .shp-tabs a { flex: 1 1 0; text-align: center; padding: 9px 8px; }
  .shp-pops { right: 12px; bottom: 76px; }
  /* таблицы на телефоне — карточками: каждая строка отдельным блоком, слева подпись колонки (её ставит shop.js из заголовка) */
  .shp-tblwrap { overflow: visible; box-shadow: none; border-radius: 0; }
  .shp-tbl, .shp-tbl tbody { display: block; }
  .shp-tbl tr:first-child { display: none; }
  .shp-tbl tr { display: block; margin: 0 0 10px; padding: 6px 12px; border-radius: 14px; background: rgba(11, 16, 38, .5); box-shadow: inset 0 0 0 1px var(--sp-edge, rgba(148, 178, 255, .18)); }
  .shp-tbl td { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 7px 0; border-top: 1px solid rgba(148, 178, 255, .1); text-align: right; }
  .shp-tbl td:first-child { border-top: 0; }
  .shp-tbl td::before { content: attr(data-th); grid-column: 1; grid-row: 1 / span 6; text-align: left; font-size: 12px; color: #9fb0d8; }
  .shp-tbl td > * { grid-column: 2; min-width: 0; justify-self: end; }
  .shp-tbl .is-num { white-space: normal; }
}

/* --- раздел «Помощь»: заголовки групп вопросов о магазине (v2.21) --- */
.faq-group { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-size: 17px; color: var(--sp-head, #f2f6ff); scroll-margin-top: 90px; }
.faq-group i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 15px; color: #fff; background: linear-gradient(135deg, #6366f1, #22d3ee); }
.shp-help { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: #b9c5e6; background: rgba(124, 180, 255, .07); box-shadow: inset 0 0 0 1px rgba(148, 178, 255, .2); }
.shp-help i { color: var(--sp-cyan, #67e8f9); }
.shp-help a { color: var(--sp-link, #8fd3ff); font-weight: 600; }
