/* ==========================================================================
   JozMC — part 2 of 2. Loads after jzstore.css.
   ========================================================================== */

/* ---------------- content panels ---------------- */

.store-products.jz-products {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 22px;
}

.jz-panel {
  padding: 26px 28px;
  border: 1px solid var(--jz-edge);
  border-radius: var(--jz-r-lg);
  background: var(--jz-panel);
}

.jz-intro-title {
  margin: 0 0 12px;
  font-family: var(--jz-display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .04em;
  background: var(--jz-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jz-intro-text { color: var(--jz-dim); font-size: 15px; }
.jz-intro-text strong { color: var(--jz-ink); font-weight: 600; }
.jz-intro-text :first-child { margin-top: 0; }
.jz-intro-text :last-child { margin-bottom: 0; }

.jz-panel-title {
  margin: 0 0 20px;
  font-family: var(--jz-display);
  font-size: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--jz-ink);
}

.jz-empty { text-align: center; color: var(--jz-dim); }

/* ---------------- package cards ---------------- */

.store-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.store-products-list { display: grid; gap: 12px; }

.store-product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  border: 1px solid var(--jz-edge);
  border-radius: var(--jz-r);
  background: var(--jz-panel-2);
  box-shadow: none;
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.store-product:hover {
  transform: translateY(-4px);
  border-color: var(--jz-edge-hi);
  box-shadow: 0 24px 46px -26px rgba(123,63,242,.9);
}

.store-product .image-link {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(10,7,20,.5);
  overflow: hidden;
}
.store-product .image-link .image {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform .25s ease;
}
.store-product:hover .image-link .image { transform: scale(1.07); }
.store-product .image-default { width: 60%; height: 60%; opacity: .2; }

.store-product .product-title {
  margin: 0 0 12px;
  font-family: var(--jz-display);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: .02em;
  text-align: center;
}
.store-product .product-title a { color: var(--jz-ink); }
.store-product .product-title a:hover { color: var(--jz-blue); }

.store-product .countdown {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(87,227,184,.35);
  background: rgba(87,227,184,.14);
  color: var(--jz-mint);
  font-size: 10px;
}

/* bonus pill — sits on top of the artwork, TechMines style */
.jz-bonus {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 5px 14px;
  border-radius: 999px;
  border: 0;
  background: var(--jz-grad-btn);
  color: #fff;
  font-family: var(--jz-display);
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(47,134,255,.9);
}
.jz-card .image-link { margin-top: 18px; }

/* discounted price: old struck through, new beside it, both in the button */

.jz-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.jz-old {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.jz-new { font-size: 16px; }

.jz-off {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,182,72,.45);
  background: rgba(255,182,72,.16);
  color: var(--jz-gold);
  font-family: var(--jz-display);
  font-size: 10px;
  letter-spacing: .03em;
}

.jz-card.is-discounted { border-color: rgba(255,182,72,.34); }
.jz-card.is-discounted:hover { border-color: rgba(255,182,72,.6); }

/* a discount badge and a bonus pill on the same card would collide */
.jz-card.is-discounted .jz-bonus { left: auto; right: 10px; transform: none; }

.jz-price {
  display: block;
  margin-top: auto;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--jz-grad-btn);
  color: #fff;
  font-family: var(--jz-display);
  font-size: 16px;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.3);
  transition: filter .18s, transform .18s;
}
.jz-price:hover { filter: brightness(1.14); transform: translateY(-1px); color: #fff; }
.jz-price.is-off {
  background: var(--jz-panel-3);
  color: var(--jz-dim-2);
  box-shadow: inset 0 0 0 1px var(--jz-edge);
  cursor: not-allowed;
}
.jz-price .price-label, .jz-price .label { display: none; }

/* ---------------- buttons ---------------- */

.btn-primary {
  border: 0;
  border-radius: 9px;
  padding: 11px 18px;
  background: var(--jz-grad-btn);
  color: #fff;
  font-family: var(--jz-display);
  font-size: 15px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.3);
  transition: filter .18s, transform .18s;
}
.btn-primary:hover { filter: brightness(1.14); transform: translateY(-1px); color: #fff; }

.btn-secondary {
  border: 1px solid var(--jz-edge-hi);
  border-radius: 9px;
  padding: 10px 18px;
  background: var(--jz-panel-2);
  color: var(--jz-ink);
  font-family: var(--jz-display);
  font-size: 15px;
}
.btn-secondary:hover { border-color: var(--jz-blue); color: var(--jz-ink); }

.btn-tertiary {
  border: 1px solid var(--jz-edge);
  border-radius: 8px;
  background: var(--jz-panel-2);
  color: var(--jz-dim);
  font-family: var(--jz-display);
}
.btn-tertiary:hover { color: var(--jz-ink); border-color: var(--jz-edge-hi); }

.quantity-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--jz-edge);
  border-radius: 9px;
  background: var(--jz-bg-2);
}
.quantity-field .quantity {
  width: 46px;
  border: 0;
  background: transparent;
  color: var(--jz-ink);
  font-family: var(--jz-display);
  text-align: center;
}
.quantity-field .open-basket {
  flex: 1;
  border: 0;
  background: none;
  color: var(--jz-dim);
  font-family: var(--jz-display);
  font-size: 13px;
  cursor: pointer;
}

/* ---------------- package page & basket ---------------- */

.store-product-full { padding: 30px; border-radius: var(--jz-r-lg); background: var(--jz-panel); }
.store-product-full .product-title { font-size: clamp(22px, 4vw, 32px); }
.store-product-full .descr { color: var(--jz-dim); }
.store-product-full .descr h1,
.store-product-full .descr h2,
.store-product-full .descr h3 { font-family: var(--jz-display); color: var(--jz-ink); }
.product-actions .price { font-family: var(--jz-display); color: var(--jz-ink); }

.basket {
  border: 1px solid var(--jz-edge-hi);
  border-radius: var(--jz-r-lg);
  background: var(--jz-panel);
  color: var(--jz-ink);
}
.basket-header, .basket-second-header, .basket-checkout { border-color: var(--jz-edge); }
.basket-title, .basket-checkout h3, .basket .total { font-family: var(--jz-display); }
.basket-item { border-bottom: 1px solid var(--jz-edge); }
.basket-item .title a { color: var(--jz-ink); }
.basket-item .options { color: var(--jz-dim); }

/* ---------------- footer ---------------- */

.site-footer.jz-foot {
  border-top: 1px solid var(--jz-edge);
  background: var(--jz-bg-2);
  padding: 40px 24px 48px;
}
.jz-foot-in { max-width: var(--jz-shell); margin: 0 auto; text-align: center; }

.jz-foot-brand {
  font-family: var(--jz-display);
  font-size: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--jz-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jz-foot-note { margin: 6px 0 0; color: var(--jz-dim-2); font-size: 14px; }

.jz-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 20px;
}
.jz-foot-links button, .jz-foot-links a {
  padding: 0;
  border: 0;
  background: none;
  color: var(--jz-dim);
  font-family: var(--jz-display);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.jz-foot-links button:hover, .jz-foot-links a:hover { color: var(--jz-blue); }

.site-footer .we-accept {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  opacity: .45;
}
.site-footer .we-accept img { height: 20px; width: auto; }
.site-footer .copyright {
  max-width: 660px;
  margin: 18px auto 0;
  color: var(--jz-dim-2);
  font-size: 12.5px;
}

/* ---------------- modals ---------------- */

.jz-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6,4,14,.8);
  backdrop-filter: blur(5px);
  animation: jz-fade .18s ease both;
}
.jz-modal[hidden] { display: none; }
@keyframes jz-fade { from { opacity: 0; } to { opacity: 1; } }

.jz-modal-card {
  width: min(620px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--jz-edge-hi);
  border-radius: var(--jz-r-lg);
  background: var(--jz-panel);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
  text-align: left;
  animation: jz-pop .2s ease both;
}
@keyframes jz-pop { from { transform: translateY(14px) scale(.985); } to { transform: none; } }

.jz-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--jz-edge);
}
.jz-modal-top h2 {
  margin: 0;
  font-family: var(--jz-display);
  font-size: 20px;
  letter-spacing: .03em;
  color: var(--jz-ink);
}
.jz-modal-x {
  border: 0;
  background: none;
  color: var(--jz-dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.jz-modal-x:hover { color: var(--jz-ink); }

.jz-modal-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
  color: var(--jz-dim);
  font-size: 15px;
}
.jz-modal-body p { margin: 0 0 14px; }
.jz-modal-body p:last-child { margin-bottom: 0; }
.jz-modal-body strong { color: var(--jz-ink); font-weight: 600; }

body.jz-locked { overflow: hidden; }

/* ---------------- responsive ---------------- */

@media (max-width: 1000px) {
  .site-content.jz-content { grid-template-columns: 1fr; }
  .store-sidebar { position: static; }
  .store-sidebar .navigation-list { display: flex; flex-wrap: wrap; }
  .store-sidebar .navigation-list > li { flex: 1 1 45%; border-bottom: 1px solid rgba(46,36,86,.55); }
  .store-sidebar .navigation-list > li > a { text-align: center; padding: 15px 12px; }
  .store-sidebar .navigation-list > li > a:hover { padding-left: 12px; }
}

@media (max-width: 760px) {
  .jz-head-in { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding-bottom: 26px; }
  .site-header.jz-head .site-title.jz-logo,
  .jz-pill-ip, .jz-pill-discord { grid-column: 1; justify-self: center; }
  .jz-pill-discord .jz-pill-text { text-align: left; }
  .site-title.jz-logo img { width: 150px; }
  .site-content.jz-content { padding: 0 14px 70px; gap: 16px; }
  .jz-panel { padding: 20px 18px; }
  .store-products-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

@media (max-width: 420px) {
  .store-products-grid { grid-template-columns: repeat(2, 1fr); }
  .jz-topbar { padding: 14px 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .store-product:hover, .btn-primary:hover, .jz-price:hover { transform: none; }
}

/* ==========================================================================
   v4 — stats strip, tidier sidebar, redirect page
   ========================================================================== */

/* the sidebar is now nav only; "Home" in it is redundant */
.store-sidebar .navigation-list > li:first-child { display: none; }

.jz-redirect { display: block; min-height: 40vh; text-align: center; }
.jz-loading {
  padding: 60px 0;
  color: var(--jz-dim-2);
  font-family: var(--jz-display);
  letter-spacing: .06em;
}

/* ---- Top Customer + Recent Payments ---- */

.jz-modules {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.jz-modules .module {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--jz-edge);
  border-radius: var(--jz-r-lg);
  background: var(--jz-panel);
}

.jz-modules .module h5,
.jz-modules .module .h5 {
  margin: 0 0 18px;
  font-family: var(--jz-display);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  background: var(--jz-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* top customer — head only, not the full body render */
.jz-modules .top-donator { text-align: center; }
.jz-modules .top-donator .media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.jz-modules .top-donator img {
  width: 84px;
  height: 84px;
  margin: 0;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  image-rendering: pixelated;
  background: var(--jz-panel-2);
  box-shadow: 0 10px 24px -10px rgba(123,63,242,.8);
}
.jz-modules .top-donator .media-body { text-align: center; }
.jz-modules .top-donator .media-body h5 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: .03em;
  background: none;
  -webkit-text-fill-color: var(--jz-ink);
  color: var(--jz-ink);
}
.jz-modules .top-donator .media-body div { color: var(--jz-dim); font-size: 13px; }

/* recent payments — a row of heads, no names */
.jz-modules .recent-payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jz-modules .recent-payments .list-item,
.jz-modules .recent-payments li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--jz-edge);
  border-radius: var(--jz-r);
  background: var(--jz-panel-2);
  transition: transform .18s, border-color .18s;
}
.jz-modules .recent-payments li:hover {
  transform: translateY(-3px);
  border-color: var(--jz-edge-hi);
}
.jz-modules .recent-payments img {
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 8px;
  image-rendering: pixelated;
}
.jz-modules .recent-payments .media-body,
.jz-modules .recent-payments h6,
.jz-modules .recent-payments .small { display: none; }

@media (max-width: 900px) {
  .jz-modules { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Masthead override — wins over part 1 regardless of what's cached there.
   IP left · logo centre · Discord right.
   ========================================================================== */

.site-header.jz-head .jz-head-in {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 28px !important;
  width: 100% !important;
  max-width: var(--jz-shell) !important;
  margin: 0 auto !important;
  padding: 14px 24px 38px !important;
  flex-wrap: nowrap !important;
}

.site-header.jz-head .site-title.jz-logo {
  grid-column: 2 !important;
  grid-row: 1 !important;
  order: 0 !important;
  justify-self: center !important;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

.site-header.jz-head .site-title.jz-logo img {
  width: 220px !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
}

.site-header.jz-head .jz-pill-ip {
  grid-column: 1 !important;
  grid-row: 1 !important;
  order: 0 !important;
  justify-self: end !important;
}

.site-header.jz-head .jz-pill-discord {
  grid-column: 3 !important;
  grid-row: 1 !important;
  order: 0 !important;
  justify-self: start !important;
}

@media (max-width: 900px) {
  .site-header.jz-head .jz-head-in {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .site-header.jz-head .site-title.jz-logo,
  .site-header.jz-head .jz-pill-ip,
  .site-header.jz-head .jz-pill-discord {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: center !important;
  }
  .site-header.jz-head .site-title.jz-logo img { width: 160px !important; }
}

/* Exo positions .site-title absolutely, which pulls the logo out of the grid.
   Put it back in normal flow so grid-column actually applies. */

.site-header.jz-head .site-title.jz-logo {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  display: block !important;
  max-width: none !important;
  text-align: center !important;
}

.site-header.jz-head .site-title.jz-logo a {
  display: inline-block !important;
  position: static !important;
}

/* ---- cart block, LeoneMC style ---- */

.jz-cartblock {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.jz-cart-text {
  display: grid;
  gap: 1px;
  text-align: right;
}

.jz-cart-text strong {
  font-family: var(--jz-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--jz-ink);
  white-space: nowrap;
}

.jz-cart-status {
  font-family: var(--jz-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--jz-gold);
  white-space: nowrap;
}
.jz-cart-status.is-empty { color: var(--jz-gold); opacity: .85; }

.jz-avatar--lg {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  flex: 0 0 auto;
}
.jz-avatar--none { background: var(--jz-panel-3); }

.jz-cartblock .jz-cart-count {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  background: var(--jz-gold);
  color: #2a1a00;
  font-family: var(--jz-body);
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}

.jz-cartblock:hover .jz-cart-text strong { color: #fff; }

@media (max-width: 600px) {
  .jz-cart-text strong { font-size: 13px; }
  .jz-cart-status { font-size: 10px; }
}

/* ---- package grid: 3 per row, whatever displayType the category uses ---- */

.jz-grid-panel > div[class^="store-products-"],
.jz-grid-panel > div[class*=" store-products-"] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

@media (max-width: 1000px) {
  .jz-grid-panel > div[class^="store-products-"],
  .jz-grid-panel > div[class*=" store-products-"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .jz-grid-panel > div[class^="store-products-"],
  .jz-grid-panel > div[class*=" store-products-"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* keep the artwork from dominating the card */
.store-product .image-link { aspect-ratio: 4 / 3; }
.store-product .image-link .image { width: 82%; height: 82%; }

/* ---- headings in store copy: logo-style vertical gradient ---- */

.jz-intro-text h1,
.jz-intro-text h2,
.jz-intro-text h3,
.jz-intro-text h4,
.jz-intro-text h5,
.jz-intro-text h6,
.jz-prose h1,
.jz-prose h2,
.jz-prose h3 {
  display: block;
  width: fit-content;
  margin: 26px 0 10px;
  font-family: var(--jz-display);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.15;
  background: linear-gradient(180deg, #b9ecff 0%, #4cc2ff 46%, #1f6fe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 10px rgba(47,134,255,.35));
}

.jz-intro-text h1, .jz-prose h1 { font-size: clamp(26px, 3.4vw, 38px); }
.jz-intro-text h2, .jz-prose h2 { font-size: clamp(22px, 2.8vw, 30px); }
.jz-intro-text h3, .jz-prose h3 { font-size: clamp(19px, 2.2vw, 24px); }
.jz-intro-text h4 { font-size: 20px; }
.jz-intro-text h5 { font-size: 18px; }
.jz-intro-text h6 { font-size: 16px; }

.jz-intro-text :first-child { margin-top: 0; }

/* keep bold text inside paragraphs readable rather than gradient-filled */
.jz-intro-text p strong,
.jz-intro-text li strong {
  color: var(--jz-ink);
  -webkit-text-fill-color: var(--jz-ink);
}

/* ---- gradient headings: broad match + beats inline colours from the editor ---- */

.jz-panel h1, .jz-panel h2, .jz-panel h3,
.jz-panel h4, .jz-panel h5, .jz-panel h6,
.text-content h1, .text-content h2, .text-content h3,
.text-content h4, .text-content h5, .text-content h6,
.store-text h1, .store-text h2, .store-text h3,
.store-text h4, .store-text h5, .store-text h6 {
  display: block !important;
  width: fit-content !important;
  margin: 26px 0 10px !important;
  font-family: var(--jz-display) !important;
  font-weight: 400 !important;
  letter-spacing: .03em !important;
  line-height: 1.15 !important;
  background-image: linear-gradient(180deg, #b9ecff 0%, #4cc2ff 46%, #1f6fe0 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 3px 10px rgba(47,134,255,.35));
}

/* headings whose text sits in a nested span/strong carrying its own colour */
.jz-panel h1 *, .jz-panel h2 *, .jz-panel h3 *,
.jz-panel h4 *, .jz-panel h5 *, .jz-panel h6 *,
.text-content h1 *, .text-content h2 *, .text-content h3 *,
.text-content h4 *, .text-content h5 *, .text-content h6 * {
  background: none !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-family: inherit !important;
  font-weight: inherit !important;
}

.jz-panel :first-child, .text-content :first-child { margin-top: 0 !important; }

/* module titles keep their own treatment */
.jz-modules .module h5, .jz-modules .module .h5 {
  width: auto !important;
  margin: 0 0 18px !important;
  font-size: 13px !important;
  background-image: var(--jz-grad) !important;
  filter: none;
}

/* ==========================================================================
   Tebex's editor writes headings as <p><strong><span style="...">TEXT</span></strong></p>
   rather than real h tags. A <strong> that is its paragraph's only child is a
   heading line; a <strong> inside a sentence is not.
   ========================================================================== */

.jz-intro-text p > strong:only-child,
.text-content p > strong:only-child,
.store-text p > strong:only-child {
  display: block;
  width: fit-content;
  margin: 4px 0 2px;
  font-family: var(--jz-display) !important;
  font-weight: 400 !important;
  letter-spacing: .03em;
  line-height: 1.15;
  background-image: linear-gradient(180deg, #b9ecff 0%, #4cc2ff 46%, #1f6fe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 3px 10px rgba(47,134,255,.35));
}

/* the span inside carries inline font-family / font-size from the editor */
.jz-intro-text p > strong:only-child span,
.text-content p > strong:only-child span,
.store-text p > strong:only-child span {
  font-family: var(--jz-display) !important;
  font-weight: 400 !important;
  background: none !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

/* tighten the gap between a heading line and the paragraph under it */
.jz-intro-text p:has(> strong:only-child) { margin-bottom: 6px; }

/* ---- package name: centred and larger ---- */

.store-product .product-title,
.jz-card .product-title {
  margin: 4px 0 14px !important;
  font-family: var(--jz-display) !important;
  font-size: clamp(17px, 1.6vw, 21px) !important;
  line-height: 1.25 !important;
  letter-spacing: .02em !important;
  text-align: center !important;
  width: 100% !important;
}

.store-product .product-title a,
.jz-card .product-title a {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  color: var(--jz-ink) !important;
}
.store-product .product-title a:hover { color: var(--jz-blue) !important; }

/* ---- logo, a touch larger ---- */

.site-header.jz-head .site-title.jz-logo img {
  width: 280px !important;
}

@media (max-width: 900px) {
  .site-header.jz-head .site-title.jz-logo img { width: 200px !important; }
}

/* ==========================================================================
   Server list
   Desktop: Exo's navigation.twig, unchanged.
   Mobile:  Exo's nav is hidden and our own list is shown instead — Exo
            hides its vertical nav off-canvas below 1000px and expects a
            toggle button that this header doesn't have.
   ========================================================================== */

.jz-mobilenav { display: none; }

@media (max-width: 1000px) {

  .store-sidebar .site-navigation,
  .store-sidebar nav#site-navigation { display: none !important; }

  .store-sidebar { overflow: visible; }

  .jz-mobilenav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--jz-edge);
    border-radius: 0 0 var(--jz-r-lg) var(--jz-r-lg);
    overflow: hidden;
  }

  .jz-mobilenav li { margin: 0; display: block; }

  .jz-mobilenav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 12px;
    background: var(--jz-panel);
    color: var(--jz-dim);
    font-family: var(--jz-display);
    font-size: 15px;
    letter-spacing: .02em;
    text-align: center;
    text-decoration: none;
  }

  .jz-mobilenav a:active { background: var(--jz-panel-2); }

  .jz-mobilenav a.is-on {
    background: var(--jz-panel-3);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--jz-blue);
  }

  /* odd number of servers: last one spans the full row */
  .jz-mobilenav li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ==========================================================================
   Cart panel — opens under the cart button, top right
   ========================================================================== */

.jz-cartwrap { position: relative; }

.jz-cartpanel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 200;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid var(--jz-edge-hi);
  border-radius: var(--jz-r-lg);
  background: var(--jz-panel);
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.9);
  overflow: hidden;
  animation: jz-pop .18s ease both;
}
.jz-cartpanel[hidden] { display: none; }

.jz-cartpanel-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--jz-edge);
  background: var(--jz-panel-2);
}

.jz-cartpanel-face {
  width: 46px;
  height: 62px;
  flex: 0 0 auto;
  background: center/contain no-repeat;
  image-rendering: pixelated;
}
.jz-cartpanel-face.jz-avatar--none { background: var(--jz-panel-3); border-radius: 8px; }

.jz-cartpanel-meta { display: grid; gap: 8px; min-width: 0; }
.jz-cartpanel-meta > strong {
  font-family: var(--jz-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--jz-blue);
}

.jz-cartpanel-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--jz-body);
  font-size: 13px;
  color: var(--jz-dim);
}

.jz-logout {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(255,120,140,.4);
  border-radius: 8px;
  background: rgba(255,120,140,.1);
  color: #ff8898;
  font-family: var(--jz-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.jz-logout:hover { background: rgba(255,120,140,.2); color: #ffa3af; }
.jz-cartpanel-x {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: var(--jz-panel-3);
  color: var(--jz-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.jz-cartpanel-x:hover { color: #fff; }

.jz-cartpanel-body { padding: 16px 18px 18px; }

.jz-cartpanel-empty {
  margin: 6px 0 8px;
  font-family: var(--jz-display);
  font-size: 17px;
  letter-spacing: .04em;
  text-align: center;
  color: #ff8898;
}
.jz-cartpanel-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--jz-dim);
}

.jz-cartlist { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.jz-cartlist li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(46,36,86,.6);
  font-size: 14px;
}
.jz-cartlist li:last-child { border-bottom: 0; padding-bottom: 0; }
.jz-cartlist-name { color: var(--jz-ink); min-width: 0; }
.jz-cartlist-name em { color: var(--jz-dim-2); font-style: normal; }
.jz-cartlist-price { color: var(--jz-dim); white-space: nowrap; }

.jz-cartpanel-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--jz-edge);
  font-family: var(--jz-display);
  font-size: 15px;
  color: var(--jz-dim);
}
.jz-cartpanel-total strong { color: var(--jz-ink); font-size: 17px; }

.jz-cartpanel-go {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: var(--jz-grad-btn);
  color: #fff;
  font-family: var(--jz-display);
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.3);
}
.jz-cartpanel-go:hover { filter: brightness(1.12); color: #fff; }

@media (max-width: 600px) {
  .jz-cartpanel { width: calc(100vw - 24px); right: -6px; }
  .jz-cart-text strong { font-size: 13px; }
  .jz-cart-status { font-size: 10px; }
}

/* ---- logged-out state: Guest / click to login ---- */

.jz-cartblock--guest { text-decoration: none; }
.jz-cartblock--guest .jz-cart-text strong { color: var(--jz-ink); }
.jz-cartblock--guest .jz-cart-status { color: var(--jz-gold); }
.jz-cartblock--guest:hover .jz-cart-text strong { color: #fff; }
.jz-cartblock--guest .jz-avatar--lg { image-rendering: pixelated; }

/* ==========================================================================
   Server list with category icons
   Replaces Exo's navigation.twig in the sidebar — Exo's nav doesn't render
   category.image, so both lists are ours now.
   ========================================================================== */

.jz-servers {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jz-servers li {
  position: relative;
  margin: 0;
  border-bottom: 1px solid rgba(46,36,86,.55);
}
.jz-servers li:last-child { border-bottom: 0; }

.jz-servers a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 20px;
  color: var(--jz-dim);
  font-family: var(--jz-display);
  font-size: 16px;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .18s, background .18s, padding-left .18s;
}
.jz-servers a:hover {
  color: var(--jz-ink);
  background: var(--jz-panel-2);
  padding-left: 26px;
}

.jz-servers a.is-on {
  color: #fff;
  background: var(--jz-panel-3);
}
.jz-servers a.is-on::before {
  content: "";
  position: absolute;
  left: 0; top: 14%;
  width: 4px; height: 72%;
  border-radius: 0 4px 4px 0;
  background: var(--jz-grad);
}

.jz-servers-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  background: none;
}

.jz-servers-icon--mono {
  display: grid;
  place-items: center;
  background: var(--jz-grad-btn);
  color: #fff;
  font-family: var(--jz-display);
  font-size: 15px;
}

.jz-servers-name { min-width: 0; }

/* mobile list picks up the same icons */
@media (max-width: 1000px) {
  .jz-servers { display: none; }

  .jz-mobilenav a {
    flex-direction: column;
    gap: 8px;
    min-height: 84px;
    padding: 14px 10px;
  }
  .jz-mobilenav .jz-servers-icon { width: 38px; height: 38px; }
  .jz-mobilenav a.is-on { box-shadow: inset 3px 0 0 var(--jz-blue); }
}

@media (min-width: 1001px) {
  .jz-mobilenav { display: none; }
}
