/* 4ALL WEBSHOP1: the Shop & Currency pages of the account (Item Shop with Purchase History, Purchase Moonstones,
   Payment History; docs\webshop1.md). The layout of the reference shop and donation pages in our own
   colours (site.css tokens only); PayPal's button keeps PayPal's own yellow. Loaded after site.css and account.css. */

/* ------------------------------------------------------------ head: balance and Top Up */
.shop-top { display: grid; grid-template-columns: 1fr auto; gap: 14px 18px; align-items: center; margin-bottom: 16px; }
.shop-balance .label { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--muted); }
.shop-balance .value { margin: 2px 0 0; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; }
.shop-balance .value small { margin-left: 6px; font-size: .9rem; color: var(--muted); letter-spacing: .08em; }
.shop-top .btn-row { justify-content: flex-end; }
@media (max-width: 640px) { .shop-top { grid-template-columns: 1fr; } .shop-top .btn-row { justify-content: stretch; } .shop-top .btn-row .btn { flex: 1 1 auto; } }

/* ------------------------------------------------------------ tabs Shop / Purchase History */
.shop-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px; margin: 0 0 16px; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: var(--glass); }
.shop-tabs [role="tab"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 8px 14px;
  border: 1px solid transparent; border-radius: var(--radius); background: rgba(0, 0, 0, .25); color: var(--muted);
  font: 400 1.02rem/1.2 var(--display); letter-spacing: .05em; cursor: pointer;
}
.shop-tabs [role="tab"] svg { width: 20px; height: 20px; }
.shop-tabs [role="tab"]:hover { color: var(--gold-hi); }
.shop-tabs [role="tab"][aria-selected="true"] { color: var(--gold); border-color: var(--gold-lo); background: var(--gold-soft); }

/* ------------------------------------------------------------ filters */
/* 4ALL GMIOS36: the banners above the shop (the game's 914 x 180 and the site's own) and the notices */
.shop-banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 0 16px; padding-bottom: 4px; }
.shop-banner { flex: 0 0 min(100%, 760px); scroll-snap-align: start; padding: 0; margin: 0; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); overflow: hidden; background: var(--glass); }
button.shop-banner { cursor: pointer; }
button.shop-banner:hover, button.shop-banner:focus-visible { border-color: var(--gold-lo); }
.shop-banner.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.shop-banner img { display: block; width: 100%; height: auto; }
.shop-notices { margin: 6px 0 10px 18px; padding: 0; }
.shop-notices li { margin: 4px 0; }
.shop-filters { display: grid; grid-template-columns: minmax(12rem, 16rem) 1fr minmax(10rem, 13rem); gap: 10px; margin-bottom: 16px; }
.shop-filters .search-box { min-width: 0; flex: none; }
.shop-filters .search-box input[type="search"] { min-height: 46px; border-radius: var(--radius); }
@media (max-width: 760px) { .shop-filters { grid-template-columns: 1fr; } }
.shop-count { margin: -6px 0 12px; color: var(--muted); font-size: .88rem; }

/* ------------------------------------------------------------ item cards */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 14px; }
@media (max-width: 560px) { .shop-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.shop-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: var(--glass-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: border-color .15s ease, transform .15s ease;
}
.shop-card:hover { border-color: var(--gold-lo); transform: translateY(-1px); }
.shop-card.is-featured { border-color: rgb(var(--gold-rgb) / .45); box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / .18), 0 10px 26px rgba(0, 0, 0, .4); }
.shop-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 10px 10px 0; min-height: 40px; }
.shop-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.shop-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--gold-line); border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--text-2); background: rgba(0, 0, 0, .35); white-space: nowrap;
}
.shop-tag svg { width: 13px; height: 13px; }
.shop-tag.time { color: var(--warn); border-color: rgba(240, 180, 76, .45); }
.shop-tag.sale { color: #2a1a02; background: var(--warn); border-color: var(--warn); }
.shop-tag.new { color: #07210f; background: var(--ok); border-color: var(--ok); }
.shop-tag.best { color: #1b1406; background: var(--gold); border-color: var(--gold); }
.shop-tag.feat { color: var(--gold-hi); border-color: var(--gold-lo); background: var(--gold-soft); }
.shop-tag.kingdom { color: var(--info); border-color: rgba(143, 184, 242, .4); }
.shop-help {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--gold-line); border-radius: var(--radius); background: rgba(0, 0, 0, .35); color: var(--gold); cursor: pointer;
}
.shop-help:hover { border-color: var(--gold-lo); color: var(--gold-hi); }
.shop-help svg { width: 18px; height: 18px; }
.shop-card-body { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 12px 12px; text-align: center; flex: 1; }
.shop-ico, .shop-ico-none {
  width: 56px; height: 56px; border-radius: 8px; border: 1px solid rgb(var(--gold-rgb) / .28); background: rgba(0, 0, 0, .45);
  image-rendering: auto; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5);
}
.shop-ico-none { display: inline-block; }
.shop-name { margin: 0; font-family: var(--display); font-size: 1.04rem; line-height: 1.3; color: var(--gold-hi); overflow-wrap: anywhere; }
.shop-sub { margin: 0; font-size: .82rem; color: var(--muted); }
.shop-stock { width: 100%; margin: 2px 0 0; font-size: .78rem; color: var(--text-2); }
.shop-stock .bar { display: block; height: 4px; margin-top: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.shop-stock .bar > span { display: block; height: 100%; background: var(--warn); }
.shop-card-foot { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; padding: 10px 12px 12px; border-top: 1px solid var(--gold-line); }
.shop-qty { display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.shop-qty input { width: 4.2rem; }
.shop-price { text-align: right; font-variant-numeric: lining-nums tabular-nums; line-height: 1.2; }
.shop-price strong { color: var(--gold-hi); font-size: 1.1rem; }
.shop-price .ms { margin-left: 3px; color: var(--muted); font-size: .78rem; letter-spacing: .08em; }
.shop-price del { display: block; color: var(--muted); font-size: .8rem; }
.shop-card-foot .btn { grid-column: 1 / -1; width: 100%; }
@media (max-width: 560px) {
  .shop-card-foot { grid-template-columns: 1fr; }
  .shop-price { text-align: left; }
  .shop-name { font-size: .95rem; }
}
input[type="number"] {
  min-height: 40px; padding: 6px 8px; border-radius: var(--radius); text-align: center;
  font: 600 1rem/1.2 var(--sans); color: var(--text); background: rgba(4, 6, 10, .65); border: 1px solid var(--gold-line);
}
input[type="number"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--gold); }
.shop-empty { padding: 28px 16px; text-align: center; color: var(--muted); }

/* ------------------------------------------------------------ dialogs (item details, buy) */
.shop-dialog {
  width: min(34rem, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto;
  color: var(--text); background: #0b0f19; border: 1px solid var(--gold-lo); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.shop-dialog::backdrop { background: rgba(3, 5, 9, .72); }
/* a long package: the head and the buttons stay, the middle scrolls */
.shop-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.shop-dialog-head, .shop-dialog-foot { flex: none; }
.shop-dialog-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--gold-line); }
.shop-dialog-head .shop-ico, .shop-dialog-head .shop-ico-none { width: 52px; height: 52px; }
.shop-dialog-head h2 { margin: 0; font-family: var(--display); font-size: 1.3rem; color: var(--gold-hi); line-height: 1.25; }
.shop-dialog-head p { margin: 2px 0 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; color: var(--muted); }
.shop-dialog-head .shop-help { margin-left: auto; }
.shop-dialog-body { padding: 16px 18px; display: grid; gap: 14px; min-height: 0; overflow: auto; }
.shop-dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--gold-line); }
.shop-facts { margin: 0; padding: 6px 16px; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: rgba(0, 0, 0, .3); }
.shop-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgb(var(--gold-rgb) / .07); }
.shop-facts > div:last-child { border-bottom: 0; }
.shop-facts dt { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--muted); }
.shop-facts dd { margin: 0; text-align: right; color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; }
.shop-facts dd del { margin-right: 6px; color: var(--muted); }
.shop-contents { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.shop-contents li { display: flex; align-items: center; gap: 10px; }
.shop-contents img, .shop-contents .shop-ico-none { width: 32px; height: 32px; }
.shop-tip { padding: 12px 14px; border: 1px solid rgb(var(--gold-rgb) / .22); border-radius: var(--radius); background: rgba(3, 5, 9, .85); font-size: .88rem; line-height: 1.45; }
.shop-tip p { margin: 0; }
.shop-tip .tip-title { margin-bottom: 4px; font-weight: 700; }
.shop-dialog h3 { margin: 0 0 6px; font-family: var(--display); font-size: .86rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.shop-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.05rem; }
.shop-total strong { font-size: 1.35rem; color: var(--gold-hi); }
.shop-code input { letter-spacing: .3em; }

/* ------------------------------------------------------------ Purchase History */
.shop-hist-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 14px; }
@media (max-width: 560px) { .shop-hist-search { grid-template-columns: 1fr; } }
.shop-hist { margin: 0; padding: 0; list-style: none; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: var(--glass-2); overflow: hidden; }
.shop-hist li { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "ico name src" "ico meta src"; gap: 2px 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--gold-line); }
.shop-hist li:last-child { border-bottom: 0; }
.shop-hist li:nth-child(even) { background: var(--glass-row); }
.shop-hist .shop-ico, .shop-hist .shop-ico-none { grid-area: ico; width: 40px; height: 40px; }
.shop-hist .nm { grid-area: name; font-family: var(--display); font-size: 1.05rem; color: var(--gold-hi); overflow-wrap: anywhere; }
.shop-hist .meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--text-2); font-size: .88rem; font-variant-numeric: lining-nums tabular-nums; }
.shop-hist .meta .ms { color: var(--muted); font-size: .75rem; letter-spacing: .08em; }
.shop-hist .src { grid-area: src; }
.src-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius); border: 1px solid; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.src-badge svg { width: 16px; height: 16px; }
.src-badge.web { color: var(--info); border-color: rgba(143, 184, 242, .45); background: rgb(var(--blue-rgb) / .12); }
.src-badge.game { color: var(--gold); border-color: var(--gold-lo); background: var(--gold-soft); }
@media (max-width: 560px) {
  .shop-hist li { grid-template-columns: 40px 1fr; grid-template-areas: "ico name" "ico meta" "ico src"; }
}

/* ------------------------------------------------------------ Purchase Moonstones */
.donate-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; padding-top: 14px; }
@media (max-width: 900px) { .donate-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.donate-pack {
  position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 26px 14px 0; cursor: pointer;
  color: var(--text); text-align: center; font: inherit;
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(20, 22, 28, .9), rgba(10, 12, 16, .92));
  transition: border-color .15s ease, box-shadow .15s ease;
}
.donate-pack:hover { border-color: var(--gold-lo); }
.donate-pack[aria-checked="true"] { border: 2px solid var(--gold); box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / .25), 0 0 24px rgb(var(--gold-rgb) / .16); }
.donate-pack .bonus {
  position: absolute; top: -13px; right: -6px; padding: 2px 12px; border: 1px solid rgba(95, 211, 138, .45); border-radius: 6px;
  background: #0b1510; color: var(--ok); font-family: var(--display); font-size: .9rem; letter-spacing: .03em;
}
.donate-pack .popular {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%); padding: 2px 14px; border-radius: 6px;
  background: var(--gold); color: #1b1406; font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.donate-pack.has-popular .bonus { top: auto; bottom: -13px; right: -6px; }
.donate-pack .ms { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.1; color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; }
.donate-pack .ms-label { margin-top: 4px; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--muted); }
.donate-pack .price { align-self: stretch; margin-top: 16px; padding: 14px 0 16px; border-top: 1px solid var(--gold-line); font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--gold); }
.donate-pay h2 { margin: 0 0 6px; font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--gold-hi); }
.donate-pay h2::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 14px; background: linear-gradient(90deg, var(--gold), rgb(var(--gold-rgb) / 0)); }
.donate-choice { margin: 16px 0; color: var(--text-2); }
.donate-choice strong { color: var(--gold-hi); }
.donate-buttons { display: grid; gap: 12px; }
.donate-consent { margin: 0 0 14px; color: var(--text-2); font-size: .9rem; }
.pay-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: 6px; font: 600 1.15rem/1.2 var(--sans); cursor: pointer;
}
.pay-btn:disabled { opacity: .55; cursor: not-allowed; }
.pay-btn.paypal { background: #ffc439; color: #111; }
.pay-btn.paypal:hover:not(:disabled) { filter: brightness(.96); }
.pay-btn.paypal .pp { font-style: italic; font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; color: #003087; }
.pay-btn.paypal .pp b { color: #0079c1; font-weight: 800; }
.pay-btn.card { background: #2c2e33; color: #fff; border-color: rgba(255, 255, 255, .12); }
.pay-btn.card:hover:not(:disabled) { background: #36383e; }
.pay-btn.card svg { width: 30px; height: 30px; }
.pay-note { margin: 4px 0 0; text-align: center; font-style: italic; color: var(--muted); font-size: .9rem; }
.pay-note .pp { font-weight: 800; color: #4c8cf6; }
.donate-foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--gold-line); color: var(--text-2); }
.donate-foot .star { color: var(--bad); margin-right: 4px; }
.donate-result { text-align: center; }
.donate-result .big { margin: 6px 0; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--gold-hi); }
.sandbox-banner { margin-bottom: 16px; }

/* ------------------------------------------------------------ Payment History */
.pay-head { text-align: center; }
.pay-head .back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; }
.pay-head .back:hover { color: var(--gold-hi); }
.pay-head .back svg { width: 18px; height: 18px; }
.pay-filter { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-bottom: 16px; }
.pay-filter label { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--gold-hi); }
.pay-filter select { width: auto; min-width: 12rem; }
.pay-status { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pay-status.completed { color: var(--ok); border-color: rgba(95, 211, 138, .45); }
.pay-status.pending { color: var(--warn); border-color: rgba(240, 180, 76, .45); }
.pay-status.failed, .pay-status.cancelled, .pay-status.expired { color: var(--muted); border-color: var(--gold-line); }
.pay-status.refunded, .pay-status.reversed { color: var(--bad); border-color: rgba(239, 107, 91, .45); }
.pay-test { margin-left: 6px; color: var(--warn); font-size: .75rem; }
.pay-legend { margin: 14px 0 0; }
.donate-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem); gap: 20px; align-items: start; }
.donate-layout > .panel { margin: 0; }
.donate-layout .section-title { margin-top: 0; }
@media (min-width: 961px) { .donate-pay { position: sticky; top: calc(var(--header-h) + 16px); } }
@media (max-width: 960px) { .donate-layout { grid-template-columns: 1fr; } }
@media (min-width: 961px) and (max-width: 1180px) { .donate-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.donate-result-box { margin-bottom: 16px; }
.donate-result-box .big { margin: 4px 0; font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: var(--gold-hi); }

/* 4ALL SITEAUTH1 (decision 513): the texts below the Item Shop only for a signed-in account (account-shop.js) */
[data-shop-part][hidden] { display: none; }

/* ============================================================ 4ALL SHOPUI2: the Item Shop looks better (docs\SHOPUI2.md)
   The blue Buy / Top Up buttons stay (the owner likes them), and so do the tabs and the filter row as they were.
   A balance with the Moonstone, the recommended products big on top, cards with a big picture on a glow of their kind, the sale
   as a ribbon, the price and Buy on one line; the quantity is chosen in the confirmation. */
.shop-top { padding: 6px 4px; }
.shop-balance { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "moon label" "moon value"; column-gap: 16px; align-items: center; }
.shop-balance .shop-moon, .shop-balance .shop-ico-none { grid-area: moon; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgb(var(--gold-rgb) / .45); background: radial-gradient(circle at 50% 40%, rgb(var(--gold-rgb) / .28), rgba(0, 0, 0, .55) 70%); box-shadow: 0 0 26px rgb(var(--gold-rgb) / .22); padding: 6px; }
.shop-balance .label { grid-area: label; }
.shop-balance .value { grid-area: value; font-size: clamp(1.9rem, 3.4vw, 2.5rem); text-shadow: 0 0 22px rgb(var(--gold-rgb) / .25); }

.shop-hero[hidden] { display: none; }
.shop-hero { margin: 0 0 22px; }
.shop-hero-title { margin: 0 0 12px; font-family: var(--display); font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.shop-hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 14px; }

.shop-grid { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 14px; }
.shop-card { overflow: hidden; border-radius: 16px; background: linear-gradient(180deg, rgba(22, 26, 38, .92), rgba(9, 11, 17, .95)); --tone: var(--gold-rgb); }
.shop-card.t-sale { --tone: 239 107 91; } .shop-card.t-new { --tone: 95 211 138; } .shop-card.t-best { --tone: 143 184 242; }
.shop-card:hover { transform: translateY(-3px); border-color: rgb(var(--tone) / .55); box-shadow: 0 16px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgb(var(--tone) / .25); }
.shop-card-head { position: relative; z-index: 1; min-height: 44px; }
.shop-card-body { gap: 6px; padding: 0 14px 14px; }
.shop-art { position: relative; display: grid; place-items: center; width: 100%; height: 116px; margin: -8px 0 4px; }
.shop-art::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--tone) / .30), rgb(var(--tone) / 0) 68%); }
.shop-art .shop-ico, .shop-art .shop-ico-none { position: relative; width: 76px; height: 76px; border-radius: 14px; border: 1px solid rgb(var(--tone) / .45); background: rgba(0, 0, 0, .55); box-shadow: 0 10px 22px rgba(0, 0, 0, .5); }
.shop-art .shop-ico-none { background: linear-gradient(135deg, rgb(var(--tone) / .22), rgba(0, 0, 0, .6)); }
.shop-name { font-size: 1.06rem; }
.shop-ribbon {
  position: absolute; top: 14px; left: -34px; z-index: 2; width: 120px; padding: 4px 0; transform: rotate(-45deg);
  background: linear-gradient(180deg, #ff7a66, #d9483a); color: #fff; text-align: center; font: 800 .8rem/1 var(--sans); letter-spacing: .04em; box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.shop-card.t-sale .shop-tags { padding-left: 46px; }
.shop-card-foot { grid-template-columns: 1fr auto; align-items: center; padding: 12px 14px; background: rgba(0, 0, 0, .28); border-top: 1px solid rgb(var(--tone) / .18); }
.shop-card-foot .btn { grid-column: auto; width: auto; min-width: 6.5rem; }
.shop-price { text-align: left; }
.shop-price strong { font-size: 1.3rem; color: var(--gold-hi); }
.shop-card.is-big .shop-art { height: 150px; }
.shop-card.is-big .shop-art::before { width: 160px; height: 160px; }
.shop-card.is-big .shop-art .shop-ico, .shop-card.is-big .shop-art .shop-ico-none { width: 104px; height: 104px; }
.shop-card.is-big .shop-name { font-size: 1.25rem; }
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shop-art { height: 96px; } .shop-art .shop-ico, .shop-art .shop-ico-none { width: 62px; height: 62px; }
  .shop-card-foot { grid-template-columns: 1fr; } .shop-card-foot .btn { width: 100%; }
  .shop-hero-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shop-card.is-big .shop-art { height: 110px; } .shop-card.is-big .shop-art .shop-ico, .shop-card.is-big .shop-art .shop-ico-none { width: 72px; height: 72px; }
  .shop-card.is-big .shop-name { font-size: 1rem; }
}
.shop-step { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(0, 0, 0, .35); }
.shop-step-b { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgb(var(--gold-rgb) / .14); color: var(--gold-hi); font: 700 1.1rem/1 var(--sans); cursor: pointer; }
.shop-step-b:disabled { opacity: .35; cursor: default; }
.shop-step-n { min-width: 2.2rem; text-align: center; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .shop-card { transition: none; } .shop-card:hover { transform: none; } }

/* SHOP3D1: the item in 3D in the details window (account-shop.js tryPart; the viewer is char3d.js) */
.shop-3d { display: grid; gap: 10px; }
.shop-3d[hidden] { display: none; }
.shop-3d-stage { position: relative; height: clamp(260px, 42vh, 360px); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgb(var(--gold-rgb) / .22);
  background: radial-gradient(ellipse at 50% 85%, rgb(var(--gold-rgb) / .16), transparent 60%), radial-gradient(ellipse at 50% 30%, #1a2236, #0a0d15 75%); }
.shop-3d-stage[hidden] { display: none; }
.shop-3d-stage .c3d-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.shop-3d-stage .c3d-canvas:active { cursor: grabbing; }
.shop-3d-stage .c3d-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--gold-lo); }
.shop-3d-stage .c3d-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.shop-3d-stage.is-ready .c3d-wait { display: none; }
.shop-3d-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.shop-3d-pick { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; min-width: 0; font-family: var(--display); text-transform: uppercase;
  letter-spacing: .12em; font-size: .74rem; color: var(--muted); }
.shop-3d-pick[hidden] { display: none; }
.shop-3d-who { flex: 1; min-width: 0; min-height: 38px; padding: 6px 10px; border-radius: 10px; border: 1px solid rgb(var(--gold-rgb) / .3);
  background: rgba(3, 5, 9, .7); color: var(--text); font: inherit; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .92rem; }
.shop-3d-bar .btn { min-height: 36px; padding: 4px 14px; font-size: .74rem; }
.shop-3d-bar .btn[hidden] { display: none; }
.shop-3d-hint, .shop-3d-note { margin: 0; font-size: .8rem; color: var(--muted); }
.shop-3d-hint[hidden], .shop-3d-note[hidden] { display: none; }

/* SITEPUB1 (owner 29.11.2026): the products in pages; while loading, the shape of the shop (account-shop.js skeleton) */
.shop-count { scroll-margin-top: calc(var(--header-h) + 16px); }
.shop-pager .pager { margin-top: 26px; }
.shop-skel { display: grid; gap: 14px; }
.shop-skel-top, .shop-skel-bar, .shop-skel-card > span { background-color: var(--glass-2); background-image: linear-gradient(90deg, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 75%);
  background-size: 200% 100%; animation: shop-skel 1.3s ease-in-out infinite; }
.shop-skel-top { height: 132px; border-radius: var(--radius-lg); border: 1px solid var(--gold-line); }
.shop-skel-bar { border: 1px solid var(--gold-line); }
.shop-skel-bar { height: 46px; border-radius: var(--radius); }
.shop-skel-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px 16px; min-height: 250px;
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: var(--glass-2); }
.shop-skel-ico { width: 64px; height: 64px; border-radius: 14px; margin-top: 18px; }
.shop-skel-line { width: 70%; height: 14px; border-radius: 7px; }
.shop-skel-line.short { width: 45%; }
.shop-skel-btn { width: 100%; height: 38px; border-radius: 999px; margin-top: auto; }
@keyframes shop-skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .shop-skel-top, .shop-skel-bar, .shop-skel-card > span { animation: none; } }

/* SITEPUB1 (owner 29.11.2026): one whole banner at a time, changing by itself (account-shop.js rotate), no scrollbar */
.shop-banners { gap: 0; padding-bottom: 0; margin-bottom: 10px; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; }
.shop-banners::-webkit-scrollbar { display: none; }
.shop-banner { flex: 0 0 100%; }
.shop-banner-dots { display: flex; justify-content: center; gap: 4px; margin: 0 0 14px; }
.shop-banner-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.shop-banner-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); transition: width .25s, background .25s; }
.shop-banner-dot[aria-current="true"]::before { width: 22px; border-radius: 5px; background: var(--gold); }
.shop-banner-dot:hover::before { background: var(--gold-hi); }
