/* VeloraSMP store */
.storehead { position: relative; overflow: hidden; color: #fff; padding: 72px 0 88px;
  background: linear-gradient(90deg, rgba(8,20,66,.94), rgba(8,20,66,.8) 40%, rgba(8,20,66,.12) 78%), url(../img/banner-xmas-2000.webp) 70% 42% / cover no-repeat, #081442; }
.storehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; background: url(../img/icons/snow-bottom.svg) left bottom repeat-x; pointer-events: none; }
.storehead__in { display: flex; justify-content: space-between; align-items: center; gap: 28px 40px; }
.storehead .eyebrow { color: #8fd0ff; }
.storehead h1 { font-size: clamp(40px, 5.4vw, 66px); }
.storehead h1 span { color: #6fc1ff; }
.storehead .lead { color: #d5e4ff; }
.storehead__note { display: inline-block; margin-top: 16px; padding: 6px 14px; border-radius: 10px; background: var(--gold); color: var(--navy); font-weight: 800; }
.player { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 22px; padding: 16px 18px 16px 24px; border-radius: var(--radius); background: #fff; color: var(--muted); font-size: 14px; font-weight: 700; box-shadow: 0 18px 30px -12px rgba(0,0,0,.5); }
.player__head { position: relative; flex: none; width: 52px; height: 52px; margin-right: -8px; border-radius: 12px; background: var(--ice-2); overflow: hidden; }
.player__head::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-size: 26px; color: var(--blue); }
.player__head img { position: relative; z-index: 1; width: 100%; height: 100%; image-rendering: pixelated; }
.player__head img[hidden] { display: none; }
.player b { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--head); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--navy); }
.player__btn, .quiet { font: inherit; font-weight: 800; cursor: pointer; border: 0; color: var(--blue); background: var(--ice); border-radius: 12px; padding: 10px 16px; }
.player__btn:hover, .quiet:hover { background: var(--ice-2); }
.storenote { padding: 40px 0; color: var(--muted); }

.tabs { position: sticky; top: 72px; z-index: 40; padding: 14px 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); }
.tabs__in { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: none; padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.tabs a:hover { border-color: var(--sky); color: var(--blue); }
.tabs a.is-here { background: var(--blue); border-color: var(--blue); color: #fff; }

.cat { padding: 44px 0; scroll-margin-top: 60px; }
.cat__head { max-width: 680px; margin-bottom: 26px; }
.cat__head h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--navy); }
.cat__text { margin-top: 10px; color: var(--muted); }
.packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.pack { display: flex; flex-direction: column; padding: 14px 14px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pack:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky); }
.pack__open { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.pack__art { position: relative; display: grid; place-items: center; height: 190px; border-radius: 14px; background:
  radial-gradient(circle 1.6px, rgba(255,255,255,.75) 99%, transparent) 0 0 / 46px 46px, radial-gradient(circle 1px, rgba(255,255,255,.5) 99%, transparent) 11px 17px / 23px 23px, linear-gradient(165deg, #3b86f2, #0f3a9c 70%, #0a2463); overflow: hidden; }
.pack__art img { height: 128px; width: auto; max-width: 84%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.35)); transition: transform .25s; }
.pack__art img.pack__gift, .dlg__art img.pack__gift { height: 84px; width: 84px; image-rendering: pixelated; }
.pack:hover .pack__art img { transform: scale(1.06) rotate(-2deg); }
.pack__art em { position: absolute; top: 12px; right: 12px; padding: 2px 12px; border-radius: 999px; background: var(--red); color: #fff; font-style: normal; font-size: 13px; font-weight: 900; }
.pack__name { display: block; margin: 18px 8px 0; font-family: var(--head); font-size: 26px; line-height: 1.1; color: var(--navy); overflow-wrap: anywhere; }
.pack__price { flex: 1; margin: 4px 8px 16px; font-weight: 900; font-size: 20px; color: var(--blue); min-height: 32px; font-variant-numeric: tabular-nums; }
.pack__price span:not(.is-set) { display: inline-block; width: 76px; height: 20px; border-radius: 8px; background: var(--ice-2); vertical-align: middle; }
.pack__buy { margin: 0 8px; text-align: center; text-decoration: none; }
.storelegal { padding: 30px 0 64px; font-size: 14px; color: var(--muted); }
.storelegal p + p { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 22px; }

.basketbtn { position: fixed; right: 16px; bottom: 78px; z-index: 45; display: flex; align-items: center; gap: 10px; padding: 13px 16px 13px 20px; border: 0; border-radius: 16px; cursor: pointer; font-family: var(--head); font-size: 18px; color: #fff; background: linear-gradient(180deg, var(--blue-500), var(--blue)); box-shadow: 0 4px 0 var(--blue-800), 0 16px 26px -8px rgba(15,58,156,.7); }
.basketbtn[hidden] { display: none; }
.basketbtn b { min-width: 26px; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--blue); font-family: var(--body); font-size: 15px; font-weight: 900; text-align: center; }
.is-busy .btn, .is-busy .quiet, .is-busy .cart__step { opacity: .6; pointer-events: none; }

/* dialogs */
.dlg { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 30px; border: 0; border-radius: var(--radius); color: var(--ink); background: #fff; box-shadow: 0 30px 80px rgba(4,14,46,.5); overflow: auto; }
.dlg::backdrop { background: rgba(6,16,52,.62); }
.dlg[open] { animation: dlgin .24s cubic-bezier(.22,.8,.3,1); }
@keyframes dlgin { from { opacity: 0; transform: translateY(16px); } }
.dlg h2 { font-size: 30px; color: var(--navy); padding-right: 40px; }
.dlg h2 + p { margin-top: 8px; color: var(--muted); }
.dlg form label { display: grid; gap: 6px; margin-top: 18px; font-weight: 800; }
.dlg input, .dlg select { width: 100%; padding: 12px 14px; font: inherit; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid #a9c2e8; border-radius: 12px; }
.dlg__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.dlg__err { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: #fde6e7; color: #a3222a; font-weight: 700; }
.dlg__x { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--ice); color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; }
.dlg__x:hover { background: var(--ice-2); }
.dlg--pack { width: min(820px, calc(100% - 32px)); padding: 0; }
.dlg--pack[open] { display: grid; grid-template-columns: 300px 1fr; }
.dlg__art { display: grid; place-items: center; min-height: 340px; padding: 24px; background: linear-gradient(165deg, #3b86f2, #0f3a9c 70%, #0a2463); }
.dlg__art img { max-height: 220px; height: 190px; width: auto; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0,0,0,.4)); }
.dlg__body { padding: 30px; min-width: 0; }
.dlg__price { font-weight: 900; font-size: 22px; color: var(--blue) !important; }
.dlg__text { margin: 16px 0 22px; overflow-wrap: anywhere; }
.dlg__text > * + * { margin-top: .8em; }
.dlg__text ul, .dlg__text ol { padding-left: 1.3em; margin-bottom: 0; }
.dlg__text h3, .dlg__text h4 { color: var(--navy); font-size: 20px; }
.dlg__text table { width: 100%; border-collapse: collapse; }
.dlg__text td, .dlg__text th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.dlg__body .pack__buy { margin: 0; padding: 12px 22px; display: inline-block; }

/* basket drawer */
.cart { margin: 0 0 0 auto; width: min(440px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: var(--radius) 0 0 var(--radius); }
.cart[open] { display: flex; flex-direction: column; animation: cartin .28s cubic-bezier(.22,.8,.3,1); }
@keyframes cartin { from { transform: translateX(60px); opacity: 0; } }
.cart__for .quiet, .cart__qty .quiet, .cart__codes .quiet { padding: 4px 10px; font-size: 14px; border-radius: 9px; }
.cart__list { list-style: none; margin: 18px 0 0; padding: 0; flex: 1 0 auto; }
.cart__list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.cart__list img, .cart__noimg { width: 64px; height: 64px; padding: 8px; object-fit: contain; border-radius: 14px; background: linear-gradient(165deg, #3b86f2, #0f3a9c); }
.cart__list b { overflow-wrap: anywhere; }
.cart__list strong { font-variant-numeric: tabular-nums; }
.cart__qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.cart__qty span { min-width: 20px; text-align: center; font-weight: 800; }
.cart__step { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--blue); font-size: 18px; line-height: 1; cursor: pointer; }
.cart__step:disabled { opacity: .35; cursor: default; }
.cart__empty { padding: 30px 0; color: var(--muted); flex: 1; }
.cart__code { display: grid; grid-template-columns: 124px 1fr auto; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.cart .cart__code input, .cart .cart__code select { padding: 10px; font-size: 15px; }
.cart__codes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.cart__codes .quiet { margin-left: 10px; }
.cart__sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; margin: 16px 0 0; font-variant-numeric: tabular-nums; }
.cart__sum dd { margin: 0; text-align: right; }
.cart__sum .is-total { font-family: var(--head); font-size: 26px; color: var(--navy); }
.cart__pay { margin-top: 18px; width: 100%; font-size: 20px; }
.cart [hidden] { display: none; }
.cart__note { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }

@media (min-width: 1100px) { .packs--4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px) {
  .storehead { padding: 48px 0 80px; background: linear-gradient(180deg, rgba(8,20,66,.86), rgba(8,20,66,.7)), url(../img/banner-xmas-1200.webp) center / cover no-repeat, #081442; }
  .storehead__in { flex-direction: column; align-items: stretch; }
  .player { justify-content: space-between; }
  .dlg--pack[open] { grid-template-columns: minmax(0, 1fr); }
  .dlg__art { min-height: 190px; }
  .dlg__art img { height: 140px; }
}
@media (max-width: 560px) {
  .packs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pack { padding: 8px 8px 14px; }
  .pack__art { height: 130px; }
  .pack__art img { height: 86px; }
  .pack__name { margin: 12px 4px 0; font-size: 20px; }
  .pack__price { margin: 2px 4px 10px; font-size: 17px; }
  .pack__buy { margin: 0; padding: 11px 8px; font-size: 16px; }
  .basketbtn { left: 16px; right: 78px; bottom: 16px; justify-content: center; }
  .cart { border-radius: 0; padding: 24px 18px; }
  .cart__code { grid-template-columns: 1fr 1fr; }
  .cart__code .quiet { grid-column: 1 / -1; }
}
