/**
 * JWC Wholesale Jerseys Template - 覆盖层样式
 *
 * 主视觉样式见 54959.css（从参考站浏览器会话提取）。
 * 本文件仅保留 Zen Cart 兼容类名 + 本地开发微调。
 * 参考站点：https://www.jerseyswholesaleclub.com.co/
 */

/* ── 设计令牌（来自 54959.css 实测，非早期推测色） ── */
:root {
  --jwc-primary:       #46327e;   /* 导航紫 gradient 基色 */
  --jwc-primary-light: #5d4898;
  --jwc-accent:        #19cab0;   /* 购物车/CTA 青绿 */
  --jwc-accent-hover:  #3da36d;
  --jwc-text:          #333333;
  --jwc-text-light:    #666666;
  --jwc-text-inverse:  #ffffff;
  --jwc-bg:            #ffffff;
  --jwc-bg-alt:        #f5f5f5;
  --jwc-border:        #e0e0e0;
  --jwc-danger:        #d32f2f;
  --jwc-success:       #388e3c;

  --jwc-font-base:     'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --jwc-font-heading:  'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  --jwc-container-max: 1280px;
  --jwc-radius:        4px;
  --jwc-shadow:        0 2px 8px rgba(0,0,0,0.1);
  --jwc-transition:    0.2s ease;
}

/* ── 54959 首页模块标题（对齐源站 h2：句首大写、阴影、36px） ── */
.centerBoxHeading {
  display: block;
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  text-transform: none;
  color: #c0001d;
  text-shadow: #c1c1c1 3px 3px;
  margin: 0 0 15px;
  letter-spacing: normal;
  position: relative;
}

#tm_categories_wrapper {
  position: relative;
  z-index: 1000;
}

#tm_categories_box {
  display: none;
}

/* CSS 悬停展开（不依赖 JS，避免脚本错误时失效） */
#tm_categories_wrapper:hover #tm_categories_box {
  display: block !important;
}

.header_info_nav,
.header_nav,
#header_nav_box {
  overflow: visible !important;
}

/* ── 主导航 Bootsnav（紫色导航条内） ── */
.header_info_nav nav.navbar.bootsnav {
  background: transparent;
  border: none;
  margin: 0;
  min-height: 60px;
  z-index: 998;
}

.header_info_nav nav.navbar.bootsnav .navbar-header {
  display: none;
}

.header_info_nav nav.navbar.bootsnav .navbar-collapse {
  padding: 0;
  border: none;
  box-shadow: none;
}

.header_info_nav nav.navbar.bootsnav ul.nav {
  margin: 0;
}

.header_info_nav nav.navbar.bootsnav ul.nav > li {
  position: relative;
}

.header_info_nav nav.navbar.bootsnav ul.nav > li > a {
  color: #fff !important;
  padding: 0 14px;
  line-height: 60px;
  height: 60px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  background: transparent !important;
}

.header_info_nav nav.navbar.bootsnav ul.nav > li > a:hover,
.header_info_nav nav.navbar.bootsnav ul.nav > li.dropdown.on > a {
  color: #bd3f47 !important;
}

.header_info_nav nav.navbar.bootsnav li.dropdown ul.dropdown-menu {
  top: 100%;
  left: 0;
  margin-top: 0;
  border-top: 3px solid #bd3f47;
  min-width: 240px;
  max-height: 420px;
  overflow-y: auto;
}

.header_info_nav nav.navbar.bootsnav li.dropdown ul.dropdown-menu > li > a {
  color: #333 !important;
  line-height: 1.4;
  padding: 10px 15px;
  white-space: normal;
}

.header_info_nav nav.navbar.bootsnav li.dropdown ul.dropdown-menu > li > a:hover {
  color: #bd3f47 !important;
  background: #f5f5f5;
}

/* 桌面端：主导航悬停展开子分类（CSS 兜底） */
@media (min-width: 982px) {
  .header_info_nav nav.navbar.bootsnav.on ul.nav > li.dropdown:hover > ul.dropdown-menu,
  .header_info_nav nav.navbar.bootsnav.on ul.nav > li.dropdown.on > ul.dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
  }
}

/* ── 基础重置 ── */
.jwc-template { font-family: var(--jwc-font-base); color: var(--jwc-text); line-height: 1.6; }
.jwc-container { max-width: var(--jwc-container-max); margin: 0 auto; padding: 0 15px; }
.jwc-hidden { display: none !important; }

/* ── 按钮 ── */
.jwc-btn { display: inline-block; padding: 10px 24px; border: none; border-radius: var(--jwc-radius); cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none; transition: background var(--jwc-transition); }
.jwc-btn--primary { background: var(--jwc-primary); color: var(--jwc-text-inverse); }
.jwc-btn--primary:hover { background: var(--jwc-primary-light); }
.jwc-btn--secondary { background: var(--jwc-bg-alt); color: var(--jwc-text); border: 1px solid var(--jwc-border); }
.jwc-btn--gold { background: var(--jwc-accent); color: var(--jwc-primary); }
.jwc-btn--gold:hover { background: var(--jwc-accent-hover); }

/* ── 顶部公告栏 ── */
.jwc-top-announcement { background: var(--jwc-primary); color: var(--jwc-text-inverse); text-align: center; padding: 8px 0; font-size: 13px; }
.jwc-wholesale-link { color: var(--jwc-accent); text-decoration: underline; }

/* ── 头部 ── */
.jwc-header-main { padding: 20px 0; border-bottom: 1px solid var(--jwc-border); }
.jwc-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.jwc-logo { flex: 0 0 200px; font-size: 20px; font-weight: 700; color: var(--jwc-primary); }
.jwc-search { flex: 1; display: flex; max-width: 500px; }
.jwc-search-input { flex: 1; padding: 10px 15px; border: 2px solid var(--jwc-border); border-right: none; border-radius: var(--jwc-radius) 0 0 var(--jwc-radius); font-size: 14px; }
.jwc-search-btn { padding: 10px 18px; background: var(--jwc-primary); color: var(--jwc-text-inverse); border: none; border-radius: 0 var(--jwc-radius) var(--jwc-radius) 0; cursor: pointer; }
.jwc-header-actions { display: flex; gap: 20px; align-items: center; }
.jwc-action-link { text-decoration: none; color: var(--jwc-text); font-size: 14px; font-weight: 500; }
.jwc-cart-count { background: var(--jwc-accent); color: var(--jwc-primary); border-radius: 50%; padding: 2px 7px; font-size: 11px; font-weight: 700; margin-left: 4px; }

/* ── Mega 导航 ── */
.jwc-mega-nav { background: var(--jwc-primary); }
.jwc-nav-list { list-style: none; margin: 0; padding: 0; display: flex; }
.jwc-nav-link { display: block; padding: 14px 20px; color: var(--jwc-text-inverse); text-decoration: none; font-size: 14px; font-weight: 500; transition: background var(--jwc-transition); }
.jwc-nav-link:hover { background: var(--jwc-primary-light); }
.jwc-nav-link--wholesale { color: var(--jwc-accent); }
.jwc-mega-panel { display: none; position: absolute; background: var(--jwc-bg); box-shadow: var(--jwc-shadow); padding: 20px; z-index: 100; min-width: 500px; }
.jwc-nav-item--has-mega { position: relative; }
.jwc-nav-item--has-mega:hover .jwc-mega-panel { display: flex; gap: 30px; }
.jwc-mega-title { font-size: 13px; text-transform: uppercase; color: var(--jwc-text-light); margin: 0 0 10px; }
.jwc-mega-links { list-style: none; padding: 0; margin: 0; }
.jwc-mega-links li { margin-bottom: 6px; }
.jwc-mega-links a { color: var(--jwc-text); text-decoration: none; font-size: 14px; }
.jwc-mega-links a:hover { color: var(--jwc-primary); }
.jwc-mobile-toggle { display: none; }

/* ── 主内容布局 ── */
.jwc-main-content { padding: 30px 0; }
.jwc-main-content > .jwc-container { display: flex; gap: 24px; }
.jwc-column-left { flex: 0 0 22%; }
.jwc-column-center { flex: 1; min-width: 0; }
.jwc-column-right { flex: 0 0 22%; }
.jwc-breadcrumb { font-size: 13px; color: var(--jwc-text-light); margin-bottom: 20px; }

/* ── Sidebox ── */
.jwc-sidebox { background: var(--jwc-bg); border: 1px solid var(--jwc-border); border-radius: var(--jwc-radius); margin-bottom: 20px; }
.jwc-sidebox-title { background: var(--jwc-primary); color: var(--jwc-text-inverse); padding: 10px 15px; margin: 0; font-size: 14px; font-weight: 600; }
.jwc-sidebox-content { padding: 15px; }

/* ── 首页模块 ── */
.jwc-section-title { font-size: 22px; font-weight: 700; color: var(--jwc-primary); margin: 0 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--jwc-accent); }
.jwc-hero { background: var(--jwc-primary); color: var(--jwc-text-inverse); padding: 60px 30px; text-align: center; margin-bottom: 40px; border-radius: var(--jwc-radius); }
.jwc-hero-title { font-size: 36px; margin: 0 0 10px; }
.jwc-hero-subtitle { font-size: 18px; opacity: 0.85; margin: 0 0 24px; }
.jwc-league-grid { margin-bottom: 40px; }
.jwc-league-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
.jwc-league-icon { display: flex; align-items: center; justify-content: center; height: 80px; background: var(--jwc-bg-alt); border: 1px solid var(--jwc-border); border-radius: var(--jwc-radius); text-decoration: none; color: var(--jwc-text); font-weight: 600; font-size: 13px; text-align: center; transition: border-color var(--jwc-transition); }
.jwc-league-icon:hover { border-color: var(--jwc-accent); color: var(--jwc-primary); }
.jwc-product-section { margin-bottom: 40px; }
.jwc-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.jwc-product-card { border: 1px solid var(--jwc-border); border-radius: var(--jwc-radius); overflow: hidden; transition: box-shadow var(--jwc-transition); }
.jwc-product-card:hover { box-shadow: var(--jwc-shadow); }
.jwc-product-image { height: 220px; background: var(--jwc-bg-alt); }
.jwc-product-name { padding: 10px 15px 0; font-size: 14px; margin: 0; }
.jwc-product-name a { color: var(--jwc-text); text-decoration: none; }
.jwc-product-price { padding: 5px 15px 15px; font-weight: 700; color: var(--jwc-primary); }

/* ── 批发 CTA ── */
.jwc-wholesale-cta { background: var(--jwc-primary); color: var(--jwc-text-inverse); padding: 40px; text-align: center; border-radius: var(--jwc-radius); margin-bottom: 40px; }
.jwc-wholesale-cta-title { font-size: 24px; margin: 0 0 10px; }
.jwc-wholesale-cta-text { opacity: 0.85; margin: 0 0 20px; }

/* ── 商品详情页 ── */
.jwc-product-layout { display: flex; gap: 40px; margin-bottom: 40px; }
.jwc-product-gallery { flex: 0 0 45%; }
.jwc-product-main-image { height: 400px; background: var(--jwc-bg-alt); border: 1px solid var(--jwc-border); border-radius: var(--jwc-radius); margin-bottom: 10px; }
.jwc-product-thumbnails { display: flex; gap: 8px; }
.jwc-product-info { flex: 1; }
.jwc-product-title { font-size: 24px; color: var(--jwc-primary); margin: 0 0 15px; }
.jwc-bulk-table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 14px; }
.jwc-bulk-table th, .jwc-bulk-table td { padding: 8px 12px; border: 1px solid var(--jwc-border); text-align: center; }
.jwc-bulk-table th { background: var(--jwc-bg-alt); }
.jwc-bulk-pricing { margin: 16px 0 20px; }
.jwc-bulk-pricing-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: #333; }
.jwc-bulk-pricing-hint { font-size: 12px; color: #777; margin: 0 0 10px; }
.jwc-bulk-pricing-note { font-size: 12px; color: #777; margin-top: 8px; }
.jwc-bulk-tier.is-active { background: #fff8e6; box-shadow: inset 0 0 0 2px #c8a951; }
.jwc-bulk-price.is-active { font-weight: 700; color: #c0001d; }

.jwc-wholesale-price-box { margin-top: 10px; padding: 10px 12px; background: #f7faf7; border-left: 3px solid #2d5a3d; }
.jwc-wholesale-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #2d5a3d; background: #e8f0ea; padding: 2px 8px; margin-bottom: 6px; }
.jwc-wholesale-unit { font-size: 14px; }
.jwc-wholesale-unit strong { font-size: 18px; color: #c0001d; }
.jwc-wholesale-save { display: block; font-size: 12px; color: #666; margin-top: 2px; }
.jwc-wholesale-guest-hint { margin-top: 8px; font-size: 12px; color: #666; }

.jwc-size-guide-trigger { margin: 0 0 10px; }
.jwc-size-guide-btn { padding-left: 0; font-weight: 600; }
.jwc-size-guide-intro { margin-bottom: 14px; color: #555; }
.jwc-size-guide-tabs { padding-top: 14px; }
.jwc-size-guide-table th { background: #f5f5f5; text-align: center; }
.jwc-size-guide-table td { text-align: center; }
.jwc-size-guide-how { margin: 16px 0 0; padding-left: 18px; font-size: 13px; color: #555; }
.jwc-size-guide-how li { margin-bottom: 6px; }

/* ── 商品详情对齐参考站 54959 ── */
#productGeneral .jwc-product-info-panel .panel-heading {
  text-align: center;
  background: #f5f5f5;
  padding: 12px 15px;
}
#productGeneral h1.product_name_info {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  color: #333;
}
#productGeneral .jwc-product-info-panel .list-group-item {
  text-align: center;
  border-color: #ddd;
  padding: 10px 15px;
  font-size: 13px;
  color: #333;
}
#productGeneral .product_price_info {
  font-size: 18px;
  font-weight: 700;
  color: #7b7b7b;
}
#productGeneral .jwc-product-meta-muted {
  color: #999;
  font-size: 12px;
}
#productGeneral .jwc-wholesale-guest-hint {
  font-size: 12px;
  font-weight: 400;
  margin-top: 8px;
  color: #666;
}
#productGeneral .jwc-wholesale-price-box {
  text-align: left;
  margin-top: 10px;
}

/* 隐藏 Zen Cart 默认「请选择」类标题（矩阵模式不需要） */
#productGeneral #attribsOptionsText,
#productGeneral .jwc-product-attributes > h3#attribsOptionsText {
  display: none;
}

/* 尺码数量矩阵（参考站每尺码 ±） */
.jwc-size-matrix-wrap { margin: 0 0 12px; }
.jwc-size-matrix-list {
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 0;
}
.jwc-size-matrix-list > .list-group-item {
  border-left: none;
  border-right: none;
  border-radius: 0 !important;
  padding: 8px 12px;
  margin: 0;
}
.jwc-size-matrix-list > .list-group-item:first-child {
  border-top: none;
}
.jwc-size-matrix-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.jwc-size-label {
  font-size: 13px;
  color: #333;
  text-align: left;
  flex: 1;
  min-width: 0;
}
.jwc-qty-spinner {
  width: 128px;
  flex: 0 0 128px;
}
.jwc-qty-spinner .form-control {
  height: 32px;
  padding: 4px 6px;
  text-align: center;
  border-radius: 0;
  box-shadow: none;
}
.jwc-qty-spinner .btn {
  height: 32px;
  width: 34px;
  padding: 0;
  line-height: 30px;
  border-radius: 0;
  font-size: 16px;
  font-weight: 700;
  background: #f7f7f7;
}
.jwc-qty-spinner .input-group-btn:first-child > .btn {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.jwc-qty-spinner .input-group-btn:last-child > .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.jwc-attr-row {
  margin-bottom: 12px;
}
.jwc-attr-row .optionName {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  float: none;
}
.jwc-attr-row .jwc-attr-menu select,
.jwc-attr-row .jwc-attr-menu .form-control {
  max-width: 100%;
}

/* Add to Cart：CSS 按钮，不用图片按钮 */
#productGeneral .add_to_cart_box {
  margin: 12px 0;
}
#productGeneral .btn_add_to_cart {
  background: #0e0e0d;
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  border-radius: 2px;
}
#productGeneral .btn_add_to_cart:hover,
#productGeneral .btn_add_to_cart:focus {
  background: #3da36d;
  color: #dfe2e2;
}
#productGeneral .add_to_cart_box input[type="image"],
#productGeneral .add_to_cart_box img.cssButton,
#productGeneral .add_to_cart_box .cssButtonHover {
  display: none !important;
}

/* 画廊与信息区间距 */
#productGeneral .jwc-product-gallery-col {
  margin-bottom: 20px;
}
#productGeneral .xzoom-container img.xzoom {
  max-width: 100%;
  height: auto;
}

/* 描述区主图：对齐源站，铺满 Description 内容宽度 */
#productGeneral .products_description_images {
  margin-top: 12px;
}
#productGeneral .products_description_images img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ── 页脚 ── */
.jwc-footer-trust { background: var(--jwc-bg-alt); padding: 20px 0; border-top: 1px solid var(--jwc-border); }
.jwc-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; text-align: center; font-size: 13px; font-weight: 500; }
.jwc-trust-icon { display: block; font-size: 24px; margin-bottom: 5px; }
.jwc-footer-main { background: var(--jwc-primary); color: var(--jwc-text-inverse); padding: 40px 0; }
.jwc-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.jwc-footer-title { font-size: 14px; text-transform: uppercase; margin: 0 0 15px; color: var(--jwc-accent); }
.jwc-footer-links { list-style: none; padding: 0; margin: 0; }
.jwc-footer-links li { margin-bottom: 8px; }
.jwc-footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 13px; }
.jwc-footer-links a:hover { color: var(--jwc-accent); }
.jwc-newsletter-form { display: flex; gap: 0; }
.jwc-newsletter-input { flex: 1; padding: 8px 12px; border: none; border-radius: var(--jwc-radius) 0 0 var(--jwc-radius); font-size: 13px; }
.jwc-newsletter-btn { padding: 8px 16px; background: var(--jwc-accent); color: var(--jwc-primary); border: none; border-radius: 0 var(--jwc-radius) var(--jwc-radius) 0; cursor: pointer; font-weight: 600; font-size: 13px; }
.jwc-footer-bottom { background: #0f2418; padding: 15px 0; }
.jwc-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; }
.jwc-copyright { color: rgba(255,255,255,0.6); font-size: 12px; margin: 0; }
.jwc-payment-badge { display: inline-block; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); padding: 4px 10px; border-radius: var(--jwc-radius); font-size: 11px; margin-left: 6px; }

/* ── 全局组件 ── */
.jwc-back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--jwc-primary); color: var(--jwc-text-inverse); border: none; border-radius: 50%; cursor: pointer; z-index: 999; }
.jwc-modal { display: none; }

/* ── 购物车 / 结账 / 账户 ── */
#shoppingCartDefault .panel-title,
#checkout h1,
#checkoutConfirmDefaultHeading,
#loginDefaultHeading,
#accountDefaultHeading { color: #c0001d; font-size: 22px; }
#cartContentsDisplay img { max-width: 80px; height: auto; }
#checkoutButtons { margin-top: 15px; }
#shoppingCartDefault .panel,
#checkout .panel,
#loginDefault .panel,
#accountDefault .panel,
#contactUsDefault .panel { border-color: #ddd; }
#checkout .fec-block-checkout { margin-bottom: 20px; }
#orderTotals .lineTitle,
#orderTotals .amount { margin-bottom: 4px; }

/* ── 全宽主栏（去掉空侧栏后的内容区） ── */
.jwc-page-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.jwc-main-full.main_wrapper {
  float: none !important;
  width: 100% !important;
  padding-left: 0;
  padding-right: 0;
}

/* ── 商品卡大图（列表 / 相关推荐 / 首页） ── */
.list_products_box {
  /* 对齐源站：左右无内边距，图贴边铺满 */
  padding: 0 0 25px !important;
  overflow: visible;
}
.list_products_box .list_products_image {
  margin: 0;
  width: 100%;
}
.list_products_box .list_products_image a {
  display: block;
  width: 100%;
}
.list_products_box img,
.list_products_box .jwc-list-img,
.list_products_box img.img-responsive,
.list_products_box img.listingProductImage,
#productListing img.listingProductImage,
.relative_products img,
.centerBoxContentsSpecials img,
.owl-carousel-hot-sale .list_products_box img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.owl-carousel-hot-sale .item {
  margin-left: 5px;
  margin-right: 5px;
}
.owl-carousel-hot-sale .list_products_box {
  margin-bottom: 0;
}
.list_products_box .list_products_name {
  height: auto !important;
  min-height: 40px;
  margin-top: 8px !important;
  font-size: 13px;
  line-height: 1.35;
}
.list_products_box .list_products_price {
  font-size: 16px !important;
  margin-top: 4px;
  height: 27px;
  line-height: 27px;
  overflow: visible;
  position: static;
}
/* Zen 默认 class 兜底（若未走 jwc_adapt_price_html） */
.list_products_price .normalprice,
.list_products_price .normal_price {
  text-decoration: line-through;
}
.list_products_price .productSpecialPrice,
.list_products_price .productSpecialPriceSale,
.list_products_price .productSalePrice,
.list_products_price .special_price {
  color: #012244;
  font-weight: bold;
  font-size: 20px;
  padding-left: 5px;
}
.list_products_price .productPriceDiscount {
  display: none;
}
.relative_products .list_products_box {
  margin-bottom: 10px;
}
.list_products_row_box > [class*="col-"] {
  margin-bottom: 12px;
}

/* ── 购物车对齐参考站 ── */
#shoppingCartDefault .jwc-cart-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 10px 0 8px;
}

.jwc-logo-text {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: #4a2c7a;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.jwc-logo-img { max-height: 64px; width: auto; }

/* 面包屑英文样式（对齐参考站浅灰条） */
#navBreadCrumb {
  background: #ececec;
  padding: 8px 12px;
  margin: 0 0 16px;
  border-radius: 0;
}
#navBreadCrumb .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 13px;
  color: #555;
}
#navBreadCrumb .breadcrumb a { color: #555; }

/* 购物车底部按钮更醒目 */
.jwc-cart-footer {
  margin-top: 24px;
  padding-top: 8px;
  clear: both;
}
.jwc-cart-footer-left .jwc-btn-css {
  min-width: 140px;
  text-align: center;
}
.jwc-cart-footer-right .jwc-btn-checkout {
  display: block;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  padding: 14px 20px;
  font-size: 18px;
}
.jwc-cart-thumb img {
  max-width: 100px;
  height: auto;
  border: 1px solid #eee;
}
.jwc-btn-css {
  background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
  border: 1px solid #999;
}
#shoppingCartDefault .jwc-cart-summary {
  font-size: 14px;
  color: #333;
  margin-bottom: 18px;
}
.jwc-cart-table-wrap {
  border: 1px solid #ddd;
  margin-bottom: 16px;
}
.jwc-cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.jwc-cart-row > td {
  border-bottom: 1px solid #ddd;
  padding: 14px 12px;
  vertical-align: top;
}
.jwc-cart-row:last-child > td {
  border-bottom: none;
}
.jwc-cart-product { width: 70%; }
.jwc-cart-controls { width: 30%; text-align: center; }
.jwc-cart-thumb {
  float: left;
  margin-right: 12px;
}
.jwc-cart-thumb img {
  max-width: 90px;
  height: auto;
}
.jwc-cart-name {
  display: block;
  color: #337ab7;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.jwc-cart-attribs {
  font-size: 13px;
  color: #555;
}
.jwc-cart-unit-price {
  margin: 8px 0;
  font-size: 14px;
  font-weight: 600;
}
.jwc-cart-row-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.jwc-cart-qty-spinner {
  margin: 0 auto;
}
.jwc-cart-totals {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.jwc-cart-totals-table {
  border: 1px solid #ddd;
  border-collapse: collapse;
  min-width: 220px;
}
.jwc-cart-totals-table th,
.jwc-cart-totals-table td {
  border: 1px solid #ddd;
  padding: 6px 12px;
  font-size: 13px;
}
.jwc-cart-totals-table th {
  text-align: left;
  font-weight: 700;
}
.jwc-cart-totals-table td {
  text-align: right;
}
.jwc-cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.jwc-cart-footer-right {
  flex: 1;
  text-align: right;
}

/* ── 英文 CSS 按钮（替代中文图片按钮） ── */
.jwc-btn-css {
  display: inline-block;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  background: linear-gradient(to bottom, #fff 0%, #e8e8e8 100%);
  border: 1px solid #bbb;
  border-radius: 2px;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.3;
}
.jwc-btn-css:hover,
.jwc-btn-css:focus {
  background: linear-gradient(to bottom, #f7f7f7 0%, #ddd 100%);
  color: #111;
}
.jwc-btn-css--block {
  display: block;
  width: 110px;
  text-align: center;
  box-sizing: border-box;
}
.jwc-btn-checkout {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  color: #fff !important;
  background: #c84343;
  border: 1px solid #a83232;
  border-radius: 2px;
  text-decoration: none !important;
  cursor: pointer;
  min-width: 180px;
  text-align: center;
}
.jwc-btn-checkout:hover,
.jwc-btn-checkout:focus {
  background: #b13636;
  color: #fff !important;
}
.jwc-cart-footer-right .jwc-btn-checkout {
  width: 100%;
  max-width: 420px;
}
.jwc-checkout-actions .jwc-btn-checkout {
  min-width: 160px;
}

/* ── 列表工具条（54959 sortbybox / filter-box） ── */
#productListing .sortbybox {
  margin-right: 25px;
  margin-bottom: 8px;
}
#productListing .page_spilt_box {
  font-size: 12px;
  line-height: 30px;
  margin-right: 15px;
  margin-bottom: 8px;
}
#productListing .filter-box {
  margin: 4px 0 10px;
  clear: both;
}
#productListing .filter-box .dropdown-menu {
  max-height: 320px;
  overflow-y: auto;
}
#productListing .navSplitPagesLinks {
  line-height: 30px;
  margin-bottom: 8px;
}
#productListing .jwc-listing-bottom-pager {
  margin-top: 10px;
  clear: both;
}
#productListing .jwc-listing-bottom-pager .pagination {
  margin: 10px 0 6px;
  display: inline-block;
}
#productListing .jwc-listing-bottom-pager .pagination > li > a,
#productListing .jwc-listing-bottom-pager .pagination > li > span {
  color: #337ab7;
}
#productListing .jwc-listing-bottom-pager .pagination > .active > span,
#productListing .jwc-listing-bottom-pager .pagination > .active > a {
  background-color: #337ab7;
  border-color: #337ab7;
  color: #fff;
}
#productListing .jwc-listing-bottom-pager .page_spilt_box {
  display: block;
  float: none;
  margin: 0 0 12px;
  text-align: center;
}

/* ── 批发注册 ── */
.jwc-wholesale-page {
  max-width: 720px;
  margin: 0 auto 40px;
}
.jwc-wholesale-page h1 {
  text-align: center;
  margin-bottom: 12px;
}
.jwc-wholesale-lead {
  text-align: center;
  color: #666;
  margin-bottom: 28px;
}
.jwc-wholesale-form .form-group label {
  font-weight: 600;
}
.jwc-wholesale-form textarea.form-control {
  min-height: 120px;
}
.jwc-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 90;
  display: none;
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  background: #46327e;
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none !important;
  opacity: 0.85;
}
.jwc-back-to-top:hover {
  opacity: 1;
  color: #fff !important;
}
.jwc-back-to-top.is-visible {
  display: block;
}

/* ── Quick View ── */
.list_products_actions {
  margin-top: 8px;
}
.list_products_box .jwc-quick-view-btn {
  min-width: 110px;
}
#jwcQuickViewModal .jwc-qv-price {
  font-size: 20px;
  font-weight: 700;
  color: #c0001d;
  margin: 10px 0;
}
#jwcQuickViewModal .jwc-qv-image {
  max-height: 360px;
  margin: 0 auto;
}
#jwcQuickViewModal .jwc-qv-actions {
  margin-top: 16px;
}
#jwcQuickViewModal .jwc-qv-actions .btn {
  margin-right: 8px;
  margin-bottom: 8px;
}

/* ── 俱乐部专题 Banner ── */
.jwc-club-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 0 0 24px;
  padding: 18px;
  background: linear-gradient(135deg, #f7f5fb 0%, #efeaf8 55%, #f9f6f2 100%);
  border: 1px solid #e4dfee;
  border-radius: 4px;
}
.jwc-club-hero-media {
  flex: 0 0 auto;
  max-width: 220px;
}
.jwc-club-hero-img {
  border-radius: 4px;
}
.jwc-club-hero-copy {
  flex: 1 1 240px;
}
.jwc-club-hero-title {
  margin: 0 0 10px;
  font-size: 26px;
  color: #46327e;
}
.jwc-club-hero-desc {
  color: #555;
  margin-bottom: 14px;
}
.jwc-club-hero-cta .jwc-btn-css {
  background: #19cab0;
  color: #fff !important;
  border: none;
}
.jwc-club-hero-cta .jwc-btn-css:hover {
  background: #14a996;
}

/* ── 账户中心 ── */
.jwc-account-links li {
  margin: 6px 0;
}
.jwc-account-links a {
  color: #46327e;
}
.jwc-currency-switch .dropdown-menu {
  min-width: 140px;
}

/* ── 响应式 ── */
@media (max-width: 992px) {
  .jwc-main-content > .jwc-container { flex-direction: column; }
  .jwc-column-left, .jwc-column-right { flex: none; width: 100%; }
  .jwc-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .jwc-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .jwc-product-layout { flex-direction: column; }
}

@media (max-width: 768px) {
  .jwc-header-inner { flex-wrap: wrap; }
  .jwc-search { order: 3; flex: 1 1 100%; max-width: none; margin-top: 10px; }
  .jwc-nav-list { display: none; }
  .jwc-mobile-toggle { display: block; background: none; border: none; cursor: pointer; padding: 10px; }
  .jwc-mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--jwc-text-inverse); margin: 5px 0; }
  .jwc-footer-grid { grid-template-columns: 1fr; }
  .jwc-league-icons { grid-template-columns: repeat(2, 1fr); }
  .jwc-cart-row > td { display: block; width: 100%; }
  .jwc-cart-footer { flex-direction: column; }
  .jwc-cart-footer-right .jwc-btn-checkout { max-width: none; }
}
