/* zhineng storefront: Dujiao-Next vault/JZ inspired dark shop */
:root {
  --vault-bg: #000;
  --vault-nav: #0a0f18;
  --vault-card: #202020;
  --vault-card-border: #454545;
  --vault-line: rgba(255, 255, 255, .18);
  --vault-text: #f7f7f8;
  --vault-muted: #9a9aa0;
  --vault-soft: #c8c8cc;
  --vault-blue: #2464d8;
  --vault-gold: #f5df28;
  --vault-cyan: #32b7e7;
  --vault-green: #0db24b;
}

html { font-size: 14px; scroll-behavior: smooth; }

body.zhineng-store {
  min-height: 100vh;
  color: var(--vault-text);
  background: var(--vault-bg);
  font-family: Inter, Rubik, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.zhineng-store a { text-decoration: none; }

.navbar-acg {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 58px;
  padding: 0;
  background: var(--vault-nav);
  border-bottom: 1px solid #222835;
  box-shadow: none;
}

.navbar-acg .container,
.vault-main,
.zh-footer .container {
  width: 100%;
  max-width: 1136px;
}

.navbar-acg .container {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-brand {
  gap: 10px;
  color: #fff !important;
  margin-right: 6px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  background: transparent;
  border: 1px solid rgba(79, 131, 255, .7);
  box-shadow: 0 0 28px rgba(56, 123, 255, .26);
}

.brand-word {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0;
}

.navbar-acg .navbar-nav { gap: 8px; align-items: center; }

.navbar-acg .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px !important;
  border-radius: 999px;
  color: #f5f7fb !important;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.navbar-acg .nav-link.active {
  background: rgba(255, 255, 255, .075);
  color: #dce8ff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.navbar-acg .nav-link:hover {
  background: var(--vault-blue);
  color: #fff !important;
}

.nav-icon { margin-right: 5px; }

.user-info-box .btn {
  min-height: 34px;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  background: #03060b !important;
  color: #fff !important;
  box-shadow: none;
  font-size: 12px;
  font-weight: 850;
}

.user-login-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-login-box .nav-auth-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 850;
}

.user-login-box .nav-auth-link:hover {
  color: #8fb9ff !important;
}

.user-info-box #username { color: #fff !important; }
.user-info-box #user-balance { color: #9aa4b2 !important; }
.dropdown-menu {
  background: #16181d;
  border: 1px solid #3a3a3a;
}
.dropdown-item { color: #f2f2f2; }
.dropdown-item:hover { color: #fff; background: #242933; }
.dropdown-divider { border-top-color: #383838; }

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
}
.navbar-toggler-icon { filter: invert(1); }

.vault-main {
  margin: 0 auto;
  padding: 116px 16px 44px;
}

.vault-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.vault-section-head h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 27px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.vault-section-head p {
  margin: 0;
  color: var(--vault-muted);
  font-size: 13px;
}

.vault-view-all {
  color: #b7becb;
  font-size: 13px;
  font-weight: 750;
}

.vault-view-all:hover { color: #fff; }

.vault-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -8px 0 18px;
}

.vault-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  color: #d6d9df;
  background: #1a1a1a;
  border: 1px solid #424242;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.vault-category.is-active,
.vault-category:hover {
  color: #fff;
  background: var(--vault-blue);
  border-color: var(--vault-blue);
}

.vault-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.vault-product-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: var(--vault-card);
  border: 1px solid var(--vault-card-border);
  border-radius: 6px;
  transition: transform .16s ease, border-color .16s ease;
}

.vault-product-card:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: #666;
}

.vault-product-card.is-soldout { opacity: .86; }

.vault-product-image {
  position: relative;
  height: 160px;
  flex: none;
  background-color: #d9d9d9;
  background-position: center;
  background-size: cover;
}

.vault-product-body {
  display: flex;
  flex-direction: column;
  padding: 13px 13px 12px;
}

.vault-category-name {
  margin: 0 0 8px;
  color: #a2a2a8;
  font-size: 11px;
  line-height: 1.35;
}

.vault-product-body h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
  line-height: 1.42;
  font-weight: 900;
}

.vault-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.vault-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.vault-badge-gold {
  color: var(--vault-gold);
  background: rgba(245, 223, 40, .08);
  border: 1px solid rgba(245, 223, 40, .72);
}

.vault-badge-blue {
  color: var(--vault-cyan);
  background: rgba(50, 183, 231, .09);
  border: 1px solid rgba(50, 183, 231, .72);
}

.vault-badge-green {
  color: #b9ffcd;
  background: rgba(13, 178, 75, .12);
  border: 1px solid rgba(13, 178, 75, .72);
}

.vault-desc {
  min-height: 0;
  margin: 0;
  color: #aaa;
  font-size: 12px;
  line-height: 1.55;
}

.vault-card-bottom {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--vault-line);
  display: grid;
  grid-template-columns: 1fr 34px 18px;
  align-items: end;
  gap: 8px;
}

.vault-price-label {
  display: block;
  margin-bottom: 2px;
  color: #9a9aa0;
  font-size: 10px;
}

.vault-price {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.vault-price small {
  color: #fff;
  font-size: 11px;
  margin-left: 3px;
}

.vault-cart {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  background: #000;
  font-size: 13px;
}

.vault-arrow {
  color: #8d8d92;
  font-weight: 800;
  line-height: 30px;
}

.vault-ribbon {
  position: absolute;
  left: -37px;
  top: 17px;
  width: 126px;
  transform: rotate(-45deg);
  background: #111;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 950;
  padding: 5px 0;
}

.item-message,
.empty-products {
  grid-column: 1 / -1;
  padding: 26px 0;
  color: #aaa;
  font-weight: 800;
}

.vault-notice {
  margin-top: 34px;
  padding: 20px 0 0;
  border-top: 1px solid #252525;
  color: #aaa;
}

.vault-notice h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.vault-notice,
.vault-notice p {
  font-size: 13px;
  line-height: 1.6;
}

.vault-notice a { color: #6ea0ff; }

.zh-footer {
  padding: 22px 0 34px;
  color: #8f96a3;
  background: transparent;
}

.zh-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #252525;
  padding-top: 18px;
}

.zh-footer strong { color: #fff; margin-right: 10px; }
.zh-footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.zh-footer a { color: #bec7d7; font-weight: 800; }
.zh-footer a:hover { color: #fff; }

.jz-product-page {
  max-width: 760px;
  padding-top: 116px;
  padding-bottom: 44px;
}

.jz-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #777d87;
  font-size: 10px;
  font-weight: 700;
}

.jz-breadcrumb a,
.jz-back-link {
  color: #8b919d;
}

.jz-breadcrumb strong {
  max-width: 360px;
  overflow: hidden;
  color: #d7dbe3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jz-product-card,
.jz-details-card {
  overflow: hidden;
  background: #202020;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  box-shadow: none;
}

.jz-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  min-height: 490px;
}

.jz-product-media {
  min-height: 490px;
  padding: 18px;
  background: linear-gradient(180deg, #2b2b2d 0%, #252527 100%);
  border-right: 1px solid #353535;
}

.jz-product-media .item-cover {
  display: block;
  width: 100%;
  height: auto !important;
  position: static !important;
  inset: auto !important;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: #d9d9d9;
}

.jz-product-info {
  min-width: 0;
  padding: 26px 24px 22px;
}

.jz-product-category {
  margin-bottom: 8px;
  color: #8b919d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.jz-product-info h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 25px;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: 0;
}

.jz-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.jz-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 17px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  line-height: 17px;
}

.jz-pill-gold {
  color: var(--vault-gold);
  background: rgba(245, 223, 40, .08);
  border: 1px solid rgba(245, 223, 40, .75);
}

.jz-pill-blue {
  color: var(--vault-cyan);
  background: rgba(50, 183, 231, .1);
  border: 1px solid rgba(50, 183, 231, .75);
}

.jz-pill-green {
  color: #70f5a2;
  background: rgba(13, 178, 75, .1);
  border: 1px solid rgba(13, 178, 75, .75);
}

.jz-pill-muted {
  color: #b6bac3;
  background: rgba(182, 186, 195, .08);
  border: 1px solid rgba(182, 186, 195, .35);
}

.jz-share {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #8bb7ff;
  background: rgba(36, 100, 216, .15);
  border: 1px solid rgba(36, 100, 216, .55);
  border-radius: 999px;
}

.jz-price-block {
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid #454545;
}

.jz-price-block > span,
.jz-field .form-label,
.jz-pay-area .form-label {
  display: block;
  margin-bottom: 8px;
  color: #949aa5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.jz-price-block .price {
  color: #168cff;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 950;
}

.jz-price-block .unit {
  margin-right: 2px;
  font-size: 16px;
}

.jz-field {
  margin-bottom: 14px;
}

.jz-product-page .form-control,
.jz-product-page .optional-card {
  min-height: 38px;
  color: #dfe4ee;
  background: #202020;
  border: 1px solid #424242;
  border-radius: 6px;
  box-shadow: none;
}

.jz-product-page .form-control:focus {
  color: #fff;
  background: #202020;
  border-color: #1c7cff;
  box-shadow: 0 0 0 1px rgba(28, 124, 255, .2);
}

.jz-product-page .form-control::placeholder {
  color: #757b86;
}

.jz-product-page .sku-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.jz-product-page .sku {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 7px 10px;
  color: #dfe4ee;
  background: #202020;
  border: 1px solid #424242;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
}

.jz-product-page .sku.is-primary {
  color: #fff;
  border-color: #1977e6;
  box-shadow: inset 0 0 0 1px rgba(25, 119, 230, .5);
}

.jz-product-page .badge-money {
  color: #32d084;
  font-size: 10px;
  font-weight: 850;
}

.jz-product-page .qty-group {
  width: 72px;
  border: 1px solid #424242;
  border-radius: 4px;
  overflow: hidden;
}

.jz-product-page .qty-group .form-control {
  width: 28px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  color: #fff;
  background: #202020;
  border: 0;
  border-left: 1px solid #424242;
  border-right: 1px solid #424242;
  font-size: 11px;
}

.jz-product-page .change-num-sub,
.jz-product-page .change-num-add {
  width: 22px;
  height: 24px;
  color: #c7ccd6;
  background: #191919;
  border: 0;
  font-size: 13px;
  font-weight: 900;
}

.jz-product-page .captcha-group {
  width: 220px;
}

.jz-product-page .captcha-img {
  height: 38px;
  padding: 0 8px;
  border-color: #424242;
  border-left: 0;
  background: #202020;
}

.jz-pay-area {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed #545454;
}

.jz-product-page .pay-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.jz-product-page .pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  color: #fff;
  background: #168cff;
  border: 1px solid #168cff;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
}

.jz-product-page .pay:first-child {
  background: #303033;
  border-color: #303033;
}

.jz-product-page .pay img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.jz-details-card {
  margin-top: 18px;
  padding: 22px 24px 28px;
}

.jz-details-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #3f3f3f;
}

.jz-details-title span {
  width: 4px;
  height: 18px;
  background: #168cff;
  border-radius: 4px;
}

.jz-details-title h2 {
  margin: 0;
  color: #f7f7f8;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.jz-details-body,
.jz-details-body p,
.jz-details-body div {
  color: #d0d3da;
  font-size: 12px;
  line-height: 1.75;
}

.jz-details-body a {
  color: #168cff;
}

.jz-back-link {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 24px auto 0;
  font-size: 11px;
  font-weight: 800;
}

.jz-back-link:hover {
  color: #fff;
}

.zhineng-lang-menu {
  background: #1f1f21 !important;
  border-color: #3d3d42 !important;
  color: #fff !important;
}

body.zhineng-store .zhineng-lang-toggle {
  min-height: 36px !important;
  padding: 0 8px !important;
  color: #f4f7fb !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body.zhineng-store .zhineng-lang-toggle:hover,
body.zhineng-store .zhineng-lang.open .zhineng-lang-toggle {
  color: #8fb9ff !important;
  background: transparent !important;
}

body.zhineng-store .zhineng-lang-menu {
  top: calc(100% + 12px);
  width: 150px;
  padding: 10px;
  border-radius: 9px;
}

body.zhineng-store .zhineng-lang-title {
  color: #9a9aa2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body.zhineng-store .zhineng-lang-item {
  color: #f5f5f7;
  background: transparent;
}

body.zhineng-store .zhineng-lang-item.active {
  color: #1683ff;
}

@media (max-width: 1280px) {
  .vault-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .navbar-acg .navbar-collapse {
    margin-top: 10px;
    padding: 8px 0 12px;
  }
  .vault-main { padding-top: 54px; }
  .vault-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .brand-word { display: none; }
  .vault-main { padding: 34px 12px; }
  .jz-product-page { padding-top: 34px; }
  .jz-product-card { grid-template-columns: 1fr; }
  .jz-product-media {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #353535;
  }
  .jz-product-info { padding: 20px 16px; }
  .jz-product-info h1 { font-size: 22px; }
  .jz-product-page .pay-list { grid-template-columns: 1fr; }
  .vault-section-head { align-items: flex-start; flex-direction: column; }
  .vault-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vault-product-image { height: 132px; }
  .vault-product-body { padding: 12px; }

  .zh-footer .container { display: block; }
  .zh-footer-links { margin-top: 10px; }
}

@media (max-width: 460px) {
  .vault-products { grid-template-columns: 1fr; }
  .vault-product-image { height: 190px; }
  .vault-product-body { padding: 12px; }
}

/* Final JZ product-page overrides. Keep these last so legacy theme CSS cannot leak in. */
body.zhineng-store .jz-product-page {
  max-width: 1210px;
  padding-top: 34px;
}

body.zhineng-store .jz-product-card {
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  max-width: 1210px;
  min-height: 0;
  margin: 0 auto;
  background: #202020;
}

body.zhineng-store .jz-product-media {
  min-height: 650px;
  padding: 28px;
}

body.zhineng-store .jz-product-media > img.item-cover {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1.35 / 1 !important;
  object-fit: cover !important;
}

body.zhineng-store .jz-product-info {
  padding: 42px 38px 38px;
}

body.zhineng-store .jz-product-info h1 {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: 34px;
  line-height: 1.14;
}

body.zhineng-store .jz-price-block {
  margin: 22px 0 22px;
}

body.zhineng-store .jz-field {
  margin-bottom: 24px;
}

body.zhineng-store .jz-product-page .input-group.qty-group {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0 !important;
  width: 112px !important;
  height: 34px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #1b1b1d !important;
  border: 1px solid #424242 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}

body.zhineng-store .jz-product-page .input-group.qty-group > button {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  padding: 0 !important;
  color: #9aa2af !important;
  background: #19191b !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 13px !important;
}

body.zhineng-store .jz-product-page .input-group.qty-group > input[type=number] {
  width: 44px !important;
  height: 34px !important;
  flex: 0 0 44px !important;
  min-height: 34px !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 1px solid #424242 !important;
  border-right: 1px solid #424242 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body.zhineng-store .zhineng-wholesale {
  margin: -6px 0 22px !important;
}

body.zhineng-store .jz-product-page .cash-pay.jz-pay-area {
  margin-top: 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.zhineng-store .jz-product-page .cash-pay.jz-pay-area .pay-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  padding: 0 !important;
  border: 0 !important;
}

body.zhineng-store .jz-product-page .cash-pay.jz-pay-area .pay-list .pay {
  min-height: 40px !important;
  padding: 0 14px !important;
  color: #fff !important;
  background: #303033 !important;
  border: 1px solid #303033 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

body.zhineng-store .jz-product-page .cash-pay.jz-pay-area .pay-list .pay:last-child {
  background: #168cff !important;
  border-color: #168cff !important;
}

body.zhineng-store .jz-details-card {
  max-width: 1210px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991.98px) {
  body.zhineng-store .jz-product-card {
    grid-template-columns: 1fr;
  }
  body.zhineng-store .jz-product-media {
    min-height: 0;
  }
}

/* Compact product cards after removing optional teaser copy. */
.vault-desc:empty {
  display: none;
}

/* Confirmed visual cleanup: calmer active nav and tighter aligned product rows. */
.vault-products {
  align-items: stretch;
}

.vault-product-card {
  height: 100%;
}

.vault-card-bottom {
  margin-top: auto;
}

.vault-category-name,
.jz-product-category {
  display: none !important;
}


/* Confirmed polish: clearer price, auth actions, and cart action. */
.vault-price {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.vault-price small {
  font-size: 10px;
  color: #9fb4d6;
  margin-left: 5px;
  vertical-align: baseline;
}

.vault-price-label {
  color: #7f8da6;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.vault-cart {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1f6dff;
  color: #fff;
  border: 1px solid rgba(122, 169, 255, .72);
  box-shadow: 0 10px 22px rgba(31, 109, 255, .32);
  font-size: 15px;
}

.vault-card-bottom {
  grid-template-columns: 1fr 42px 18px;
  align-items: center;
}

.user-login-box .nav-auth-link {
  min-height: 34px;
  padding: 0 12px !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  color: #eaf2ff !important;
  background: rgba(255, 255, 255, .04) !important;
}

.user-login-box .nav-auth-link[href*="register"] {
  background: #1f6dff !important;
  border-color: #4f8bff !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(31, 109, 255, .24);
}

/* Animated geometric background for the storefront. */
.zh-web-bg {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .55;
  background: transparent;
}

body.zhineng-store .navbar-acg {
  position: sticky;
  z-index: 1000;
}

body.zhineng-store #pjax-container {
  position: relative;
  z-index: auto;
  background: transparent !important;
}

body.zhineng-store .vault-main,
body.zhineng-store .zh-footer,
body.zhineng-store footer {
  position: relative;
  z-index: 2;
}


/* Product grid and price polish */
body.zhineng-store .jz-products,
body.zhineng-store .product-list,
body.zhineng-store .goods-list,
body.zhineng-store .shop-product-list,
body.zhineng-store .row[data-product-list],
body.zhineng-store #product-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.zhineng-store .jz-products > *,
body.zhineng-store .product-list > *,
body.zhineng-store .goods-list > *,
body.zhineng-store .shop-product-list > *,
body.zhineng-store .row[data-product-list] > *,
body.zhineng-store #product-list > * {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
}

body.zhineng-store .jz-product-price,
body.zhineng-store .product-price,
body.zhineng-store .goods-price,
body.zhineng-store [class*="price"] {
  line-height: 1 !important;
}

body.zhineng-store .jz-product-price .price-value,
body.zhineng-store .jz-product-price .price-currency,
body.zhineng-store .product-price .price-value,
body.zhineng-store .product-price .price-currency {
  display: inline-flex !important;
  align-items: baseline !important;
}

body.zhineng-store .jz-product-price,
body.zhineng-store .product-card .price,
body.zhineng-store .goods-card .price,
body.zhineng-store .product-price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-height: 30px !important;
  white-space: nowrap !important;
}

body.zhineng-store .jz-product-price small,
body.zhineng-store .jz-product-price .currency,
body.zhineng-store .product-price small,
body.zhineng-store .product-price .currency,
body.zhineng-store .price small,
body.zhineng-store .price .currency {
  display: inline-flex !important;
  align-items: baseline !important;
  align-self: baseline !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  position: static !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

@media (max-width: 980px) {
  body.zhineng-store .jz-products,
  body.zhineng-store .product-list,
  body.zhineng-store .goods-list,
  body.zhineng-store .shop-product-list,
  body.zhineng-store .row[data-product-list],
  body.zhineng-store #product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  body.zhineng-store .jz-products,
  body.zhineng-store .product-list,
  body.zhineng-store .goods-list,
  body.zhineng-store .shop-product-list,
  body.zhineng-store .row[data-product-list],
  body.zhineng-store #product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  body.zhineng-store .jz-products,
  body.zhineng-store .product-list,
  body.zhineng-store .goods-list,
  body.zhineng-store .shop-product-list,
  body.zhineng-store .row[data-product-list],
  body.zhineng-store #product-list {
    grid-template-columns: 1fr !important;
  }
}

/* Final product grid override for the live Cartoon theme classes */
body.zhineng-store .vault-products.item-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.zhineng-store .vault-products.item-list > .vault-product-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body.zhineng-store .vault-product-price {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

body.zhineng-store .vault-product-price .vault-currency {
  align-self: baseline !important;
  margin: 0 !important;
  line-height: 1 !important;
}

@media (max-width: 980px) {
  body.zhineng-store .vault-products.item-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  body.zhineng-store .vault-products.item-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  body.zhineng-store .vault-products.item-list {
    grid-template-columns: 1fr !important;
  }
}

/* Product detail page: compact media + purchase panel balance */
body.zhineng-store .jz-product-page {
  max-width: 1160px !important;
}

body.zhineng-store .jz-product-card {
  display: grid !important;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr) !important;
  align-items: stretch !important;
  min-height: 0 !important;
}

body.zhineng-store .jz-product-media {
  min-height: 0 !important;
  padding: 28px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  background:
    radial-gradient(circle at 78% 12%, rgba(0, 118, 255, .18), transparent 44%),
    linear-gradient(180deg, #252527 0%, #202020 100%) !important;
}

body.zhineng-store .jz-product-media .item-cover {
  width: 100% !important;
  max-width: 520px !important;
  height: auto !important;
  aspect-ratio: 1.35 / 1 !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28) !important;
}

body.zhineng-store .jz-product-info {
  padding: 44px 36px 34px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

body.zhineng-store .jz-product-info h1 {
  margin-bottom: 12px !important;
  font-size: 34px !important;
}

body.zhineng-store .jz-badges {
  margin-bottom: 18px !important;
}

body.zhineng-store .jz-price-block {
  margin-bottom: 14px !important;
  padding-bottom: 16px !important;
}

body.zhineng-store .jz-price-block .price {
  display: flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  color: #258fff !important;
  font-size: 26px !important;
  line-height: 1 !important;
}

body.zhineng-store .jz-price-block .unit {
  color: #ff6868 !important;
  font-size: 15px !important;
}

body.zhineng-store .zhineng-wholesale {
  margin: 0 0 18px !important;
}

body.zhineng-store .zhineng-wholesale-card {
  padding: 16px 18px !important;
  border-radius: 8px !important;
  background: rgba(0, 190, 105, .08) !important;
}

body.zhineng-store .zhineng-wholesale-head {
  margin-bottom: 10px !important;
}

body.zhineng-store .zhineng-wholesale-pill-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.zhineng-store .zhineng-wholesale-row {
  width: 100% !important;
  min-height: 27px !important;
  padding: 0 10px !important;
  font-size: 10px !important;
}

body.zhineng-store .jz-qty-field {
  margin-bottom: 22px !important;
}

body.zhineng-store .jz-product-page .qty-group {
  width: 112px !important;
  height: 34px !important;
  display: grid !important;
  grid-template-columns: 34px 1fr 34px !important;
  border-radius: 5px !important;
}

body.zhineng-store .jz-product-page .qty-group .form-control,
body.zhineng-store .jz-product-page .qty-group button {
  width: auto !important;
  min-height: 32px !important;
  height: 32px !important;
}

body.zhineng-store .jz-pay-area {
  margin-top: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.zhineng-store .jz-pay-area .form-label {
  color: #8f79ff !important;
  font-size: 13px !important;
  margin-bottom: 10px !important;
}

body.zhineng-store .jz-pay-area .pay-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  border-top: 0 !important;
  padding-top: 0 !important;
}

body.zhineng-store .jz-pay-area .pay-list .pay {
  min-height: 42px !important;
  justify-content: center !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, .09) !important;
  box-shadow: none !important;
}

body.zhineng-store .jz-pay-area .pay-list .pay.active,
body.zhineng-store .jz-pay-area .pay-list .pay.is-primary,
body.zhineng-store .jz-pay-area .pay-list .pay.selected {
  background: #238cff !important;
}

@media (max-width: 991.98px) {
  body.zhineng-store .jz-product-card {
    grid-template-columns: 1fr !important;
  }

  body.zhineng-store .jz-product-media {
    padding: 18px !important;
  }

  body.zhineng-store .jz-product-info {
    padding: 28px 22px 24px !important;
  }
}

@media (max-width: 575.98px) {
  body.zhineng-store .jz-product-info h1 {
    font-size: 28px !important;
  }

  body.zhineng-store .zhineng-wholesale-pill-list,
  body.zhineng-store .jz-pay-area .pay-list {
    grid-template-columns: 1fr !important;
  }
}

/* Product detail final balance: make image and buy controls feel equal */
body.zhineng-store .jz-product-card {
  grid-template-columns: minmax(420px, .98fr) minmax(430px, 1.02fr) !important;
}

body.zhineng-store .jz-product-media {
  padding: 26px !important;
  align-items: center !important;
}

body.zhineng-store .jz-product-media .item-cover {
  max-width: 100% !important;
  aspect-ratio: 1.18 / 1 !important;
}

body.zhineng-store .jz-product-info {
  padding: 34px 36px 30px !important;
}

body.zhineng-store .jz-product-info h1 {
  margin-bottom: 10px !important;
  font-size: 33px !important;
}

body.zhineng-store .jz-badges {
  margin-bottom: 16px !important;
}

body.zhineng-store .jz-price-block {
  margin-bottom: 12px !important;
  padding-bottom: 14px !important;
}

body.zhineng-store .zhineng-wholesale {
  margin-bottom: 16px !important;
}

body.zhineng-store .zhineng-wholesale-card {
  padding: 14px 18px !important;
}

body.zhineng-store .jz-qty-field {
  margin-bottom: 20px !important;
}

body.zhineng-store .jz-pay-area .pay-list {
  gap: 10px !important;
}

body.zhineng-store .jz-pay-area .pay-list .pay {
  min-height: 40px !important;
}

@media (max-width: 991.98px) {
  body.zhineng-store .jz-product-card {
    grid-template-columns: 1fr !important;
  }

  body.zhineng-store .jz-product-media .item-cover {
    aspect-ratio: 1.35 / 1 !important;
  }
}

/* Product detail spacing: tighter checkout rhythm */
body.zhineng-store .jz-product-info {
  padding-top: 30px !important;
}

body.zhineng-store .jz-product-info h1 {
  margin-bottom: 8px !important;
}

body.zhineng-store .jz-badges {
  margin-bottom: 6px !important;
}

body.zhineng-store .jz-price-block {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  padding-bottom: 10px !important;
}

body.zhineng-store .zhineng-wholesale {
  margin-bottom: 8px !important;
}

body.zhineng-store .zhineng-wholesale-card {
  padding: 12px 18px !important;
}

body.zhineng-store .zhineng-wholesale-head {
  margin-bottom: 8px !important;
}

body.zhineng-store .jz-field {
  margin-bottom: 8px !important;
}

body.zhineng-store .jz-qty-field {
  margin-bottom: 6px !important;
}

body.zhineng-store .jz-pay-area .form-label {
  margin-bottom: 6px !important;
}

body.zhineng-store .jz-pay-area {
  margin-top: 6px !important;
}

body.zhineng-store .jz-product-page .cash-pay.jz-pay-area {
  margin-top: 6px !important;
}

body.zhineng-store .jz-pay-area .pay-list {
  gap: 10px 12px !important;
}


/* Public order delivery screen */
body.zhineng-store .jz-order-page {
  max-width: 960px;
  padding-top: 88px;
  padding-bottom: 44px;
}

body.zhineng-store .order-delivery-shell {
  border: 1px solid rgba(105, 116, 135, .42);
  border-radius: 12px;
  background: rgba(24, 26, 31, .92);
  color: #f6f8fc;
  overflow: hidden;
}

body.zhineng-store .order-delivery-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 28px 16px;
}

body.zhineng-store .order-delivery-head > div:nth-child(2) {
  flex: 1;
}

body.zhineng-store .order-delivery-head h2 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 950;
}

body.zhineng-store .order-delivery-head p {
  margin: 6px 0 0;
  color: #a8b1c3;
  font-size: 12px;
}

body.zhineng-store .order-delivery-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #52aaff;
  background: #0d2b4a;
  font-size: 22px;
}

body.zhineng-store .order-head-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.zhineng-store .order-delivery-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 12px;
  margin: 0 24px 20px;
  padding: 14px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(48, 201, 120, .08), rgba(76, 161, 255, .18));
}

body.zhineng-store .order-delivery-search input,
body.zhineng-store .order-delivery-search button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
}

body.zhineng-store .order-delivery-search input {
  padding: 0 12px;
  color: #e9edf5;
  background: #191a1e;
}

body.zhineng-store .order-delivery-search button {
  color: #fff;
  background: #258be8;
  font-weight: 800;
}

body.zhineng-store .order-delivery-card {
  display: grid;
  grid-template-columns: 305px minmax(0, 1fr);
  gap: 18px;
  margin: 0 24px 24px;
}

body.zhineng-store .order-delivery-side,
body.zhineng-store .order-delivery-main {
  border: 1px solid rgba(105, 116, 135, .35);
  border-radius: 10px;
  background: #181a1f;
}

body.zhineng-store .order-delivery-side {
  padding: 18px;
}

body.zhineng-store .order-delivery-side h3,
body.zhineng-store .order-secret-title,
body.zhineng-store .order-receipt-label {
  color: #fff;
  font-weight: 850;
}

body.zhineng-store .order-product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

body.zhineng-store .order-product-cover,
body.zhineng-store .order-product-fallback {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #0d1422;
  border: 1px solid #24354f;
}

body.zhineng-store .order-product-cover {
  object-fit: cover;
}

body.zhineng-store .order-product-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7eb8ff;
  font-size: 10px;
}

body.zhineng-store .order-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  margin-top: 15px;
}

body.zhineng-store .order-step-dot {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #555b68;
  font-size: 12px;
  font-weight: 850;
}

body.zhineng-store .order-step-dot.done {
  background: #30c978;
}

body.zhineng-store .order-step-title {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

body.zhineng-store .order-step-note,
body.zhineng-store .order-muted {
  margin-top: 3px;
  color: #a8b1c3;
  font-size: 11px;
}

body.zhineng-store .order-delivery-main {
  overflow: hidden;
}

body.zhineng-store .order-receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 21px;
  border-bottom: 1px solid #2c3038;
}

body.zhineng-store .order-receipt-card {
  min-height: 78px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #303641;
  background: #20232a;
}

body.zhineng-store .order-receipt-label {
  margin-bottom: 9px;
  color: #8793ad;
  font-size: 12px;
}

body.zhineng-store .order-receipt-value {
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  word-break: break-word;
}

body.zhineng-store .order-price {
  color: #30d878;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

body.zhineng-store .order-secret {
  margin: 21px;
  padding: 18px;
  border-radius: 9px;
  border: 1px dashed rgba(85, 215, 208, .45);
  background: rgba(85, 215, 208, .07);
}

body.zhineng-store .order-secret-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.zhineng-store .order-secret-box {
  min-height: 48px;
  padding: 13px 14px;
  border-radius: 7px;
  border: 1px solid #323946;
  background: #111316;
  color: #eff6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

body.zhineng-store .order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 21px 21px;
}

body.zhineng-store .order-action {
  min-height: 39px;
  border-radius: 7px;
  border: 1px solid #3c4554;
  background: #252934;
  color: #eef4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}

body.zhineng-store .order-action.primary {
  border: 0;
  background: linear-gradient(135deg, #25b96c, #258be8);
}

body.zhineng-store .order-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

body.zhineng-store .order-pill.green {
  color: #c7ffdd;
  background: rgba(48, 201, 120, .2);
}

body.zhineng-store .order-pill.amber {
  color: #ffe9bd;
  background: rgba(240, 178, 74, .17);
}

body.zhineng-store .order-empty,
body.zhineng-store .order-loading {
  margin: 0 24px 24px;
  padding: 34px;
  border: 1px solid rgba(105, 116, 135, .35);
  border-radius: 10px;
  background: #181a1f;
  color: #a8b1c3;
  text-align: center;
}

@media (max-width: 900px) {
  body.zhineng-store .order-delivery-search,
  body.zhineng-store .order-delivery-card,
  body.zhineng-store .order-receipt-grid,
  body.zhineng-store .order-actions {
    grid-template-columns: 1fr;
  }

  body.zhineng-store .order-delivery-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}


/* Direct payment return view */
body.zhineng-store .public-order-delivery.is-direct-result .order-delivery-search {
  display: none !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-delivery-head {
  padding-bottom: 18px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-delivery-card {
  margin-top: 0 !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-receipt-grid {
  grid-template-columns: 1fr 1fr !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-secret {
  margin-top: 18px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-product-fallback {
  color: #95c8ff !important;
  font-size: 10px !important;
  font-weight: 950 !important;
}

/* Compact direct delivery card so the delivered item and actions fit earlier */
body.zhineng-store .jz-order-page {
  padding-top: 78px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-delivery-head {
  padding: 22px 28px 14px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-delivery-card {
  gap: 16px !important;
  margin: 0 24px 22px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-delivery-side {
  padding: 16px 18px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-product {
  margin: 14px 0 16px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-step {
  margin-top: 13px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-receipt-grid {
  gap: 12px !important;
  padding: 20px 21px 16px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-receipt-card {
  min-height: 74px !important;
  padding: 14px 15px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-secret {
  margin: 18px 21px 14px !important;
  padding: 16px 18px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-secret-box {
  min-height: 46px !important;
  padding: 12px 14px !important;
}

body.zhineng-store .public-order-delivery.is-direct-result .order-actions {
  padding: 0 21px 18px !important;
}

/* Keep direct order delivery close to the navbar */
body.zhineng-store .jz-order-page {
  padding-top: 36px !important;
}
