/*
Theme Name: Jinshi Storefront Child
Theme URI: https://www.haolang.com
Description: 南昌锦狮体育 WooCommerce 双轨官网子主题。
Author: 南昌锦狮体育用品有限公司
Template: storefront
Version: 0.2.0
Text Domain: jinshi-storefront-child
*/

:root {
  --jinshi-ink: #101820;
  --jinshi-muted: #61707d;
  --jinshi-red: #c81d24;
  --jinshi-blue: #0d527f;
  --jinshi-line: #d9e2e8;
  --jinshi-pale: #f2f6f8;
  --jinshi-warm: #fff3ed;
  --jinshi-radius: 8px;
}

body {
  color: var(--jinshi-ink);
  background: #f7f9fa;
}

a {
  color: var(--jinshi-blue);
}

.jinshi-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--jinshi-line);
}

.jinshi-header-inner,
.jinshi-container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.jinshi-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.jinshi-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--jinshi-ink);
  text-decoration: none;
  white-space: nowrap;
}

.jinshi-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--jinshi-red);
  color: #fff;
  font-weight: 800;
}

.jinshi-brand-text {
  display: grid;
  gap: 2px;
}

.jinshi-brand-text strong {
  line-height: 1.1;
}

.jinshi-brand-text small {
  color: var(--jinshi-muted);
}

.jinshi-main-nav {
  margin-left: auto;
}

.jinshi-main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jinshi-main-nav a {
  color: var(--jinshi-muted);
  font-weight: 700;
  text-decoration: none;
}

.jinshi-header-actions {
  display: flex;
  gap: 8px;
}

.jinshi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--jinshi-radius);
  font-weight: 800;
  text-decoration: none;
}

.jinshi-button-primary {
  background: var(--jinshi-red);
  color: #fff;
}

.jinshi-button-secondary {
  background: #fff;
  border-color: var(--jinshi-line);
  color: var(--jinshi-ink);
}

.jinshi-home-hero {
  padding: 48px 0 24px;
}

.jinshi-home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}

.jinshi-hero-copy,
.jinshi-hero-placeholder,
.jinshi-rail,
.jinshi-band {
  border: 1px solid var(--jinshi-line);
  border-radius: var(--jinshi-radius);
  box-shadow: 0 18px 44px rgba(16, 24, 32, 0.07);
}

.jinshi-hero-copy {
  padding: 40px;
  background: #fff;
}

.jinshi-eyebrow {
  margin: 0 0 10px;
  color: var(--jinshi-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jinshi-hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
}

.jinshi-hero-copy p {
  color: var(--jinshi-muted);
  font-size: 17px;
}

.jinshi-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.jinshi-hero-placeholder {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(33, 50, 64, 0.98)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 12px);
  color: #fff;
  text-align: center;
}

.jinshi-home-section {
  padding: 22px 0;
}

.jinshi-dual-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.jinshi-rail {
  padding: 28px;
}

.jinshi-rail-retail {
  background: var(--jinshi-pale);
}

.jinshi-rail-business {
  background: var(--jinshi-warm);
}

.jinshi-rail h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.jinshi-rail p {
  color: var(--jinshi-muted);
}

.jinshi-product-section {
  padding: 32px 0;
}

.jinshi-product-section h2 {
  margin-bottom: 6px;
}

.jinshi-section-lead {
  color: var(--jinshi-muted);
}

.jinshi-b2b-label {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0ea;
  color: var(--jinshi-red);
  font-size: 12px;
  font-weight: 800;
}

.jinshi-quote-price {
  color: var(--jinshi-red);
  font-weight: 800;
}

.jinshi-quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--jinshi-radius);
  background: var(--jinshi-red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.jinshi-quote-form {
  display: grid;
  gap: 16px;
}

.jinshi-quote-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.jinshi-quote-form label {
  display: grid;
  gap: 6px;
  color: var(--jinshi-ink);
  font-weight: 700;
}

.jinshi-quote-form input,
.jinshi-quote-form select,
.jinshi-quote-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--jinshi-line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

.jinshi-quote-form textarea {
  min-height: 140px;
  resize: vertical;
}

.jinshi-form-wide {
  grid-column: 1 / -1;
}

.jinshi-notice {
  padding: 14px 16px;
  border-left: 4px solid var(--jinshi-red);
  background: #fff3ed;
}

@media (max-width: 960px) {
  .jinshi-home-hero-grid,
  .jinshi-dual-rail {
    grid-template-columns: 1fr;
  }

  .jinshi-main-nav {
    order: 3;
    width: 100%;
  }

  .jinshi-header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }
}

@media (max-width: 640px) {
  .jinshi-header-actions {
    width: 100%;
  }

  .jinshi-header-actions .jinshi-button {
    flex: 1;
  }

  .jinshi-main-nav ul {
    gap: 10px 14px;
    font-size: 14px;
  }

  .jinshi-hero-copy {
    padding: 28px;
  }

  .jinshi-hero-placeholder {
    min-height: 280px;
  }

  .jinshi-quote-form-grid {
    grid-template-columns: 1fr;
  }

  .jinshi-form-wide {
    grid-column: auto;
  }
}

/* Full homepage layout and responsive visual system. */
.jinshi-site {
  --jinshi-bg: #f4f7fb;
  --jinshi-surface: #fff;
  --jinshi-surface-2: #eef3f7;
  --jinshi-text: #0f1720;
  --jinshi-muted: #5f6d7b;
  --jinshi-line: #d7e0e8;
  --jinshi-blue: #0e4d7a;
  --jinshi-shadow: 0 18px 44px rgba(15, 23, 32, 0.08);
  background: linear-gradient(180deg, #fff 0%, var(--jinshi-bg) 100%);
}

.jinshi-topbar {
  background: #0d1720;
  color: rgba(255,255,255,.9);
  font-size: .92rem;
}

.jinshi-topbar-inner {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.jinshi-topbar-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.jinshi-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--jinshi-line);
  border-radius: 10px;
  background: #fff;
}

.jinshi-hero {
  padding: 2rem 0 1rem;
}

.jinshi-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 1.4rem;
  align-items: stretch;
}

.jinshi-hero-copy,
.jinshi-hero-visual,
.jinshi-panel,
.jinshi-feature-band,
.jinshi-cta-band,
.jinshi-page-hero,
.jinshi-page-shell {
  background: #fff;
  border: 1px solid rgba(215,224,232,.9);
  border-radius: var(--jinshi-radius);
  box-shadow: var(--jinshi-shadow);
}

.jinshi-hero-copy {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jinshi-hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 4.1rem);
}

.jinshi-hero-copy > p:not(.jinshi-eyebrow) {
  color: var(--jinshi-muted);
  max-width: 62ch;
}

.jinshi-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jinshi-hero-points li {
  padding: .9rem 1rem;
  border-radius: 10px;
  background: var(--jinshi-surface-2);
  border: 1px solid rgba(215,224,232,.9);
  font-size: .94rem;
}

.jinshi-hero-visual {
  padding: 1.1rem;
  overflow: hidden;
}

.jinshi-visual-frame {
  min-height: 100%;
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg,rgba(12,20,27,.97),rgba(26,36,48,.97));
  color: #fff;
}

.jinshi-visual-badge {
  align-self: flex-start;
  padding: .45rem .72rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .86rem;
}

.jinshi-visual-core {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,.15);
  background: radial-gradient(circle at 50% 38%,rgba(200,29,36,.24),transparent 42%),linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  text-align: center;
}

.jinshi-visual-core strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 1.7rem;
}

.jinshi-visual-core span {
  color: rgba(255,255,255,.82);
}

.jinshi-visual-footer {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .8rem;
}

.jinshi-spec-chip {
  padding: .8rem .9rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .9rem;
}

.jinshi-spec-chip strong {
  display: block;
  margin-bottom: .15rem;
}

.jinshi-section {
  padding: 1.1rem 0;
}

.jinshi-dual-rail {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}

.jinshi-rail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
  border: 1px solid rgba(215,224,232,.9);
  border-radius: var(--jinshi-radius);
  box-shadow: var(--jinshi-shadow);
}

.jinshi-rail-retail {
  background: #f0f5fa;
}

.jinshi-rail-business {
  background: #fff3ee;
}

.jinshi-rail-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #0d1720;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.jinshi-rail-business .jinshi-rail-icon {
  background: var(--jinshi-red);
}

.jinshi-rail h2 {
  margin-bottom: .45rem;
  font-size: clamp(1.35rem,2.2vw,1.85rem);
}

.jinshi-rail p:not(.jinshi-eyebrow) {
  color: var(--jinshi-muted);
}

.jinshi-rail-meta,
.jinshi-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.jinshi-rail-meta span,
.jinshi-tag-list li {
  padding: .34rem .56rem;
  border: 1px solid rgba(15,23,32,.12);
  border-radius: 999px;
  color: #314354;
  font-size: .82rem;
}

.jinshi-feature-band,
.jinshi-panel,
.jinshi-page-shell {
  padding: 1.1rem;
}

.jinshi-feature-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .9rem;
}

.jinshi-feature {
  padding: 1rem;
  border: 1px solid rgba(215,224,232,.9);
  border-radius: 10px;
  background: var(--jinshi-surface-2);
}

.jinshi-feature strong {
  display: block;
  margin-bottom: .28rem;
}

.jinshi-feature p {
  margin-bottom: 0;
  color: var(--jinshi-muted);
  font-size: .94rem;
}

.jinshi-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.jinshi-section-head-tight {
  margin-bottom: .75rem;
}

.jinshi-section-head h2 {
  margin-bottom: .35rem;
  font-size: clamp(1.6rem,2.6vw,2.25rem);
}

.jinshi-section-head p {
  margin-bottom: 0;
  max-width: 68ch;
  color: var(--jinshi-muted);
}

.jinshi-section-link {
  color: var(--jinshi-blue);
  font-weight: 700;
  white-space: nowrap;
}

.jinshi-cards-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}

.jinshi-auto-4 {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.jinshi-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(215,224,232,.92);
  border-radius: var(--jinshi-radius);
  box-shadow: var(--jinshi-shadow);
}

.jinshi-card-body {
  padding: 1rem 1rem 1.1rem;
}

.jinshi-card h3 {
  margin-bottom: .45rem;
}

.jinshi-card p {
  color: var(--jinshi-muted);
}

.jinshi-media-shell {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: end start;
  padding: .9rem;
  background: linear-gradient(135deg,#e4eaef,#cdd9e4);
  color: #25313d;
}

.jinshi-media-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,transparent 0 18%,rgba(255,255,255,.35) 18% 24%,transparent 24% 100%);
}

.jinshi-media-shell span {
  position: relative;
  z-index: 1;
  padding: .42rem .65rem;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  font-size: .83rem;
}

.jinshi-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(215,224,232,.8);
}

.jinshi-text-link {
  color: var(--jinshi-blue);
  font-size: .92rem;
  font-weight: 800;
}

.jinshi-accent-link {
  color: var(--jinshi-red);
}

.jinshi-panel-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 1rem;
  align-items: stretch;
}

.jinshi-panel-photo {
  min-height: 100%;
}

.jinshi-list-clean {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.jinshi-list-clean li {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(215,224,232,.8);
}

.jinshi-list-clean li:last-child {
  border-bottom: 0;
}

.jinshi-list-clean strong {
  display: block;
  margin-bottom: .2rem;
}

.jinshi-model-meta {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: var(--jinshi-muted);
  font-size: .88rem;
  margin-bottom: .45rem;
}

.jinshi-faq-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}

.jinshi-faq-item {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(215,224,232,.92);
  border-radius: 10px;
  background: #fff;
}

.jinshi-faq-item h3 {
  margin-bottom: .45rem;
  font-size: 1.03rem;
}

.jinshi-faq-item p {
  color: var(--jinshi-muted);
}

.jinshi-cta-band {
  margin: 1.1rem auto 2rem;
  padding: 1.25rem;
  background: linear-gradient(135deg,#0f1720,#1c2a38);
  color: #fff;
}

.jinshi-cta-band p {
  color: rgba(255,255,255,.82);
}

.jinshi-cta-band .jinshi-button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.24);
}

.jinshi-page-hero {
  width: min(100% - 2rem, 1180px);
  margin: 2rem auto 1.1rem;
  padding: 1.45rem;
}

.jinshi-page-hero h1 {
  margin-bottom: .75rem;
}

.jinshi-page-hero p {
  margin-bottom: 0;
  color: var(--jinshi-muted);
}

.jinshi-site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--jinshi-muted);
}

.jinshi-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(215,224,232,.85);
}

.jinshi-footer-grid h2,
.jinshi-footer-grid h3 {
  color: var(--jinshi-text);
  margin-bottom: .55rem;
}

.jinshi-footer-links {
  display: grid;
  gap: .4rem;
}

.jinshi-footer-contact p {
  margin: 0 0 .5rem;
}

.jinshi-footer-contact a,
.jinshi-contact-band a {
  color: inherit;
  font-weight: 700;
}

.jinshi-wechat-card,
.jinshi-contact-qr {
  display: grid;
  justify-items: start;
  gap: .5rem;
  margin-top: .75rem;
}

.jinshi-wechat-card img,
.jinshi-contact-qr img {
  width: 180px;
  height: 225px;
  object-fit: cover;
  background: #fff;
}

.jinshi-wechat-card span,
.jinshi-contact-qr span {
  color: var(--jinshi-muted);
  font-size: 13px;
}

.jinshi-contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--jinshi-line);
  border-radius: var(--jinshi-radius);
  background: var(--jinshi-surface);
  box-shadow: var(--jinshi-shadow);
}

.jinshi-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(215,224,232,.85);
  font-size: .92rem;
}

.jinshi-mobile-action-bar {
  display: none;
}

.jinshi-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.jinshi-shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--jinshi-line);
}

.jinshi-shop-toolbar h2 {
  margin-bottom: .35rem;
}

.jinshi-shop-toolbar p {
  margin: 0;
  color: var(--jinshi-muted);
}

.jinshi-shop-empty {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--jinshi-line);
  border-radius: var(--jinshi-radius);
  background: rgba(255,255,255,.72);
  text-align: center;
}

.jinshi-shop-empty p {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--jinshi-muted);
}

.jinshi-shop-empty .jinshi-hero-actions {
  justify-content: center;
}

@media (max-width: 1100px) {
  .jinshi-hero-grid,
  .jinshi-panel-grid,
  .jinshi-footer-grid {
    grid-template-columns: 1fr;
  }

  .jinshi-contact-band {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .jinshi-dual-rail {
    grid-template-columns: 1fr;
  }

  .jinshi-feature-grid,
  .jinshi-cards-grid,
  .jinshi-auto-4 {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 820px) {
  .jinshi-topbar-inner,
  .jinshi-section-head,
  .jinshi-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .jinshi-nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .jinshi-main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + .75rem);
    display: none;
    padding: 1rem;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--jinshi-line);
    border-radius: 14px;
    box-shadow: var(--jinshi-shadow);
  }

  .jinshi-main-nav.is-open {
    display: block;
  }

  .jinshi-main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
  }

  .jinshi-header-actions {
    display: none;
  }

  .jinshi-hero-copy {
    padding: 1.5rem;
  }

  .jinshi-hero-points,
  .jinshi-visual-footer,
  .jinshi-rail,
  .jinshi-feature-grid,
  .jinshi-cards-grid,
  .jinshi-auto-4,
  .jinshi-faq-grid {
    grid-template-columns: 1fr;
  }

  .jinshi-shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body.jinshi-site {
    padding-bottom: 64px;
  }

  .jinshi-mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    background: rgba(13,23,32,.97);
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .jinshi-mobile-action-bar a {
    min-height: 64px;
    display: grid;
    place-items: center;
    padding: .35rem .2rem;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.1);
  }

  .jinshi-mobile-action-bar a:last-child {
    border-right: 0;
    background: var(--jinshi-red);
  }

  .jinshi-hero-copy h1 {
    font-size: 2.5rem;
  }
}

/* Mobile commerce layer: compact browsing, stable product cards and touch-sized actions. */
.jinshi-mobile-shop-actions {
  display: none;
}

.jinshi-shop-page-hero .jinshi-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.jinshi-shop-hero-copy {
  min-width: 0;
}

.jinshi-shop-hero-copy h1 {
  margin-bottom: .6rem;
}

.jinshi-shop-hero-copy p {
  max-width: 68ch;
}

.jinshi-shop-hero-cart {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 .9rem;
  border: 1px solid var(--jinshi-line);
  border-radius: var(--jinshi-radius);
  background: #fff;
  color: var(--jinshi-ink);
  font-weight: 800;
  text-decoration: none;
}

.jinshi-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--jinshi-red);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.jinshi-shop-category-nav {
  display: flex;
  gap: .55rem;
  margin: 0 0 1rem;
  padding: .15rem 0 .2rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.jinshi-shop-category-nav a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 .8rem;
  border: 1px solid var(--jinshi-line);
  border-radius: 999px;
  background: #fff;
  color: var(--jinshi-muted);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

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

.jinshi-shop-category-nav .jinshi-shop-category-more {
  border-style: dashed;
}

.jinshi-shop-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.jinshi-shop-toolbar-actions .jinshi-button {
  gap: .4rem;
}

.jinshi-shop-loop-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  margin-bottom: 1rem;
  padding: .6rem .8rem;
  border: 1px solid var(--jinshi-line);
  border-radius: var(--jinshi-radius);
  background: #fff;
}

.jinshi-shop-loop-tools::after,
.jinshi-shop-loop-tools::before {
  display: none;
}

.jinshi-shop-loop-tools .woocommerce-result-count {
  margin: 0;
  color: var(--jinshi-muted);
  font-size: .9rem;
}

.jinshi-shop-loop-tools .woocommerce-ordering {
  float: none;
  margin: 0;
}

.jinshi-shop-loop-tools .woocommerce-ordering select {
  min-height: 36px;
  padding: 0 2rem 0 .65rem;
  border: 1px solid var(--jinshi-line);
  border-radius: 6px;
  background: #fff;
  color: var(--jinshi-ink);
  font: inherit;
  font-size: .9rem;
}

.woocommerce ul.products.jinshi-mobile-product-grid,
.woocommerce-page ul.products.jinshi-mobile-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.woocommerce ul.products.jinshi-mobile-product-grid::before,
.woocommerce ul.products.jinshi-mobile-product-grid::after {
  display: none;
}

.woocommerce ul.products.jinshi-mobile-product-grid li.product {
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: .85rem;
  border: 1px solid var(--jinshi-line);
  border-radius: var(--jinshi-radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 32, .05);
}

.woocommerce ul.products.jinshi-mobile-product-grid li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.woocommerce ul.products.jinshi-mobile-product-grid li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 0 .8rem;
  background: #f3f6f8;
}

.woocommerce ul.products.jinshi-mobile-product-grid li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0 0 .4rem;
  overflow: hidden;
  color: var(--jinshi-ink);
  font-size: 1rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.woocommerce ul.products.jinshi-mobile-product-grid li.product .price {
  min-height: 1.5em;
  margin: 0 0 .75rem;
  color: var(--jinshi-red);
  font-size: 1rem;
  font-weight: 800;
}

.woocommerce ul.products.jinshi-mobile-product-grid li.product .button {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  padding: 0 .65rem;
  border-radius: 6px;
  font-size: .86rem;
  text-align: center;
}

.woocommerce ul.products.jinshi-mobile-product-grid li.product .added_to_cart {
  display: block;
  margin-top: .45rem;
  color: var(--jinshi-blue);
  font-size: .82rem;
  text-align: center;
}

@media (max-width: 820px) {
  .jinshi-site-header {
    position: sticky;
    top: 0;
  }

  .jinshi-header-inner {
    position: relative;
    min-height: 64px;
    width: min(100% - 24px, 1180px);
    padding: .55rem 0;
  }

  .jinshi-brand-text small {
    display: none;
  }

  .jinshi-shop-context .jinshi-mobile-shop-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-left: auto;
  }

  .jinshi-shop-context .jinshi-mobile-shop-actions a {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-height: 38px;
    padding: 0 .55rem;
    border: 1px solid var(--jinshi-line);
    border-radius: 6px;
    background: #fff;
    color: var(--jinshi-ink);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
  }

  .jinshi-shop-page-hero {
    margin-top: 1rem;
    padding: 1rem;
  }

  .jinshi-shop-page-hero .jinshi-container {
    align-items: flex-start;
  }

  .jinshi-shop-hero-copy h1 {
    font-size: 1.9rem;
  }

  .jinshi-shop-hero-copy p {
    margin-bottom: 0;
    font-size: .94rem;
    line-height: 1.65;
  }

  .jinshi-shop-hero-cart {
    min-height: 40px;
    padding: 0 .6rem;
    font-size: .8rem;
  }

  .jinshi-shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
  }

  .jinshi-shop-toolbar h2 {
    font-size: 1.45rem;
  }

  .jinshi-shop-toolbar p {
    font-size: .9rem;
    line-height: 1.55;
  }

  .jinshi-shop-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .jinshi-shop-toolbar-actions .jinshi-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 .65rem;
    font-size: .82rem;
    white-space: nowrap;
  }

  .jinshi-shop-loop-tools {
    margin-bottom: .8rem;
    padding: .45rem .6rem;
  }

  .jinshi-shop-loop-tools .woocommerce-result-count {
    font-size: .78rem;
  }

  .jinshi-shop-loop-tools .woocommerce-ordering select {
    max-width: 9rem;
    font-size: .78rem;
  }
}

@media (max-width: 520px) {
  body.jinshi-shop-context {
    padding-bottom: 76px;
  }

  .jinshi-topbar-links {
    display: none;
  }

  .jinshi-topbar-inner {
    min-height: 32px;
    width: min(100% - 24px, 1180px);
    font-size: .75rem;
  }

  .jinshi-brand-mark {
    width: 34px;
    height: 34px;
    font-size: .9rem;
  }

  .jinshi-brand-text strong {
    font-size: .95rem;
  }

  .jinshi-nav-toggle {
    width: 38px;
    height: 38px;
    margin-left: .2rem;
    border-radius: 6px;
  }

  .jinshi-shop-page-hero .jinshi-container {
    gap: .65rem;
  }

  .jinshi-shop-hero-cart {
    flex-direction: column;
    gap: .2rem;
    min-width: 58px;
    padding: .35rem .45rem;
    text-align: center;
  }

  .jinshi-shop-hero-cart .jinshi-cart-count {
    min-width: 20px;
    min-height: 20px;
  }

  .jinshi-section {
    padding: .75rem 0;
  }

  .jinshi-container {
    width: min(100% - 20px, 1180px);
  }

  .jinshi-shop-category-nav {
    margin-bottom: .8rem;
    margin-right: -10px;
    padding-right: 10px;
  }

  .jinshi-shop-category-nav a {
    min-height: 34px;
    padding: 0 .65rem;
    font-size: .78rem;
  }

  .jinshi-shop-toolbar {
    margin-bottom: .75rem;
    padding-bottom: .75rem;
  }

  .jinshi-shop-toolbar-actions .jinshi-button {
    min-height: 38px;
    font-size: .76rem;
  }

  .jinshi-shop-loop-tools {
    min-height: 38px;
  }

  .woocommerce ul.products.jinshi-mobile-product-grid,
  .woocommerce-page ul.products.jinshi-mobile-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .woocommerce ul.products.jinshi-mobile-product-grid li.product {
    padding: .55rem;
    border-radius: 7px;
    box-shadow: 0 4px 14px rgba(15, 23, 32, .05);
  }

  .woocommerce ul.products.jinshi-mobile-product-grid li.product img {
    margin-bottom: .55rem;
  }

  .woocommerce ul.products.jinshi-mobile-product-grid li.product .woocommerce-loop-product__title {
    min-height: 2.55em;
    font-size: .86rem;
  }

  .woocommerce ul.products.jinshi-mobile-product-grid li.product .price {
    margin-bottom: .55rem;
    font-size: .9rem;
  }

  .woocommerce ul.products.jinshi-mobile-product-grid li.product .button {
    min-height: 36px;
    font-size: .76rem;
  }

  .jinshi-mobile-action-bar a {
    min-height: 72px;
    font-size: .7rem;
  }

  .jinshi-mobile-action-bar a strong {
    font-size: .68rem;
  }
}

/*
 * The live mall uses jinshi-mall-shop's .jm-cards/.jm-card markup.
 * Its stylesheet changes the grid to one column below 600px, so keep the
 * mobile storefront at two columns for the actual product cards.
 */
@media (max-width: 600px) {
  body.jinshi-shop-context.jm-mall-page ul.products.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .65rem !important;
  }

  body.jinshi-shop-context.jm-mall-page ul.products.products li.jm-card {
    min-width: 0;
  }

  body.jinshi-shop-context.jm-mall-page ul.products.products li.jm-card-hero {
    grid-column: auto;
    height: auto;
    border: 1px solid var(--jm-border, var(--jinshi-line));
    background: #fff;
    overflow: hidden;
  }

  body.jinshi-shop-context.jm-mall-page ul.products.products li.jm-card-hero > a {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    background: #fff;
  }

  body.jinshi-shop-context.jm-mall-page ul.products.products li.jm-card-hero img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
  }

  body.jinshi-shop-context.jm-mall-page ul.products.products li.jm-card .jm-card-title {
    font-size: .86rem !important;
    line-height: 1.4;
    min-height: 2.4em;
  }

  body.jinshi-shop-context.jm-mall-page ul.products.products li.jm-card .jm-card-price {
    font-size: .95rem !important;
  }

  body.single-product.jinshi-shop-context.jm-mall-page div.product div.woocommerce-product-gallery {
    margin-bottom: 18px !important;
  }

  body.single-product.jinshi-shop-context.jm-mall-page div.product .summary h1.product_title.entry-title {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-top: .2rem !important;
    margin-bottom: .65rem !important;
  }
}
