:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef2f7;
  --text: #172033;
  --muted: #5f6f86;
  --border: #d7dfeb;
  --primary: #2457d6;
  --danger: #b42318;
  --success: #19743e;
  --warning: #875b08;
  --radius: .7rem;
  --shadow: 0 .4rem 1.4rem rgb(22 32 51 / 8%);
}

html.dark {
  color-scheme: dark;
  --bg: #101624;
  --surface: #182033;
  --surface-muted: #222c42;
  --text: #e6edf7;
  --muted: #a7b3c8;
  --border: #34415b;
  --primary: #92aaff;
  --danger: #ff9b93;
  --success: #79d79e;
  --warning: #e8c478;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 20rem; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
a { color: var(--primary); text-underline-offset: .16em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
img, svg, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }

.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 20; padding: .55rem .8rem; background: var(--surface); border: 1px solid var(--border); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-nav { width: calc(100% - 2rem); max-width: none; margin-inline: auto; }
.page-shell, .site-footer__inner { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; min-height: 4rem; padding-block: .65rem; }
.site-brand { margin-right: auto; color: var(--text); font-weight: 750; text-decoration: none; }
.site-nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.site-nav__links a, .link-button { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem .65rem; border: 0; background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.nav-toggle { display: none; }
.inline-form { display: inline; margin: 0; }
.page-shell { padding-block: clamp(1.25rem, 3vw, 2.5rem); }
.page-shell--narrow { width: min(38rem, calc(100% - 2rem)); }
.page-header { margin-bottom: 1.25rem; }
.page-header h1, .card h1, .card h2, .card h3 { margin-top: 0; line-height: 1.25; }
.page-header p { max-width: 48rem; color: var(--muted); }
.grid { display: grid; gap: 1rem; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .55fr); gap: 1rem; }
.stack { display: grid; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.card { padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.card--muted { background: var(--surface-muted); box-shadow: none; }
.card__title { margin-bottom: .35rem; font-size: 1.05rem; }
.card__meta, .muted { color: var(--muted); }
.notice { padding: .85rem 1rem; border: 1px solid var(--border); border-left: .3rem solid var(--primary); border-radius: .45rem; background: var(--surface); }
.notice--success { border-left-color: var(--success); }
.notice--danger { border-left-color: var(--danger); }
.notice--warning { border-left-color: var(--warning); }
.status { display: inline-flex; align-items: center; padding: .22rem .58rem; border: 1px solid currentColor; border-radius: 999px; font-size: .84rem; font-weight: 650; }
.status--success { color: var(--success); }
.status--danger { color: var(--danger); }
.status--warning { color: var(--warning); }
form { margin: 0; }
.form-grid { display: grid; gap: 1rem; }
.form-grid > label { display: grid; gap: .35rem; font-weight: 650; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 650; }
.field small, .help { color: var(--muted); }
input, select, textarea { width: 100%; min-height: 2.75rem; padding: .62rem .72rem; border: 1px solid var(--border); border-radius: .45rem; background: var(--surface); color: var(--text); }
textarea { min-height: 7rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: auto; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.field-error { margin: 0; color: var(--danger); font-size: .9rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; padding: .6rem .95rem; border: 1px solid var(--primary); border-radius: .45rem; background: var(--primary); color: #fff; cursor: pointer; font-weight: 700; text-decoration: none; }
.button[disabled] { cursor: not-allowed; opacity: .58; }
.button--secondary { background: transparent; color: var(--primary); }
.button--danger { border-color: var(--danger); background: var(--danger); }
.button--block { width: 100%; }
.auth-card { margin-inline: auto; max-width: 34rem; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1rem; }
.social-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .6rem; }
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li + li { border-top: 1px solid var(--border); }
.category-list li { padding: .8rem 0; }

.home-minigames,
.home-shop-intro {
  display: grid;
  gap: .85rem;
  margin-top: .2rem;
}
.home-minigames {
  padding: .9rem 1rem 1rem;
  border: 1px solid #d7e5f2;
  border-radius: .9rem;
  background: linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(239 248 255 / 76%));
  box-shadow: 0 .35rem 1rem rgb(35 88 138 / 6%);
}
.dark .home-minigames {
  border-color: #2d4662;
  background: linear-gradient(135deg, rgb(24 37 56 / 94%), rgb(19 45 68 / 90%));
}
.home-minigames__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: .1rem .15rem .35rem;
  border-bottom: 1px solid #dbe8f4;
}
.dark .home-minigames__heading { border-color: #2d4662; }
.home-minigames__heading h2 {
  margin: .08rem 0 0;
  color: var(--storefront-ink);
  font-size: 1.15rem;
  line-height: 1.15;
}
.home-minigames__hint { color: var(--muted); font-size: .75rem; }
.home-minigames__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}
.home-minigame-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d7e5f2;
  border-radius: .75rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 .25rem .8rem rgb(35 88 138 / 6%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-minigame-card:hover {
  transform: translateY(-3px);
  border-color: #90c9fb;
  box-shadow: 0 .7rem 1.3rem rgb(35 88 138 / 13%);
}
.home-minigame-card__media {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #d8f2ff, #dcd9ff 68%, #ffe4e0);
}
.home-minigame-card__fallback {
  position: absolute;
  color: rgb(255 255 255 / 84%);
  font-size: clamp(2rem, 5vw, 3.3rem);
  text-shadow: 0 .25rem .5rem rgb(44 72 134 / 30%);
}
.home-minigame-card__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-minigame-card__badge {
  position: absolute;
  right: .45rem;
  bottom: .45rem;
  z-index: 2;
  padding: .2rem .4rem;
  border-radius: 999px;
  background: rgb(20 49 91 / 74%);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
}
.home-minigame-card__body {
  display: grid;
  gap: .3rem;
  padding: .65rem .7rem .7rem;
}
.home-minigame-card__body > strong {
  overflow: hidden;
  color: var(--storefront-ink);
  font-size: .87rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-minigame-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem;
  color: var(--muted);
  font-size: .7rem;
}
.home-minigame-card__meta b { color: var(--storefront-blue-dark); }
.home-minigame-card__action {
  display: flex;
  justify-content: space-between;
  padding-top: .28rem;
  color: var(--storefront-blue-dark);
  font-size: .76rem;
  font-weight: 850;
}
.home-shop-intro__card {
  overflow: hidden;
  border: 1px solid #d7e5f2;
  border-radius: .9rem;
  background: var(--surface);
  box-shadow: 0 .35rem 1rem rgb(35 88 138 / 6%);
}
.dark .home-shop-intro__card { border-color: #2d4662; }
.home-shop-intro__header {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1rem;
  background: linear-gradient(100deg, #168ff4, #5362c8);
  color: #fff;
}
.home-shop-intro__header h2 { margin: 0; font-size: 1rem; }
.home-shop-intro__icon {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 22%);
  font-size: 1.05rem;
}
.home-shop-intro__body { padding: 1rem; }
.home-shop-intro__content {
  position: relative;
  max-height: 340px;
  overflow: hidden;
  transition: max-height .35s ease;
}
.home-shop-intro__content .rich-text { max-width: none; }
.home-shop-intro__fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5rem;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0%), var(--surface));
  pointer-events: none;
}
.dark .home-shop-intro__fade { background: linear-gradient(to bottom, rgb(24 32 51 / 0%), var(--surface)); }
.home-shop-intro__toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: .7rem auto 0;
  padding: .45rem .8rem;
  border: 1px solid var(--primary);
  border-radius: .45rem;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-weight: 750;
}
.home-shop-intro__toggle[hidden] { display: none; }
.home-shop-intro__chevron { transition: transform .25s ease; }
.home-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 1rem;
  background: rgb(24 63 99 / 32%);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s ease;
}
.home-notice-modal.is-open { opacity: 1; }
.home-notice-modal__card {
  display: flex;
  flex-direction: column;
  width: min(44rem, 100%);
  min-height: min(29rem, calc(100dvh - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  border: 1px solid #dce8f4;
  border-radius: 1.6rem;
  background: linear-gradient(130deg, #f3faff, #fcfcff 55%, #f8f9ff);
  color: #586579;
  box-shadow: 0 1.2rem 3rem rgb(17 50 85 / 24%);
  transform: translateY(-.65rem);
  transition: transform .2s ease;
}
.home-notice-modal.is-open .home-notice-modal__card { transform: none; }
.home-notice-modal__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 3rem 1.25rem 1rem;
  border: 0;
  flex: 0 0 auto;
}
.home-notice-modal__header h2 { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 0; color: #24204f; font-size: 1.45rem; text-align: center; }
.notice-bell { position: relative; display: inline-block; width: 1.15rem; height: 1.2rem; background: #0095ff; border-radius: 60% 60% 20% 20%; }
.notice-bell::before { content: ''; position: absolute; inset: -.15rem .43rem auto; height: .25rem; border-radius: 50%; background: #0095ff; }
.notice-bell::after { content: ''; position: absolute; bottom: -.3rem; left: .38rem; width: .4rem; height: .2rem; border-radius: 0 0 50% 50%; background: #0095ff; }
.home-notice-modal__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}
.home-notice-modal__body { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; padding: .1rem 2rem 1rem; text-align: center; color: #586579; font-size: 1.15rem; line-height: 1.65; overflow-wrap: anywhere; }
.home-notice-modal__body p { margin: 0; }
.home-notice-modal__body a { color: #086fc5; }
.home-notice-modal__footer {
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
  padding: 2rem 1rem 2.3rem;
}
.home-notice-modal__ok { min-width: 5.7rem; min-height: 3.1rem; border: 0; border-radius: 999px; background: #008cf0; color: #fff; box-shadow: 0 0 0 3px #dbf0ff, 0 0 0 6px #0095ff, 0 .4rem 1rem rgb(0 135 230 / 18%); }
.home-notice-modal__ok:focus-visible { outline: 3px solid #183e75; outline-offset: 8px; }
@media (max-width: 36rem) {
  .home-notice-modal__header { padding-top: 1.8rem; }
  .home-notice-modal__body { padding-inline: 1.1rem; font-size: 1rem; }
  .home-notice-modal__header h2 { font-size: 1.25rem; }
}
body.modal-open { overflow: hidden; }
@media (max-width: 62rem) {
  .home-minigames__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .home-minigames__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-minigames__heading { align-items: flex-start; flex-direction: column; gap: .25rem; }
}

@media (max-width: 28rem) {
  .home-minigames__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .home-shop-intro__content,
  .home-shop-intro__chevron,
  .home-notice-modal,
  .home-notice-modal__card,
  .home-minigame-card { transition: none; }
}
.storefront-sections { display: grid; gap: 2rem; }
.storefront-section { display: grid; gap: 1rem; }
.section-heading { display: flex; align-items: baseline; gap: .75rem; border-bottom: 1px solid var(--border); padding-bottom: .6rem; }
.section-heading h2, .storefront-category h3 { margin: 0; }
.storefront-category { display: grid; gap: .75rem; }
.storefront-category h3 { font-size: 1.05rem; color: var(--muted); }
.product-group-card, .product-card { display: flex; flex-direction: column; min-width: 0; }
.product-group-card__image, .product-card__image { width: 100%; height: 10rem; object-fit: cover; border-radius: .45rem; background: var(--surface-muted); }
.product-group-card__body, .product-card__body { display: flex; flex: 1; flex-direction: column; gap: .55rem; padding-top: .8rem; }
.product-group-card h4, .product-card__title { margin: 0; line-height: 1.3; }
.product-card__code { margin: 0; color: var(--muted); font-size: .86rem; }
.product-card__price, .product-detail__price { margin: .15rem 0; color: var(--primary); font-size: 1.2rem; font-weight: 800; }
.product-card__actions { margin-top: auto; align-items: end; }
.product-card__actions form { display: inline-flex; }
.product-highlights { margin: .25rem 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.catalog-search { display: grid; gap: .35rem; width: min(100%, 38rem); }
.catalog-search label { font-weight: 650; }
.product-grid { align-items: stretch; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1.5rem; }
.pagination a, .pagination__current { display: inline-flex; min-width: 2.5rem; min-height: 2.5rem; align-items: center; justify-content: center; padding: .4rem .65rem; border: 1px solid var(--border); border-radius: .4rem; text-decoration: none; }
.pagination__current { background: var(--primary); color: #fff; border-color: var(--primary); }
.product-detail { display: grid; gap: 1.5rem; }
.product-detail__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr); gap: 1.5rem; }
.product-detail__image { width: 100%; max-height: 28rem; object-fit: contain; border-radius: .45rem; background: var(--surface-muted); }
.product-detail__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: .5rem; margin-top: .6rem; }
.product-detail__gallery img { width: 100%; height: 5rem; object-fit: cover; border-radius: .35rem; }
.product-detail__summary { display: grid; align-content: start; gap: .65rem; }
.product-detail__summary h1 { margin: 0; line-height: 1.25; }
.product-detail__description { border-top: 1px solid var(--border); padding-top: 1rem; }
.product-detail__description h2 { margin-top: 0; }
.rich-text { max-width: 60rem; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--surface-muted); }
.site-footer { margin-top: 2rem; border-top: 1px solid var(--border); color: var(--muted); }
.site-footer__inner { padding-block: 1.25rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.2rem; }
.site-footer__grid strong { color: var(--text); }
.site-footer__grid p { margin: .3rem 0 0; font-size: .84rem; }
.site-footer__grid a { color: inherit; }
.native-announcer { position: fixed; z-index: 1000; right: 1rem; bottom: 1rem; max-width: min(28rem, calc(100vw - 2rem)); padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.native-announcer[data-type="error"] { border-color: var(--danger); }
.purchase-confirm {
  position: relative;
  width: min(31rem, calc(100vw - 2rem));
  margin: auto;
  padding: 1.35rem 1.35rem 1.15rem;
  border: 1px solid #b9d9f4;
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1.2rem 3rem rgb(11 55 105 / 24%);
}
.purchase-confirm::backdrop { background: rgb(7 20 40 / 66%); backdrop-filter: blur(2px); }
.purchase-confirm__close {
  position: absolute;
  top: .65rem;
  right: .7rem;
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}
.purchase-confirm__close:hover { background: var(--surface-muted); color: var(--text); }
.purchase-confirm__icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin: .1rem auto .65rem;
  place-items: center;
  border-radius: 50%;
  background: #e6f3ff;
  color: #087fd0;
}
.purchase-confirm__icon > span {
  position: relative;
  display: block;
  width: 1.25rem;
  height: .9rem;
  border: .14rem solid currentColor;
  border-top: 0;
  border-radius: 0 0 .2rem .2rem;
}
.purchase-confirm__icon > span::before {
  position: absolute;
  top: -.38rem;
  left: -.33rem;
  width: .38rem;
  border-top: .14rem solid currentColor;
  content: '';
  transform: skewX(-18deg);
}
.purchase-confirm__icon > span::after {
  position: absolute;
  bottom: -.42rem;
  left: .1rem;
  width: .19rem;
  height: .19rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: .72rem 0 currentColor;
  content: '';
}
.purchase-confirm h2 { margin: 0; color: var(--text); font-size: 1.2rem; text-align: center; }
.purchase-confirm__message { margin: .45rem 1.8rem .8rem; color: var(--muted); text-align: center; }
.purchase-confirm__summary { display: grid; gap: .42rem; margin: 0; padding: .75rem .85rem; border: 1px solid var(--border); border-radius: .7rem; background: var(--surface-muted); }
.purchase-confirm__summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.purchase-confirm__summary dt { color: var(--muted); font-size: .82rem; }
.purchase-confirm__summary dd { max-width: 68%; margin: 0; overflow: hidden; color: var(--text); font-size: .87rem; font-weight: 750; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.purchase-confirm__summary dd.purchase-confirm__price { color: #0b78c8; font-size: 1rem; }
.purchase-confirm__note { margin: .65rem 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.purchase-confirm__actions { display: flex; justify-content: center; gap: .6rem; margin-top: 1rem; }
.purchase-confirm__actions .button { min-width: 7rem; min-height: 2.55rem; }
.purchase-confirm__cancel { border-color: var(--border); background: var(--surface-muted); color: var(--text); }
.purchase-confirm__cancel:hover { border-color: var(--primary); background: var(--surface); }
.purchase-confirm__accept { border-color: #087fd0; background: linear-gradient(105deg, #078ce7, #5362d7); color: #fff; }
.purchase-confirm__accept:hover { border-color: #066eaf; background: linear-gradient(105deg, #067aca, #4351c2); }
html.dark .purchase-confirm { border-color: #3b5c82; box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 48%); }
html.dark .purchase-confirm__icon { background: #1e3c5d; color: #8ecbff; }
html.dark .purchase-confirm__summary { border-color: #3b506b; background: #111d30; }
html.dark .purchase-confirm__summary dd.purchase-confirm__price { color: #8ecbff; }
html.dark .purchase-confirm__cancel { border-color: #3b506b; background: #1d2e46; }
@media (max-width: 36rem) {
  .purchase-confirm { padding: 1.1rem 1rem .95rem; }
  .purchase-confirm__message { margin-inline: .5rem; }
  .purchase-confirm__summary > div { gap: .6rem; }
}
.license-key { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.account-page { max-width: 72rem; margin-inline: auto; }
.account-nav { padding: .25rem 0 .65rem; }
.account-nav__link { gap: .4rem; border-color: var(--border); background: var(--surface); color: var(--text); }
.account-nav__link:hover, .account-nav__link.is-active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--primary); }
.account-nav__link span:first-child { font-size: 1rem; line-height: 1; }
.definition-list { display: grid; grid-template-columns: minmax(8rem, .45fr) minmax(0, 1fr); gap: .45rem .9rem; margin: 0 0 1.25rem; }
.definition-list dt { color: var(--muted); font-weight: 650; }
.definition-list dd { margin: 0; overflow-wrap: anywhere; }
.metric { color: var(--primary); font-size: 1.35rem; font-weight: 800; }
details summary { color: var(--primary); cursor: pointer; font-weight: 650; }
.article-meta-row, .article-actions { margin-top: 1rem; }

@media (max-width: 48rem) {
  .split { grid-template-columns: 1fr; }
  .product-detail__top { grid-template-columns: 1fr; }
  .site-brand { margin-right: 0; }
  .site-nav__links { display: flex; width: 100%; align-items: stretch; flex-direction: column; }
  .site-nav__links a, .link-button, .site-nav__links form { width: 100%; }
  .link-button { justify-content: flex-start; }
}
@media print { .site-header, .site-footer, .button, .native-announcer { display: none !important; } body, .card { background: #fff; color: #000; box-shadow: none; } }

/* -------------------------------------------------------------------------
   Storefront presentation
   The native renderer intentionally keeps this layer dependency-free. It
   mirrors the production storefront hierarchy while retaining accessible
   links and a readable fallback when legacy image uploads are unavailable.
   ------------------------------------------------------------------------- */
:root {
  --storefront-blue: #168af4;
  --storefront-blue-dark: #0b64c8;
  --storefront-cyan: #12c7d8;
  --storefront-green: #38b98b;
  --storefront-orange: #f28b64;
  --storefront-red: #ee5a62;
  --storefront-bg: #eef4fb;
  --storefront-ink: #26364d;
}
html.dark {
  --storefront-bg: #0d1727;
  --storefront-ink: #e8effb;
}
body.body--storefront {
  background:
    radial-gradient(circle at 8% -10%, rgb(96 189 255 / 16%), transparent 32rem),
    radial-gradient(circle at 100% 0%, rgb(194 148 255 / 12%), transparent 28rem),
    var(--storefront-bg);
}
.body--storefront .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 0;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 .45rem 1.7rem rgb(35 77 122 / 9%);
  backdrop-filter: blur(16px);
}
.dark .site-header { background: rgb(16 26 42 / 88%); }
.body--storefront .site-nav {
  width: calc(100% - 2rem);
  max-width: none;
  min-height: 5.35rem;
  padding-block: .7rem;
  gap: .7rem;
}
.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 10rem;
  max-width: 13rem;
  margin-right: .6rem;
  color: var(--storefront-ink);
  font-size: 1.1rem;
  letter-spacing: -.02em;
}
.site-brand__logo {
  display: block;
  width: auto;
  max-width: 12.5rem;
  height: 3.25rem;
  object-fit: contain;
}
.site-brand__fallback {
  display: block;
  max-width: 12rem;
  color: var(--storefront-blue-dark);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.04;
  text-transform: uppercase;
}
.site-nav__links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: .2rem;
}
.nav-link,
.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  gap: .48rem;
  padding: .35rem .57rem;
  border-radius: .75rem;
  color: #35445b;
  font-size: .9rem;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.dark .nav-link,
.dark .nav-menu > summary { color: #dce8f9; }
.nav-link:hover,
.nav-menu > summary:hover,
.nav-link.is-active {
  background: #e8f3ff;
  color: var(--storefront-blue-dark);
}
.dark .nav-link:hover,
.dark .nav-menu > summary:hover,
.dark .nav-link.is-active { background: #172f4d; color: #8fc8ff; }
.nav-link__icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: .62rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 850;
  box-shadow: 0 .25rem .7rem rgb(33 77 122 / 14%);
}
.nav-link__icon--blue { background: linear-gradient(145deg, #3198ff, #286ee8); }
.nav-link__icon--green { background: linear-gradient(145deg, #54c99f, #22a67e); }
.nav-link__icon--orange { background: linear-gradient(145deg, #ff9a70, #ef7357); }
.nav-link__icon--red { background: linear-gradient(145deg, #f26c72, #df394f); }
.nav-link__icon--cyan { background: linear-gradient(145deg, #20d1dc, #0da9c6); }
.nav-link__icon--slate { background: linear-gradient(145deg, #708099, #46546b); }
.nav-caret { color: #8190a5; font-size: 1rem; line-height: 1; }
.nav-menu,
.user-menu { position: relative; }
.nav-menu > summary,
.user-menu > summary { list-style: none; cursor: pointer; }
.nav-menu > summary::-webkit-details-marker,
.user-menu > summary::-webkit-details-marker { display: none; }
.nav-menu[open] > summary,
.user-menu[open] > summary { background: #e8f3ff; color: var(--storefront-blue-dark); }
.nav-menu__panel,
.user-menu__panel {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 14.5rem;
  padding: .45rem;
  border: 1px solid #e0e8f3;
  border-radius: .8rem;
  background: var(--surface);
  box-shadow: 0 .9rem 2.2rem rgb(26 54 88 / 17%);
}
.nav-menu__panel a,
.user-menu__panel a,
.user-menu__logout {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.45rem;
  padding: .55rem .7rem;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  color: var(--text);
  font-size: .9rem;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}
.nav-menu__panel a:hover,
.user-menu__panel a:hover,
.user-menu__logout:hover { background: #edf5ff; color: var(--storefront-blue-dark); }
.dark .nav-menu__panel a:hover,
.dark .user-menu__panel a:hover,
.dark .user-menu__logout:hover { background: #1b3554; color: #9acfff; }
.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: .35rem;
}
.nav-tool {
  display: inline-flex;
  width: 2.55rem;
  height: 2.55rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .75rem;
  background: #f2f6fb;
  color: #3f4e64;
  cursor: pointer;
  font-size: 1.12rem;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.nav-tool:hover { background: #e5f1ff; transform: translateY(-1px); }
.dark .nav-tool { background: #1c2a3e; color: #dfeaff; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 3.1rem;
  padding: .3rem .55rem .3rem .35rem;
  border: 1px solid #d9e8f8;
  border-radius: 1rem;
  background: linear-gradient(110deg, #f8fcff, #edf6ff);
  box-shadow: 0 .35rem 1.2rem rgb(50 130 205 / 13%);
}
.dark .user-chip { border-color: #2c4663; background: #172a42; }
.user-chip img,
.user-chip__avatar {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d7edff;
  color: #277dc4;
  object-fit: cover;
}
.user-chip__copy { display: grid; gap: 0; min-width: 4.4rem; line-height: 1.15; }
.user-chip__copy strong { max-width: 7rem; overflow: hidden; color: var(--storefront-ink); font-size: .87rem; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__copy small { color: var(--storefront-blue-dark); font-size: .75rem; font-weight: 800; }
.user-menu__panel { min-width: 12rem; }
.user-menu__panel form { display: block; }
.user-menu__logout { width: 100%; cursor: pointer; font: inherit; }
.nav-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: .45rem .75rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: #fff !important;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.nav-auth:visited,
.nav-auth:hover,
.nav-auth:active,
.nav-auth:focus-visible {
  color: #fff !important;
  text-decoration: none !important;
}
.nav-auth--primary { background: var(--storefront-blue); border-color: var(--storefront-blue); }
.page-shell--storefront {
  width: min(80rem, calc(100% - 2rem));
  padding-block: clamp(1.2rem, 2.2vw, 2.2rem) 3.5rem;
}
.storefront-home { display: grid; gap: 1.15rem; }
.storefront-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(19rem, .72fr);
  gap: 1rem;
  align-items: stretch;
}
.storefront-hero__visual {
  position: relative;
  min-height: 23rem;
  overflow: hidden;
  isolation: isolate;
  border: 3px solid transparent;
  border-radius: 1rem;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #ff5d4d, #a45ef6, #208eff) border-box;
  box-shadow: 0 .9rem 2.3rem rgb(39 102 167 / 18%);
}
.storefront-hero__image,
.hero-image-link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 23rem;
  object-fit: cover;
}
.hero-image-link { position: relative; z-index: 1; }
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 23rem;
  overflow: hidden;
  background: var(--surface);
}
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.hero-carousel__slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}
.hero-carousel__slide .storefront-hero__image,
.hero-carousel__slide .hero-image-link {
  min-height: 23rem;
}
.hero-carousel__controls {
  position: absolute;
  inset: 50% .75rem auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-carousel__control {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  padding: 0 0 .15rem;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  background: rgb(5 28 62 / 42%);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  opacity: .84;
  transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
}
.hero-carousel__control:hover,
.hero-carousel__control:focus-visible {
  background: rgb(5 28 62 / 76%);
  opacity: 1;
  outline: 2px solid rgb(255 255 255 / 82%);
  outline-offset: 2px;
  transform: scale(1.06);
}
.hero-carousel__dots {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  left: .8rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: .45rem;
  pointer-events: none;
}
.hero-carousel__dot {
  width: .72rem;
  height: .72rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 999px;
  background: rgb(6 28 61 / 48%);
  box-shadow: 0 1px 4px rgb(0 0 0 / 22%);
  cursor: pointer;
  pointer-events: auto;
  transition: transform .2s ease, background-color .2s ease, width .2s ease;
}
.hero-carousel__dot:hover,
.hero-carousel__dot:focus-visible {
  background: #fff;
  outline: 2px solid rgb(255 255 255 / 72%);
  outline-offset: 2px;
}
.hero-carousel__dot.is-active {
  width: 1.55rem;
  background: #fff;
}
.hero-carousel:focus-visible {
  outline: 3px solid #ffd83d;
  outline-offset: -3px;
}
@media (max-width: 48rem) {
  .hero-carousel__controls { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide,
  .hero-carousel__dot {
    transition: none;
  }
}

/* Dark storefront filter surface. The base catalogue styles intentionally
   use a light gradient, so keep the toolbar and its controls on the same
   dark palette when the theme toggle sets html.dark. */
html.dark .storefront-catalog-tools {
  border-color: #304864 !important;
  background: linear-gradient(145deg, #182538, #142034) !important;
  box-shadow: 0 .35rem 1rem rgb(0 0 0 / 20%) !important;
}

html.dark .storefront-catalog-tools input,
html.dark .storefront-catalog-tools select {
  border-color: #3b506b !important;
  background: #111d30 !important;
  color: #e6edf7 !important;
  box-shadow: none !important;
}

html.dark .storefront-catalog-tools input::placeholder {
  color: #8296b2 !important;
  opacity: 1 !important;
}

html.dark .storefront-catalog-tools select option {
  background: #182033;
  color: #e6edf7;
}

html.dark .storefront-catalog-tools input:focus,
html.dark .storefront-catalog-tools select:focus {
  border-color: #78b8f5 !important;
  box-shadow: 0 0 0 3px rgb(74 151 231 / 22%) !important;
}

html.dark .storefront-catalog-tools .storefront-catalog-tools__reset {
  border-color: #4b6b94 !important;
  background: #1d3552 !important;
  color: #b8d8ff !important;
}

html.dark .storefront-catalog-tools .storefront-catalog-tools__reset:hover {
  border-color: #78b8f5 !important;
  background: #294b70 !important;
  color: #fff !important;
}

html.dark .storefront-catalog-tools__status [data-storefront-no-results] {
  color: var(--danger) !important;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 15%, rgb(255 255 255 / 45%), transparent 15rem),
    linear-gradient(120deg, #25b6e8 0%, #1686e8 48%, #6d54d9 100%);
  color: #fff;
  text-align: center;
}
.hero-fallback.is-visible { display: flex; }
.hero-fallback > div { position: relative; z-index: 1; display: grid; gap: .65rem; padding: 2rem; }
.hero-fallback strong { max-width: 45rem; font-size: clamp(2rem, 5vw, 4.7rem); font-weight: 950; line-height: .95; letter-spacing: -.045em; text-shadow: 0 .22rem .15rem rgb(17 58 119 / 26%); }
.hero-fallback small { font-size: clamp(.9rem, 1.7vw, 1.25rem); font-weight: 700; }
.hero-kicker { font-size: .76rem; font-weight: 900; letter-spacing: .18em; }
.hero-fallback__burst { position: absolute; width: 75rem; height: 75rem; border: 2rem solid rgb(255 255 255 / 8%); border-radius: 50%; transform: translate(25%, -38%); }
.storefront-hero__caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  max-width: 34rem;
  padding: .8rem 1rem;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: .7rem;
  background: linear-gradient(90deg, rgb(8 32 69 / 75%), rgb(8 32 69 / 12%));
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
}
.storefront-hero__caption h1 { margin: .15rem 0 .2rem; font-size: clamp(1.1rem, 2vw, 1.75rem); line-height: 1.15; }
.storefront-hero__caption p { margin: 0; font-size: .84rem; font-weight: 600; }
.hero-caption__eyebrow { font-size: .67rem; font-weight: 900; letter-spacing: .15em; opacity: .86; }
.storefront-deposit {
  display: flex;
  min-height: 23rem;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d6e5f3;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 .8rem 2rem rgb(34 83 131 / 11%);
}
.deposit-tabs { display: flex; min-height: 3.3rem; background: linear-gradient(100deg, #148ff2, #0868bb); color: #fff; }
.deposit-tab { display: inline-flex; flex: 1; align-items: center; justify-content: center; padding: .7rem .4rem; border: 0; background: transparent; color: #fff; font-size: .9rem; font-weight: 850; text-decoration: none; cursor: pointer; }
.deposit-tab.is-active { color: #fff; border-bottom: 3px solid #ffd83d; }
.deposit-tab:hover { background: rgb(255 255 255 / 10%); }
.deposit-panel { display: grid; flex: 1; align-content: center; justify-items: center; gap: .5rem; padding: 1.35rem; text-align: center; }
.deposit-panel__icon { display: inline-flex; width: 3.5rem; height: 3.5rem; align-items: center; justify-content: center; border-radius: 1rem; background: #e9f5ff; font-size: 1.8rem; }
.deposit-panel h2 { margin: 0; color: var(--storefront-ink); font-size: 1.25rem; }
.deposit-panel__hint { max-width: 18rem; margin: 0; color: var(--muted); font-size: .87rem; }
.deposit-cta { border-radius: .65rem; background: linear-gradient(100deg, #138df4, #2876df); box-shadow: 0 .45rem 1rem rgb(19 129 230 / 25%); }
.deposit-cta span { margin-left: auto; font-size: 1.1rem; }
.deposit-secondary { color: var(--storefront-blue-dark); font-size: .8rem; font-weight: 750; text-decoration: none; }
.deposit-panel__signup { margin: .15rem 0 0; color: var(--muted); font-size: .78rem; }
.deposit-panel__signup a { font-weight: 800; }
.deposit-safety { margin-top: .35rem; color: var(--success); font-size: .72rem; font-weight: 700; }
.deposit-safety span { display: inline-flex; width: 1.1rem; height: 1.1rem; align-items: center; justify-content: center; margin-right: .25rem; border-radius: 50%; background: #dcf7e9; }
.home-leaderboard { width: 100%; margin-top: .55rem; padding-top: .6rem; border-top: 1px solid #e3edf7; text-align: left; }
.home-leaderboard > strong { display: block; color: var(--storefront-ink); font-size: .78rem; }
.home-leaderboard ol { display: grid; gap: .16rem; margin: .25rem 0 0; padding-left: 1.25rem; color: var(--muted); font-size: .72rem; }
.home-leaderboard li { display: flex; justify-content: space-between; gap: .5rem; }
.home-leaderboard li b { color: var(--storefront-blue-dark); white-space: nowrap; }
.home-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  padding: .9rem 1rem;
  border: 1px solid #bcdcff;
  border-radius: .8rem;
  background: var(--surface);
  box-shadow: 0 .35rem 1rem rgb(33 104 170 / 7%);
}
.home-notice__icon { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(145deg, #168ff4, #0f65c7); color: #fff; font-size: 1.2rem; }
.home-notice__body { min-width: 0; color: var(--text); font-size: .92rem; }
.home-notice__body p { margin: .1rem 0; }
.home-notice__body a { font-weight: 800; }
.storefront-shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.storefront-catalog-tools { position: relative; display: grid; grid-template-columns: minmax(11rem, 2fr) repeat(4, minmax(5.5rem, 1fr)) auto; gap: .5rem; max-width: 72rem; margin-top: .25rem; padding: .7rem; border: 1px solid #d7e4f1; border-radius: .9rem; background: linear-gradient(145deg, #fff, #f7fbff); box-shadow: 0 .35rem 1rem rgb(35 88 138 / 6%); }
.storefront-catalog-tools__search, .storefront-catalog-tools__filters { display: contents; }
.storefront-catalog-tools__search > label, .storefront-catalog-tools__filters label { display: grid; align-content: end; gap: .2rem; min-width: 0; }
.storefront-catalog-tools__search input, .storefront-catalog-tools__filters select, .storefront-catalog-tools__filters input { min-height: 2.45rem; width: 100%; border: 1px solid #c8dced; border-radius: .6rem; background: var(--surface); padding: .35rem .55rem; box-shadow: 0 .2rem .6rem rgb(35 88 138 / 5%); }
.storefront-catalog-tools__filters .button { min-height: 2.45rem; white-space: nowrap; }
.storefront-catalog-tools__reset { align-self: end; }
.storefront-catalog-tools__status { position: absolute; top: calc(100% + .15rem); left: .7rem; display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .72rem; font-weight: 700; pointer-events: none; }
.storefront-catalog-tools__status [data-storefront-no-results] { color: #b42318; }
.storefront-catalog-tools label { color: var(--storefront-ink); font-size: .82rem; font-weight: 800; }
.storefront-catalog-tools input { min-height: 2.45rem; border-color: #c8dced; border-radius: .6rem; box-shadow: 0 .25rem .8rem rgb(35 88 138 / 6%); }
.shortcut-card { display: flex; align-items: center; gap: .7rem; min-height: 5.3rem; padding: .75rem; border: 1px solid #d7e4f1; border-radius: .85rem; background: var(--surface); color: var(--storefront-ink); box-shadow: 0 .35rem 1rem rgb(35 88 138 / 7%); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.shortcut-card:hover { transform: translateY(-3px); box-shadow: 0 .7rem 1.5rem rgb(35 88 138 / 14%); }
.shortcut-card__icon { display: inline-flex; width: 2.55rem; height: 2.55rem; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: .75rem; background: #eaf5ff; font-size: 1.35rem; }
.shortcut-card strong, .shortcut-card small { display: block; }
.shortcut-card strong { font-size: .82rem; line-height: 1.2; }
.shortcut-card small { margin-top: .25rem; color: var(--muted); font-size: .72rem; font-weight: 650; }
.shortcut-card small b { color: var(--storefront-blue-dark); }
.shortcut-card--account .shortcut-card__icon { background: #e5f8ed; }
.shortcut-card--account_v2 .shortcut-card__icon { background: #fff0e8; }
.shortcut-card--item .shortcut-card__icon { background: #e9f3ff; }
.shortcut-card--boosting .shortcut-card__icon { background: #fff4db; }
.shortcut-card--news .shortcut-card__icon { background: #e8f7f8; }
.storefront-sections { display: grid; gap: 2rem; }
.storefront-section { display: grid; gap: 1rem; }
.storefront-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem 0 .75rem; border-bottom: 1px solid #d6e4f2; }
.section-title { display: flex; align-items: center; gap: .75rem; }
.section-title__icon { display: inline-flex; width: 2.65rem; height: 2.65rem; align-items: center; justify-content: center; border-radius: .8rem; background: linear-gradient(145deg, #168ff4, #3f65d4); color: #fff; font-size: 1.3rem; box-shadow: 0 .3rem .75rem rgb(35 105 190 / 18%); }
.section-title__icon--boosting { background: linear-gradient(145deg, #f4a028, #ed6c51); }
.section-title__icon--item { background: linear-gradient(145deg, #34c8ce, #148bd7); }
.section-title__icon--game { background: linear-gradient(145deg, #9577e7, #5362c8); }
.section-title__icon--treasure_box, .section-title__icon--mystery_bag { background: linear-gradient(145deg, #ef7190, #bd4f9a); }
.section-title__eyebrow { display: block; color: var(--muted); font-size: .64rem; font-weight: 850; letter-spacing: .14em; }
.section-title h2 { margin: .08rem 0 0; color: var(--storefront-ink); font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.15; }
.section-count { color: var(--muted); font-size: .8rem; font-weight: 750; white-space: nowrap; }
.section-count span { color: var(--storefront-blue); font-size: 1rem; }
.storefront-category { display: grid; gap: .65rem; }
.storefront-category__heading { display: flex; align-items: center; gap: .7rem; }
.storefront-category__heading h3 { margin: 0; color: var(--storefront-ink); font-size: 1rem; }
.storefront-category__heading span { height: 1px; flex: 1; background: linear-gradient(90deg, #d4e4f2, transparent); }
.storefront-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.storefront-card { min-width: 0; overflow: hidden; border: 1px solid #d9e5f0; border-radius: .95rem; background: var(--surface); box-shadow: 0 .35rem 1rem rgb(35 88 138 / 7%); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.storefront-card:hover { transform: translateY(-4px); border-color: #90c9fb; box-shadow: 0 .9rem 1.7rem rgb(35 88 138 / 14%); }
.storefront-card__link { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.storefront-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #d8f2ff, #d8d9ff 68%, #ffe4e0); }
.storefront-card__media-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / 78%); font-size: clamp(2rem, 5vw, 4rem); text-shadow: 0 .25rem .5rem rgb(44 72 134 / 30%); }
.storefront-card__media img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.storefront-card:hover .storefront-card__media img { transform: scale(1.04); }
.stock-pill { position: absolute; right: .55rem; bottom: .55rem; z-index: 2; padding: .24rem .5rem; border-radius: 999px; background: rgb(19 34 58 / 75%); color: #fff; font-size: .7rem; font-weight: 800; }
.stock-pill--available { background: rgb(8 126 78 / 87%); }
.stock-pill--empty { background: rgb(114 127 146 / 88%); }
.storefront-card__body { display: flex; flex: 1; flex-direction: column; gap: .38rem; padding: .85rem .9rem .9rem; }
.storefront-card__body h3 { margin: 0; color: var(--storefront-ink); font-size: .98rem; line-height: 1.25; }
.storefront-card__body p { min-height: 2.5em; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.storefront-card__muted { opacity: .8; }
.storefront-card__action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .45rem; color: var(--storefront-blue-dark); font-size: .8rem; font-weight: 850; }
.storefront-card__action b { font-size: 1.1rem; }
.storefront-empty { margin-top: 1rem; }

/* Homepage parity: legacy notice marquees, pinned shortcuts, and tabbed
   deposit panel. These rules stay dependency-free so the native bundle does
   not rely on the legacy Tailwind runtime. */
.deposit-tab-panel[hidden] { display: none !important; }
.deposit-tab-panel { min-height: 0; }
.deposit-tab-panel.is-active { display: grid; }
.deposit-card-types { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; max-width: 18rem; margin: .15rem 0 .2rem; }
.deposit-card-types span { padding: .2rem .42rem; border: 1px solid #d7e7f5; border-radius: 999px; color: var(--muted); font-size: .68rem; font-weight: 750; }
.deposit-bank-summary { display: grid; gap: .1rem; width: 100%; max-width: 18rem; padding: .55rem .7rem; border: 1px solid #d5e6f5; border-radius: .65rem; background: #f7fbff; text-align: left; }
.dark .deposit-bank-summary { border-color: #2e4966; background: #16283e; }
.deposit-bank-summary strong { color: var(--storefront-blue-dark); font-size: .84rem; }
.deposit-bank-summary span { color: var(--storefront-ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92rem; font-weight: 850; letter-spacing: .04em; }
.deposit-bank-summary small { color: var(--muted); font-size: .73rem; }
.deposit-bank-note { margin: 0; color: var(--muted); font-size: .76rem; }
.deposit-copy { border: 0; background: transparent; color: #d78316; cursor: pointer; font: inherit; font-weight: 850; }
.deposit-image-panel, .deposit-image-panel__link { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.deposit-image-panel img { width: 100%; height: 100%; object-fit: contain; border-radius: 1rem; }
.deposit-panel--empty { min-height: 23rem; }
.home-marquee { position: relative; display: flex; min-width: 0; align-items: center; gap: .55rem; overflow: hidden; min-height: 2.85rem; padding: .45rem .75rem .45rem .55rem; border: 1px solid #dce8f4; border-radius: .75rem; background: var(--surface); box-shadow: 0 .35rem 1rem rgb(35 88 138 / 6%); }
.home-marquee::before { content: ''; position: absolute; inset: .35rem auto .35rem 0; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #168ff4, #5665d8); }
.home-marquee--purchase::before { background: linear-gradient(180deg, #34d399, #059669); }
.home-marquee__icon { position: relative; z-index: 1; display: inline-flex; width: 1.9rem; height: 1.9rem; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; background: #087bd1; color: #fff; }
.home-marquee__icon--bell span { position: relative; display: block; width: .7rem; height: .78rem; border: .11rem solid currentColor; border-bottom: 0; border-radius: .5rem .5rem .15rem .15rem; }
.home-marquee__icon--bell span::before { position: absolute; right: -.19rem; bottom: -.18rem; left: -.19rem; height: .12rem; border-radius: 999px; background: currentColor; content: ''; }
.home-marquee__icon--bell span::after { position: absolute; bottom: -.34rem; left: .2rem; width: .22rem; height: .12rem; border-radius: 0 0 .2rem .2rem; background: currentColor; content: ''; }
.home-marquee__icon--cart span { position: relative; display: block; width: .82rem; height: .62rem; border: .11rem solid currentColor; border-top: 0; border-radius: 0 0 .16rem .16rem; transform: translateY(.06rem); }
.home-marquee__icon--cart span::before { position: absolute; top: -.28rem; left: -.22rem; width: .28rem; height: .28rem; border-bottom: .11rem solid currentColor; content: ''; transform: skewX(-18deg); }
.home-marquee__icon--cart span::after { position: absolute; bottom: -.27rem; left: .06rem; width: .14rem; height: .14rem; border-radius: 50%; background: currentColor; box-shadow: .52rem 0 currentColor; content: ''; }
.home-marquee--purchase .home-marquee__icon { background: #e9fbf1; }
.home-marquee__label { flex: 0 0 auto; color: var(--storefront-blue-dark); font-size: .69rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.home-marquee--purchase .home-marquee__label { color: #078550; }
.home-marquee__viewport { min-width: 0; flex: 1; overflow: hidden; }
.home-marquee__track { display: inline-block; min-width: 100%; color: var(--text); font-size: .82rem; font-weight: 650; white-space: nowrap; animation: home-marquee-scroll 24s linear infinite; }
.home-marquee__message { color: #334b68; }
.home-marquee__track:hover { animation-play-state: paused; }
.home-marquee__track.is-ready { animation-duration: 30s; }
@keyframes home-marquee-scroll { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
html.dark .home-marquee {
  border-color: #304864;
  background: var(--surface);
  box-shadow: 0 .35rem 1rem rgb(0 0 0 / 22%);
}
html.dark .home-marquee__track { color: #e6edf7; }
html.dark .home-marquee__message { color: #d8e5f7; }
html.dark .home-marquee--purchase .home-marquee__label { color: #76e0ad; }
.home-pins { display: grid; gap: .75rem; padding: .8rem .9rem 1rem; border: 1px solid #d7e5f2; border-radius: .9rem; background: linear-gradient(135deg, rgb(255 255 255 / 86%), rgb(239 248 255 / 72%)); box-shadow: 0 .35rem 1rem rgb(35 88 138 / 6%); }
.dark .home-pins { border-color: #2d4662; background: linear-gradient(135deg, rgb(24 37 56 / 90%), rgb(19 45 68 / 86%)); }
.home-pins__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: .1rem .15rem .3rem; border-bottom: 1px solid #dbe8f4; }
.dark .home-pins__heading { border-color: #2d4662; }
.home-pins__heading h2 { margin: .08rem 0 0; color: var(--storefront-ink); font-size: 1.1rem; }
.home-pins__hint { color: var(--muted); font-size: .75rem; }
.home-pins__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem; }
.home-pins--slide .home-pins__grid { grid-template-columns: repeat(auto-fit, minmax(7.3rem, 1fr)); }
.home-pin { position: relative; display: flex; min-width: 0; min-height: 7rem; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: .45rem; border: 1px solid transparent; border-radius: .7rem; color: var(--storefront-ink); text-align: center; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.home-pin:hover { transform: translateY(-2px); border-color: #9dcdf4; background: rgb(255 255 255 / 64%); }
.dark .home-pin:hover { background: rgb(45 76 110 / 45%); }
.home-pin__media { display: grid; width: 4.25rem; height: 4.25rem; place-items: center; overflow: hidden; border-radius: 1rem; background: linear-gradient(135deg, #d8f2ff, #dcd9ff); box-shadow: 0 .3rem .7rem rgb(35 88 138 / 10%); }
.home-pin__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.home-pin:hover .home-pin__media img { transform: scale(1.06); }
.home-pin__media.is-broken::after { content: '✦'; color: #fff; font-size: 1.7rem; text-shadow: 0 .2rem .4rem rgb(30 80 140 / 30%); }
.home-pin strong { max-width: 100%; overflow: hidden; font-size: .76rem; line-height: 1.22; text-overflow: ellipsis; }
.home-pin--full { grid-column: 1 / -1; min-height: 5rem; padding: 0; overflow: hidden; }
.home-pin--full img { width: 100%; height: 100%; min-height: 5rem; object-fit: cover; border-radius: .7rem; }
.home-pin--full span { position: absolute; right: .7rem; bottom: .55rem; left: .7rem; padding: .3rem .5rem; border-radius: .45rem; background: rgb(8 32 69 / 66%); color: #fff; font-size: .76rem; font-weight: 800; text-align: left; }

@media (max-width: 62rem) {
  .home-pins__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .home-marquee__label { display: none; }
  .home-pins { padding-inline: .55rem; }
  .home-pins__grid, .home-pins--slide .home-pins__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-pin__media { width: 3.65rem; height: 3.65rem; }
}

@media (max-width: 76rem) {
  .site-brand { min-width: 8rem; max-width: 10rem; }
  .site-brand__logo { max-width: 9.5rem; height: 2.8rem; }
  .nav-link { padding-inline: .35rem; font-size: .8rem; }
  .nav-link__icon { width: 1.8rem; height: 1.8rem; font-size: .9rem; }
  .storefront-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 62rem) {
  .storefront-hero { grid-template-columns: 1fr; }
  .storefront-deposit { min-height: 19rem; }
  .storefront-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .body--storefront .site-nav { min-height: 4.2rem; }
  .site-brand { min-width: 0; max-width: 12rem; margin-right: auto; }
  .site-brand__logo { max-width: 9.2rem; height: 2.6rem; }
  .site-nav__links { display: flex; width: 100%; align-items: stretch; flex-direction: column; padding: .6rem 0 .25rem; }
  .site-nav__links .nav-link,
  .site-nav__links .nav-menu > summary { width: 100%; justify-content: flex-start; }
  .site-nav > .nav-tools { width: 100%; justify-content: flex-end; margin: .25rem 0 0; padding-top: .5rem; border-top: 1px solid var(--border); }
  .nav-menu__panel,
  .user-menu__panel { position: static; min-width: 0; margin: .2rem 0 .3rem 2.55rem; box-shadow: none; }
  .user-menu { width: 100%; }
  .user-menu > summary { justify-content: flex-start; }
  .user-menu__panel { margin-left: 0; }
  .nav-auth { flex: 1; }
  .page-shell--storefront { width: min(100% - 1rem, 48rem); padding-top: .8rem; }
  .storefront-hero__visual, .storefront-hero__image, .hero-image-link { min-height: 16rem; }
  .storefront-hero__caption { right: .6rem; bottom: .6rem; left: .6rem; }
  .storefront-hero__caption p { display: none; }
  .storefront-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storefront-catalog-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding: .6rem; }
  .storefront-catalog-tools__search > label, .storefront-catalog-tools__filters label { font-size: 0; gap: 0; }
  .storefront-catalog-tools__search input, .storefront-catalog-tools__filters select, .storefront-catalog-tools__filters input,
  .storefront-catalog-tools__reset { min-height: 2.35rem; font-size: .76rem; padding-inline: .4rem; }
  .storefront-catalog-tools__reset { overflow: hidden; text-overflow: ellipsis; }
  .shortcut-card { min-height: 4.5rem; }
  .storefront-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .site-footer__grid { grid-template-columns: 1fr; gap: .75rem; }
}
@media (max-width: 28rem) {
  .storefront-shortcuts { grid-template-columns: 1fr; }
  .storefront-card-grid { grid-template-columns: 1fr; }
  .storefront-card__media { aspect-ratio: 16 / 8; }
  .storefront-section__heading { align-items: flex-start; flex-direction: column; gap: .35rem; }
}

/* Customer deposit portal */
.deposit-bank-card { display: grid; gap: .85rem; }
.deposit-bank-card h2 { margin-bottom: 0; }
.deposit-bank-summary--account { max-width: 28rem; padding: .85rem 1rem; }
.deposit-bank-summary--account span { font-size: 1.1rem; }
.deposit-bank-reference { margin: 0; color: var(--muted); }
.deposit-steps { display: grid; gap: .45rem; margin: 0; padding-left: 1.35rem; color: var(--text); }
.deposit-steps li::marker { color: var(--primary); font-weight: 800; }
@media (max-width: 40rem) {
  .deposit-tabs { overflow-x: auto; justify-content: flex-start; }
  .deposit-tab { min-width: 8.5rem; white-space: nowrap; }
}
/* Storefront vertical/category cards */
.vertical-page__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .45rem 0 .8rem; }
.vertical-page__description { margin-top: .75rem; }
.vertical-product-card { overflow: hidden; }
.vertical-product-card__media { display: block; min-height: 9.5rem; overflow: hidden; background: linear-gradient(135deg, #d8f2ff, #dedbff 68%, #ffe4e0); text-decoration: none; }
.vertical-product-card__media .product-card__image { height: 9.5rem; border-radius: 0; transition: transform .25s ease; }
.vertical-product-card:hover .vertical-product-card__media .product-card__image { transform: scale(1.04); }
.vertical-product-card__placeholder { display: grid; min-height: 9.5rem; place-items: center; color: rgb(255 255 255 / 82%); font-size: 3.2rem; text-shadow: 0 .25rem .5rem rgb(44 72 134 / 32%); }
.vertical-product-card__description { min-height: 2.6em; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.vertical-product-card__action { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; }
@media (max-width: 40rem) {
  .vertical-product-card__media, .vertical-product-card__media .product-card__image, .vertical-product-card__placeholder { min-height: 8rem; height: 8rem; }
}
.status--info { color: var(--primary); }
.product-detail__status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.product-detail__extras { display: grid; gap: .75rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.product-detail__extras h2 { margin: 0; font-size: 1.05rem; }
.product-detail__extra { border: 1px solid var(--border); border-radius: .5rem; background: var(--surface-muted); }
.product-detail__extra summary { cursor: pointer; padding: .65rem .8rem; font-weight: 700; }
.product-detail__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .35rem .75rem; margin: 0; padding: .2rem .8rem .8rem 1.8rem; color: var(--muted); }
/* Suppress broken-image alt glyphs visually while keeping the alt text available to assistive technology; the paired fallback panel remains visible. */
img[data-image-fallback] { font-size: 0; }
/* Native storefront polish: CSS chevrons, readable light tables and robust menu wrapping. */
.nav-caret {
  display: inline-block;
  flex: 0 0 auto;
  width: .48rem;
  height: .48rem;
  margin-left: .18rem;
  border-right: .13rem solid currentColor;
  border-bottom: .13rem solid currentColor;
  color: currentColor;
  opacity: .72;
  transform: rotate(45deg) translate(-.08rem, -.08rem);
  transition: transform .18s ease, opacity .18s ease;
}
.nav-menu[open] > summary .nav-caret,
.user-menu[open] > summary .nav-caret {
  opacity: 1;
  transform: rotate(225deg) translate(-.08rem, -.08rem);
}

/* Keep account tables readable in both themes, including long invoice history. */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: .72rem;
  background: var(--surface);
}
.table-wrap table { min-width: 42rem; }
table th,
table td { color: var(--text); }
table th {
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}
table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-muted) 42%, var(--surface)); }
table tbody tr:hover td { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
table td a { font-weight: 700; }

/* The deposit tabs are also rendered on the account page. Use a strong
   contrast treatment in light mode so labels never disappear on white cards. */
.deposit-tabs {
  overflow: hidden;
  border: 1px solid #0c62bb;
  border-radius: .75rem;
  background: linear-gradient(110deg, #0e67c5, #168af4);
  box-shadow: 0 .3rem .9rem rgb(22 105 190 / 15%);
}
.deposit-tab {
  color: #eaf5ff;
  text-shadow: 0 1px 1px rgb(0 35 88 / 28%);
}
.deposit-tab.is-active { color: #fff; }
.deposit-tab:focus-visible { outline-color: #ffe16a; outline-offset: -3px; }
.account-page > .deposit-tabs { display: flex; flex-wrap: wrap; }
.account-page > .deposit-tabs .deposit-tab { flex: 1 1 11rem; min-width: 10rem; }
.account-page > .deposit-tabs .deposit-tab__icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; margin-right: .38rem; font-size: 1rem; line-height: 1; }
.deposit-bank-summary--account {
  border-color: #b8d8f4;
  background: linear-gradient(135deg, #f8fcff, #eef7ff);
  color: var(--text);
}
.deposit-bank-summary--account strong { color: #075dbb; }
.deposit-bank-summary--account span { color: #162f55; }
html.dark .deposit-bank-summary--account {
  border-color: #2e557b;
  background: linear-gradient(135deg, #172b43, #132237);
}
html.dark .deposit-bank-summary--account strong { color: #8fc8ff; }
html.dark .deposit-bank-summary--account span { color: #e8f2ff; }

/* Legacy right-panel markup can still be selected from older theme settings. */
#right-panel-tabs { color: var(--text); border: 1px solid var(--border); }
#right-panel-tabs > :first-child {
  background: linear-gradient(110deg, #0e67c5, #168af4) !important;
  color: #fff;
}
#right-panel-tabs [data-tab-panel] {
  background: var(--surface);
  color: var(--text);
}
#right-panel-tabs .text-slate-600,
#right-panel-tabs .text-slate-500,
#right-panel-tabs .text-slate-400 { color: var(--muted) !important; }
#right-panel-tabs .right-panel-tab-btn {
  color: #eaf5ff !important;
  text-shadow: 0 1px 1px rgb(0 35 88 / 28%);
}
#right-panel-tabs .right-panel-tab-btn.is-active { color: #fff !important; }

/* Prevent the storefront header from creating a second accidental flex row.
   It collapses into the accessible menu before the links become cramped. */
.body--storefront .site-nav { flex-wrap: nowrap; }
.body--storefront .site-nav__links { min-width: 0; flex-wrap: nowrap; }
.body--storefront .site-nav__links > .nav-link,
.body--storefront .site-nav__links > .nav-menu,
.body--storefront .site-nav > .nav-tools { flex: 0 0 auto; }
@media (max-width: 84rem) {
  .body--storefront .site-nav { flex-wrap: wrap; }
  .body--storefront .site-nav__links {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: .22rem;
    padding: .55rem 0 .25rem;
  }
  .body--storefront .site-nav__links > .nav-link,
  .body--storefront .site-nav__links > .nav-menu,
  .body--storefront .site-nav__links > .nav-menu > summary { width: 100%; }
  .body--storefront .site-nav__links > .nav-link,
  .body--storefront .site-nav__links > .nav-menu > summary { justify-content: flex-start; }
  .body--storefront .site-nav > .nav-tools {
    width: 100%;
    justify-content: flex-start;
    margin: .35rem 0 0;
    padding-top: .55rem;
    border-top: 1px solid var(--border);
  }
  .body--storefront .nav-menu__panel,
  .body--storefront .user-menu__panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin: .18rem 0 .28rem 2.55rem;
    box-shadow: none;
  }
  .body--storefront .user-menu { width: 100%; }
  .body--storefront .user-menu__panel { margin-left: 0; }
}
@media (max-width: 40rem) {
  .account-page > .deposit-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .account-page > .deposit-tabs .deposit-tab { flex: 0 0 auto; min-width: 10.5rem; }
  .table-wrap table { min-width: 36rem; }
}
/* Broken remote or legacy upload images keep the card layout intact. The
   visual fallback is CSS only, so customers never see a browser broken-image
   glyph or raw alt text. */
.storefront-card__media.is-broken::after,
.vertical-product-card__media.is-broken::after,
.product-card__media.is-broken::after {
  content: '✦';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(2rem, 5vw, 4rem);
  text-shadow: 0 .25rem .5rem rgb(44 72 134 / 36%);
}
.vertical-product-card__media,
.product-card__media { position: relative; }
.storefront-card__media.is-broken,
.vertical-product-card__media.is-broken,
.product-card__media.is-broken {
  background: linear-gradient(135deg, #247bc1, #5362c8 58%, #a54f92);
}
.storefront-card__media.is-broken img,
.vertical-product-card__media.is-broken img,
.product-card__media.is-broken img { display: none; }.product-card.is-broken { position: relative; min-height: 10rem; background: linear-gradient(135deg, #247bc1, #5362c8 58%, #a54f92); }
.product-card.is-broken::after { content: '✦'; position: absolute; inset: 0 auto auto 0; width: 100%; height: 10rem; display: grid; place-items: center; color: rgb(255 255 255 / 88%); font-size: clamp(2rem, 5vw, 4rem); text-shadow: 0 .25rem .5rem rgb(44 72 134 / 36%); pointer-events: none; }
.product-card.is-broken > img { display: none; }
/* Keep the global header identical on storefront, account and article pages.
   The old base rules used a narrower 72rem canvas and allowed wrapping before
   the storefront rules were applied, which produced a second desktop row on
   non-home pages. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 0;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 .45rem 1.7rem rgb(35 77 122 / 9%);
  backdrop-filter: blur(16px);
}
html.dark .site-header { background: rgb(16 26 42 / 92%); }
.site-nav {
  width: calc(100% - 2rem);
  max-width: none;
  min-height: 5.35rem;
  flex-wrap: nowrap;
  gap: .7rem;
  padding-block: .7rem;
}
.site-nav__links {
  min-width: 0;
  flex-wrap: nowrap;
  gap: .2rem;
}
.site-nav__links > .nav-link,
.site-nav__links > .nav-menu,
.site-nav > .nav-tools { flex: 0 0 auto; }
.nav-menu__panel {
  left: 0;
  right: auto;
  max-width: min(24rem, calc(100vw - 1rem));
}

/* Collapse the complete header as one unit once the desktop canvas is too
   narrow. This breakpoint applies to every page so navigation never changes
   shape merely because the user left the homepage. */
@media (max-width: 72rem) {
  .site-nav { flex-wrap: wrap; }
  .site-nav__links {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: .22rem;
    padding: .55rem 0 .25rem;
  }
  .site-nav__links > .nav-link,
  .site-nav__links > .nav-menu,
  .site-nav__links > .nav-menu > summary { width: 100%; }
  .site-nav__links > .nav-link,
  .site-nav__links > .nav-menu > summary { justify-content: flex-start; }
  .site-nav > .nav-tools {
    width: 100%;
    justify-content: flex-start;
    margin: .35rem 0 0;
    padding-top: .55rem;
    border-top: 1px solid var(--border);
  }
  .nav-menu__panel,
  .user-menu__panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin: .18rem 0 .28rem 2.55rem;
    box-shadow: none;
  }
  .user-menu { width: 100%; }
  .user-menu__panel { margin-left: 0; }
}
/* Keep the medium desktop range consistent with account pages. The legacy
   storefront rule used to collapse only home navigation at 84rem. */
@media (min-width: 72.01rem) and (max-width: 84rem) {
  .body--storefront .site-nav { flex-wrap: nowrap; }
  .body--storefront .site-nav__links {
    display: flex;
    flex: 1 1 auto;
    width: auto;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
  }
  .body--storefront .site-nav__links > .nav-link,
  .body--storefront .site-nav__links > .nav-menu,
  .body--storefront .site-nav__links > .nav-menu > summary { width: auto; }
  .body--storefront .site-nav__links > .nav-link,
  .body--storefront .site-nav__links > .nav-menu > summary { justify-content: initial; }
  .body--storefront .site-nav > .nav-tools {
    width: auto;
    margin: .35rem 0 0;
    padding-top: 0;
    border-top: 0;
  }
  .body--storefront .nav-menu__panel,
  .body--storefront .user-menu__panel {
    position: absolute;
    width: auto;
    min-width: 14.5rem;
    margin: 0;
    box-shadow: 0 .9rem 2.2rem rgb(26 54 88 / 17%);
  }
  .body--storefront .user-menu { width: auto; }
  .body--storefront .user-menu__panel { margin-left: 0; }
}/* One navigation surface on every route, matching the original storefront. */
.site-header,
.body--storefront .site-header {
  padding: .75rem 0;
  background: var(--storefront-bg);
  box-shadow: none;
  backdrop-filter: none;
}
.site-nav,
.body--storefront .site-nav {
  min-height: 5.2rem;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: var(--surface);
  box-shadow: 0 .45rem 1.5rem rgb(35 77 122 / 8%);
}
html.dark .site-header,
html.dark .body--storefront .site-header { background: var(--storefront-bg); }
@media (max-width: 72rem) {
  .site-header,
  .body--storefront .site-header { padding: .5rem 0; }
  .site-nav,
  .body--storefront .site-nav { width: min(100% - 1rem, 48rem); }
}/* Source storefront category headings: one clean gradient title plus underline. */
.source-section-heading {
  display: flex;
  justify-content: center;
  padding: .45rem 0 1rem;
  border-bottom: 0;
}
.source-section-heading h2 {
  position: relative;
  margin: 0;
  padding-bottom: .75rem;
  color: #168af4;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -.03em;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(90deg, #168af4 0%, #7c3e92 52%, #e21d2d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.source-section-heading h2::after {
  content: '';
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 5.2rem;
  height: .2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #65c8ff, #168af4);
  transform: translateX(50%);
}.deposit-qr { width: min(15rem, 100%); max-height: 15rem; object-fit: contain; padding: .5rem; border: 4px solid #fff; border-radius: .8rem; background: #fff; box-shadow: 0 .5rem 1.2rem rgb(20 60 100 / 14%); }/* Auth readability and checkbox alignment. */
.auth-card { color: var(--text); }
.auth-card .page-header p, .auth-card .muted, .auth-card .help { color: #52627a; }
html.dark .auth-card .page-header p, html.dark .auth-card .muted, html.dark .auth-card .help { color: #b9c6da; }
.auth-card .checkbox, .login-remember { display: flex; align-items: center; justify-content: flex-start; gap: .55rem; color: var(--text); font-weight: 700; line-height: 1.25; }
.login-remember input[type="checkbox"] { flex: 0 0 1.1rem; width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; padding: 0; accent-color: #087fd0; }
.login-remember label { cursor: pointer; }
.auth-card .checkbox input[type="checkbox"] { width: 1.1rem; height: 1.1rem; min-width: 1.1rem; margin: 0; accent-color: var(--primary); }
.auth-card input, .auth-card select, .auth-card textarea { color: var(--text); background: var(--surface); }
.auth-card input::placeholder, .auth-card textarea::placeholder { color: #687991; opacity: 1; }
html.dark .auth-card input::placeholder, html.dark .auth-card textarea::placeholder { color: #aebbd0; }
.deposit-panel__hint, .deposit-bank-note, .deposit-panel p { color: #52627a; }
html.dark .deposit-panel__hint, html.dark .deposit-bank-note, html.dark .deposit-panel p { color: #b7c5da; }
.deposit-qr { display: block; margin: .4rem auto; }
/* Home deposit panel: stable size and readable tabs in both themes. */
.storefront-hero { align-items: start; }
.storefront-hero__visual, .storefront-deposit { height: 380px; min-height: 380px; max-height: 380px; min-width: 0; }
.storefront-hero__visual .hero-carousel, .storefront-hero__visual .hero-image-link { width: 100%; height: 100%; min-height: 0; max-height: 100%; }
.storefront-hero__visual img.storefront-hero__image { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; }
.storefront-card__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: none; }
.storefront-card:hover .storefront-card__media > img { transform: none; }
.storefront-deposit .deposit-tabs {
  flex: 0 0 3.3rem;
  min-height: 3.3rem;
  border: 0;
  border-radius: 0;
  background: linear-gradient(105deg, #0d8cf0, #0860ad);
}
.storefront-deposit .deposit-tab,
.storefront-deposit .deposit-tab.is-active { color: #fff; text-shadow: none; }
.storefront-deposit .deposit-tab { min-width: 0; font-weight: 800; background: #0872be; }
.storefront-deposit .deposit-tab.is-active { background: rgb(255 255 255 / 14%); }
.storefront-deposit .deposit-tab-panel { flex: 1 1 0; min-height: 0; max-height: calc(100% - 3.3rem); overflow: auto; }
.storefront-deposit .deposit-panel { padding: .85rem 1rem; gap: .35rem; }
.storefront-deposit .deposit-panel__hint { color: #43556d; }
.storefront-deposit img.deposit-qr { width: 200px; height: 200px; min-height: 0; max-width: 100%; max-height: 200px; object-fit: contain; padding: 0; margin: .1rem auto; }
.storefront-deposit [data-deposit-tab-panel="bank"] > .deposit-panel__icon { display: none; }
.storefront-deposit .deposit-bank-note { color: #43556d; }
html.dark .storefront-deposit .deposit-panel__hint,
html.dark .storefront-deposit .deposit-bank-note { color: #c5d4e8; }
@media (max-width: 62rem) {
  .storefront-deposit { height: 380px; min-height: 380px; max-height: 380px; }
  .storefront-hero__visual { height: 280px; min-height: 280px; max-height: 280px; }
}
/* Source parity footer: dark contact area and developer bar. */
.source-footer {
  display: block;
  width: 100%;
  margin-top: 2.5rem;
  color: #fff;
  background: #1b1a1a;
  /* Arial Narrow on Windows is missing several Vietnamese precomposed
     glyphs, which makes browsers mix fallback shapes in accented words. */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}
.source-footer__main {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.2rem 0 1.35rem;
}
.source-footer__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}
.source-footer__brand,
.source-footer__support {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.source-footer__logo-link { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; }
.source-footer__logo { display: block; width: auto; max-width: 170px; max-height: 61px; object-fit: contain; }
.source-footer__support h2 { margin: .25rem 0 .8rem; color: #fff; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.15; }
.source-footer__copy { max-width: 35rem; margin: .25rem 0; color: #fff !important; font-size: .93rem; font-weight: 650; line-height: 1.55; }
.source-footer__copy p { margin: .2rem 0; }
.source-footer__copy a { color: #fff !important; }
.source-footer__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem .7rem; margin-top: 1rem; }
.source-footer__contact { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: .38rem .75rem; border: 1px solid #9aa9bb; border-radius: .28rem; color: #fff !important; font-size: .8rem; font-weight: 750; text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.source-footer__contact:hover { border-color: #fff; background: rgb(255 255 255 / 10%); color: #fff; }
.source-footer__contact i { font-size: .85rem; }
.source-footer__bottom { border-top: 1px solid #263143; background: #000514; }
.source-footer__bottom-inner { display: flex; width: min(72rem, calc(100% - 2rem)); min-height: 4rem; margin-inline: auto; align-items: center; justify-content: space-between; gap: 1rem; color: #92a1b5; font-size: .82rem; }
.source-footer__bottom-inner p { margin: 0; }
.source-footer__bottom-inner a { color: #fff; font-weight: 800; text-decoration: none; }
.source-footer__bottom-inner span { color: #708097; }
.source-footer__bottom-inner b { margin-inline: .3rem; color: #708097; }
@media (max-width: 48rem) {
  .source-footer__main { width: min(100% - 1rem, 38rem); padding-top: 1.1rem; }
  .source-footer__columns { grid-template-columns: 1fr; gap: .75rem; }
  .source-footer__copy { font-size: .84rem; }
  .source-footer__bottom-inner { width: min(100% - 1rem, 38rem); min-height: 5rem; flex-direction: column; justify-content: center; padding: .8rem 0; text-align: center; }
}
/* Right panel follows the Laravel banner panel: a fixed tab bar, a scrollable
   body and a bounded QR. Colors are explicit so light mode stays readable. */
.storefront-deposit {
  box-sizing: border-box;
  height: 380px;
  min-height: 380px;
  max-height: 380px;
  min-width: 0;
  overflow: hidden;
}
.storefront-deposit .deposit-tabs {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 3.3rem;
  height: 3.3rem;
  min-height: 3.3rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: linear-gradient(105deg, #0d8cf0, #0860ad);
  color: #fff;
}
.storefront-deposit .deposit-tab {
  flex: 1 1 50%;
  min-width: 0;
  height: 3.3rem;
  padding: .55rem .3rem;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 1px rgb(0 35 88 / 25%);
  white-space: nowrap;
}
.storefront-deposit .deposit-tab.is-active {
  border-bottom-color: #fde047;
  background: rgb(255 255 255 / 10%);
  color: #fff;
}
.storefront-deposit .deposit-tab-panel {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 100%;
  height: calc(380px - 3.3rem);
  min-height: 0;
  max-height: calc(380px - 3.3rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: .7rem 1rem;
}
.storefront-deposit .deposit-tab-panel[hidden] { display: none !important; }
.storefront-deposit .deposit-panel__hint { max-width: 21rem; color: #475569; }
.storefront-deposit .deposit-panel__guest-icon { display: block; width: 3.25rem; height: 3.25rem; color: #cbd5e1; }
.storefront-deposit .deposit-panel__guest-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.storefront-deposit .deposit-cta--compact { display: inline-flex; width: auto; min-height: 2.45rem; align-items: center; padding: .45rem 1.2rem; color: #fff; }
.storefront-deposit .deposit-bank-title { margin: 0; color: #126cbd; font-size: 1rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.storefront-deposit img.deposit-qr {
  box-sizing: border-box;
  display: block;
  width: 200px;
  height: 200px;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 200px;
  margin: .25rem auto;
  padding: 0;
  border: 3px solid #fff;
  border-radius: .5rem;
  background: #fff;
  object-fit: contain;
}
.storefront-deposit .deposit-bank-note { max-width: 100%; overflow-wrap: anywhere; color: #475569; }
html.dark .storefront-deposit .deposit-panel__hint,
html.dark .storefront-deposit .deposit-bank-note { color: #cbd5e1; }
html.dark .storefront-deposit .deposit-bank-title { color: #7dc1ff; }
/* Final hard overrides: fixed deposit canvas, readable tabs and source-style footer. */
.storefront-deposit { height: 380px !important; min-height: 380px !important; max-height: 380px !important; overflow: hidden !important; }
.storefront-deposit .deposit-tabs { height: 3.3rem !important; min-height: 3.3rem !important; flex: 0 0 3.3rem !important; background: linear-gradient(105deg,#0d8cf0,#0860ad) !important; }
.storefront-deposit .deposit-tab { color: #fff !important; background: #0872be !important; opacity: 1 !important; }
.storefront-deposit .deposit-tab__icon { display: inline-flex; margin-right: .35rem; color: #ffd83d; font-size: 1.05rem; line-height: 1; }.storefront-deposit .deposit-tab.is-active { background: #168af4 !important; color: #fff !important; }
.storefront-deposit .deposit-tab-panel { height: calc(380px - 3.3rem) !important; max-height: calc(380px - 3.3rem) !important; overflow-x: hidden !important; overflow-y: auto !important; }
.storefront-deposit .deposit-qr { width: 200px !important; height: 200px !important; max-width: 200px !important; max-height: 200px !important; object-fit: contain !important; }
.source-footer { display: block !important; width: 100% !important; margin-top: 2.5rem !important; color: #fff !important; background: #1b1a1a !important; }
.source-footer__main { display: block !important; width: min(72rem,calc(100% - 2rem)) !important; margin: 0 auto !important; padding: 1.2rem 0 1.35rem !important; }
.source-footer__columns { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 2rem !important; }
.source-footer__brand,.source-footer__support { display:flex !important; flex-direction:column !important; align-items:center !important; text-align:center !important; }
.source-footer__contacts { display:flex !important; flex-wrap:wrap !important; justify-content:center !important; }
.source-footer__bottom { display:block !important; background:#000514 !important; }
.source-footer__bottom-inner { display:flex !important; width:min(72rem,calc(100% - 2rem)) !important; min-height:4rem !important; margin:0 auto !important; align-items:center !important; justify-content:space-between !important; color:#92a1b5 !important; }
@media(max-width:48rem){.storefront-deposit{height:360px !important;min-height:360px !important;max-height:360px !important}.source-footer__columns{grid-template-columns:1fr !important}.source-footer__bottom-inner{flex-direction:column !important;justify-content:center !important;padding:.8rem 0 !important}}
/* Laravel category-list-card parity: status text sits in the fixed card body. */
.storefront-card__status { display: flex; align-items: center; justify-content: center; gap: .32rem; min-height: 1.35rem; margin: .1rem 0 .12rem; color: #08a66b; font-size: .78rem; font-weight: 850; line-height: 1.2; text-align: center; }
.storefront-card__status-sep { color: #64748b; font-weight: 700; }
.storefront-card__status-value--sold { color: #173b6e; }
.storefront-card__status-value--stock { color: #e63946; }
.storefront-card__status--soldout { color: #e63946; }
.dark .storefront-card__status-value--sold { color: #a9ceff; }
.dark .storefront-card__status-value--stock, .dark .storefront-card__status--soldout { color: #ff8993; }
/* Source homepage canvas parity: the Laravel storefront keeps the hero row
   on a centered 80rem canvas even on very wide screens. The native bundle
   previously expanded to the full viewport, which made the banner and the
   deposit panel visibly wider than the original. */
.page-shell--storefront {
  width: min(80rem, calc(100% - 2rem)) !important;
  max-width: 80rem !important;
  margin-inline: auto !important;
}
.storefront-hero {
  width: 100%;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
}
.storefront-hero__visual,
.storefront-hero__visual .hero-carousel,
.storefront-hero__visual .hero-carousel__slide,
.storefront-hero__visual .hero-image-link,
.storefront-hero__visual img.storefront-hero__image {
  min-width: 0;
  max-width: 100%;
}
.storefront-hero__visual img.storefront-hero__image {
  object-fit: cover !important;
}
.storefront-hero__visual { min-width: 0; }
.hero-fallback > div { min-width: 0; max-width: 100%; }
.hero-fallback strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 62rem) {
  .page-shell--storefront { width: min(100% - 1rem, 48rem) !important; }
  .storefront-hero { grid-template-columns: minmax(0, 1fr); }
}
/* -------------------------------------------------------------------------
   Laravel layout parity (final responsive pass)

   Laravel's layout-boxed page-content uses the Tailwind container utility:
   max-width 1280px (80rem), with 15px padding (24px from md). Native had
   widened this canvas to 95rem and fixed a 400px hero, making the upload
   visibly wider than the original.
   ------------------------------------------------------------------------- */
/* Keep the 80rem cap on the page canvas only. Laravel's floating header is fluid and receives only the mx-4 outer gutter. */
.page-shell--storefront {
  width: min(80rem, 100%) !important;
  max-width: 80rem !important;
  margin-inline: auto !important;
  box-sizing: border-box;
}

.site-header .site-nav,
.body--storefront .site-nav {
  padding-inline: 15px;
}

.page-shell--storefront {
  padding-inline: 15px;
}

.storefront-hero {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: .75rem;
}

.storefront-hero__visual,
.storefront-deposit {
  height: 380px !important;
  min-height: 380px !important;
  max-height: 380px !important;
}

.storefront-hero__visual img.storefront-hero__image {
  min-height: 0;
  object-fit: fill !important;
}

/* The original banner contains only the uploaded artwork. */
.storefront-hero__caption { display: none !important; }

.storefront-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.storefront-card__media {
  height: 7rem;
  aspect-ratio: auto;
}

.storefront-card__media > img {
  object-fit: contain;
}

.storefront-card__body {
  padding: .75rem;
}

.storefront-card__body h3 {
  text-align: center;
}

.storefront-card__status {
  font-size: .7rem;
}

.storefront-card__action {
  width: 100%;
  justify-content: center;
  gap: .5rem;
  margin-top: auto;
  padding: .5rem .75rem;
  border-radius: .5rem;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  font-size: .75rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.storefront-card__action b { color: inherit; }

/* Match the Laravel storefront cards: artwork fills the fixed media box and
   the CTA gets a soft highlight that sweeps from left to right. */
.storefront-card__media > img {
  object-fit: cover !important;
  object-position: center !important;
}
.storefront-card__action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.storefront-card__action::before {
  position: absolute;
  z-index: 0;
  top: -80%;
  bottom: -80%;
  left: -35%;
  width: 2.5rem;
  content: '';
  background: linear-gradient(105deg, transparent 0%, rgb(255 255 255 / 8%) 35%, rgb(255 255 255 / 72%) 50%, rgb(255 255 255 / 8%) 65%, transparent 100%);
  transform: translateX(-6rem) skewX(-18deg);
  animation: storefront-card-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
.storefront-card__action > * { position: relative; z-index: 1; }
@keyframes storefront-card-shine {
  0%, 28% { transform: translateX(-6rem) skewX(-18deg); }
  68%, 100% { transform: translateX(22rem) skewX(-18deg); }
}
.storefront-card__status-value--sold { color: #08a66b !important; }
.dark .storefront-card__status-value--sold { color: #54d99a !important; }

/* Homepage notices use the same red warning copy and purple domain links as
   the Laravel theme. */
.home-notice {
  display: block;
  border-color: #168af4;
  border-radius: .65rem;
  background: #fff;
  box-shadow: none;
}
.home-notice__body {
  color: #ef4136;
  /* Keep Vietnamese diacritics on the same complete glyph set as the rest
     of the page. Arial Narrow/Roboto Condensed are not bundled and can make
     browsers mix fallback glyphs for ă, â, ê, ô, ơ and ư. */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  font-kerning: normal;
  line-height: 1.48;
}
.home-notice__body a {
  color: #8d3bb1;
  font-weight: 800;
}
.home-notice__body p { margin: 0; }
.home-marquee__domain {
  flex: 0 0 auto;
  padding: .2rem .45rem;
  border-radius: .25rem;
  background: #f7ddec;
  color: #e52f67;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .03em;
  white-space: nowrap;
}
.dark .home-notice {
  border-color: #328df4;
  background: var(--surface) !important;
  box-shadow: 0 .35rem 1rem rgb(0 0 0 / 22%);
}
html.dark .home-notice__body { color: #ff766c; }
html.dark .home-notice__body a { color: #d99af0; }
@media (prefers-reduced-motion: reduce) {
  .storefront-card__action::before { animation: none; }
}

.source-section-heading h2 {
  font-size: 1.25rem;
}

@media (min-width: 48rem) {
  .site-header .site-nav,
  .body--storefront .site-nav,
  .page-shell--storefront {
    padding-inline: 24px;
  }

  .storefront-card__media { height: 11rem; }
  .storefront-card__body { padding: 1rem; }
  .storefront-card__status { font-size: .8rem; }
  .source-section-heading h2 { font-size: 1.875rem; }
}

@media (min-width: 64rem) {
  .storefront-card__media { height: 12rem; }
}

@media (max-width: 63.99rem) {
  /* Laravel lg:grid-cols-3 starts at 1024px. */
  .storefront-hero { grid-template-columns: 1fr; }
  .storefront-hero__visual {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9;
  }
  .storefront-hero__visual .hero-carousel,
  .storefront-hero__visual .hero-carousel__slide,
  .storefront-hero__visual .hero-image-link {
    min-height: 0;
  }
  .storefront-hero__visual img.storefront-hero__image {
    object-fit: contain !important;
  }
  .storefront-deposit {
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
  }
  .storefront-deposit .deposit-tab-panel {
    height: calc(360px - 3.3rem) !important;
    max-height: calc(360px - 3.3rem) !important;
    overflow-y: auto !important;
  }
  .storefront-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 47.99rem) {
  .page-shell--storefront {
    width: 100% !important;
    padding-inline: 15px;
  }
  .storefront-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Source Laravel keeps the developer bar desktop-only. */
  .source-footer__bottom { display: none !important; }
}

@media (max-width: 24rem) {
  .storefront-card-grid { gap: .5rem; }
  .storefront-card__body { padding: .65rem .55rem .7rem; }
}

/* Source Laravel remains two columns even at the smallest mobile width. */
@media (max-width: 24rem) {
  .storefront-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }
}

/* Source category-list applies mb-12 (3rem) between category wrappers. */
.storefront-section {
  row-gap: 3rem;
}

/* Laravel layout-boxed applies the same centered 1280px container to regular
   pages as it does to the storefront. Keep narrow auth/error pages opt-in. */
.page-shell:not(.page-shell--narrow) {
  width: min(80rem, 100%);
  max-width: 80rem;
  padding-inline: 15px;
  box-sizing: border-box;
}

@media (min-width: 48rem) {
  .page-shell:not(.page-shell--narrow) { padding-inline: 24px; }
}

/* Match Laravel's xl horizontal-menu breakpoint (1280px) on every route.
   The earlier home-only 72/84rem rules could leave the header in a different
   shape on catalog/account pages at tablet-desktop widths. */
@media (max-width: 79.99rem) {
  .site-nav,
  .body--storefront .site-nav { flex-wrap: wrap; }
  .site-nav__links,
  .body--storefront .site-nav__links {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: .22rem;
    padding: .55rem 0 .25rem;
  }
  .site-nav__links > .nav-link,
  .site-nav__links > .nav-menu,
  .site-nav__links > .nav-menu > summary,
  .body--storefront .site-nav__links > .nav-link,
  .body--storefront .site-nav__links > .nav-menu,
  .body--storefront .site-nav__links > .nav-menu > summary { width: 100%; }
  .site-nav__links > .nav-link,
  .site-nav__links > .nav-menu > summary { justify-content: flex-start; }
  .site-nav > .nav-tools {
    width: 100%;
    justify-content: flex-start;
    margin: .35rem 0 0;
    padding-top: .55rem;
    border-top: 1px solid var(--border);
  }
  .nav-menu__panel,
  .user-menu__panel,
  .body--storefront .nav-menu__panel,
  .body--storefront .user-menu__panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin: .18rem 0 .28rem 2.55rem;
    box-shadow: none;
  }
  .user-menu,
  .body--storefront .user-menu { width: 100%; }
  .user-menu__panel,
  .body--storefront .user-menu__panel { margin-left: 0; }
}

@media (min-width: 80rem) {
  .site-nav,
  .body--storefront .site-nav {
    flex-wrap: nowrap;
  }
  .site-nav__links,
  .body--storefront .site-nav__links {
    display: flex;
    flex: 1 1 auto;
    width: auto;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
  }
  .site-nav__links > .nav-link,
  .site-nav__links > .nav-menu,
  .site-nav__links > .nav-menu > summary,
  .body--storefront .site-nav__links > .nav-link,
  .body--storefront .site-nav__links > .nav-menu,
  .body--storefront .site-nav__links > .nav-menu > summary { width: auto; }
  .site-nav__links > .nav-link,
  .site-nav__links > .nav-menu > summary { justify-content: initial; }
  .site-nav > .nav-tools {
    width: auto;
    margin: .35rem 0 0;
    padding-top: 0;
    border-top: 0;
  }
  .nav-menu__panel,
  .user-menu__panel,
  .body--storefront .nav-menu__panel,
  .body--storefront .user-menu__panel {
    position: absolute;
    width: auto;
    min-width: 14.5rem;
    margin: 0;
    box-shadow: 0 .9rem 2.2rem rgb(26 54 88 / 17%);
  }
  .user-menu,
  .body--storefront .user-menu { width: auto; }
  .user-menu__panel,
  .body--storefront .user-menu__panel { margin-left: 0; }
}

/* Match Laravel's responsive sidebar trigger: below xl the compact header
   exposes a hamburger and keeps the full navigation collapsed until opened. */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: .4rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.nav-toggle:hover {
  border-color: #8fc8ff;
  background: #e8f3ff;
  color: var(--storefront-blue-dark);
}
.nav-toggle:active { transform: scale(.96); }
.nav-toggle:focus-visible { outline: 3px solid #7abaff; outline-offset: 3px; }
.dark .nav-toggle { background: #172a43; color: #dce8f9; }
.dark .nav-toggle:hover { background: #203c60; color: #9acfff; }
.nav-toggle__icon { display: grid; width: 1.25rem; gap: .25rem; }
.nav-toggle__icon span { display: block; height: 2px; border-radius: 999px; background: currentColor; }

@media (max-width: 79.99rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav__links,
  .body--storefront .site-nav__links { order: 2; display: none; }
  .site-nav__links[data-open="true"],
  .body--storefront .site-nav__links[data-open="true"] { display: flex; }
}

@media (min-width: 80rem) {
  .nav-toggle { display: none; }
}

/* The account/theme controls stay in the compact header while the links
   drawer is closed, matching Laravel's mobile header. */
@media (max-width: 79.99rem) {
  .site-nav > .nav-tools,
  .body--storefront .site-nav > .nav-tools {
    order: 1;
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin: 0 0 0 auto;
    padding-top: 0;
    border-top: 0;
  }
}
/* Source parity: horizontal navigation is fluid across the viewport.
   Laravel boxes only page content; its floating header keeps a 1rem gutter.
   Keep this independent from the 80rem page-content canvas. */
.site-header {
  width: 100%;
  max-width: none;
}
.site-header .site-nav,
.body--storefront .site-nav {
  width: calc(100% - 2rem) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

/* Carot purchase form: mirror the rounded, compact account cards while
   keeping the first UI slice explicit about its read-only API-preview state. */
.nav-link__icon--carot { background: linear-gradient(145deg, #ffb347, #ef6c45); }
.carot-page { gap: 1.15rem; }
.carot-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid #2b83cf;
  border-radius: 1rem;
  background: linear-gradient(118deg, #116dcc, #0b9bd7 58%, #25c3b1);
  color: #fff;
  box-shadow: 0 .7rem 1.8rem rgb(15 102 183 / 18%);
}
.carot-hero h1 { margin: .15rem 0 .35rem; color: #fff; font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.18; }
.carot-hero p { max-width: 48rem; margin: 0; color: rgb(255 255 255 / 88%); }
.carot-eyebrow { margin: 0 0 .25rem; color: #1477c9; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.carot-hero .carot-eyebrow { color: rgb(255 255 255 / 78%); }
.carot-hero__meta { display: grid; justify-items: end; gap: .55rem; flex: 0 0 auto; }
.carot-status { display: inline-flex; align-items: center; min-height: 1.8rem; padding: .24rem .68rem; border: 1px solid rgb(255 255 255 / 52%); border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 800; }
.carot-status--preview { background: rgb(10 54 112 / 23%); }
.carot-wallet { color: rgb(255 255 255 / 88%); font-size: .88rem; }
.carot-wallet strong { color: #fff; }
.carot-api-notice { margin: 0; }
.carot-card, .carot-history { display: grid; gap: 1.15rem; }
.carot-card__header, .carot-history__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.carot-card__header h2, .carot-history__header h2 { margin: 0; }
.carot-card__step { display: inline-flex; align-items: center; justify-content: center; width: 2.45rem; height: 2.45rem; border-radius: .8rem; background: #eaf4ff; color: #1477c9; font-size: .82rem; font-weight: 850; }
.dark .carot-card__step { background: #203b5d; color: #9fd0ff; }
.carot-form { display: grid; gap: 1.15rem; }
.carot-card,
.carot-history,
.carot-api-notice,
.carot-page > .notice { width: min(100%, 70rem); margin-inline: auto; }
.carot-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.15rem; align-items: start; }
.carot-form-grid__account { grid-column: 1 / -1; }
.carot-form .field { min-width: 0; grid-template-rows: minmax(1.55em, auto) 3.375rem minmax(1.45em, auto); }
.carot-form .field label { align-self: end; }
.carot-form .field input,
.carot-form .field select { height: 3.375rem; min-height: 3.375rem; color: var(--text); background: var(--surface); }
.carot-form .field input::placeholder { color: var(--muted); opacity: 1; }
.carot-form .field select:disabled { color: var(--muted); opacity: 1; background: var(--surface-muted); cursor: not-allowed; }
.carot-form .field small { min-height: 1.45em; line-height: 1.35; }
.carot-form-grid__account { grid-template-rows: minmax(1.55em, auto) 3.375rem minmax(1.45em, auto); }
.carot-form-grid__account small { white-space: normal; }
.carot-summary { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .2rem .8rem; padding: .9rem 1rem; border: 1px solid #b9d9f4; border-radius: .7rem; background: #f1f8ff; }
.dark .carot-summary { border-color: #345a82; background: #172b45; }
.carot-summary__label { color: var(--muted); font-size: .9rem; font-weight: 700; }
.carot-summary strong { justify-self: end; color: #0b76ca; font-size: 1.25rem; }
.dark .carot-summary strong { color: #9fd0ff; }
.carot-summary__breakdown { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
.carot-submit { width: 100%; min-height: 3.05rem; border-color: #0b85d7; background: linear-gradient(105deg, #0a86dc, #6b50d9); box-shadow: 0 .45rem 1rem rgb(39 106 202 / 20%); }
.carot-submit:hover { border-color: #086fb5; background: linear-gradient(105deg, #0879c9, #5b43c1); }
.carot-form-message { margin: 0; padding: .72rem .85rem; border-left: .25rem solid var(--warning); border-radius: .35rem; background: color-mix(in srgb, var(--warning) 8%, var(--surface)); }
.carot-history__header .carot-eyebrow { margin-bottom: .15rem; }
.carot-empty { display: grid; justify-items: center; gap: .4rem; padding: clamp(1.7rem, 5vw, 3rem) 1rem; border: 1px dashed var(--border); border-radius: .8rem; text-align: center; }
.carot-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 3.7rem; height: 3.7rem; border-radius: 1.15rem; background: #eaf4ff; color: #2a8ed4; font-size: 2.45rem; line-height: 1; }
.dark .carot-empty__icon { background: #203b5d; color: #9fd0ff; }
.carot-empty h3 { margin: .35rem 0 0; font-size: 1.08rem; }
.carot-empty p { margin: 0 0 .55rem; color: var(--muted); }
@media (max-width: 48rem) {
  .carot-hero { align-items: flex-start; flex-direction: column; }
  .carot-hero__meta { justify-items: start; }
  .carot-form-grid { grid-template-columns: 1fr; }
  .carot-form-grid__account { grid-column: auto; }
  .carot-form .field,
  .carot-form-grid__account { grid-template-rows: minmax(1.55em, auto) 3.375rem minmax(1.45em, auto); }
  .carot-summary { grid-template-columns: 1fr auto; }
}
/* Compact catalogue filters: keep the toolbar to one row on desktop and two on small screens. */
.storefront-catalog-tools {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(15rem, 2fr) repeat(5, minmax(6rem, 1fr)) !important;
  align-items: end !important;
  gap: .5rem !important;
  width: 100% !important;
}

.storefront-catalog-tools__search {
  grid-column: 1 / 2 !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
}

.storefront-catalog-tools__filters {
  grid-column: 2 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: end !important;
  gap: .5rem !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.storefront-catalog-tools__search > *,
.storefront-catalog-tools__filters > * {
  min-width: 0 !important;
  margin: 0 !important;
}

.storefront-catalog-tools input,
.storefront-catalog-tools select,
.storefront-catalog-tools button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 2.45rem !important;
  min-height: 2.45rem !important;
  padding: .35rem .65rem !important;
  font-size: .88rem !important;
}

.storefront-catalog-tools label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.storefront-catalog-tools__status {
  position: absolute !important;
  top: calc(100% + .35rem) !important;
  left: 0 !important;
  right: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
}

@media (max-width: 48rem) {
  .storefront-catalog-tools {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 2.75rem !important;
    gap: .35rem !important;
  }

  .storefront-catalog-tools__search {
    grid-column: 1 / 3 !important;
  }

  .storefront-catalog-tools__filters {
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: .35rem !important;
  }

  .storefront-catalog-tools input,
  .storefront-catalog-tools select,
  .storefront-catalog-tools button {
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    padding: .3rem .45rem !important;
    font-size: .78rem !important;
  }
}

@media (max-width: 22rem) {
  .storefront-catalog-tools__filters {
    gap: .25rem !important;
  }

  .storefront-catalog-tools input,
  .storefront-catalog-tools select,
  .storefront-catalog-tools button {
    font-size: .72rem !important;
    padding-left: .3rem !important;
    padding-right: .3rem !important;
  }
}

@media (max-width: 30rem) {
  .catalog-catalog-tools .storefront-catalog-tools__form {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .catalog-catalog-tools .storefront-catalog-tools__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.storefront-catalog-tools__search {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.storefront-catalog-tools__search > label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.storefront-catalog-tools__filters label {
  position: relative !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  border: 0 !important;
  font-size: 0 !important;
}

.storefront-catalog-tools__filters label select,
.storefront-catalog-tools__filters label input {
  display: block !important;
}

/* On phones the five filter controls share the second visual row with the
   search field: three selects occupy row two, while the free-text field and
   reset action stay beside search in row one. */
@media (max-width: 48rem) {
  .storefront-catalog-tools {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
  }

  .storefront-catalog-tools__search {
    grid-column: 1 / 4 !important;
    grid-row: 1 !important;
  }

  .storefront-catalog-tools__filters {
    display: contents !important;
  }

  .storefront-catalog-tools__filters > label:nth-child(1) {
    grid-column: 1 / 3 !important;
    grid-row: 2 !important;
  }

  .storefront-catalog-tools__filters > label:nth-child(2) {
    grid-column: 3 / 5 !important;
    grid-row: 2 !important;
  }

  .storefront-catalog-tools__filters > label:nth-child(3) {
    grid-column: 5 / 7 !important;
    grid-row: 2 !important;
  }

  .storefront-catalog-tools__filters > label:nth-child(4) {
    grid-column: 4 / 6 !important;
    grid-row: 1 !important;
  }

  .storefront-catalog-tools__filters > .storefront-catalog-tools__reset {
    grid-column: 6 / 7 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding-inline: 0 !important;
    font-size: 0 !important;
  }

  .storefront-catalog-tools__filters > .storefront-catalog-tools__reset::before {
    content: '↺';
    font-size: 1.1rem;
    line-height: 1;
  }
}


/* Per-group filters match the homepage controls while keeping a normal GET form. */
.catalog-catalog-tools { display:block !important; padding:.7rem !important; }
.catalog-catalog-tools .storefront-catalog-tools__form { display:grid !important; grid-template-columns:minmax(14rem,2fr) minmax(22rem,3fr) auto !important; width:100% !important; max-width:none !important; min-width:0 !important; align-items:end !important; gap:.5rem !important; margin:0 !important; }
.catalog-catalog-tools .storefront-catalog-tools__search, .catalog-catalog-tools .storefront-catalog-tools__filters { grid-column:auto !important; display:grid !important; grid-template-columns:minmax(0,1fr) !important; min-width:0 !important; }
.catalog-catalog-tools .storefront-catalog-tools__filters { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:.5rem !important; }
.catalog-catalog-tools .storefront-catalog-tools__filters label { position:relative !important; display:block !important; width:auto !important; height:auto !important; padding:0 !important; margin:0 !important; overflow:visible !important; clip:auto !important; white-space:normal !important; font-size:0 !important; }
.catalog-catalog-tools .storefront-catalog-tools__filters label input, .catalog-catalog-tools .storefront-catalog-tools__filters label select { display:block !important; }
.catalog-catalog-tools .storefront-catalog-tools__actions { display:flex !important; align-items:end !important; gap:.35rem !important; }
.catalog-catalog-tools .storefront-catalog-tools__actions .button { width:auto !important; white-space:nowrap !important; }
.catalog-catalog-tools .catalog-result-count { display:block !important; margin-top:.4rem !important; font-size:.78rem !important; }
.catalog-catalog-tools .storefront-catalog-tools__status { top:calc(100% + .1rem) !important; left:.7rem !important; right:auto !important; }
@media (max-width:62rem) { .catalog-catalog-tools .storefront-catalog-tools__form { grid-template-columns:minmax(12rem,1.5fr) minmax(18rem,2.5fr) auto !important; } }
@media (max-width:48rem) {
 .catalog-catalog-tools .storefront-catalog-tools__form { grid-template-columns:minmax(0,1fr) auto !important; gap:.35rem !important; }
 .catalog-catalog-tools .storefront-catalog-tools__search { grid-column:1 / 2 !important; grid-row:1 !important; }
 .catalog-catalog-tools .storefront-catalog-tools__actions { grid-column:2 / 3 !important; grid-row:1 !important; }
 .catalog-catalog-tools .storefront-catalog-tools__filters { grid-column:1 / -1 !important; grid-row:2 !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:.35rem !important; }
 .catalog-catalog-tools .storefront-catalog-tools__filters > label:nth-child(n) { grid-column:auto !important; grid-row:auto !important; }
 .catalog-catalog-tools .storefront-catalog-tools__actions .button { padding-inline:.45rem !important; font-size:.76rem !important; }
}
@media (max-width:30rem) { .catalog-catalog-tools .storefront-catalog-tools__filters { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
.catalog-vertical-tools .storefront-catalog-tools__form { grid-template-columns:minmax(16rem,1fr) auto !important; }
@media (max-width:48rem) { .catalog-vertical-tools .storefront-catalog-tools__form { grid-template-columns:minmax(0,1fr) auto !important; } }

/* Compact account cards match the Laravel account index: the thumbnail is
   the visual lead, metadata is shown as short two-column pills, and price
   and detail stay on one compact action row.  These rules are scoped to
   account/account-v2 cards so item and service cards retain their richer
   descriptions and purchase actions. */
.catalog-product-card--account {
  display: flex;
  min-width: 0;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #1689ff;
  border-radius: .75rem;
  background: var(--surface);
  box-shadow: 0 .2rem .7rem rgb(28 104 178 / 12%);
}
.catalog-product-card--account .catalog-product-card__media {
  position: relative;
  display: block;
  min-height: 10rem;
  overflow: hidden;
  background: linear-gradient(135deg, #d8f2ff, #dedbff 68%, #ffe4e0);
}
.catalog-product-card--account .catalog-product-card__image {
  display: block;
  width: 100%;
  height: 10rem;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}
.catalog-product-card__placeholder {
  display: block;
  width: 100%;
  height: 10rem;
  background: linear-gradient(135deg, #ccecff, #dad9ff 68%, #ffe0db);
}
.catalog-product-card__ribbon {
  position: absolute;
  top: .4rem;
  right: -.2rem;
  max-width: 78%;
  overflow: hidden;
  padding: .25rem .55rem .28rem .7rem;
  border-radius: .25rem 0 0 .25rem;
  background: #ed2c95;
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-product-card--account .product-card__body {
  gap: .5rem;
  padding: .65rem .7rem .7rem;
}
.catalog-product-card__badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  min-width: 0;
}
.catalog-product-card__badge {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .28rem;
  overflow: hidden;
  padding: .32rem .45rem;
  border-radius: .35rem;
  color: #fff;
  font-size: .77rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-product-card__badge-mark {
  display: inline-grid;
  width: .95rem;
  height: .95rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: #7b1fe5;
  font-size: .72rem;
  font-weight: 950;
}
.catalog-product-card__badge--server { background: #8a0ff0; }
.catalog-product-card__badge--planet { background: #bd0040; }
.catalog-product-card__badge--item { background: #f2941c; }
.catalog-product-card__badge--other,
.catalog-product-card__badge--highlight { background: #2e477f; }
.catalog-product-card__footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  width: 100%;
  margin-top: auto;
}
.catalog-product-card__price {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .35rem;
  padding: .48rem .55rem;
  border: 1px dashed #c8d1dc;
  border-radius: .45rem;
  color: var(--text);
  font-size: .92rem;
  font-weight: 850;
  white-space: nowrap;
}
.catalog-product-card__price-icon,
.catalog-product-card__detail-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border-radius: .2rem;
  background: currentColor;
  opacity: .9;
}
.catalog-product-card__price-icon {
  position: relative;
  border-radius: .12rem;
}
.catalog-product-card__price-icon::after {
  position: absolute;
  inset: .28rem .14rem auto;
  height: .12rem;
  background: var(--surface);
  box-shadow: 0 .25rem 0 var(--surface);
  content: '';
}
.catalog-product-card__detail {
  display: inline-flex;
  min-width: 7.4rem;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .53rem .7rem;
  border: 0;
  border-radius: .4rem;
  background: #0d91ef;
  color: #fff;
  font-size: .84rem;
  font-weight: 850;
  text-decoration: none;
}
.catalog-product-card__detail:hover,
.catalog-product-card__detail:focus-visible { background: #087bd0; color: #fff; }
.catalog-product-card__detail-icon {
  position: relative;
  width: 1rem;
  height: .68rem;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 .16rem .16rem;
  background: transparent;
}
.catalog-product-card__detail-icon::before {
  position: absolute;
  top: -.28rem;
  left: -.25rem;
  width: .35rem;
  border-top: 2px solid currentColor;
  content: '';
}
.catalog-product-card__detail-icon::after {
  position: absolute;
  bottom: -.32rem;
  left: .05rem;
  width: .18rem;
  height: .18rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: .55rem 0 0 currentColor;
  content: '';
}
html.dark .catalog-product-card--account { border-color: #2f99f1; background: #16263b; }
html.dark .catalog-product-card__price { border-color: #3c5774; color: #e6edf7; }
html.dark .catalog-product-card__price-icon::after { background: #16263b; box-shadow: 0 .25rem 0 #16263b; }
@media (min-width: 70rem) {
  .catalog-product-grid--account { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 46rem) {
  .catalog-product-card--account .catalog-product-card__image,
  .catalog-product-card__placeholder,
  .catalog-product-card--account .catalog-product-card__media { height: 8rem; min-height: 8rem; }
  .catalog-product-card__badge { font-size: .72rem; }
  .catalog-product-card__price { font-size: .82rem; }
  .catalog-product-card__detail { min-width: 6rem; padding-inline: .5rem; }
}

/* Faceted account search: keep every control on one desktop row.  The
   previous nested grid let the search field and filters wrap independently,
   which made the toolbar look like three stacked forms at wide widths. */
.catalog-catalog-tools--faceted .storefront-catalog-tools__form {
  display: grid !important;
  grid-template-columns: minmax(16rem, 2.25fr) repeat(4, minmax(7rem, 1fr)) auto !important;
  align-items: end !important;
  gap: .5rem !important;
  width: 100% !important;
}
.catalog-catalog-tools--faceted .storefront-catalog-tools__filters {
  display: contents !important;
}
.catalog-catalog-tools--faceted .storefront-catalog-tools__filters > label {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  font-size: 0 !important;
  white-space: normal !important;
}
.catalog-catalog-tools--faceted .storefront-catalog-tools__actions {
  display: flex !important;
  align-items: end !important;
  gap: .35rem !important;
  min-width: max-content !important;
}
.catalog-catalog-tools--faceted .storefront-catalog-tools__actions .button {
  width: auto !important;
  white-space: nowrap !important;
}
@media (max-width: 48rem) {
  .catalog-catalog-tools--faceted .storefront-catalog-tools__form {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: .35rem !important;
  }
  .catalog-catalog-tools--faceted .storefront-catalog-tools__search {
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
  }
  .catalog-catalog-tools--faceted .storefront-catalog-tools__filters {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: .35rem !important;
  }
  .catalog-catalog-tools--faceted .storefront-catalog-tools__actions {
    grid-column: 2 / 3 !important;
    grid-row: 1 !important;
  }
  .catalog-catalog-tools--faceted .storefront-catalog-tools__actions .button {
    min-width: 0 !important;
    padding-inline: .45rem !important;
    font-size: .76rem !important;
  }
}

/* Final fallback for cached/older catalog markup: account group forms also
   receive the one-row grid even when the faceted modifier class is absent. */
.catalog-catalog-tools:not(.catalog-vertical-tools) .storefront-catalog-tools__form {
  display: grid !important;
  grid-template-columns: minmax(16rem, 2.25fr) repeat(4, minmax(7rem, 1fr)) auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  align-items: end !important;
  gap: .5rem !important;
}
.catalog-catalog-tools:not(.catalog-vertical-tools) .storefront-catalog-tools__filters {
  display: contents !important;
}
.catalog-catalog-tools:not(.catalog-vertical-tools) .storefront-catalog-tools__filters > label {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  font-size: 0 !important;
}
@media (max-width: 48rem) {
  .catalog-catalog-tools:not(.catalog-vertical-tools) .storefront-catalog-tools__form {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: .35rem !important;
  }
  .catalog-catalog-tools:not(.catalog-vertical-tools) .storefront-catalog-tools__search {
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
  }
  .catalog-catalog-tools:not(.catalog-vertical-tools) .storefront-catalog-tools__filters {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: .35rem !important;
  }
  .catalog-catalog-tools:not(.catalog-vertical-tools) .storefront-catalog-tools__actions {
    grid-column: 2 / 3 !important;
    grid-row: 1 !important;
  }
}
