/*
Theme Name: Paw Deal
Theme URI: https://pawdealonline.com
Author: Paw Dealonline, LLC
Description: Paw Deal 风格 WordPress + WooCommerce 主题（大分类导航、横滑商品轨道、Autoship 价格、品牌蓝 #1C49C2）
Version: 1.7.3
Requires PHP: 7.4
Text Domain: chewy-store
*/
/* ==========================================================================
   Paw Deal storefront
   Brand tokens (verified against public brand references):
     Paw Deal Blue   #1C49C2   |  Deep Blue #0F2B7A  |  Midnight #072F6B
     Amber/Star   #FFC80C   |  Text #121212  |  Line #DBDCDE  |  Bg #F5F6F7
   ========================================================================== */

:root {
  --blue: #1c49c4;
  --blue-hover: #163fa7;
  --blue-dark: #0f2b7a;
  --blue-deep: #072f6b;
  --navy: #0a3a6e;
  --yellow: #ffc80c;
  --orange: #ff6900;
  --green: #1a7f4b;
  --red: #e02020;
  --text: #121212;
  --muted: #5f6875;
  --line: #dbdcde;
  --line-soft: #eceff2;
  --bg: #f5f6f7;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 12px;
  --container: 1440px;
  --shadow-card: 0 1px 3px rgba(18, 18, 18, .08);
  --shadow-pop: 0 8px 28px rgba(18, 18, 18, .18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: #eaf0ff; }
.btn-white { background: #fff; color: var(--blue); border-color: #fff; }
.btn-white:hover { background: #eaf0ff; }
.btn-dark { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 12px; }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.utility-bar {
  background: var(--blue-deep);
  color: #fff;
  font-size: 12px;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 16px;
}
.utility-bar a { color: #fff; opacity: .92; }
.utility-bar a:hover { opacity: 1; }
.utility-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.utility-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.utility-bar .sep { opacity: .35; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 22px 16px 26px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  font-size: 46px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -.03em;
  color: var(--blue);
  line-height: 1;
  display: inline-block;
}
.logo:hover { text-decoration: none; }

.search-form {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--blue);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  height: 50px;
}
.search-cat {
  border: none;
  border-right: 1px solid var(--line);
  background: #f2f4f7;
  font-size: 13px;
  color: var(--text);
  padding: 0 10px;
  max-width: 150px;
  outline: none;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  min-width: 0;
}
.search-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0 22px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-btn:hover { background: var(--blue-hover); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.action-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  position: relative;
  white-space: nowrap;
}
.action-link:hover { color: var(--blue); text-decoration: none; }
.action-link .icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.action-link .icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.action-link .lbl { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.action-link .lbl-top { font-size: 11px; color: var(--muted); }
.action-link .lbl-bottom { font-weight: 700; font-size: 13px; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--yellow);
  color: var(--text);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
}

/* ==========================================================================
   Primary navigation
   ========================================================================== */
.primary-nav {
  background: #fff;
  border-bottom: 2px solid var(--line);
}
.primary-nav .container {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}
.nav-link:hover { color: var(--blue); text-decoration: none; border-bottom-color: var(--yellow); }
.nav-link.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-link.hot { color: var(--orange); }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow-pop);
  padding: 20px 24px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  z-index: 60;
}
.nav-item:hover .mega { display: grid; }
.mega h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li { margin-bottom: 6px; }
.mega a { font-size: 13px; color: #333a45; }
.mega-promo {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 12px;
  color: var(--muted);
}
.mega-promo strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding: 28px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}
.section-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.section-head .link-all { font-size: 13px; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 55%, #3a6ee0 100%);
  color: #fff;
  padding: 44px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 32px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero p { margin: 0 0 20px; font-size: 16px; opacity: .95; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: .05em;
}
.hero-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-art .card-mini {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 10px 10px 12px;
  text-align: center;
  color: var(--blue-deep);
  box-shadow: 0 6px 18px rgba(7, 47, 107, .28);
  transition: transform .15s ease;
}
.hero-art .card-mini:hover { transform: translateY(-3px); text-decoration: none; }
.hero-art .card-mini img { width: 100%; border-radius: 8px; background: var(--bg); }
.hero-art .card-mini span {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-deep);
}

/* ---------- Value props ---------- */
.value-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 8px;
}
.value-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.value-item .vicon {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.value-item strong { display: block; font-size: 13px; }
.value-item span { font-size: 12px; color: var(--muted); }

/* ---------- Shop by pet ---------- */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.pet-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 8px 12px;
  text-align: center;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
  color: var(--text);
}
.pet-tile:hover {
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(18, 18, 18, .12);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.pet-tile .pet-icon {
  width: 62px; height: 62px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(160deg, #eaf0ff, #d6e2ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}
.pet-tile span { font-size: 13px; font-weight: 700; }

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  min-height: 92px;
}
.cat-tile:hover { text-decoration: none; border-color: var(--blue); box-shadow: var(--shadow-card); }
.cat-tile img { width: 66px; height: 66px; flex: none; border-radius: 8px; background: var(--bg); }
.cat-tile strong { display: block; font-size: 15px; }
.cat-tile em { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- Product rail (horizontal scroller) ---------- */
.rail-wrap { position: relative; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 14px) / 5);
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: #c8ced8; border-radius: 8px; }
.rail-arrow {
  position: absolute;
  top: 42%;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  font-size: 18px;
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.rail-arrow.prev { left: -16px; }
.rail-arrow.next { right: -16px; }

/* ==========================================================================
   Product card
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.product-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }

.p-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.p-card:hover { box-shadow: 0 4px 16px rgba(18, 18, 18, .12); border-color: #c3c9d2; }
.p-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--blue-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
}
.p-badge.orange { background: var(--orange); }
.p-badge.green { background: var(--green); }
.p-media {
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.p-media img { width: 100%; height: auto; transition: transform .2s ease; }
.p-card:hover .p-media img { transform: scale(1.03); }
.p-brand {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 3px;
}
.p-title {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  height: 35px;
  overflow: hidden;
  margin-bottom: 6px;
  font-weight: 500;
}
.p-title:hover { color: var(--blue); }
.p-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.stars { color: var(--yellow); font-size: 13px; letter-spacing: 1px; line-height: 1; }
.stars .off { color: #d8dce1; }
.p-rating .cnt { font-size: 11px; color: var(--muted); }
.p-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.p-price .now { font-size: 18px; font-weight: 800; }
.p-price .was { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.p-autoship { font-size: 11px; color: var(--green); font-weight: 700; margin-bottom: 10px; }
.p-autoship b { color: var(--green); }
.p-card .btn { margin-top: auto; padding: 9px 12px; font-size: 12px; }
.p-ship { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* ==========================================================================
   Promo banners
   ========================================================================== */
.promo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.promo {
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
}
.promo.light { background: linear-gradient(120deg, #eaf0ff, #d9e4ff); color: var(--blue-deep); }
.promo h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.promo p { margin: 0 0 16px; font-size: 14px; opacity: .95; }
.promo .btn-outline { border-color: currentColor; background: transparent; color: inherit; }
.promo .btn-outline:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Brand wall ---------- */
.brand-wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.brand-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #424b58;
  text-align: center;
  padding: 6px;
  transition: border-color .15s ease, color .15s ease;
}
.brand-chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ---------- 底部联系模块（原站 Contact us 条带） ---------- */
.cw-contact {
  background: var(--blue-deep);
  color: #fff;
  padding: 26px 0;
}
.cw-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 20px 28px;
  align-items: center;
}
.cw-contact-lead h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; line-height: 1.25; }
.cw-contact-lead p { margin: 0; font-size: 13px; opacity: .9; line-height: 1.55; }

.cw-contact-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cw-way {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.cw-way:hover,
.cw-way:focus {
  background: rgba(255, 255, 255, .17);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  text-decoration: none;
}
.cw-way .wicon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}
.cw-way .wicon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cw-way .wtxt { min-width: 0; }
.cw-way .wtxt strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; }
.cw-way .wtxt span { display: block; font-size: 12px; opacity: .85; line-height: 1.4; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #fff;
  border-top: 4px solid var(--blue);
  padding: 36px 0 0;
  margin-top: 8px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-bottom: 28px;
}
.footer h5 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue-dark);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer li a { font-size: 13px; color: #3c4450; }
.footer li a:hover { color: var(--blue); }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.social-dot:hover { background: var(--blue-dark); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.footer-bottom .legal a { color: var(--muted); }
.footer-bottom .legal a:hover { color: var(--blue); }
.footer-addr { line-height: 1.7; }
.footer-addr strong { color: var(--text); }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  padding: 14px 0;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .cur { color: var(--text); }

/* ==========================================================================
   Shop / category page
   ========================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 40px;
}
.filter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.filter-panel h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.filter-group { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.filter-group:first-of-type { border-top: none; }
.filter-group > .fg-title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3c4450;
  margin-bottom: 6px;
  cursor: pointer;
}
.filter-group label .cnt { color: var(--muted); font-size: 11px; }
.filter-more { font-size: 12px; font-weight: 700; }

.shop-toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.shop-toolbar .count { font-size: 13px; color: var(--muted); }
.shop-toolbar .count b { color: var(--text); }
.shop-toolbar select {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 13px;
  background: #fff;
}
.shop-title { font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.shop-desc { color: var(--muted); font-size: 13px; margin: 0 0 16px; max-width: 900px; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 26px 0 10px;
}
.pagination a, .pagination span {
  min-width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--blue);
}
.pagination a:hover { background: #eaf0ff; text-decoration: none; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ==========================================================================
   Single product page
   ========================================================================== */
.pdp-layout {
  display: grid;
  grid-template-columns: 460px 1fr 300px;
  gap: 26px;
  padding-bottom: 20px;
  align-items: start;
}
.gallery-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.gallery-main img { width: 100%; border-radius: 6px; background: var(--bg); }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button {
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  overflow: hidden;
}
.thumbs button.is-active { border-color: var(--blue); }
.thumbs img { width: 100%; }

.pdp-brand { font-size: 13px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.pdp-title { font-size: 26px; font-weight: 800; margin: 4px 0 8px; line-height: 1.2; }
.pdp-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pdp-rating .big { font-size: 15px; font-weight: 800; }
.pdp-price-box { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; margin-bottom: 16px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.price-row .now { font-size: 30px; font-weight: 800; }
.price-row .was { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.price-row .save { font-size: 13px; font-weight: 800; color: var(--green); }
.as-box {
  margin-top: 12px;
  border: 1px solid #ffd76b;
  background: #fffaea;
  border-radius: var(--radius);
  padding: 12px;
}
.as-box label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.as-box b { color: var(--green); }
.as-box .as-price { font-size: 16px; font-weight: 800; }
.as-box .as-note { font-size: 11px; color: var(--muted); margin-top: 4px; }

.opt-group { margin-bottom: 14px; }
.opt-group > .opt-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.opt-group .opt-label span { color: var(--muted); font-weight: 400; }
.opt-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-swatch {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13px;
}
.opt-swatch.is-active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 700; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qty-select { border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; font-size: 13px; background: #fff; }
.pdp-actions { display: grid; gap: 8px; margin-bottom: 14px; }
.pdp-facts { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--muted); }
.pdp-facts li { display: flex; gap: 8px; margin-bottom: 6px; }
.pdp-facts li b { color: var(--text); font-weight: 700; }

.buy-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.buy-box .bb-price { font-size: 26px; font-weight: 800; }
.buy-box .bb-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 6px 0; }
.buy-box hr { border: none; border-top: 1px solid var(--line-soft); margin: 10px 0; }
.buy-box .btn { margin-bottom: 8px; }
.buy-box .ship-line { font-size: 12px; color: var(--muted); }
.buy-box .ship-line b { color: var(--green); }

.tabs { margin: 30px 0 10px; border-bottom: 2px solid var(--line); display: flex; gap: 4px; }
.tab-btn {
  border: none;
  background: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-btn.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 14px;
  line-height: 1.6;
  display: none;
}
.tab-panel.is-active { display: block; }
.tab-panel h3 { margin: 0 0 10px; font-size: 16px; }
.tab-panel ul { padding-left: 20px; margin: 0 0 14px; }
.review-item { border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
.review-item .rv-head { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 4px; }
.review-item .rv-head b { font-size: 13px; }
.review-item .rv-head .who { color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table td, .spec-table th { border-bottom: 1px solid var(--line-soft); padding: 8px 6px; text-align: left; }
.spec-table th { width: 220px; color: var(--muted); font-weight: 400; }

/* ==========================================================================
   Mini cart drawer
   ========================================================================== */
.drawer-mask {
  position: fixed; inset: 0;
  background: rgba(18, 18, 18, .45);
  display: none;
  z-index: 90;
}
.drawer-mask.is-open { display: block; }
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  box-shadow: var(--shadow-pop);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  background: var(--blue);
  color: #fff;
  padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h3 { margin: 0; font-size: 17px; }
.drawer-head button { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px; }
.drawer-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.drawer-item img { width: 64px; border-radius: 4px; background: var(--bg); }
.drawer-item .di-name { font-size: 12px; line-height: 1.35; }
.drawer-item .di-price { font-size: 13px; font-weight: 800; }
.drawer-item .di-remove { background: none; border: none; color: var(--blue); font-size: 11px; padding: 0; margin-top: 4px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px; }
.drawer-foot .df-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.drawer-foot .df-row.total { font-size: 17px; font-weight: 800; }
.drawer-foot .freeship { font-size: 12px; color: var(--green); font-weight: 700; margin-bottom: 10px; }
.drawer-empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 13px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .pet-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid, .product-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
  .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .brand-wall { grid-template-columns: repeat(4, 1fr); }
  .pdp-layout { grid-template-columns: 380px 1fr; }
  .buy-box { grid-column: 1 / -1; }
  .mega { min-width: 620px; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .header-inner { grid-template-columns: minmax(0, auto) minmax(0, 1fr); row-gap: 12px; }
  .header-actions { grid-column: 1 / -1; justify-content: space-between; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { grid-template-columns: repeat(3, 1fr); }
  .value-row { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-split { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .cw-contact-inner { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .pdp-layout { grid-template-columns: 1fr; }
  .primary-nav .container { overflow-x: auto; }
}
@media (max-width: 620px) {
  .product-grid, .product-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pet-grid { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-auto-columns: 62%; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
  .logo { font-size: 32px; }
}

/* ==========================================================================
   WooCommerce 适配（店铺风格）
   ========================================================================== */
.woocommerce, .woocommerce-page { color: var(--text); }
.woocommerce .woocommerce-breadcrumb { font-size: 12px; color: var(--muted); padding: 14px 0; margin: 0; }
.woocommerce .woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--blue); }

/* ---------- 商品网格 ---------- */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 4px 16px rgba(18,18,18,.12); border-color: #c3c9d2; }
.woocommerce ul.products li.product .cw-brand {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); margin-bottom: 3px;
}
.woocommerce ul.products li.product img {
  width: 100%; height: auto; margin: 0 0 10px; background: var(--bg); border-radius: 4px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  font-size: 13px; line-height: 1.35; font-weight: 500; padding: 0; margin: 0 0 6px;
  min-height: 35px; overflow: hidden; color: var(--text);
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--blue); }
.woocommerce ul.products li.product .price { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.woocommerce ul.products li.product .price del { font-size: 12px; color: var(--muted); font-weight: 400; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .cw-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.woocommerce ul.products li.product .cw-rating .cnt { font-size: 11px; color: var(--muted); }
.woocommerce ul.products li.product .cw-autoship { font-size: 11px; color: var(--green); font-weight: 700; margin-bottom: 10px; }
.woocommerce ul.products li.product .button {
  margin-top: auto; background: var(--blue); color: #fff; border: none; border-radius: 999px;
  padding: 9px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; text-align: center;
}
.woocommerce ul.products li.product .button:hover { background: var(--blue-hover); color: #fff; }
/* 图片区：Sale! / Only at Paw Deal 徽标的定位上下文（保证徽标压在图上，而不是飘到卡片顶部） */
.woocommerce ul.products li.product .cw-media {
  position: relative;
  display: block;
}
.woocommerce ul.products li.product .onsale {
  position: absolute; top: 8px; left: 8px; right: auto; margin: 0; min-height: 0; line-height: 1.4;
  background: var(--orange); border-radius: 3px; padding: 3px 8px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; z-index: 2;
}
.cw-badge-only {
  position: absolute; top: 8px; left: 8px; background: var(--green); color: #fff; font-size: 10px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 3px; z-index: 2;
}

/* ---------- 分类页 ---------- */
.woocommerce .woocommerce-result-count { font-size: 13px; color: var(--muted); }
.woocommerce .woocommerce-ordering select { border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; font-size: 13px; }
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--blue);
  font-size: 13px; font-weight: 700; padding: 7px 12px; min-width: 34px;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--blue); color: #fff; }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background: var(--line); }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: var(--blue); }
.woocommerce .widget_price_filter .price_slider_amount .button { background: var(--blue); color: #fff; border-radius: 999px; }
.woocommerce .widget_layered_nav_filters ul li a, .woocommerce .widget_layered_nav ul li a { font-size: 13px; }
.woocommerce .woocommerce-widget-layered-nav-list__item { font-size: 13px; }
.widget-area .widget h2, .widget-area .widget .widget-title,
.woocommerce .widget h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-dark); }

/* ---------- 单品页 ---------- */
.woocommerce div.product { display: block; }
.woocommerce div.product .cw-pdp-wrap { display: grid; grid-template-columns: 460px 1fr 300px; gap: 26px; align-items: start; }
.woocommerce div.product div.images { width: 100%; float: none; margin-bottom: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; }
.woocommerce div.product div.images img { border-radius: 6px; background: var(--bg); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; margin: 0; padding: 0; }
.woocommerce div.product div.images .flex-control-thumbs li img { border: 2px solid var(--line); border-radius: 6px; padding: 2px; opacity: 1; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { border-color: var(--blue); }
.woocommerce div.product div.summary { width: 100%; float: none; margin-bottom: 0; }
.woocommerce div.product .product_title { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 4px 0 8px; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--text); font-size: 30px; font-weight: 800; }
.woocommerce div.product p.price del { font-size: 15px; color: var(--muted); font-weight: 400; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.woocommerce .star-rating { color: var(--yellow); font-size: 14px; }
.woocommerce .star-rating::before { color: #d8dce1; }
.woocommerce div.product form.cart { margin-bottom: 14px; padding: 0; border: none; }
.woocommerce div.product form.cart table.variations { border: none; }
.woocommerce div.product form.cart table.variations td { padding: 6px 0; }
.woocommerce div.product form.cart .variations label { font-size: 13px; font-weight: 700; }
.woocommerce div.product form.cart .variations select {
  border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font-size: 13px; min-width: 180px; background: #fff;
}
.woocommerce div.product form.cart .reset_variations { font-size: 12px; color: var(--blue); }
.woocommerce div.product form.cart div.quantity { margin-right: 10px; }
.woocommerce .quantity .qty { border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; font-size: 13px; }
.woocommerce div.product form.cart .button,
.woocommerce .single_add_to_cart_button.button {
  background: var(--blue); color: #fff; border-radius: 999px; padding: 12px 26px; font-size: 14px;
  font-weight: 700; text-transform: uppercase;
}
.woocommerce .single_add_to_cart_button.button:hover { background: var(--blue-hover); color: #fff; }
.woocommerce div.product .woocommerce-variation-price { margin-bottom: 10px; }
.woocommerce div.product .product_meta { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 10px; }
.woocommerce div.product .product_meta a { color: var(--blue); }
.woocommerce div.product .woocommerce-tabs { margin-top: 30px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 2px solid var(--line); padding: 0; margin: 0 0 0; display: flex; gap: 4px; overflow: visible;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none; background: none; margin: 0; padding: 0; border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block; padding: 10px 18px; font-size: 14px; font-weight: 700; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--blue); border-bottom-color: var(--blue); }
.woocommerce div.product .woocommerce-tabs .panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  font-size: 14px; line-height: 1.6; margin: 0; box-shadow: none;
}
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 16px; margin: 0 0 10px; }
.woocommerce div.product .woocommerce-tabs .panel table { border-collapse: collapse; width: 100%; }
.woocommerce div.product .woocommerce-tabs .panel table th,
.woocommerce div.product .woocommerce-tabs .panel table td { border-bottom: 1px solid var(--line-soft); padding: 8px 6px; text-align: left; font-size: 13px; }
.woocommerce div.product .woocommerce-tabs .panel figure { margin: 0 0 14px; }
.woocommerce div.product .woocommerce-tabs .panel figure img { max-width: 100%; height: auto; border-radius: 8px; }
.woocommerce div.product .woocommerce-tabs .panel figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.woocommerce .related.products, .woocommerce .upsells.products { margin-top: 30px; }
.woocommerce .related.products h2, .woocommerce .upsells.products h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }

/* 购买框 */
.cw-buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cw-buybox .bb-price { font-size: 26px; font-weight: 800; }
.cw-buybox .bb-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 6px 0; }
.cw-buybox hr { border: none; border-top: 1px solid var(--line-soft); margin: 10px 0; }
.cw-buybox .ship-line { font-size: 12px; color: var(--muted); }
.cw-buybox .ship-line b { color: var(--green); }
.woocommerce div.product .woocommerce-product-gallery--columns-4 .flex-control-thumbs li { width: auto; }

/* 通知条 */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--blue); border-radius: var(--radius); font-size: 13px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--blue); }
.woocommerce-message .button, .woocommerce-info .button { background: var(--blue); color: #fff; border-radius: 999px; }

/* 购物车 / 结算 */
.woocommerce table.shop_table { border-radius: var(--radius); border-collapse: collapse; font-size: 14px; }
.woocommerce table.shop_table th { background: var(--bg); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button {
  background: var(--blue); color: #fff; border-radius: 999px; font-weight: 700;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--blue-hover); }
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register { border-radius: var(--radius); }

/* 响应式 */
@media (max-width: 1200px) {
  .woocommerce ul.products { grid-template-columns: repeat(4, 1fr) !important; }
  .woocommerce div.product .cw-pdp-wrap { grid-template-columns: 380px 1fr; }
  .woocommerce div.product .cw-buybox { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .woocommerce div.product .cw-pdp-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* 首页横向商品轨道 */
.rail-wrap { position: relative; }
.rail-wrap .rail .woocommerce { margin: 0; }
.rail-wrap .woocommerce ul.products {
  display: flex !important;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}
.rail-wrap .woocommerce ul.products li.product {
  flex: 0 0 220px;
  min-width: 220px;
}
.rail-wrap .woocommerce ul.products::-webkit-scrollbar { height: 8px; }
.rail-wrap .woocommerce ul.products::-webkit-scrollbar-thumb { background: #c8ced8; border-radius: 8px; }
.rail-wrap .woocommerce ul.products li.product .button { white-space: nowrap; }

/* ---------- 自绘图集（覆盖 flexslider） ---------- */
.cw-gallery { width: 100%; }
.cw-gallery-main {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
}
.cw-gallery-main img { max-width: 100%; max-height: 520px; width: auto; height: auto; display: block; }
.cw-gallery .onsale {
	position: absolute; top: 12px; left: 12px; background: var(--orange); color: #fff;
	font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
	padding: 4px 10px; border-radius: 3px; z-index: 3;
}
.cw-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cw-gallery-thumbs .cw-thumb {
	width: 76px; height: 76px; object-fit: contain; background: #fff;
	border: 2px solid var(--line); border-radius: 6px; padding: 3px; cursor: pointer;
	transition: border-color .15s ease;
}
.cw-gallery-thumbs .cw-thumb:hover { border-color: #9aa3b0; }
.cw-gallery-thumbs .cw-thumb.is-active { border-color: var(--blue); }
.woocommerce div.product .woocommerce-product-gallery__wrapper { border: none; padding: 0; }

/* ==========================================================================
   v1.1  —— 蓝色 header / 大下拉菜单 / 1440 内页 / 新首页版块
   ========================================================================== */

/* ------------------------------------------------------- 蓝色 header */
.header {
  background: var(--blue);
  border-bottom: none;
}
.header-inner {
  padding: 16px;
  gap: 28px;
}
.logo {
  color: #ffffff;
  font-size: 46px;
  text-shadow: 0 2px 0 rgba(7, 47, 107, .25);
}
.logo:hover { color: #fff; }
.search-form {
  border-color: #ffffff;
  border-radius: 6px;
  height: 46px;
  background: #fff;
}
.search-cat { background: #f2f4f7; color: var(--text); }
.search-btn { background: var(--blue-deep); }
.search-btn:hover { background: var(--blue-dark); }
.search-btn .ico { font-size: 13px; }

.header-actions { gap: 24px; }
.header-actions .action-link { color: #fff; }
.header-actions .action-link:hover { color: #fff; text-decoration: none; opacity: .85; }
.action-link .lbl-top { color: rgba(255, 255, 255, .78); }
.action-link .lbl-bottom { color: #fff; }
.action-link .icon { color: #fff; }
.cart-count { border-color: var(--blue); }

/* ------------------------------------------------- 深蓝主导航 + 下拉 */
.primary-nav {
  background: var(--blue-dark);
  border-bottom: none;
}
.nav-inner {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-item { position: static; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav-link:hover,
.nav-item.is-open .nav-link {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .12);
  border-bottom-color: var(--yellow);
}
.nav-link.hot { color: #ffd36e; }
.nav-link .caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255, 255, 255, .85);
  transition: transform .15s ease;
}
.nav-item.is-open .nav-link .caret { transform: rotate(180deg); }

/* 全宽下拉面板 */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  box-shadow: var(--shadow-pop);
  z-index: 80;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-item:hover .mega,
.nav-item.is-open .mega { display: block; opacity: 1; visibility: visible; transform: translateY(0); }

/* 重要：.mega-inner 身上带着 .container class，而前面有一条
   `.primary-nav .container{display:flex}`（权重 (0,2,0)）会命中它。
   用 `.mega-inner`（(0,1,0)）写的 display:grid 一直被它压掉，
   所以这么多年 .mega-inner 实际是 flex —— 各列按内容宽度排、2 个分类时只占左边一小截。
   这里必须提到 (0,2,0) 且位置靠后才能真正变成 grid。 */
.primary-nav .mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  padding: 22px 16px 26px;
}
/* 各分类的子分类数量实测 2~6 个不等。写死 4 列时：
   2 个 → 只占左边一半、右边空 590px；6 个 → 换行后第 2 行只剩 2 个挤在左侧。
   改成不换行的等宽伸缩：不管几个分类都一行铺满，均分宽度。 */
.mega-cols {
  display: flex;
  gap: 22px;
}
.mega-col {
  flex: 1 1 0;
  min-width: 0;
}
.mega-col ul { list-style: none; margin: 0 0 8px; padding: 0; }
.mega-col li { margin-bottom: 7px; }
.mega-col li a { font-size: 13px; color: #3c4450; }
.mega-col li a:hover { color: var(--blue); }
.mega-head {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.mega-head:hover { color: var(--blue); }
.mega-more { font-size: 12px; font-weight: 700; }
.mega-promo { border-left: 1px solid var(--line-soft); padding-left: 22px; }
.mega-promo-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  color: var(--text);
  margin-bottom: 12px;
}
.mega-promo-card:hover { text-decoration: none; border-color: var(--blue); }
.mega-promo-card img {
  width: 100%; height: 148px; object-fit: contain; background: #fff;
  border-radius: 6px; margin-bottom: 10px;
}
.mega-promo-card strong { display: block; font-size: 14px; }
.mega-promo-card span { font-size: 12px; color: var(--muted); }
.mega-promo-note { font-size: 12px; color: var(--muted); }
.mega-promo-note strong { display: block; color: var(--text); margin-bottom: 3px; }

/* ------------------------------------------------------------ Hero 图 */
.hero-inner { gap: 40px; }
.hero-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  min-height: 300px;
}
.hm-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(7, 47, 107, .3);
  transition: transform .15s ease;
}
.hm-card:hover { transform: translateY(-3px); text-decoration: none; }
.hm-big { grid-row: span 2; }
.hm-card img { width: 100%; height: 100%; object-fit: contain; }
.hm-tag {
  position: absolute;
  left: 10px; bottom: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .85);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* 商品轨道：覆盖早期把 .rail 设成 grid 的旧规则，否则只会露出一张卡 */
.rail {
  display: block !important;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  overflow: visible;
  min-width: 0;
}
.rail > .woocommerce { width: 100%; min-width: 0; }

/* ------------------------------------------- Shop by pet 横向滚动 */
.pet-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.pet-rail::-webkit-scrollbar { display: none; }
.pet-tile {
  flex: 0 0 156px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 8px 12px;
  text-align: center;
  color: var(--text);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.pet-tile:hover {
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(18, 18, 18, .12);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.pet-tile .pet-icon {
  width: 66px; height: 66px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(160deg, #eaf0ff, #d6e2ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.pet-tile .pet-name { display: block; font-size: 13px; font-weight: 700; }
.pet-tile .pet-count { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* --------------------------------------------------- 热销 5 列网格 */
.cw-grid-5 .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px;
  overflow: visible;
}
.cw-grid-5 .woocommerce ul.products li.product { flex: none; min-width: 0; }

/* ------------------------------------------- Explore popular categories */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.explore-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 12px 12px;
  text-align: center;
  color: var(--text);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.explore-tile:hover {
  text-decoration: none;
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(18, 18, 18, .12);
  transform: translateY(-2px);
}
.explore-tile .ex-media {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 10px;
}
.explore-tile .ex-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.explore-tile .ex-name {
  display: block; font-size: 13px; font-weight: 700; line-height: 1.3;
  min-height: 34px;
}
.explore-tile .ex-count { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------------ 大广告图 */
.section-tight { padding: 10px 0 22px; }
.ad-banner {
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  gap: 30px;
  min-height: 250px;
  padding: 34px 40px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(1200px 300px at 85% 20%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(115deg, var(--blue-deep) 0%, var(--blue) 55%, #3f74e6 100%);
  box-shadow: 0 10px 30px rgba(7, 47, 107, .25);
}
.ad-banner:hover { text-decoration: none; color: #fff; }
.ad-kicker {
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ad-banner h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.ad-banner p { margin: 0 0 20px; font-size: 15px; opacity: .95; max-width: 620px; }
.ad-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ad-art img {
  width: 100%; height: 168px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(7, 47, 107, .28);
}

/* -------------------------------------------------- 节日板块 */
.section.holiday {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 30px 0 34px;
}
.section.holiday .section-head h2 { color: var(--blue-deep); }

/* ------------------------------------------------- 内页：统一容器 */
.cw-wc { padding-bottom: 10px; }
.woocommerce .cw-crumb { padding: 14px 0 10px; font-size: 12px; }
.woocommerce-products-header { margin: 0 0 16px; }
.woocommerce-products-header__title,
.woocommerce .page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 4px;
  padding: 0;
  border: none;
}
.woocommerce .term-description,
.woocommerce .page-description { color: var(--muted); font-size: 13px; margin: 0; max-width: 900px; }

/* 分类页布局 */
.cw-archive {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 44px;
}
.cw-filters { position: sticky; top: 14px; }
.cw-archive ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.cw-toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cw-toolbar .woocommerce-result-count { margin: 0; font-size: 13px; color: var(--muted); }
.cw-toolbar .woocommerce-ordering { margin: 0; float: none; }
.cw-toolbar .woocommerce-ordering select {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 13px;
  background: #fff;
}

/* 筛选栏 */
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filter-panel .fg-title {
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.filter-panel .fg-list { list-style: none; margin: 0; padding: 0; }
.filter-panel .fg-list li { margin-bottom: 7px; }
.filter-panel .fg-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13px; color: #3c4450;
}
.filter-panel .fg-list a:hover { color: var(--blue); text-decoration: none; }
.filter-panel .fg-list a.is-current { color: var(--blue); font-weight: 700; }
.filter-panel .fg-list .cnt { color: var(--muted); font-size: 11px; flex: none; }
.filter-panel .fg-promo strong { display: block; font-size: 13px; margin-bottom: 4px; }
.filter-panel .fg-promo span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }

/* 筛选组可折叠（details/summary）：桌面常开，手机由 JS 默认收起 */
.filter-panel .filter-group { border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
.filter-panel .filter-group:last-of-type { border-bottom: none; padding-bottom: 0; }
.filter-panel summary.fg-title {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 18px;
  margin-bottom: 6px;
  user-select: none;
}
.filter-panel summary.fg-title::-webkit-details-marker { display: none; }
.filter-panel summary.fg-title::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s ease;
}
.filter-panel details[open] > summary.fg-title::after { transform: translateY(-30%) rotate(-135deg); }
.filter-panel summary.fg-title:hover { color: var(--blue); }
.filter-panel details[open] > .fg-list { margin-bottom: 4px; }

.filter-panel .fg-active { padding: 0 0 10px; border-bottom: 1px solid var(--line-soft); }
.filter-panel .fg-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: #eaf0ff;
  border-radius: 999px;
  padding: 7px 12px;
}
.filter-panel .fg-clear:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ---- v1.8：筛选选项 —— 多选打勾方框 / 单选圆点 / 已选标签 ---- */
.filter-panel .fg-list li { margin-bottom: 6px; }
.filter-panel .fg-opt {
  display: flex; align-items: center; gap: 8px;
  min-height: 24px;
  font-size: 13px; color: #3c4450;
  cursor: pointer; user-select: none;
}
.filter-panel .fg-opt:hover .fg-name { color: var(--blue); }
.filter-panel .fg-input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.filter-panel .fg-box {
  flex: none;
  width: 16px; height: 16px;
  border: 1px solid #b6bec9;
  border-radius: 3px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .14s ease, border-color .14s ease;
}
.filter-panel .fg-radios .fg-box { border-radius: 50%; }
.filter-panel .fg-opt:hover .fg-box { border-color: var(--blue); }
.filter-panel .fg-input:focus-visible + .fg-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.filter-panel .fg-input:checked + .fg-box { background: var(--blue); border-color: var(--blue); }
.filter-panel .fg-input:checked + .fg-box::after {
  content: "";
  display: block;
  width: 4px; height: 8px; margin-top: -2px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filter-panel .fg-radios .fg-input:checked + .fg-box::after {
  width: 6px; height: 6px; margin: 0;
  border: none; background: #fff; border-radius: 50%;
  transform: none;
}
.filter-panel .fg-name {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.filter-panel .fg-input:checked ~ .fg-name { color: var(--blue); font-weight: 700; }
.filter-panel .fg-cnt { flex: none; color: var(--muted); font-size: 11px; }
.filter-panel .fg-stars { display: inline-flex; gap: 1px; margin-right: 6px; }
.filter-panel .fg-stars b,
.filter-panel .fg-stars i { font-style: normal; font-weight: 400; font-size: 12px; }
.filter-panel .fg-stars b { color: #f0a02a; }
.filter-panel .fg-stars i { color: #d5dae2; }

/* 已选条件标签 */
.filter-panel .fg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.filter-panel .fg-chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  font-size: 12px; font-weight: 700; color: var(--blue);
  background: #eaf0ff; border: 1px solid #cfe0ff;
  border-radius: 999px; padding: 5px 10px;
}
.filter-panel .fg-chip > span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.filter-panel .fg-chip .fg-chip-x { flex: none; font-size: 10px; opacity: .65; }
.filter-panel .fg-chip:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* “Show more” 折叠 */
.filter-panel .fg-more {
  margin-top: 4px; padding: 0;
  background: none; border: none;
  font-size: 12px; font-weight: 700; color: var(--blue);
  cursor: pointer;
}
.filter-panel .fg-more:hover { text-decoration: underline; }
.filter-panel .fg-extra { display: none; }
.filter-panel .fg-list.is-expanded .fg-extra,
.filter-panel .fg-list li.is-picked { display: block; }

/* 提交中：防止连点 */
.filter-panel.is-busy { opacity: .55; pointer-events: none; }

/* 手机端「Filter & sort」触发条：桌面隐藏 */
.cw-filters-toggle { display: none; }

/* --------------------------------------------------- 单品页布局 */
.cw-pdp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 26px;
}
.cw-pdp-grid {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}
.cw-pdp .cw-gallery-main { min-height: 300px; }
.cw-pdp .entry-summary { min-width: 0; }
.cw-pdp .product_title { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; }
.cw-pdp .woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cw-pdp p.price, .cw-pdp span.price { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.cw-pdp form.cart { margin-bottom: 0; }
.cw-pdp .product_meta { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 14px; }
.cw-pdp .woocommerce-tabs { margin-top: 0; }
.cw-pdp + .woocommerce-tabs { margin-top: 26px; }

.cw-buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cw-buybox .bb-price { font-size: 24px; font-weight: 800; }
.cw-buybox .bb-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 6px 0; }
.cw-buybox .bb-row.as span:last-child { color: var(--green); font-weight: 800; }
.cw-buybox .bb-save { font-size: 12px; font-weight: 700; color: var(--green); margin-top: 2px; }
.cw-buybox hr { border: none; border-top: 1px solid var(--line-soft); margin: 12px 0; }
.cw-buybox .bb-add {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cw-buybox .bb-add:hover { background: var(--blue-hover); color: #fff; }
.cw-buybox .ship-line { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cw-buybox .ship-line b { color: var(--green); }
.cw-buybox .bb-help { font-size: 12px; line-height: 1.6; color: var(--muted); }

/* ------------------------------- v1.9：顶部账户下拉（Sign in / Create Account） */
.account-wrap { position: relative; }
.action-link .chev { font-size: 9px; margin-left: 2px; opacity: .8; }
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 208px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  z-index: 120;
  padding: 7px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.account-menu::before {
  content: "";
  position: absolute;
  top: -14px; right: 30px;
  border: 7px solid transparent;
  border-bottom-color: var(--yellow);
}
.account-wrap:hover .account-menu,
.account-wrap.is-open .account-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.account-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.account-menu a:hover { background: var(--bg); color: var(--blue); text-decoration: none; }
.account-menu a.is-strong { color: var(--blue); font-weight: 800; }

/* --------------------------------------- v1.9：登录 / 注册页（双栏） */
.cw-auth { max-width: 940px; margin: 0 auto; }
/* 桌面两栏并排，不需要 tab；tab 只在手机端出现（见文件末尾媒体查询） */
.cw-auth-tabs {
  display: none;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.cw-auth-tab {
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.cw-auth-tab:hover { color: var(--text); text-decoration: none; }
.cw-auth-tab.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.cw-auth-cols { display: grid; grid-template-columns: 1fr 1fr; }
.cw-auth-card { padding: 26px 34px 30px; }
.cw-auth-cols .cw-auth-card + .cw-auth-card { border-left: 1px solid var(--line); }
.cw-auth-title { font-size: 24px; line-height: 1.2; margin-bottom: 6px; color: var(--text); }
.cw-auth-sub { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.cw-field { margin-bottom: 14px; }
.cw-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.cw-field .required { color: #d0342c; }
.cw-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cw-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 73, 196, .14);
}
.cw-field-note { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.cw-field-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 4px 0 18px; font-size: 13px;
}
.cw-check { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--text); }
.cw-forgot { color: var(--blue); font-size: 13px; }
.cw-forgot:hover { text-decoration: underline; }
.cw-submit { margin: 0 0 14px; }
.cw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 48px;
  font-size: 15px; font-weight: 800;
  border: 0; border-radius: 8px; cursor: pointer;
}
.cw-btn-primary { background: var(--blue); color: #fff; }
.cw-btn-primary:hover { background: #0f2b7a; color: #fff; text-decoration: none; }
.cw-auth-alt { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.cw-auth-alt a { color: var(--blue); font-weight: 700; }
.cw-auth-terms {
  font-size: 12px; color: var(--muted); text-align: center;
  margin: 0 0 14px; line-height: 1.6;
}
.cw-auth-terms a { color: var(--blue); }
.woocommerce-account .cw-auth .woocommerce-error,
.woocommerce-account .cw-auth .woocommerce-message,
.woocommerce-account .cw-auth .woocommerce-info { margin-bottom: 16px; }

/* ==================================================================
 * v1.9.1：会员中心（左侧导航卡片 + 右侧概览 / 订单 / 地址 / 账户详情）
 * ================================================================== */
.cw-acc {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  /* 订单页 / 地址页的右侧内容只有 202~250px，比左侧导航卡片还矮，
     容器高度被内容决定 → sticky 的粘滞余量为 0，一滚动导航就整块滚走、
     上半截（My Dashboard / Orders）被视口顶部切掉。
     给容器一个下限，容器比导航卡片高，导航才有余量跟着走。 */
  min-height: 480px;
}

/* ---------------------------------------------------------- 左侧导航卡片 */
/* 注意：WooCommerce 自带的 .woocommerce-MyAccount-navigation 是 float:left + width:30%
   （内容区是 float:right + width:68%），且它的样式表在本主题之后加载，
   所以这里必须提高选择器权重才能覆盖掉，否则 grid 列会被压成 80px。 */
.cw-acc .cw-accnav {
  float: none;
  width: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* 卡片高度随视口收敛：窗口变矮时改为卡片内部滚动，
     而不是被视口下边缘切掉底部（Continue shopping / Log out）。
     同时高度收紧后，sticky 的粘滞余量更大，滚到页脚前都能一直粘住。 */
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  position: sticky;
  top: 16px;
}
.cw-accnav-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: var(--blue);
  color: #fff;
}
.cw-accnav-avatar {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
}
.cw-accnav-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cw-accnav-meta strong { font-size: 15px; font-weight: 800; }
.cw-accnav-meta span {
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cw-accnav ul { list-style: none; margin: 0; padding: 6px; }
.cw-accnav ul li { margin: 0; }
.cw-accnav ul li a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--text);
  border-left: 3px solid transparent;
}
/* 菜单文案：桌面用完整文案，手机用短文案（由 ≤900 的媒体查询切换） */
.cw-accnav-txt { min-width: 0; }
.cw-accnav .cw-txt-short { display: none; }
.cw-accnav ul li a:hover { background: var(--bg); color: var(--blue); text-decoration: none; }
.cw-accnav ul li.is-active > a {
  background: #eef3ff;
  color: var(--blue);
  border-left-color: var(--blue);
  font-weight: 800;
}
.cw-accnav-ico { flex: 0 0 18px; width: 18px; height: 18px; opacity: .85; }
.cw-accnav-ico svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.cw-accnav-home {
  display: block;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--blue);
}
.cw-accnav-home:hover { background: var(--bg); text-decoration: none; }

/* ------------------------------------------------------------ 右侧内容区 */
.cw-acc .cw-acccon {
  /* 同样要清掉 WooCommerce 的 float:right + width:68% */
  float: none;
  width: auto;
  min-width: 0;
}
.cw-acccon > h2,
.cw-acccon > h3 {
  font-size: 20px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cw-acccon p { margin: 0 0 14px; font-size: 14px; }
.cw-acccon input.input-text,
.cw-acccon input[type="email"],
.cw-acccon input[type="password"],
.cw-acccon input[type="text"],
.cw-acccon select,
.cw-acccon textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cw-acccon textarea { height: auto; padding: 10px 12px; }
.cw-acccon input:focus,
.cw-acccon select:focus,
.cw-acccon textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 73, 196, .14);
}
.cw-acccon .form-row { margin-bottom: 14px; }
.cw-acccon .form-row label { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.cw-acccon button.button,
.cw-acccon .woocommerce-Button,
.cw-acccon a.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  font-size: 14px; font-weight: 800;
  color: #fff; background: var(--blue);
  border: 0; border-radius: 8px;
}
.cw-acccon button.button:hover,
.cw-acccon .woocommerce-Button:hover,
.cw-acccon a.button:hover { background: #0f2b7a; color: #fff; text-decoration: none; }
.cw-acccon .woocommerce-Message,
.cw-acccon .woocommerce-message,
.cw-acccon .woocommerce-info,
.cw-acccon .woocommerce-error { margin-bottom: 16px; }

/* ---------------------------------------------------- 概览：头部与三格统计 */
.cw-dash-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 16px;
}
.cw-dash-hero h1 { font-size: 24px; margin: 0; }
.cw-dash-hero p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.cw-dash-cta {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 18px;
  font-size: 13px; font-weight: 800;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  white-space: nowrap;
}
.cw-dash-cta:hover { background: var(--blue); color: #fff; text-decoration: none; }

.cw-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.cw-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.cw-stat-n { font-size: 20px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.cw-stat-l { font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------- 最近订单卡片 */
.cw-dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.cw-dash-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.cw-dash-head h2 { font-size: 16px; margin: 0; }
.cw-dash-head a { font-size: 13px; font-weight: 700; color: var(--blue); }
.cw-dash-table { display: block; }
.cw-dt-row {
  display: grid;
  grid-template-columns: 92px 100px 104px 72px 1fr 84px;
  gap: 10px;
  align-items: center;
  padding: 11px 18px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.cw-dt-row:last-child { border-bottom: 0; }
.cw-dt-head {
  background: var(--bg);
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted);
  padding: 9px 18px;
}
.cw-dt-row a { font-weight: 700; color: var(--blue); }
.cw-dt-row strong { font-size: 14px; }
.cw-dt-act { text-align: right; }
.cw-dt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--text);
}
.cw-dt-btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.cw-st {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px; font-weight: 800; font-style: normal;
  background: var(--bg); color: var(--muted);
}
.cw-st-processing { background: #e8f1ff; color: #14509e; }
.cw-st-completed { background: #e7f7ec; color: #1a7a3c; }
.cw-st-on-hold { background: #fff2e0; color: #a35a00; }
.cw-st-cancelled,
.cw-st-refunded { background: #ffeaea; color: #b3121b; }
.cw-dash-empty { padding: 22px 18px; font-size: 14px; color: var(--muted); margin: 0; }
.cw-dash-empty a { color: var(--blue); font-weight: 700; }

/* ------------------------------------------------------------ 快捷入口磁贴 */
.cw-dash-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cw-dash-tile {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px; color: var(--muted);
}
.cw-dash-tile:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-pop);
  text-decoration: none;
}
.cw-dash-tile strong { font-size: 14px; color: var(--text); }
.cw-tile-ico { width: 22px; height: 22px; margin-bottom: 6px; color: var(--blue); }
.cw-tile-ico svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.cw-dash-foot {
  font-size: 13px; color: var(--muted);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cw-dash-foot a { color: var(--blue); font-weight: 700; }

/* ----------------------------------------------- 订单列表 / 订单详情表格美化 */
.cw-acccon table.woocommerce-orders-table,
.cw-acccon table.woocommerce-table--order-details,
.cw-acccon table.order_details,
.cw-acccon table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cw-acccon table.woocommerce-orders-table th,
.cw-acccon table.woocommerce-table--order-details th,
.cw-acccon table.order_details th,
.cw-acccon table.shop_table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg);
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted);
}
.cw-acccon table.woocommerce-orders-table td,
.cw-acccon table.woocommerce-table--order-details td,
.cw-acccon table.order_details td,
.cw-acccon table.shop_table td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.cw-acccon table.woocommerce-orders-table td:last-child,
.cw-acccon table.woocommerce-table--order-details td:last-child { text-align: right; }
.cw-acccon table.woocommerce-orders-table .woocommerce-button,
.cw-acccon table.woocommerce-table--order-details .woocommerce-button {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px; font-weight: 700;
  background: #fff; color: var(--text);
}
.cw-acccon table .woocommerce-button:hover {
  border-color: var(--blue); color: var(--blue); text-decoration: none;
}
.cw-acccon .woocommerce-customer-details { margin-top: 18px; }
.cw-acccon address {
  font-style: normal;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 12px;
}
.cw-acccon .woocommerce-column__title { font-size: 14px; margin-bottom: 8px; }

/* ------------------------------------------------ 地址簿两栏卡片 */
.cw-acccon .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cw-acccon .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* WooCommerce 默认给 .col-1/.col-2 与 .woocommerce-Address 加了 float + 固定宽度 */
.cw-acccon .col2-set .col-1,
.cw-acccon .col2-set .col-2,
.cw-acccon .woocommerce-Address {
  float: none;
  width: auto;
  min-width: 0;
}
/* .col2-set 自带的 ::before / ::after 是 clearfix 用的伪元素，
   一旦容器变成 grid，它们会当成网格项占位，把两张卡片挤到两行 —— 必须去掉。 */
.cw-acccon .col2-set::before,
.cw-acccon .col2-set::after {
  display: none;
}
.cw-acccon .col2-set > .col-1 { grid-column: 1; grid-row: 1; }
.cw-acccon .col2-set > .col-2 { grid-column: 2; grid-row: 1; }
.cw-acccon .woocommerce-Address {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.cw-acccon .woocommerce-Address-title {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.cw-acccon .woocommerce-Address-title h2,
.cw-acccon .woocommerce-Address-title h3 { font-size: 14px; margin: 0; }
.cw-acccon .edit {
  font-size: 12px; font-weight: 700; color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
}
.cw-acccon .edit:hover { border-color: var(--blue); text-decoration: none; }

/* ------------------------------------------------------- 响应式补丁 */
@media (max-width: 1280px) {
  .explore-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cw-pdp-grid { grid-template-columns: 340px minmax(0, 1fr); }
  .cw-buybox { grid-column: 1 / -1; }
  .ad-banner { grid-template-columns: 1fr 340px; padding: 28px; }
  .ad-art img { height: 140px; }
  .primary-nav .mega-inner { grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; }
  .mega-cols { gap: 16px; }
}
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: minmax(0, auto) minmax(0, 1fr); row-gap: 12px; }
  .header-actions { grid-column: 1 / -1; justify-content: space-between; }
  .cw-archive { grid-template-columns: 200px minmax(0, 1fr); }
  .cw-archive ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .primary-nav .mega-inner { grid-template-columns: 1fr; }
  .mega-promo { display: none; }
}
@media (max-width: 900px) {
  .cw-archive { grid-template-columns: 1fr; }
  .cw-filters { position: static; }
  .cw-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cw-pdp-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 220px; }
  .ad-banner { grid-template-columns: 1fr; }
  .ad-art { grid-template-columns: repeat(3, 1fr); }
  .cw-grid-5 .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 620px) {
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-grid-5 .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cw-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ad-art { grid-template-columns: repeat(2, 1fr); }
  .hero-media { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hm-big { grid-row: auto; }
}


/* WooCommerce 的 clearfix 伪元素在 grid 布局下会占掉第一格，必须清掉 */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce .products ul::before,
.woocommerce .products ul::after {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
   v1.2 —— 统一蓝 #1c49c4 / hero 三图轮播 / 新版块排布 / tabs 重做 / 购物车弹窗
   ========================================================================== */

/* ---------------------------------------- header & nav 统一 #1c49c4 */
.header { background: #1c49c4; }
.primary-nav { background: #1c49c4; }
.primary-nav .nav-link:hover,
.primary-nav .nav-item.is-open .nav-link { background: rgba(255, 255, 255, .14); }
.nav-link.hot { color: #ffd88a; }
.search-btn { background: #0f2b7a; }
.search-btn:hover { background: #0a2160; }
.cart-count { border-color: #1c49c4; }

/* ------------------------------------------------- 购物车悬浮弹窗 */
.cart-wrap { position: relative; }
.cart-wrap .cart-link { position: relative; }
.cart-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  z-index: 120;
  color: var(--text);
  padding: 14px 16px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.cart-pop::before {
  content: "";
  position: absolute;
  top: -14px; right: 26px;
  border: 7px solid transparent;
  border-bottom-color: var(--yellow);
}
.cart-wrap:hover .cart-pop,
.cart-wrap.is-open .cart-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-pop .cp-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px; font-weight: 800; color: var(--text);
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-pop .cp-head .cp-n { font-weight: 400; font-size: 12px; color: var(--muted); }
.cart-pop ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.cart-pop ul.woocommerce-mini-cart li {
  display: grid;
  grid-template-columns: 52px 1fr 18px;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}
.cart-pop ul.woocommerce-mini-cart li::before,
.cart-pop ul.woocommerce-mini-cart li::after { display: none !important; }
.cart-pop ul.woocommerce-mini-cart li img { width: 52px; height: 52px; object-fit: contain; background: var(--bg); border-radius: 6px; }
.cart-pop ul.woocommerce-mini-cart li .cp-name { font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--text); }
.cart-pop ul.woocommerce-mini-cart li .cp-qty { font-size: 11px; color: var(--muted); }
.cart-pop .woocommerce-mini-cart__empty-message { font-size: 13px; color: var(--muted); padding: 14px 0; text-align: center; }
.cart-pop .cp-remove {
  font-size: 16px; line-height: 1; color: #9aa3b0; text-decoration: none;
}
.cart-pop .cp-remove:hover { color: #d0342c; text-decoration: none; }
.cart-pop .cp-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; font-size: 14px;
}
.cart-pop .cp-total strong { font-size: 17px; }
.cart-pop .cp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-pop .cp-btn {
  display: block; text-align: center; border-radius: 999px;
  padding: 10px 8px; font-size: 13px; font-weight: 800; border: 1px solid var(--blue);
}
.cart-pop .cp-btn.view { background: #fff; color: var(--blue); }
.cart-pop .cp-btn.check { background: var(--blue); color: #fff; }
.cart-pop .cp-btn:hover { text-decoration: none; filter: brightness(.94); }
.cart-pop .cp-ship { font-size: 11px; color: var(--green); font-weight: 700; text-align: center; margin-top: 10px; }

/* ------------------------------------------------------ Hero 三图轮播 */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
  background: #e9edf6;
}
.hero-slides { position: relative; width: 100%; aspect-ratio: 2882 / 592; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(18, 18, 18, .18);
  font-size: 22px; line-height: 1; color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(28, 73, 196, .6);
  background: rgba(255, 255, 255, .75);
}
.hero-dots button.is-active { background: var(--blue); border-color: var(--blue); }

/* ------------------------------------- 磁贴版块（Explore / Holiday） */
.tile-grid {
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  gap: 14px;
}
.tile-grid.holiday { grid-template-columns: 300px minmax(0, 1fr); }
.tg-left { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; }
.tg-right { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.tg-row { display: grid; gap: 14px; }
.tg-row.r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-row.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tg-row.r4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tg-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-soft);
  min-height: 193px;
}
.tg-left { min-height: 400px; }
.tg-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.tg-tile:hover img { transform: scale(1.04); }
.tg-tile .tg-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(6, 24, 60, .78) 100%);
  color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: -.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.tg-tile .tg-label small { display: block; font-size: 11px; font-weight: 600; opacity: .85; margin-top: 2px; }
.tg-tile:hover { text-decoration: none; }
.tg-left .tg-label { font-size: 22px; }

/* ------------------------------------------------ 版块之间大广告图 */
.ad-image {
  display: block;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(7, 47, 107, .18);
}
.ad-image img { width: 100%; height: auto; display: block; }

/* --------------------------------------------- Shop by pet 真实图 */
.pet-tile .pet-icon { overflow: hidden; padding: 0; }
.pet-tile .pet-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ------------------------------------------------ 单品页 tabs 重做 */
.cw-tabs { margin: 26px 0 10px; }
.cw-tabs-head {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--line);
  background: #fff;
  padding: 0 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cw-tabs-head::-webkit-scrollbar { display: none; }
.cw-tab-btn {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}
.cw-tab-btn:hover { color: var(--blue); }
.cw-tab-btn.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.cw-tabs-body {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px 26px 26px;
}
.cw-tab-panel { display: none; }
.cw-tab-panel.is-active { display: block; }
.cw-tab-panel > h2:first-child { display: none; }
.cw-tab-panel h2 {
  font-size: 15px; font-weight: 800; color: var(--blue-dark);
  margin: 22px 0 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.cw-tab-panel h2:first-of-type { margin-top: 0; }
.cw-tab-panel h3 { font-size: 14px; margin: 16px 0 6px; }
.cw-tab-panel p { margin: 0 0 12px; line-height: 1.65; color: #333a45; }
.cw-tab-panel ul { margin: 0 0 14px; padding-left: 20px; }
.cw-tab-panel ul li { margin-bottom: 6px; line-height: 1.6; color: #333a45; }
.cw-tab-panel table { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: 13px; }
.cw-tab-panel table th,
.cw-tab-panel table td { border-bottom: 1px solid var(--line-soft); padding: 9px 8px; text-align: left; }
.cw-tab-panel table th { width: 240px; color: var(--muted); font-weight: 600; background: #fafbfc; }
.cw-tab-panel figure { margin: 0 0 16px; }
.cw-tab-panel figure img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line-soft); }
.cw-tab-panel figcaption { font-size: 12px; color: var(--muted); margin-top: 5px; }
.cw-tab-panel .cw-spec-list { list-style: none; padding: 0; }

@media (max-width: 1100px) {
  .tile-grid, .tile-grid.holiday { grid-template-columns: 1fr; }
  .tg-row.r4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-row.r3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .tg-row.r2, .tg-row.r3, .tg-row.r4 { grid-template-columns: 1fr; }
  .cart-pop { width: 300px; right: -40px; }
}

/* ==========================================================================
   v1.3 —— hero 间距 / 详情图垂直排版 / 属性与数量框 / 平板手机适配
   ========================================================================== */

/* ------------------------------------------------------- hero 与导航留白 */
.hero-slider {
  margin: 30px auto 28px;
  border-radius: 14px;
}

/* --------------------------------------------- 详情页正文图片：垂直、无框 */
.cw-tab-panel figure.wp-block-image,
.cw-tab-panel figure {
  display: block;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  border: none;
  background: none;
  float: none;
}
.cw-tab-panel figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.cw-tab-panel figcaption { display: none !important; }
.cw-tab-panel h2 + figure { margin-top: 14px; }

/* ------------------------------------------------ 属性选项 / 数量 / 按钮 */
.woocommerce form.cart table.variations {
  border: none;
  margin: 0 0 18px;
  width: 100%;
}
/* 属性选项与 Clear 之间留出呼吸空间，不要贴在一起 */
.woocommerce form.cart .reset_variations {
  display: inline-flex;
  align-items: center;
  margin: 14px 0 0;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 999px;
  background: #eaf0ff;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.woocommerce form.cart .reset_variations:hover { background: var(--blue); color: #fff; text-decoration: none; }
.woocommerce form.cart .reset_variations[style*="hidden"] { visibility: hidden !important; }
.woocommerce form.cart table.variations tbody,
.woocommerce form.cart table.variations tr { display: block; }
.woocommerce form.cart table.variations tr { margin-bottom: 14px; }
.woocommerce form.cart table.variations th,
.woocommerce form.cart table.variations td {
  display: block;
  width: auto;
  border: none;
  padding: 0;
  text-align: left;
  background: none;
  line-height: 1.4;
}
.woocommerce form.cart table.variations th.label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 6px;
}
.woocommerce form.cart table.variations th.label label { margin: 0; }
.woocommerce form.cart table.variations select {
  width: 100%;
  max-width: 340px;
  height: 46px;
  padding: 0 44px 0 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(18, 18, 18, .05);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231c49c4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.woocommerce form.cart table.variations select:hover { border-color: #b9c0cc; }
.woocommerce form.cart table.variations select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 73, 196, .16);
}
.woocommerce form.cart table.variations .reset_variations {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

.woocommerce form.cart .woocommerce-variation-add-to-cart,
.woocommerce form.cart div.quantity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.woocommerce form.cart .quantity.cw-qty {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  margin: 0;
  float: none;
}
.cw-qty .cw-qty-btn {
  width: 40px;
  height: 44px;
  border: none;
  background: #f4f6f9;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.cw-qty .cw-qty-btn:hover { background: #e4ebf8; }
.cw-qty input.qty {
  width: 58px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  background: #fff;
  -moz-appearance: textfield;
}
.cw-qty input.qty::-webkit-outer-spin-button,
.cw-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cw-qty input.qty:focus { outline: none; }

.woocommerce form.cart .single_add_to_cart_button.button {
  height: 46px;
  padding: 0 34px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(28, 73, 196, .28);
  transition: background .15s ease, transform .1s ease;
}
.woocommerce form.cart .single_add_to_cart_button.button:hover {
  background: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
}
.woocommerce form.cart .single_add_to_cart_button.button.disabled,
.woocommerce form.cart .single_add_to_cart_button.button.disabled:hover {
  background: #eceff2;
  color: #5f6875;
  border: 1px solid var(--line);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* --------------------------------------------------- 平板 / 手机适配 */
html { -webkit-text-size-adjust: 100%; }
/* 注意：不要给 body 加 overflow-x:hidden，会让 .cw-filters 的 sticky 失效；
   只在小屏（筛选栏已经变 static）里加，兜住横向溢出。 */
img, table, iframe, video { max-width: 100%; }
.container { padding: 0 16px; }

/* 平板 ≤1024 */
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 16px; }
  .logo { font-size: 36px; }
  .header-actions { grid-column: 1 / -1; justify-content: flex-start; gap: 20px; }
  .search-form { grid-column: 1 / -1; }
  .nav-list { gap: 0; }
  .nav-link { padding: 12px 12px; font-size: 13px; }

  .value-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-contact-inner { grid-template-columns: 1fr; gap: 16px; }
  .cw-contact-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-contact-ways .cw-way:last-child { grid-column: 1 / -1; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .promo-split { grid-template-columns: 1fr; }

  .tile-grid, .tile-grid.holiday { grid-template-columns: 380px minmax(0, 1fr); }
  .tg-left { min-height: 320px; }
  .tg-tile { min-height: 160px; }

  .mega-cols { flex-wrap: wrap; gap: 18px; }
  .mega-col { flex: 1 1 150px; }
  .primary-nav .mega-inner { grid-template-columns: 1fr; }
  .mega-promo { display: none; }
}

/* 平板竖屏 / 大手机 ≤900 */
@media (max-width: 900px) {
  body { overflow-x: hidden; }
  /* 让全宽下拉以导航条（而不是可横向滚动的 nav-list）为定位基准 */
  .primary-nav { position: relative; }
  .nav-inner { position: static; }
  .utility-bar .container { flex-wrap: wrap; justify-content: center; gap: 4px 10px; padding: 6px 16px; }
  .utility-bar .sep { display: none; }
  .utility-bar .utility-right span:first-child { width: 100%; text-align: center; }

  .cw-grid-5 .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .cw-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cw-archive { grid-template-columns: 1fr; }
  .cw-filters { position: static; }

  .tile-grid, .tile-grid.holiday { grid-template-columns: 1fr; }
  .tg-left { min-height: 300px; }
  .tg-row.r4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-row.r3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-row.r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 下拉菜单在触屏上变成整块展开 */
  .nav-list { overflow-x: auto; }
  /* 下拉面板必须显式限宽：否则会被 grid 的 min-content 撑到 620px+ 造成横向溢出 */
  .mega { padding: 0; left: 0; right: auto; width: 100%; max-width: 100vw; min-width: 0; overflow: hidden; }
  .primary-nav .mega-inner { padding: 16px; min-width: 0; }
  .mega-cols { flex-wrap: wrap; gap: 14px; }
  .mega-col { flex: 1 1 140px; min-width: 0; }
  .mega-col a { overflow-wrap: anywhere; }

  .cw-pdp-grid { grid-template-columns: 1fr; }
  .cw-pdp .cw-gallery-main { min-height: 240px; }
  .cw-buybox { grid-column: 1 / -1; }

  .cw-tabs-body { padding: 16px 16px 20px; }
  .cw-tab-btn { padding: 12px 14px; font-size: 13px; }

  /* 小屏 header 把操作区挪到了左侧，弹窗要跟着改成向左展开，否则左边被切掉 */
  .cart-pop { right: auto; left: 0; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 手机 ≤620 */
@media (max-width: 620px) {
  .container { padding: 0 12px; }
  .header-inner { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .logo { font-size: 32px; }
  .search-form { height: 42px; }
  .search-cat { display: none; }
  .search-btn { padding: 0 14px; }
  .header-actions { gap: 14px; }
  .action-link .lbl-top { display: none; }
  .action-link .lbl-bottom { font-size: 12px; }
  .header-actions .action-link { flex-direction: row; gap: 6px; align-items: center; }

  .hero-slider { margin: 12px auto 16px; }
  .hero-slides { aspect-ratio: auto; height: 190px; }
  .hero-arrow { width: 32px; height: 32px; font-size: 18px; }

  .value-row { grid-template-columns: 1fr; gap: 8px; }
  .section-head { flex-wrap: wrap; gap: 8px; }
  .section-head h2 { font-size: 19px; }

  .cw-grid-5 .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .cw-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }

  .tg-left { min-height: 240px; }
  .tg-tile { min-height: 150px; }
  .tg-tile .tg-label { font-size: 13px; padding: 18px 10px 9px; }
  .tg-left .tg-label { font-size: 17px; }

  .promo { padding: 20px; }
  .brand-wall { gap: 8px; }

  .cw-pdp .product_title { font-size: 20px; }
  .cw-pdp p.price, .cw-pdp span.price { font-size: 24px; }
  .cw-gallery-thumbs .cw-thumb { width: 58px; height: 58px; }
  .woocommerce form.cart .single_add_to_cart_button.button { width: 100%; padding: 0 18px; }
  .woocommerce form.cart table.variations select { max-width: 100%; }

  .cw-tab-btn { padding: 11px 12px; font-size: 12.5px; }
  .cw-tabs-head { gap: 0; }
  .woocommerce .cw-crumb { font-size: 11px; line-height: 1.6; }

  /* 购物车弹窗：手机改成浮层（top 由 theme.js 按 header 实际高度算） */
  .cart-pop {
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: 70vh;
    overflow-y: auto;
  }
  .cart-pop::before { display: none; }

  .footer-cols { grid-template-columns: 1fr; gap: 16px; }
  .cw-contact-inner { text-align: left; }
  .cw-contact-ways { grid-template-columns: 1fr; }
  .cw-contact-ways .cw-way:last-child { grid-column: auto; }
  .footer-bottom .legal { flex-wrap: wrap; gap: 8px 14px; }

  /* WC 表格横向滚动，避免撑破页面 */
  .woocommerce table.shop_table { display: block; overflow-x: auto; white-space: nowrap; }
  .woocommerce table.shop_table td.actions { white-space: normal; }
  .woocommerce .cart-collaterals .cart_totals,
  .woocommerce .woocommerce-checkout .col2-set { width: 100%; float: none; }
}

/* 超小屏 ≤400 */
@media (max-width: 400px) {
  .cw-grid-5 .woocommerce ul.products,
  .cw-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  .hero-slides { height: 160px; }
  .cart-wrap .action-link .lbl-bottom { display: none; }
}

/* ==========================================================================
   v1.4 —— 手机端独立版面 / 抽屉菜单 / 无缝磁贴 / variation 外观 / tabs 圆角
   ========================================================================== */

/* ---------------------------------------------- 汉堡按钮（仅小屏可见） */
.burger { display: none; }
.burger {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.burger svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.burger:hover { background: #f2f5fb; }

/* ----------------------------------------------------- 抽屉（off-canvas） */
.cw-drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(7, 47, 107, .45);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.cw-drawer-mask.is-open { opacity: 1; visibility: visible; }
.cw-drawer-mask[hidden] { display: block; }

.cw-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 86vw;
  max-width: 360px;
  background: #fff;
  z-index: 901;
  display: flex;
  flex-direction: column;
  transform: translateX(-102%);
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 6px 0 24px rgba(7, 47, 107, .22);
}
.cw-drawer.is-open { transform: translateX(0); }

.cw-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.cw-drawer-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.cw-drawer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cw-drawer-list { list-style: none; margin: 0; padding: 6px 0 0; }
.cw-drawer-list::before,
.cw-drawer-list::after { content: none !important; display: none !important; }
.cw-ditem { border-bottom: 1px solid var(--line-soft); margin: 0; }
.cw-d1-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 12px; }
.cw-d1-thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--bg); flex: 0 0 auto; }
.cw-d1 {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.cw-d1-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cw-d1-toggle svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--blue); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease;
}
.cw-ditem.is-expanded .cw-d1-toggle svg { transform: rotate(180deg); }

.cw-d2 { display: none; padding: 0 12px 14px 56px; background: #fafbfd; }
.cw-ditem.is-expanded .cw-d2 { display: block; }
.cw-d2-group { padding: 8px 0; }
.cw-d2-head { display: block; font-size: 13px; font-weight: 800; color: var(--blue); margin-bottom: 6px; }
.cw-d3 { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-d3-link {
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 11px;
}
.cw-d3-link:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.cw-d2-all { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--blue); }

.cw-drawer-foot {
  display: flex;
  border-top: 1px solid var(--line);
  background: #fff;
}
.cw-drawer-foot a {
  flex: 1;
  text-align: center;
  padding: 13px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  border-right: 1px solid var(--line-soft);
}
.cw-drawer-foot a:last-child { border-right: none; }

/* ------------------------------------------- 单品页：选项/Clear 外观优化 */
.woocommerce form.cart .woocommerce-variation {
  background: #f5f8ff;
  border: 1px solid #dbe4fb;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.woocommerce form.cart .woocommerce-variation-price,
.woocommerce form.cart .woocommerce-variation-description { display: block; }
.woocommerce form.cart .woocommerce-variation-description {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.woocommerce form.cart .woocommerce-variation-description p { margin: 0 0 6px; }
.woocommerce form.cart .woocommerce-variation-description p:last-child { margin-bottom: 0; }
.woocommerce form.cart .woocommerce-variation-availability { font-size: 12px; margin-top: 6px; }
.woocommerce form.cart .woocommerce-variation .price { font-size: 20px; font-weight: 800; color: var(--text); }
.woocommerce form.cart table.variations .reset_variations {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  /* 与属性下拉框拉开距离（原来只有 8px，视觉上贴在一起） */
  margin-top: 18px;
  padding: 7px 14px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  background: #eef3ff;
  border: 1px solid #dbe4fb;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
}
.woocommerce form.cart table.variations .reset_variations::before {
  content: "\2715";
  font-size: 10px;
}
.woocommerce form.cart table.variations .reset_variations:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  text-decoration: none;
}
.woocommerce form.cart table.variations .reset_variations[style*="hidden"] { display: none !important; }

/* --------------------------------------------------- cw-tabs 圆角容器 */
.cw-tabs {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(18, 18, 18, .05);
}
.cw-tabs-head {
  border-bottom: 1px solid var(--line-soft);
  background: #fbfcfe;
  border-radius: 14px 14px 0 0;
  padding: 0 8px;
}
.cw-tabs-body {
  border: none;
  border-radius: 0 0 14px 14px;
}

/* ------------------------------------------- 分类页 / 商店页 顶部横幅图 */
.cw-cat-banner {
  position: relative;
  display: block;
  max-width: var(--container);
  /* 分类页顶部广告图上下间距统一 20px */
  margin: 20px auto 20px;
  padding: 0 16px;
}
.cw-cat-banner > img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
}
.cw-cat-banner::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(7, 47, 107, .88) 0%, rgba(7, 47, 107, .55) 42%, rgba(7, 47, 107, 0) 72%);
  pointer-events: none;
}
.cw-cat-banner-txt {
  position: absolute;
  left: 34px;
  bottom: 26px;
  max-width: 60%;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.cw-cat-banner-txt strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.cw-cat-banner-txt span { display: block; font-size: 13px; opacity: .95; margin-top: 3px; }
.cw-cat-banner:hover { text-decoration: none; }

/* ------------------------------------------------ 分页：间距拉开、圆角块 */
.woocommerce nav.woocommerce-pagination { margin: 30px 0 10px; }
.woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers::before,
.woocommerce nav.woocommerce-pagination ul.page-numbers::after { content: none !important; display: none !important; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li { border: none; margin: 0; float: none; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers:hover {
  background: #eef3ff;
  border-color: var(--blue);
  color: var(--blue);
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li .prev,
.woocommerce nav.woocommerce-pagination ul.page-numbers li .next { padding: 0 16px; }

/* =========================== 平板 / 手机：重新设计（不是简单缩放） =========================== */

/* 平板竖屏起（≤900）切换到移动端版面 */
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .burger { display: flex; }

  /* ---- header：第一行 burger + logo + 图标；第二行整条搜索框 ---- */
  .header-inner {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas:
      "burger logo actions"
      "search search search";
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px 14px;
  }
  .burger { grid-area: burger; }
  .header .header-inner { padding: 12px 14px 14px; }
  .logo { grid-area: logo; }
  .header .logo { font-size: 32px; }
  .search-form { grid-area: search; }
  .header .search-form { height: 44px; }
  .header-actions { grid-area: actions; gap: 14px; }
  .header-actions .action-link { flex-direction: row; align-items: center; gap: 0; }
  .action-link .lbl { display: none; }
  .action-link .icon { font-size: 20px; line-height: 1; }

  /* ---- 顶部条：只留一句 ---- */
  .utility-bar .utility-right { display: none; }
  .utility-bar .container { justify-content: center; min-height: 30px; }

  /* ---- hero：整宽单图，固定高度 ---- */
  .hero-slider { margin: 10px auto 14px; border-radius: 10px; }
  .hero-slides { aspect-ratio: auto; height: 170px; }
  .hero-arrow { width: 32px; height: 32px; font-size: 17px; }

  /* ---- 服务条 2×2 ---- */
  .value-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .value-item { padding: 10px; }

  /* ---- 版块标题 ---- */
  .section { padding: 20px 0; }
  .section-head h2 { font-size: 18px; }
  .section-head .sub { font-size: 12px; }
  .link-all { font-size: 12px; }

  /* ---- Explore / Holiday：手机端磁贴之间留出间距 ---- */
  .tile-grid,
  .tile-grid.holiday {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tile-grid .tg-right,
  .tile-grid .tg-row { display: contents; }
  /* 主推磁贴（Dog Food / Holiday pajamas）高度提高 1/3：210 → 280
     注意：磁贴同时带 .tg-tile，这里必须比 .tg-tile 更具体，否则会被后面的规则盖掉 */
  .tile-grid .tg-tile.tg-left {
    grid-column: 1 / -1;
    height: 280px;
    min-height: 0;
  }
  .tg-tile {
    height: 148px;
    min-height: 0;
    border: none;
    /* 有间距后恢复圆角，看起来更像独立卡片 */
    border-radius: 10px;
    overflow: hidden;
  }
  .tg-tile img { height: 100%; }
  /* 末位整行磁贴（Deals / eGift cards）高度提高 1/3：148 → 197 */
  .tile-grid .tg-row:last-child .tg-tile:last-child { grid-column: 1 / -1; height: 197px; }
  .tg-tile .tg-label { font-size: 12.5px; padding: 26px 10px 9px; }
  .tg-left .tg-label { font-size: 17px; }

  /* ---- Shop by pet：横滑卡片 ---- */
  .pet-rail { gap: 10px; }
  .pet-tile { flex: 0 0 92px; }
  .pet-icon { width: 72px; height: 72px; }
  .pet-name { font-size: 12px; }

  /* ---- 商品网格 ---- */
  .cw-grid-5 .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }

  /* ---- 广告图 ---- */
  .ad-image { border-radius: 10px; }

  /* ---- 分类页 ---- */
  .cw-archive { grid-template-columns: 1fr; }
  .cw-filters { position: static; }
  .cw-cat-banner { margin: 12px auto 0; }
  .cw-cat-banner > img { height: 118px; }
  .cw-cat-banner-txt { left: 28px; bottom: 20px; max-width: 82%; }
  .cw-cat-banner-txt strong { font-size: 18px; }
  .cw-cat-banner-txt span { font-size: 11px; }

  /* ---- 购物车弹窗：≤900 改浮层，避免绝对定位撑出屏幕 ---- */
  .cart-pop {
    position: fixed;
    top: 96px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 950;
  }
  .cart-pop::before { display: none; }

  /* ---- 单品页 ---- */
  .cw-pdp-grid { grid-template-columns: 1fr; }
  .cw-buybox { grid-column: 1 / -1; }
  .cw-tabs { margin: 18px 0 6px; }
  .cw-tabs-head { padding: 0 4px; }
  .cw-tab-btn { padding: 12px 12px; font-size: 13px; }
  .cw-tabs-body { padding: 16px 14px 20px; }
}

/* 手机（≤620）继续收紧 */
@media (max-width: 620px) {
  .container { padding: 0 12px; }
  .header .logo { font-size: 29px; }
  .search-cat { display: none; }
  .header .search-form { height: 42px; }
  .search-input { font-size: 14px; padding: 0 12px; }
  .search-btn { padding: 0 14px; }

  .hero-slides { height: 150px; }
  .hero-dots { bottom: 8px; }

  .value-item { flex-direction: row; align-items: center; gap: 8px; }
  .value-item .vicon { font-size: 18px; }

  .section-head { flex-wrap: wrap; gap: 6px; }
  .section-head h2 { font-size: 17px; }

  /* ≤620：主推磁贴 180 → 240，末位磁贴 128 → 170（同样提高 1/3） */
  .tg-tile { height: 128px; }
  .tile-grid .tg-tile.tg-left { height: 240px; }
  .tile-grid .tg-row:last-child .tg-tile:last-child { height: 170px; }
  .tg-tile .tg-label { font-size: 11.5px; padding: 22px 8px 8px; }
  .tg-left .tg-label { font-size: 15px; }

  .cw-grid-5 .woocommerce ul.products { gap: 8px; }

  .cw-cat-banner > img { height: 100px; border-radius: 10px; }
  .cw-cat-banner-txt strong { font-size: 16px; }
  .cw-cat-banner-txt span { display: none; }

  .cw-pdp .product_title { font-size: 20px; }
  .cw-pdp p.price, .cw-pdp span.price { font-size: 22px; }
  .woocommerce form.cart .single_add_to_cart_button.button { width: 100%; }
  .woocommerce form.cart table.variations select { max-width: 100%; }

  .woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers { min-width: 36px; height: 36px; padding: 0 9px; font-size: 13px; }
  .woocommerce nav.woocommerce-pagination ul.page-numbers { gap: 6px; }
}

/* v1.4 补丁：.container 的 padding 会覆盖 .header-inner，这里提高优先级 */
.header .header-inner { padding: 24px 16px 28px; }
.header .search-form { height: 50px; }
.header .logo { font-size: clamp(28px, 3.1vw, 46px); }
.primary-nav .nav-link { padding: 16px 14px; }

/* v1.4 补丁（放最后，确保覆盖前面的全局规则） */
@media (max-width: 900px) {
  .header .header-inner { padding: 10px 14px 12px; gap: 8px 12px; }
  .header .search-form { height: 42px; }
  .header .logo { font-size: clamp(19px, 5.2vw, 30px); }
  .primary-nav .nav-link { padding: 0; }

  /* 手机：会员中心 / 订单管理 / 购物车 只显示图标 */
  .header-actions { gap: 14px; }
  .header-actions .action-link { padding: 0; }
  .header-actions .action-link .lbl { display: none; }
  .header-actions .action-link .icon svg { width: 23px; height: 23px; }
  .action-link .cart-count { top: -7px; right: -9px; }
}

/* v1.4 补丁：手机端服务条文字不要被挤断 */
@media (max-width: 900px) {
  .value-item { padding: 10px 12px; gap: 9px; }
  .value-item .vicon { width: 32px; height: 32px; font-size: 16px; }
  .value-item strong { font-size: 12px; line-height: 1.35; }
  .value-item span { font-size: 11px; line-height: 1.35; }
}

/* =========================== v1.5：手机端顶部条单行走马灯 =========================== */
@keyframes cw-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .utility-bar .container { gap: 0; }
  .utility-left {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
    gap: 0;
  }
  .cw-ut-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
  }
  .cw-ut-run,
  .cw-ut-clone {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
  }
  .cw-ut-clone { padding-left: 14px; }
  /* JS 检测到内容放不下时加 .is-marquee，并把内容克隆一份实现无缝滚动 */
  .utility-left.is-marquee .cw-ut-track {
    animation: cw-ticker 16s linear infinite;
  }
  .utility-left .cw-ut-item { display: inline-block; }
}
@media (max-width: 620px) {
  .utility-left.is-marquee .cw-ut-track { animation-duration: 13s; }
}

/* v1.5：手机端首页版块间广告高度提高一倍
   （原图 2882×592 ≈ 4.87:1，翻倍后 ≈ 2.43:1，宽度自适应） */
@media (max-width: 900px) {
  .section-tight .ad-image img {
    aspect-ratio: 2.43 / 1;
    height: auto;
    object-fit: cover;
  }
}

/* ============ v1.6：手机端分类页 / 商店页筛选 —— 收进「Filter & sort」触发条 ============ */
@media (max-width: 900px) {
  .cw-filters { position: static; margin-bottom: 12px; }
  .cw-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: var(--blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(18, 18, 18, .06);
  }
  .cw-filters-toggle svg {
    width: 18px; height: 18px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .cw-filters-toggle .chev { font-size: 10px; transition: transform .18s ease; }
  .cw-filters.is-open .cw-filters-toggle .chev { transform: rotate(180deg); }

  #cwFilterPanel { display: none; }
  .cw-filters.is-open #cwFilterPanel { display: block; margin-top: 10px; }
  .cw-filters.is-open .filter-panel { padding: 12px 14px; }
  /* 面板里每组默认收起，点标题再展开，避免一屏塞不下 */
  .cw-filters.is-open .filter-panel .filter-group { padding: 8px 0; }
  /* v1.8：手机上加大勾选热区 */
  .cw-filters.is-open .filter-panel .fg-opt { min-height: 36px; font-size: 14px; }
  .cw-filters.is-open .filter-panel .fg-box { width: 20px; height: 20px; }
  .cw-filters.is-open .filter-panel .fg-input:checked + .fg-box::after {
    width: 5px; height: 10px; border-width: 0 2px 2px 0;
  }
  .cw-filters.is-open .filter-panel .fg-radios .fg-input:checked + .fg-box::after {
    width: 7px; height: 7px; border-width: 0;
  }
  .cw-filters-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--blue); color: #fff;
    border-radius: 999px; font-size: 11px; font-weight: 800;
  }
}

/* ================= v1.5：单品页 —— Related products 一行 5 个 ================= */
.woocommerce .related.products ul.products,
.woocommerce .upsells.products ul.products {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
@media (max-width: 1100px) {
  .woocommerce .related.products ul.products,
  .woocommerce .upsells.products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 900px) {
  .woocommerce .related.products ul.products,
  .woocommerce .upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ==================== v1.5：手机端购物车表格改为堆叠卡片 ==================== */
@media (max-width: 782px) {
  .woocommerce-cart table.shop_table,
  .woocommerce-cart table.shop_table tbody,
  .woocommerce-cart table.shop_table tbody tr,
  .woocommerce-cart table.shop_table tbody td,
  .woocommerce-cart table.shop_table tfoot,
  .woocommerce-cart table.shop_table tfoot tr,
  .woocommerce-cart table.shop_table tfoot th {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .woocommerce-cart table.shop_table thead { display: none; }

  .woocommerce-cart table.shop_table tbody tr {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #fff;
  }
  .woocommerce-cart table.shop_table tbody td {
    border: none;
    padding: 5px 0;
    text-align: right;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .woocommerce-cart table.shop_table tbody td::before {
    content: attr(data-title) ": ";
    float: left;
    font-weight: 700;
    font-size: 12px;
    color: var(--muted);
  }
  .woocommerce-cart table.shop_table tbody td.product-thumbnail {
    text-align: center;
    padding-bottom: 8px;
  }
  .woocommerce-cart table.shop_table tbody td.product-thumbnail::before { content: none; }
  .woocommerce-cart table.shop_table tbody td.product-thumbnail img { width: 90px; }
  .woocommerce-cart table.shop_table tbody td.product-remove { text-align: right; padding-bottom: 6px; }
  .woocommerce-cart table.shop_table tbody td.product-quantity .quantity { display: inline-flex; }
  .woocommerce-cart table.shop_table tbody td.actions,
  .woocommerce-cart table.shop_table tbody td.actions::before { text-align: left; }
  .woocommerce-cart table.shop_table tbody td.actions::before { content: none; float: none; }
  .woocommerce-cart table.shop_table tbody td.actions .coupon { display: flex; gap: 6px; flex-wrap: wrap; }
  .woocommerce-cart table.shop_table tbody td.actions .coupon .input-text { flex: 1 1 140px; min-width: 0; }
  .woocommerce-cart table.shop_table tbody td.actions > .button { width: 100%; margin-top: 8px; }

  .woocommerce-cart .cart-collaterals { width: 100% !important; float: none !important; }
  .woocommerce-cart .cart_totals { width: 100% !important; float: none !important; }
  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: block; width: 100%; text-align: center; }
}

/* ==================== v1.5：单品页支付模块 ==================== */
.bb-pay { margin-top: 12px; }
.bb-pay-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.bb-pay-head .bb-lock {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bb-pay-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 9px;
}
.bb-pay-marks .pm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #4a5460;
  box-shadow: 0 1px 2px rgba(18, 18, 18, .05);
}
.bb-pay-marks .pm-visa { color: #1a1f71; }
.bb-pay-marks .pm-mc { color: #eb001b; }
.bb-pay-marks .pm-amex { color: #006fcf; }
.bb-pay-marks .pm-disc { color: #f76b1c; }
.bb-pay-marks .pm-pp { color: #003087; }
.bb-pay-marks .pm-apay { color: #111; }
.bb-pay-marks .pm-gpay { color: #1f7a3d; }
.bb-pay-marks .pm-afterpay { color: #b2fce4; background: #0b0b0b; border-color: #0b0b0b; }
.bb-bnpl {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 6px;
}
.bb-bnpl b { color: var(--text); font-weight: 800; }
.bb-pay-note { font-size: 10.5px; color: var(--muted); line-height: 1.4; }

/* ==================================================================
 * v1.7：优惠价显示 —— 划线原价 + 优惠价 + Save X% 标签
 * ================================================================== */
.woocommerce ul.products li.product .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}
.woocommerce ul.products li.product .price del,
.cw-buybox .bb-price del {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: line-through;
}
.woocommerce ul.products li.product .price ins,
.cw-buybox .bb-price ins {
  text-decoration: none;
  color: var(--orange);
}
.woocommerce ul.products li.product .price .screen-reader-text,
.cw-buybox .bb-price .screen-reader-text { display: none; }

.cw-save-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffe9d6;
  color: #c33c00;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .2px;
  white-space: nowrap;
  text-decoration: none;
}

.cw-buybox .bb-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}
.cw-buybox .bb-price del { font-size: 15px; }
.cw-buybox .bb-sale-note {
  margin: 4px 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

/* 后台上传的 Logo */
.header .logo-img { display: block; }
.header .logo-img img {
  display: block;
  max-height: 46px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  .header .logo-img img { max-height: 34px; }
}

/* 首页广告位可编辑文字（Hero / 大广告叠层说明） */
.hero-slide .ad-caption,
.ad-image .ad-caption {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 2;
  max-width: 60%;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.ad-image .ad-caption { bottom: 18px; font-size: 18px; }
@media (max-width: 900px) {
  .hero-slide .ad-caption { left: 16px; bottom: 14px; font-size: 15px; max-width: 78%; }
  .ad-image .ad-caption { left: 14px; bottom: 12px; font-size: 14px; max-width: 82%; }
}
/* 注意：.hero-slide 本身是 position:absolute（轮播叠放），不能再改成 relative，
   否则三张图会变成静态流、把 hero 撑成三倍高。它是 .ad-caption 的定位上下文，无需另设。 */
.ad-image { position: relative; }

/* ==================================================================
 * v1.7.1：产品详情页的优惠价改为红色
 * ================================================================== */
.cw-buybox .bb-price ins,
.cw-buybox .price ins,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins,
.woocommerce-variation-price ins,
.cw-pdp p.price ins,
.cw-pdp span.price ins {
  color: var(--red);
}
.cw-buybox .bb-sale-note { color: var(--red); }
.cw-buybox .cw-save-badge,
.woocommerce div.product .cw-save-badge {
  background: #ffe6e6;
  color: #b3121b;
}

/* ==================================================================
 * v1.7.2：手机端详情页价格不换行 —— 原价缩小，整行单行显示
 * ================================================================== */
@media (max-width: 900px) {
  .cw-buybox .bb-price,
  .woocommerce div.product .cw-buybox .bb-price {
    flex-wrap: nowrap;
    gap: 0 6px;
    font-size: 20px;
  }
  .cw-buybox .bb-price del {
    font-size: 12px;
    line-height: 1;
  }
  .cw-buybox .bb-price ins {
    font-size: 20px;
    white-space: nowrap;
  }
  .cw-buybox .bb-price .cw-save-badge {
    font-size: 10px;
    padding: 2px 6px;
    margin-left: auto;
  }
  .cw-buybox .bb-sale-note { font-size: 12px; }
}
@media (max-width: 620px) {
  .cw-buybox .bb-price,
  .woocommerce div.product .cw-buybox .bb-price { font-size: 18px; }
  .cw-buybox .bb-price del { font-size: 11px; }
  .cw-buybox .bb-price ins { font-size: 18px; }
}

/* ==================================================================
 * v1.9.0：登录 / 注册页手机端 —— 单列 + 卡片切换
 * ================================================================== */
@media (max-width: 900px) {
  .cw-auth { max-width: 100%; }
  .cw-auth-tabs { display: flex; }
  .cw-auth-cols { grid-template-columns: 1fr; }
  .cw-auth-cols .cw-auth-card + .cw-auth-card { border-left: 0; }
  .cw-auth-card { padding: 22px 20px 26px; }
  .cw-auth-tab { flex: 1; text-align: center; padding: 13px 10px; }
  .cw-auth-title { font-size: 21px; }
}

/* ==================================================================
 * v1.10.0：会员中心手机端重做
 *   1) 导航菜单由「换行 3 行」改为横向滚动单行胶囊（143px → 55px）
 *   2) 概览订单行由「每行一条」改为紧凑卡片（190px → ~100px）
 *   3) 修 WooCommerce smallscreen（在主题之后加载）抢权重导致的
 *      订单表被挤成半屏、地址两栏并排溢出、表单 first/last 仍半宽
 * ================================================================== */
@media (max-width: 900px) {

  /* ---------------------------------------------------------- 外壳 */
  .cw-acc { grid-template-columns: 1fr; gap: 14px; }
  .cw-acc .cw-accnav { position: static; }

  /* ----------------------------------------------- 导航：单行滚动胶囊 */
  .cw-accnav-user { padding: 12px 14px; gap: 10px; }
  .cw-accnav-avatar { flex: 0 0 38px; width: 38px; height: 38px; font-size: 16px; }
  .cw-accnav-meta strong { font-size: 14px; }
  .cw-accnav-meta span { font-size: 11.5px; }

  /* 菜单：等宽自适应网格（5 项 → 3 + 2 两行），全部落在屏幕内。
     之前用横向滚动单行，第 3 个胶囊起就被右侧裁掉 —— 改成不滚动。 */
  .cw-accnav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    margin: 0;
  }
  .cw-accnav ul li { flex: 1 1 30%; min-width: 0; }
  .cw-accnav ul li a {
    gap: 5px;
    padding: 9px 6px;
    justify-content: center;
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
  }
  /* 手机换短文案，胶囊才塞得进 1/3 屏宽 */
  .cw-accnav .cw-txt-full { display: none; }
  .cw-accnav .cw-txt-short { display: inline; }
  .cw-accnav ul li.is-active > a {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    border-left-color: var(--blue);
  }
  .cw-accnav ul li.is-active > a:hover { background: var(--blue); color: #fff; }
  .cw-accnav-ico { flex: 0 0 16px; width: 16px; height: 16px; }
  .cw-accnav-ico svg { width: 16px; height: 16px; }
  .cw-accnav-home { padding: 12px 16px; }

  /* ------------------------------------------------------ 概览头部 */
  .cw-dash-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
  }
  .cw-dash-hero h1 { font-size: 20px; }
  .cw-dash-cta {
    width: 100%;
    height: 44px;
    justify-content: center;
    background: var(--blue);
    color: #fff;
  }
  .cw-dash-cta:hover { background: #0f2b7a; color: #fff; }

  /* ------------------------------------------------------ 三格统计 */
  .cw-dash-stats { gap: 8px; margin-bottom: 12px; }
  .cw-stat { padding: 12px 10px; }
  .cw-stat-n { font-size: 17px; }
  .cw-stat-l { font-size: 11px; }

  /* ------------------------------- 概览订单行 → 紧凑卡片（grid 重排） */
  .cw-dt-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      "order order status"
      "date  date  date"
      "items total act";
    align-items: center;
    gap: 3px 10px;
    padding: 12px 14px;
  }
  /* cw-dt-head 同时带 cw-dt-row，必须写在它后面并提高权重 */
  .cw-dt-row.cw-dt-head { display: none; }
  .cw-dt-row > span.cw-dt-c { display: block; padding: 0; }
  .cw-dt-row > span.cw-dt-c::before { content: none; }

  .cw-dt-order { grid-area: order; font-size: 15px; font-weight: 800; }
  .cw-dt-order a { font-size: 15px; }
  .cw-dt-status { grid-area: status; justify-self: end; }
  .cw-dt-date { grid-area: date; font-size: 12px; color: var(--muted); }
  .cw-dt-items { grid-area: items; font-size: 12px; color: var(--muted); }
  .cw-dt-total { grid-area: total; font-size: 14px; }
  .cw-dt-total strong { font-size: 14px; }
  .cw-dt-act { grid-area: act; justify-self: end; }
  .cw-dt-btn { height: 34px; padding: 0 16px; }

  .cw-dash-card { margin-bottom: 12px; }

  /* -------------------------------------------------------- 快捷磁贴 */
  .cw-dash-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cw-dash-tile { padding: 14px; gap: 2px; }
  .cw-dash-tile strong { font-size: 13px; }
  .cw-dash-tile > span:not(.cw-tile-ico) { font-size: 11px; line-height: 1.35; }
  .cw-tile-ico { width: 20px; height: 20px; margin-bottom: 5px; }
  .cw-tile-ico svg { width: 20px; height: 20px; }

  .cw-dash-foot { font-size: 14px; text-align: center; margin-top: 14px; }

  /* ------------------------------------------ 订单列表（Woo 自带表格）
     注意：WooCommerce 的 woocommerce-smallscreen.css 在主题之后加载，
     它用 (0,2,2) 的 .woocommerce table.shop_table_responsive tr td 强制
     display:block + text-align:right，会把表格挤成半屏。
     这里统一用 .woocommerce-account .cw-acc .cw-acccon 提到 (0,3,x) 覆盖。 */
  .woocommerce-account .cw-acc .cw-acccon table.shop_table,
  .woocommerce-account .cw-acc .cw-acccon table.shop_table_responsive,
  .woocommerce-account .cw-acc .cw-acccon table.order_details {
    display: block;
    border: 0;
    background: transparent;
    overflow: visible;
    margin-bottom: 0;
    /* 主题的「购物车表格横向滚动」规则（.woocommerce table.shop_table）
       给 table 加了 white-space:nowrap，会被会员中心表格继承进来，
       导致超长商品名不换行、把页面撑到 800+px —— 这里必须改回 normal。 */
    white-space: normal;
  }
  .woocommerce-account .cw-acc .cw-acccon table.shop_table_responsive thead,
  .woocommerce-account .cw-acc .cw-acccon table.order_details thead { display: none; }
  .woocommerce-account .cw-acc .cw-acccon table.shop_table_responsive tbody,
  .woocommerce-account .cw-acc .cw-acccon table.order_details tbody { display: block; }
  .woocommerce-account .cw-acc .cw-acccon table.shop_table_responsive tr,
  .woocommerce-account .cw-acc .cw-acccon table.order_details tr {
    display: block;
    border: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 10px;
  }
  .woocommerce-account .cw-acc .cw-acccon table.shop_table_responsive tr td,
  .woocommerce-account .cw-acc .cw-acccon table.order_details tr td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    width: auto;
    min-width: 0;
    float: none;
    text-align: left !important;
    background: transparent !important;
    border: 0;
    padding: 5px 0;
    overflow-wrap: anywhere;
  }
  .woocommerce-account .cw-acc .cw-acccon table.shop_table_responsive tr td::before,
  .woocommerce-account .cw-acc .cw-acccon table.order_details tr td::before {
    content: attr(data-title);
    float: none;
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .woocommerce-account .cw-acc .cw-acccon table.shop_table_responsive tr td:last-child,
  .woocommerce-account .cw-acc .cw-acccon table.order_details tr td:last-child {
    text-align: left !important;
  }
  /* 商品名很长：整格改块级排版，标签独占一行，名称按正常文本换行，
     避免超长商品名把 flex item 撑出屏幕（订单详情页曾横向溢出到 796px） */
  .woocommerce-account .cw-acc .cw-acccon table tr td.product-name { display: block; }
  .woocommerce-account .cw-acc .cw-acccon table tr td.product-name::before {
    display: block;
    margin-bottom: 2px;
  }
  /* 兜底：任何 td 的子元素都不许撑破格子 */
  .woocommerce-account .cw-acc .cw-acccon table tr td > * {
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
  }

  /* 订单列表：与概览同样的紧凑排布，并给状态加胶囊样式 */
  .woocommerce-account .cw-acc .cw-acccon table.my_account_orders tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "num    status"
      "date   date"
      "total  act";
    align-items: center;
    gap: 3px 10px;
  }
  .woocommerce-account .cw-acc .cw-acccon table.my_account_orders tbody td { padding: 0; }
  .woocommerce-account .cw-acc .cw-acccon table.my_account_orders tbody td::before { display: none; }
  /* 订单号是 tbody 里的 <th scope="row">，而 Woo 小屏样式有
     `.woocommerce table.shop_table_responsive tbody th{display:none}`
     会把它整列藏掉 —— 这里重新显示并放进 num 区。 */
  .woocommerce-account .cw-acc .cw-acccon table.my_account_orders tbody th,
  .woocommerce-account .cw-acc .cw-acccon table.my_account_orders td.woocommerce-orders-table__cell-order-number {
    display: block;
    grid-area: num;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 15px;
    font-weight: 800;
    color: var(--blue);
  }
  .woocommerce-account .cw-acc .cw-acccon table.my_account_orders tbody th a,
  .woocommerce-account .cw-acc .cw-acccon table.my_account_orders tbody th a:hover { font-size: 15px; color: var(--blue); }
  .woocommerce-account .cw-acc .cw-acccon table.my_account_orders td.woocommerce-orders-table__cell-order-status {
    grid-area: status;
    justify-self: end;
    width: auto;
    padding: 3px 10px;
    background: #e8f1ff;
    color: #14509e;
    border-radius: 20px;
    font-size: 11px; font-weight: 800;
  }
  .woocommerce-account .cw-acc .cw-acccon table.my_account_orders td.woocommerce-orders-table__cell-order-date {
    grid-area: date;
    font-size: 12px; color: var(--muted);
  }
  .woocommerce-account .cw-acc .cw-acccon table.my_account_orders td.woocommerce-orders-table__cell-order-total {
    grid-area: total;
    justify-self: start;
    font-size: 14px; font-weight: 700;
  }
  .woocommerce-account .cw-acc .cw-acccon table.my_account_orders td.woocommerce-orders-table__cell-order-actions {
    grid-area: act;
    justify-self: end;
    padding: 0;
    border-top: 0;
    margin-top: 0;
  }

  /* 订单详情：tfoot 小计区整块呈现，不做成一张张卡片 */
  .woocommerce-account .cw-acc .cw-acccon table.order_details tfoot {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px 14px;
  }
  .woocommerce-account .cw-acc .cw-acccon table.order_details tfoot tr {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    border: 0;
    background: transparent;
    padding: 8px 0;
    margin: 0;
    border-bottom: 1px dashed var(--line);
  }
  .woocommerce-account .cw-acc .cw-acccon table.order_details tfoot tr:last-child { border-bottom: 0; }
  .woocommerce-account .cw-acc .cw-acccon table.order_details tfoot th {
    display: block;
    text-align: left;
    background: transparent;
    padding: 0;
    font-size: 12px; font-weight: 700;
    color: var(--muted);
    text-transform: none; letter-spacing: 0;
  }
  .woocommerce-account .cw-acc .cw-acccon table.order_details tfoot td {
    padding: 0; border: 0;
    background: transparent !important;
    text-align: right !important;
    font-size: 14px; font-weight: 700;
  }
  .woocommerce-account .cw-acc .cw-acccon table.order_details tfoot td::before { display: none; }
  .woocommerce-account .cw-acc .cw-acccon table.order_details tfoot tr:last-child th { font-size: 14px; color: var(--text); }
  .woocommerce-account .cw-acc .cw-acccon table.order_details tfoot tr:last-child td { font-size: 16px; color: var(--blue); }

  .woocommerce-account .cw-acc .cw-acccon table .woocommerce-button { height: 36px; padding: 0 18px; }

  /* ------------------------------------------------ 表单（账户详情） */
  .woocommerce-account .cw-acc .cw-acccon form .form-row-first,
  .woocommerce-account .cw-acc .cw-acccon form .form-row-last {
    width: 100%;
    float: none;
  }
  .woocommerce-account .cw-acc .cw-acccon form .form-row { margin-bottom: 12px; }
  .woocommerce-account .cw-acc .cw-acccon fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 20px;
  }
  .woocommerce-account .cw-acc .cw-acccon fieldset legend {
    padding: 0;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 800;
  }
  .woocommerce-account .cw-acc .cw-acccon .form-row label { line-height: 1.45; }
  .woocommerce-account .cw-acc .cw-acccon button.button,
  .woocommerce-account .cw-acc .cw-acccon button.woocommerce-Button {
    width: 100%;
    height: 48px;
  }

  /* ---------------------------------------- 地址簿：两栏并排溢出的修复 */
  .cw-acc .cw-acccon .col2-set,
  .cw-acc .cw-acccon .woocommerce-Addresses { grid-template-columns: 1fr; }
  /* 桌面端把 .col-1/.col-2 钉死在 grid 的第 1/2 列，
     手机端只有 1 列时会被撑出一条隐式列 —— 必须放开自动排布。 */
  .cw-acc .cw-acccon .col2-set > .col-1,
  .cw-acc .cw-acccon .col2-set > .col-2 {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    float: none;
    margin: 0 0 12px;
  }
  .cw-acc .cw-acccon .woocommerce-Address { padding: 14px 16px; }
  /* 标题行里 "Edit Billing address" 文案很长，手机端允许换行而不是挤成一团 */
  .cw-acc .cw-acccon .woocommerce-Address-title {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 10px;
    margin-bottom: 8px;
  }
  .cw-acc .cw-acccon .woocommerce-Address-title h2,
  .cw-acc .cw-acccon .woocommerce-Address-title h3 { font-size: 14px; }
  .cw-acc .cw-acccon .edit {
    display: inline-flex; align-items: center;
    height: 34px; padding: 0 14px;
  }
  .cw-acc .cw-acccon address { padding: 12px 14px; font-size: 13px; margin-bottom: 0; }

  /* ------------------------------------------ 订单详情：收货 / 账单单列 */
  .cw-acc .cw-acccon .woocommerce-customer-details { margin-top: 18px; }
  .cw-acc .cw-acccon .woocommerce-customer-details .col2-set,
  .cw-acc .cw-acccon .woocommerce-customer-details .woocommerce-columns { display: block; }
  .cw-acc .cw-acccon .woocommerce-customer-details .col-1,
  .cw-acc .cw-acccon .woocommerce-customer-details .col-2 {
    width: 100%;
    float: none;
    margin: 0 0 12px;
  }
  .cw-acccon > h2,
  .cw-acccon > h3 { font-size: 18px; margin-bottom: 12px; }
}
