/* ==========================================================================
   KingRouter — theme.css
   Design language: 大气 (grand, generous) × 清新 (fresh, airy)
   Author: Hermes Agent
   --------------------------------------------------------------------------
   目录
   00. 设计令牌 (Design tokens)
   01. Reset / Base
   02. Typography
   03. Layout helpers
   04. Buttons
   05. Forms & fields
   06. Badges, pills, ratings
   07. Announcement bar
   08. Header & navigation
   09. Hero
   10. Section scaffolding
   11. Category cards (industry / type)
   12. Product card + product grid
   13. Trust strip / stats / promo / testimonials / newsletter
   14. Footer
   15. WooCommerce: notices, shop archive, filters, toolbar, pagination
   16. WooCommerce: single product
   17. WooCommerce: cart
   18. WooCommerce: checkout
   19. WooCommerce: my account
   20. Live chat widget
   21. Motion & responsive
   ========================================================================== */

/* 00. 设计令牌 ============================================================ */
:root {
  /* Palette — fresh, airy, a touch of premium */
  --scf-bg:            #f5f8fa;
  --scf-bg-alt:        #eef4f7;
  --scf-surface:       #ffffff;
  --scf-surface-2:     #fbfdfe;

  --scf-ink:           #0d1b26;
  --scf-ink-2:         #3d5266;
  --scf-muted:         #7b8fa1;
  --scf-line:          #e3ecf1;
  --scf-line-strong:   #cfdde6;

  --scf-brand:         #0fa394;
  --scf-brand-600:     #0c8c80;
  --scf-brand-700:     #0a7268;
  --scf-brand-050:     #e9f8f6;
  --scf-brand-100:     #d2f0ec;

  --scf-navy:          #0b2239;
  --scf-navy-600:      #123353;
  --scf-accent:        #ff7a45;
  --scf-accent-050:    #fff1ea;
  --scf-warn:          #f2a33c;
  --scf-danger:        #e5484d;
  --scf-success:       #12a594;

  /* Elevation */
  --scf-shadow-xs: 0 1px 2px rgba(13, 27, 38, .05);
  --scf-shadow-sm: 0 2px 6px rgba(13, 27, 38, .05), 0 1px 2px rgba(13, 27, 38, .04);
  --scf-shadow-md: 0 12px 28px -14px rgba(13, 27, 38, .18), 0 2px 6px rgba(13, 27, 38, .04);
  --scf-shadow-lg: 0 30px 60px -28px rgba(13, 27, 38, .26), 0 8px 20px -12px rgba(13, 27, 38, .10);
  --scf-shadow-brand: 0 14px 30px -14px rgba(15, 163, 148, .55);

  /* Shape */
  --scf-radius-xs: 8px;
  --scf-radius-sm: 12px;
  --scf-radius:    16px;
  --scf-radius-lg: 22px;
  --scf-radius-xl: 30px;
  --scf-radius-pill: 999px;

  /* Rhythm */
  --scf-container: 1280px;
  --scf-gutter: clamp(16px, 4vw, 32px);
  --scf-section-y: clamp(56px, 7vw, 104px);

  /* Type */
  --scf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
              "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --scf-font-num: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --scf-h1: clamp(2.15rem, 1.5rem + 2.9vw, 3.85rem);
  --scf-h2: clamp(1.65rem, 1.25rem + 1.5vw, 2.5rem);
  --scf-h3: clamp(1.2rem, 1.05rem + .6vw, 1.55rem);

  --scf-transition: .28s cubic-bezier(.4, 0, .2, 1);
}

/* 01. Reset / Base ======================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--scf-bg);
  color: var(--scf-ink);
  font-family: var(--scf-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.scf-no-scroll { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--scf-brand-700); text-decoration: none; transition: color var(--scf-transition); }
a:hover { color: var(--scf-brand); }

hr { border: 0; border-top: 1px solid var(--scf-line); margin: 2rem 0; }

::selection { background: var(--scf-brand-100); color: var(--scf-ink); }

:focus-visible {
  outline: 2px solid var(--scf-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  background: var(--scf-navy); color: #fff;
  padding: 10px 16px; border-radius: var(--scf-radius-xs);
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* 02. Typography ========================================================= */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--scf-ink);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.18;
}
h1 { font-size: var(--scf-h1); }
h2 { font-size: var(--scf-h2); }
h3 { font-size: var(--scf-h3); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--scf-muted); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); color: var(--scf-ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--scf-brand-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .7;
}

.muted { color: var(--scf-muted); }
.text-center { text-align: center; }

/* 03. Layout helpers ===================================================== */
.scf-container {
  width: 100%;
  max-width: var(--scf-container);
  margin-inline: auto;
  padding-inline: var(--scf-gutter);
}
.scf-container--narrow { max-width: 900px; }
.scf-container--wide { max-width: 1440px; }

.scf-section { padding-block: var(--scf-section-y); }
.scf-section--tight { padding-block: calc(var(--scf-section-y) * .62); }
.scf-section--alt { background: var(--scf-bg-alt); }
.scf-section--surface { background: var(--scf-surface); }

.scf-stack > * + * { margin-top: 1rem; }
.scf-grid { display: grid; gap: clamp(16px, 2vw, 26px); }

.scf-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(26px, 3vw, 46px);
}
.scf-section-head__text { max-width: 660px; }
.scf-section-head h2 { margin-bottom: .28em; }
.scf-section-head p { margin-bottom: 0; color: var(--scf-ink-2); }

.scf-link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.scf-link-more::after { content: "→"; transition: transform var(--scf-transition); }
.scf-link-more:hover::after { transform: translateX(4px); }

/* 04. Buttons ============================================================ */
.scf-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--scf-radius-pill);
  background: var(--scf-navy);
  color: #fff;
  font-family: inherit;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform var(--scf-transition), box-shadow var(--scf-transition),
              background-color var(--scf-transition), color var(--scf-transition),
              border-color var(--scf-transition);
}
.scf-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
  background: var(--scf-navy-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--scf-shadow-md);
}
.scf-btn:active { transform: translateY(0); }

.scf-btn--primary,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #place_order {
  background: linear-gradient(135deg, var(--scf-brand) 0%, var(--scf-brand-600) 100%);
  color: #fff;
  box-shadow: var(--scf-shadow-brand);
}
.scf-btn--primary:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
  background: linear-gradient(135deg, var(--scf-brand-600) 0%, var(--scf-brand-700) 100%);
  color: #fff;
}

.scf-btn--ghost { background: transparent; color: var(--scf-ink); border-color: var(--scf-line-strong); }
.scf-btn--ghost:hover { background: var(--scf-surface); color: var(--scf-ink); border-color: var(--scf-brand); box-shadow: var(--scf-shadow-sm); }

.scf-btn--light { background: #fff; color: var(--scf-navy); }
.scf-btn--light:hover { background: #fff; color: var(--scf-navy); box-shadow: var(--scf-shadow-md); }

.scf-btn--sm { padding: 9px 18px; font-size: .88rem; }
.scf-btn--lg { padding: 16px 34px; font-size: 1.03rem; }
.scf-btn--block { width: 100%; }

/* 05. Forms & fields ===================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--scf-line-strong);
  border-radius: var(--scf-radius-sm);
  background: var(--scf-surface);
  color: var(--scf-ink);
  font-family: inherit;
  font-size: .96rem;
  line-height: 1.4;
  transition: border-color var(--scf-transition), box-shadow var(--scf-transition);
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 132px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--scf-brand);
  box-shadow: 0 0 0 4px var(--scf-brand-050);
}

select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b8fa1' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: .89rem;
  font-weight: 600;
  color: var(--scf-ink-2);
}
.required { color: var(--scf-danger); text-decoration: none; }

.scf-field-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .scf-field-row { grid-template-columns: 1fr; } }

/* 06. Badges, pills, ratings ============================================= */
.scf-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px;
  border-radius: var(--scf-radius-pill);
  background: var(--scf-brand-050);
  color: var(--scf-brand-700);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.scf-badge--new  { background: var(--scf-brand-050); color: var(--scf-brand-700); }
.scf-badge--hot  { background: var(--scf-accent-050); color: #c2410c; }
.scf-badge--sale { background: #fdecec; color: #b42318; }
.scf-badge--out  { background: #eef1f4; color: #5b6b7c; }
.scf-badge--navy { background: rgba(11, 34, 57, .06); color: var(--scf-navy); }
.scf-badge--solid { background: var(--scf-brand); color: #fff; }

.scf-rating { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--scf-muted); }
.scf-stars { display: inline-flex; gap: 1px; color: var(--scf-warn); letter-spacing: -1px; }

.woocommerce .star-rating { color: var(--scf-warn); font-size: .85rem; }
.woocommerce .star-rating::before { color: var(--scf-line-strong); }

/* 07. Announcement bar =================================================== */
.scf-announce {
  background: var(--scf-navy);
  color: #d7e6ef;
  font-size: .84rem;
  letter-spacing: .01em;
}
.scf-announce__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  min-height: 40px; padding-block: 7px;
}
.scf-announce__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.scf-announce__item svg { width: 15px; height: 15px; opacity: .85; }
.scf-announce b { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .scf-announce__inner { gap: 14px 20px; } .scf-announce__item:nth-child(n+3) { display: none; } }

/* 08. Header & navigation ================================================ */
.scf-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--scf-line);
  transition: box-shadow var(--scf-transition);
}
.scf-header.is-stuck { box-shadow: 0 8px 24px -18px rgba(13, 27, 38, .35); }

.scf-header__inner {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
  min-height: 74px;
}

.scf-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.scf-brand__mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--scf-brand) 0%, var(--scf-brand-700) 100%);
  color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
  box-shadow: var(--scf-shadow-brand);
}
.scf-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.scf-brand__name { font-size: 1.13rem; font-weight: 800; letter-spacing: -.03em; color: var(--scf-ink); }
.scf-brand__tag { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--scf-muted); }

.scf-nav { margin-inline: auto; }
.scf-nav ul { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 16px); margin: 0; padding: 0; list-style: none; }
.scf-nav a, .scf-nav .scf-nav__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  border: 0; background: none; cursor: pointer;
  color: var(--scf-ink-2);
  font-family: inherit; font-size: .95rem; font-weight: 600;
  border-radius: var(--scf-radius-xs);
  transition: color var(--scf-transition), background-color var(--scf-transition);
}
.scf-nav a:hover, .scf-nav .scf-nav__toggle:hover,
.scf-nav .current-menu-item > a { color: var(--scf-brand-700); background: var(--scf-brand-050); }
.scf-nav .scf-nav__toggle::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.scf-nav li { position: relative; }
.scf-nav .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 20;
  min-width: 244px; padding: 10px;
  display: block;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius);
  box-shadow: var(--scf-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.scf-nav li:hover > .sub-menu,
.scf-nav li:focus-within > .sub-menu,
.scf-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.scf-nav .sub-menu li { display: block; }
.scf-nav .sub-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 9px 12px; font-weight: 500;
}
.scf-nav .sub-menu .count { color: var(--scf-muted); font-size: .8rem; }

.scf-header__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.scf-icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer;
  border-radius: var(--scf-radius-sm);
  color: var(--scf-ink-2);
  transition: background-color var(--scf-transition), color var(--scf-transition);
}
.scf-icon-btn:hover { background: var(--scf-brand-050); color: var(--scf-brand-700); }
.scf-icon-btn svg { width: 21px; height: 21px; }

.scf-cart-count {
  position: absolute; top: 3px; right: 2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--scf-accent); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 1;
  border-radius: var(--scf-radius-pill);
  border: 2px solid #fff;
}
.scf-cart-count[data-count="0"] { display: none; }

.scf-lang {
  display: inline-flex; align-items: center;
  padding: 3px; margin-right: 4px;
  background: var(--scf-bg-alt);
  border-radius: var(--scf-radius-pill);
}
.scf-lang a {
  padding: 5px 11px; border-radius: var(--scf-radius-pill);
  font-size: .79rem; font-weight: 700; color: var(--scf-muted);
}
.scf-lang a.is-active { background: var(--scf-surface); color: var(--scf-brand-700); box-shadow: var(--scf-shadow-xs); }
.scf-lang a:hover { color: var(--scf-brand-700); }

.scf-burger { display: none; }

/* Mobile navigation drawer — hidden by default at every width; only the
   ≤860px media query below turns it on. (Without this base rule the drawer
   renders as a stray panel on desktop.) */
.scf-mobile-nav { display: none; }

/* Search drawer */
.scf-search-drawer {
  display: none;
  border-top: 1px solid var(--scf-line);
  background: var(--scf-surface);
  padding-block: 16px;
}
.scf-search-drawer.is-open { display: block; }
.scf-search-form { display: flex; gap: 10px; }
.scf-search-form input[type="search"] { flex: 1; }

/* 09. Hero ============================================================== */
.scf-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 96px) clamp(56px, 7vw, 110px);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(15, 163, 148, .16), transparent 65%),
    radial-gradient(760px 420px at 4% 6%, rgba(11, 34, 57, .07), transparent 62%),
    linear-gradient(180deg, #fbfdfe 0%, var(--scf-bg) 100%);
  border-bottom: 1px solid var(--scf-line);
}
.scf-hero__grid {
  display: grid; gap: clamp(32px, 4.5vw, 64px);
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
}
.scf-hero h1 { margin-bottom: .42em; }
.scf-hero h1 em { font-style: normal; color: var(--scf-brand-700); }
.scf-hero__sub { max-width: 560px; font-size: clamp(1.02rem, .97rem + .35vw, 1.22rem); color: var(--scf-ink-2); }
.scf-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.scf-hero__trust {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 26px; margin-top: 34px; padding-top: 26px;
  border-top: 1px solid var(--scf-line);
}
.scf-hero__trust-item { display: flex; align-items: center; gap: 10px; font-size: .89rem; color: var(--scf-ink-2); }
.scf-hero__trust-item strong { color: var(--scf-ink); font-size: .98rem; }
.scf-hero__trust-item svg { width: 20px; height: 20px; color: var(--scf-brand); flex-shrink: 0; }

/* Hero visual: layered cards, no stock photos required */
.scf-hero__visual { position: relative; min-height: 380px; }
.scf-hero__panel {
  position: relative; z-index: 2;
  border-radius: var(--scf-radius-xl);
  background: linear-gradient(150deg, #ffffff 0%, #f2fbfa 100%);
  border: 1px solid var(--scf-line);
  box-shadow: var(--scf-shadow-lg);
  padding: 26px;
}
.scf-hero__panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.scf-hero__panel-title { font-weight: 700; font-size: .95rem; }
.scf-hero__grid-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.scf-mini-tile {
  display: flex; flex-direction: column; gap: 9px;
  padding: 14px; border-radius: var(--scf-radius-sm);
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  transition: transform var(--scf-transition), box-shadow var(--scf-transition), border-color var(--scf-transition);
}
.scf-mini-tile:hover { transform: translateY(-3px); box-shadow: var(--scf-shadow-md); border-color: var(--scf-brand-100); }
.scf-mini-tile__ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--scf-brand-050); color: var(--scf-brand-700);
}
.scf-mini-tile__ico svg { width: 18px; height: 18px; }
.scf-mini-tile__name { font-size: .85rem; font-weight: 650; color: var(--scf-ink); line-height: 1.3; }
.scf-mini-tile__count { font-size: .74rem; color: var(--scf-muted); }

.scf-float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--scf-line);
  padding: 13px 17px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius);
  box-shadow: var(--scf-shadow-lg);
  animation: scf-float 6s ease-in-out infinite;
}
.scf-float-card--tl { top: -42px; left: -34px; }
.scf-float-card--br { bottom: -26px; right: -18px; animation-delay: -3s; }
.scf-float-card__ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--scf-brand-050); color: var(--scf-brand-700);
}
.scf-float-card__ico svg { width: 19px; height: 19px; }
.scf-float-card strong { display: block; font-size: .92rem; line-height: 1.2; }
.scf-float-card span { font-size: .76rem; color: var(--scf-muted); }

@keyframes scf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 10. Section scaffolding =============================================== */
.scf-cat-grid { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scf-cat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scf-cat-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* 11. Category cards ==================================================== */
.scf-cat-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  min-height: 178px; padding: 22px;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  color: var(--scf-ink);
  box-shadow: var(--scf-shadow-xs);
  transition: transform var(--scf-transition), box-shadow var(--scf-transition),
              border-color var(--scf-transition);
}
.scf-cat-card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, var(--scf-brand-050) 0%, transparent 70%);
  opacity: 0; transition: opacity var(--scf-transition);
}
.scf-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--scf-shadow-lg);
  border-color: var(--scf-brand-100);
  color: var(--scf-ink);
}
.scf-cat-card:hover::after { opacity: 1; }
.scf-cat-card__ico {
  position: relative; z-index: 1;
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--scf-brand-050), var(--scf-brand-100));
  color: var(--scf-brand-700);
}
.scf-cat-card__ico svg { width: 26px; height: 26px; }
.scf-cat-card__body { position: relative; z-index: 1; }
.scf-cat-card__name { font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 3px; }
.scf-cat-card__meta { font-size: .82rem; color: var(--scf-muted); }
.scf-cat-card__arrow {
  position: relative; z-index: 1;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .83rem; font-weight: 650; color: var(--scf-brand-700);
}
.scf-cat-card__arrow::after { content: "→"; transition: transform var(--scf-transition); }
.scf-cat-card:hover .scf-cat-card__arrow::after { transform: translateX(4px); }

/* compact type tiles */
.scf-type-card {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 17px;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius);
  color: var(--scf-ink);
  transition: transform var(--scf-transition), box-shadow var(--scf-transition), border-color var(--scf-transition);
}
.scf-type-card:hover { transform: translateY(-3px); box-shadow: var(--scf-shadow-md); border-color: var(--scf-brand-100); color: var(--scf-ink); }
.scf-type-card__ico {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--scf-bg-alt); color: var(--scf-brand-700);
}
.scf-type-card__ico svg { width: 19px; height: 19px; }
.scf-type-card__name { font-size: .92rem; font-weight: 650; line-height: 1.25; }
.scf-type-card__count { font-size: .76rem; color: var(--scf-muted); }

/* 12. Product card + product grid ======================================= */
.scf-products { display: grid; gap: clamp(16px, 1.9vw, 26px); grid-template-columns: repeat(4, minmax(0, 1fr)); }

.scf-product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  overflow: hidden;
  box-shadow: var(--scf-shadow-xs);
  transition: transform var(--scf-transition), box-shadow var(--scf-transition),
              border-color var(--scf-transition);
}
.scf-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--scf-shadow-lg);
  border-color: var(--scf-brand-100);
}

.scf-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #fbfdfe 0%, #eef6f8 100%);
  overflow: hidden;
}
.scf-product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .3, 1);
}
.scf-product-card:hover .scf-product-card__media img { transform: scale(1.055); }

.scf-product-card__badges {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.scf-product-card__quick {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(8px);
  transition: opacity var(--scf-transition), transform var(--scf-transition);
}
.scf-product-card:hover .scf-product-card__quick { opacity: 1; transform: translateX(0); }
.scf-quick-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--scf-line);
  border-radius: 50%;
  color: var(--scf-ink-2); cursor: pointer;
  box-shadow: var(--scf-shadow-sm);
  transition: background-color var(--scf-transition), color var(--scf-transition), transform var(--scf-transition);
}
.scf-quick-btn:hover { background: var(--scf-brand); color: #fff; transform: scale(1.06); }
.scf-quick-btn svg { width: 17px; height: 17px; }

.scf-product-card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 18px 18px 20px; }
.scf-product-card__cat {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--scf-brand-700);
}
.scf-product-card__title {
  margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.38; letter-spacing: -.01em;
}
.scf-product-card__title a { color: var(--scf-ink); }
.scf-product-card__title a:hover { color: var(--scf-brand-700); }

.scf-product-card__price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 4px; }
.scf-product-card__price .price { font-size: 1.22rem; font-weight: 750; color: var(--scf-navy); letter-spacing: -.02em; }
.scf-product-card__price del { color: var(--scf-muted); font-size: .92rem; }
.scf-product-card__price ins { text-decoration: none; color: var(--scf-danger); }

.scf-product-card__foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.scf-product-card__foot .scf-btn { flex: 1; }
.scf-btn__label { white-space: nowrap; }
/* 「已加入」状态：换个颜色（深色），点一下可以取消 */
.scf-btn.is-in-cart { background: var(--scf-ink) !important; color: #fff !important; box-shadow: none; }
.scf-btn.is-in-cart:hover { background: #2b333c !important; }
.scf-btn.is-in-cart .scf-i { opacity: .85; }
.scf-btn.is-busy { opacity: .6; pointer-events: none; }
/* WooCommerce 自己插进来的「查看购物车」链接：别把按钮挤成一条 */
.scf-product-card__foot .added_to_cart {
  flex: 0 0 auto; align-self: center; white-space: nowrap;
  font-size: .82rem; padding: 0; color: var(--scf-brand-700, var(--scf-brand));
  text-decoration: underline; text-underline-offset: 3px;
}
.scf-stock-note { font-size: .78rem; display: inline-flex; align-items: center; gap: 6px; color: var(--scf-success); }
.scf-stock-note--low { color: var(--scf-warn); }
.scf-stock-note--out { color: var(--scf-muted); }
.scf-stock-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* 13. Trust strip / stats / promo / testimonials / newsletter =========== */
.scf-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.scf-trust__item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 24px 22px;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius);
  transition: box-shadow var(--scf-transition), transform var(--scf-transition);
}
.scf-trust__item:hover { box-shadow: var(--scf-shadow-md); transform: translateY(-3px); }
.scf-trust__ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--scf-brand-050); color: var(--scf-brand-700);
}
.scf-trust__ico svg { width: 22px; height: 22px; }
.scf-trust__item h3 { font-size: .98rem; margin-bottom: 3px; }
.scf-trust__item p { font-size: .86rem; color: var(--scf-muted); margin: 0; }

.scf-promo {
  position: relative; overflow: hidden;
  display: grid; gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  padding: clamp(32px, 4.5vw, 64px);
  border-radius: var(--scf-radius-xl);
  background: linear-gradient(135deg, var(--scf-navy) 0%, #123a52 58%, #0d5a55 100%);
  color: #e8f3f6;
  box-shadow: var(--scf-shadow-lg);
}
.scf-promo::after {
  content: ""; position: absolute; top: -120px; right: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 163, 148, .5) 0%, transparent 68%);
}
.scf-promo h2, .scf-promo h1 { color: #fff; }
.scf-promo p { color: #b9d2dc; }
.scf-promo__list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.scf-promo__list li { display: flex; align-items: center; gap: 10px; font-size: .93rem; }
.scf-promo__list svg { width: 17px; height: 17px; color: var(--scf-brand); flex-shrink: 0; }
.scf-promo__cta { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }

.scf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 34px); }
.scf-stat { text-align: center; }
.scf-stat__num {
  display: block;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  font-weight: 800; letter-spacing: -.035em;
  color: var(--scf-brand-700); line-height: 1.1;
}
.scf-stat__label { font-size: .88rem; color: var(--scf-ink-2); }

.scf-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.scf-quote {
  display: flex; flex-direction: column; gap: 16px;
  padding: 26px;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  box-shadow: var(--scf-shadow-xs);
}
.scf-quote p { font-size: .96rem; color: var(--scf-ink-2); margin: 0; }
.scf-quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.scf-quote__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--scf-brand) 0%, var(--scf-brand-700) 100%);
  color: #fff; font-weight: 700; font-size: .95rem;
}
.scf-quote__who strong { display: block; font-size: .92rem; }
.scf-quote__who span { font-size: .8rem; color: var(--scf-muted); }

.scf-newsletter {
  display: grid; gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-xl);
  box-shadow: var(--scf-shadow-sm);
}
.scf-newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.scf-newsletter input[type="email"] { flex: 1 1 240px; }

/* 14. Footer ============================================================ */
.scf-footer { background: var(--scf-navy); color: #a9c2d0; margin-top: var(--scf-section-y); }
.scf-footer__top {
  display: grid; gap: clamp(26px, 3.4vw, 54px);
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  padding-block: clamp(44px, 5vw, 72px) 36px;
}
.scf-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .02em; margin-bottom: 16px; }
.scf-footer a { color: #a9c2d0; font-size: .9rem; }
.scf-footer a:hover { color: #fff; }
.scf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scf-footer p { font-size: .9rem; line-height: 1.7; }
.scf-footer .scf-brand__name, .scf-footer .scf-brand__tag { color: #fff; }
.scf-footer .scf-brand__tag { color: #7fb3c2; }
.scf-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .83rem;
}
.scf-footer__pay { display: flex; align-items: center; gap: 10px; }
.scf-footer__pay span {
  padding: 6px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  font-size: .74rem; font-weight: 600; color: #d8e8ef; letter-spacing: .02em;
}

/* 15. WooCommerce: notices / archive / filters / toolbar ================ */
.woocommerce-notices-wrapper { margin-bottom: 20px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px !important;
  margin-bottom: 16px !important;
  background: var(--scf-surface) !important;
  border: 1px solid var(--scf-line) !important;
  border-left: 4px solid var(--scf-brand) !important;
  border-radius: var(--scf-radius-sm) !important;
  color: var(--scf-ink-2) !important;
  font-size: .93rem;
  list-style: none;
  box-shadow: var(--scf-shadow-xs);
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none !important; }
.woocommerce-error { border-left-color: var(--scf-danger) !important; }
.woocommerce-message .button { margin-left: auto; }

.scf-page-hero {
  padding-block: clamp(34px, 4vw, 60px) clamp(26px, 3vw, 42px);
  background:
    radial-gradient(900px 380px at 92% -30%, rgba(15, 163, 148, .14), transparent 62%),
    linear-gradient(180deg, #fbfdfe, var(--scf-bg));
  border-bottom: 1px solid var(--scf-line);
}
.scf-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .84rem; color: var(--scf-muted); margin-bottom: 14px; }
.scf-breadcrumb a { color: var(--scf-muted); }
.scf-breadcrumb a:hover { color: var(--scf-brand-700); }
.scf-breadcrumb__sep { opacity: .5; }
.scf-page-hero h1 { margin-bottom: .3em; }
.scf-page-hero .term-description, .scf-page-hero p { max-width: 720px; color: var(--scf-ink-2); margin: 0; font-size: .98rem; }
.scf-page-hero__meta { margin-top: 14px; font-size: .86rem; color: var(--scf-muted); }

.scf-shop-layout {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  grid-template-columns: 274px minmax(0, 1fr);
  align-items: start;
  padding-block: clamp(30px, 4vw, 52px);
}

.scf-filter-panel {
  position: sticky; top: 96px;
  display: grid; gap: 18px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 4px;
}
.scf-filter-panel::-webkit-scrollbar { width: 6px; }
.scf-filter-panel::-webkit-scrollbar-thumb { background: var(--scf-line-strong); border-radius: 3px; }

.scf-filter {
  padding: 20px;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius);
  box-shadow: var(--scf-shadow-xs);
}
.scf-filter h3 {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--scf-muted); margin-bottom: 14px;
}
.scf-filter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.scf-filter li a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 11px; border-radius: var(--scf-radius-xs);
  color: var(--scf-ink-2); font-size: .91rem; font-weight: 500;
}
.scf-filter li a:hover { background: var(--scf-bg-alt); color: var(--scf-brand-700); }
.scf-filter li.is-active > a { background: var(--scf-brand-050); color: var(--scf-brand-700); font-weight: 700; }
.scf-filter .count { font-size: .78rem; color: var(--scf-muted); }
.scf-filter ul ul { margin: 2px 0 6px 12px; padding-left: 10px; border-left: 1px solid var(--scf-line); }

.scf-price-range { display: flex; align-items: center; gap: 10px; }
.scf-price-range input { padding: 9px 12px; font-size: .9rem; }
.scf-price-range span { color: var(--scf-muted); }

.scf-toolbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 22px;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius);
  box-shadow: var(--scf-shadow-xs);
}
.scf-toolbar__count { font-size: .88rem; color: var(--scf-muted); }
.scf-toolbar__count b { color: var(--scf-ink); }
.scf-toolbar__right { display: flex; align-items: center; gap: 12px; }
.scf-toolbar .woocommerce-ordering { margin: 0; }
.scf-toolbar select { padding: 9px 34px 9px 13px; font-size: .89rem; min-width: 178px; }

.scf-view-toggle { display: inline-flex; gap: 3px; padding: 3px; background: var(--scf-bg-alt); border-radius: var(--scf-radius-pill); }
.scf-view-toggle button {
  width: 34px; height: 30px; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--scf-radius-pill); color: var(--scf-muted); display: grid; place-items: center;
}
.scf-view-toggle button.is-active { background: var(--scf-surface); color: var(--scf-brand-700); box-shadow: var(--scf-shadow-xs); }
.scf-view-toggle svg { width: 15px; height: 15px; }

.scf-filter-toggle { display: none; }

.woocommerce nav.woocommerce-pagination { margin-top: 40px; }
.woocommerce nav.woocommerce-pagination ul {
  display: flex; gap: 8px; justify-content: center;
  border: 0 !important; margin: 0; padding: 0; list-style: none;
}
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 12px !important;
  border: 1px solid var(--scf-line) !important;
  border-radius: var(--scf-radius-sm) !important;
  background: var(--scf-surface); color: var(--scf-ink-2) !important;
  font-weight: 600 !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--scf-brand) !important; color: var(--scf-brand-700) !important; background: var(--scf-brand-050) !important; }
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--scf-navy) !important; color: #fff !important; border-color: var(--scf-navy) !important;
}

.woocommerce-result-count { margin: 0 !important; }

.scf-empty {
  padding: 60px 24px; text-align: center;
  background: var(--scf-surface); border: 1px dashed var(--scf-line-strong);
  border-radius: var(--scf-radius-lg);
}
.scf-empty h2 { margin-bottom: .3em; }

/* 16. WooCommerce: single product ======================================= */
.scf-single { padding-block: clamp(26px, 3vw, 46px) 0; }
.scf-single__grid {
  display: grid; gap: clamp(26px, 3.6vw, 56px);
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: start;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary { float: none !important; width: 100% !important; margin: 0 !important; }

.woocommerce div.product div.images { position: relative; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border-radius: var(--scf-radius-lg); overflow: hidden; }
.woocommerce div.product div.images img {
  border-radius: var(--scf-radius-lg);
  background: linear-gradient(160deg, #fbfdfe, #eef6f8);
  border: 1px solid var(--scf-line);
}
/* 主图：按视口高度收着 —— 不然方形/竖图会撑满一屏，把下面那排缩略图顶出首屏
   （1366×768 笔记本上原来只看得见大图、缩略图要往下滚才看到）。
   限制高度会让图片等比缩小并居中，比例不同的图也不会互相跳动。 */
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  display: block; margin: 0 auto;
  width: auto; max-width: 100%; height: auto;
  max-height: min(56vh, 560px);
}
/* 缩略图条：一排几张由 --scf-thumb-cols 决定（theme.js 按宽度算：桌面最多 6 张、手机 4 张）。
   没有 JS 时默认 4 张、多余的小图换行铺开，不会丢图 */
.woocommerce div.product div.images .flex-control-thumbs {
  --scf-thumb-cols: 4;
  --scf-thumb-gap: 10px;
  display: flex !important; flex-wrap: wrap;
  gap: var(--scf-thumb-gap); margin: 12px 0 0 !important; padding: 0;
}
.woocommerce div.product div.images .flex-control-thumbs li {
  flex: 0 0 calc((100% - (var(--scf-thumb-cols) - 1) * var(--scf-thumb-gap)) / var(--scf-thumb-cols));
  width: auto !important; margin: 0 !important; float: none !important;
}
.woocommerce div.product div.images .flex-control-thumbs img {
  width: 100%;
  border-radius: var(--scf-radius-xs); border: 1px solid var(--scf-line);
  opacity: .68; transition: opacity var(--scf-transition), border-color var(--scf-transition);
}
.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; border-color: var(--scf-brand); }

/* 有左右箭头时：三栏网格 = 箭头 ｜ 缩略图条 ｜ 箭头 */
/* 图片兜底：重试也失败时红框标出来，点一下再试（见 theme.js 的图片兜底段） */
img.scf-img-broken {
  outline: 2px solid var(--scf-danger);
  outline-offset: -3px;
  cursor: pointer;
  background: repeating-linear-gradient(45deg, #fff 0 8px, #fdf1f2 8px 16px);
}

/* 注意：gallery 本身就是 div.images，所以是同元素选择器，不是后代 */
.woocommerce div.product div.images.woocommerce-product-gallery.has-thumbs-nav {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; column-gap: 8px; row-gap: 12px;
}
.woocommerce div.product div.images.woocommerce-product-gallery.has-thumbs-nav > .flex-viewport,
.woocommerce div.product div.images.woocommerce-product-gallery.has-thumbs-nav > .woocommerce-product-gallery__wrapper {
  grid-column: 1 / -1; grid-row: 1;
}
/* 裁切层：本身不位移，位移只作用在里面那层 ol 上 */
.scf-thumbs__viewport { overflow: hidden; min-width: 0; }
.woocommerce div.product div.images.woocommerce-product-gallery.has-thumbs-nav > .scf-thumbs__viewport {
  grid-column: 2; grid-row: 2;
}
.woocommerce div.product div.images.woocommerce-product-gallery.has-thumbs-nav .flex-control-thumbs {
  flex-wrap: nowrap; overflow: hidden; margin: 0 !important;
  transition: transform .35s ease;
}
.scf-thumbs__nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  background: var(--scf-surface); color: var(--scf-ink);
  border: 1px solid var(--scf-line); border-radius: var(--scf-radius-pill);
  cursor: pointer; transition: var(--scf-transition);
}
.scf-thumbs__nav:hover:not(:disabled) { background: var(--scf-ink); color: #fff; border-color: var(--scf-ink); }
.scf-thumbs__nav:focus-visible { outline: 2px solid var(--scf-brand); outline-offset: 2px; }
.scf-thumbs__nav:disabled { opacity: .3; cursor: default; }
.scf-thumbs__nav svg { width: 15px; height: 15px; }
.scf-thumbs__nav--prev { grid-column: 1; grid-row: 2; }
.scf-thumbs__nav--next { grid-column: 3; grid-row: 2; }
@media (max-width: 560px) {
  .woocommerce div.product div.images .flex-control-thumbs { --scf-thumb-gap: 8px; }
  .woocommerce div.product div.images.woocommerce-product-gallery.has-thumbs-nav { column-gap: 6px; }
  .scf-thumbs__nav { width: 28px; height: 28px; }
  .scf-thumbs__nav svg { width: 13px; height: 13px; }
}

.scf-single__summary {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  box-shadow: var(--scf-shadow-sm);
}
.scf-single__cat { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--scf-brand-700); }
.scf-single__summary h1.product_title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); margin: 0; }
.scf-single__meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--scf-muted); }

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--scf-navy) !important;
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.15rem) !important;
  font-weight: 780 !important;
  letter-spacing: -.03em;
  margin: 0;
}
.woocommerce div.product p.price del { color: var(--scf-muted) !important; font-size: .68em !important; font-weight: 500 !important; }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--scf-danger) !important; }

.woocommerce-product-details__short-description { color: var(--scf-ink-2); font-size: .96rem; }

.woocommerce div.product form.cart { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; margin: 0 !important; }
.woocommerce div.product form.cart .quantity {
  display: inline-flex; align-items: center;
  border: 1px solid var(--scf-line-strong); border-radius: var(--scf-radius-pill);
  overflow: hidden; background: var(--scf-surface);
}
.woocommerce div.product form.cart .quantity input {
  width: 74px !important; height: 52px; padding: 0 8px !important;
  border: 0 !important; box-shadow: none !important;
  text-align: center; font-weight: 700; font-size: 1rem;
  -moz-appearance: textfield;
}
.woocommerce div.product form.cart .quantity input::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce div.product form.cart .button {
  height: 52px; padding-inline: 34px !important; border-radius: var(--scf-radius-pill) !important;
}
.woocommerce div.product form.cart .button.single_add_to_cart_button {
  background: linear-gradient(135deg, var(--scf-brand), var(--scf-brand-600)) !important;
  box-shadow: var(--scf-shadow-brand);
}
.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: 14px; }
.woocommerce div.product form.cart .variations td { padding: 6px 0; }
.woocommerce div.product form.cart .variations select { min-width: 200px; }

.scf-buy-now { display: block; width: 100%; }
.scf-buy-now .scf-btn { width: 100%; height: 52px; }

.scf-single__actions { display: grid; gap: 10px; }

.product_meta { display: grid; gap: 6px; font-size: .85rem; color: var(--scf-muted); padding-top: 16px; border-top: 1px solid var(--scf-line); }
.product_meta a { color: var(--scf-ink-2); }
.product_meta > span { display: block; }

.scf-single__trust { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--scf-line); }
.scf-single__trust div { display: flex; align-items: center; gap: 10px; font-size: .87rem; color: var(--scf-ink-2); }
.scf-single__trust svg { width: 17px; height: 17px; color: var(--scf-brand); flex-shrink: 0; }

.scf-chat-cta {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 18px;
  background: var(--scf-brand-050);
  border: 1px dashed var(--scf-brand-100);
  border-radius: var(--scf-radius);
  color: var(--scf-brand-700); font-weight: 650; font-size: .93rem;
  cursor: pointer; text-align: left;
  transition: background-color var(--scf-transition), border-color var(--scf-transition);
}
.scf-chat-cta:hover { background: var(--scf-brand-100); border-color: var(--scf-brand); }
.scf-chat-cta svg { width: 20px; height: 20px; flex-shrink: 0; }
.scf-chat-cta small { display: block; font-weight: 500; color: var(--scf-ink-2); font-size: .8rem; }

.woocommerce-tabs { margin-top: clamp(40px, 5vw, 72px); }
body .woocommerce-tabs ul.tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 0 0 26px !important; padding: 5px !important;
  background: var(--scf-bg-alt); border-radius: var(--scf-radius-pill);
  border: 0 !important;
}
body .woocommerce-tabs ul.tabs::before { display: none !important; }
body .woocommerce-tabs ul.tabs li {
  margin: 0 !important; padding: 0 !important;
  background: transparent !important; border: 0 !important; border-radius: var(--scf-radius-pill) !important;
}
body .woocommerce-tabs ul.tabs li::before,
body .woocommerce-tabs ul.tabs li::after { display: none !important; }
body .woocommerce-tabs ul.tabs li a {
  display: block; padding: 11px 22px !important;
  border-radius: var(--scf-radius-pill) !important;
  color: var(--scf-ink-2) !important; font-weight: 650 !important; font-size: .93rem;
}
body .woocommerce-tabs ul.tabs li.active a { background: var(--scf-surface) !important; color: var(--scf-brand-700) !important; box-shadow: var(--scf-shadow-xs); }
body .woocommerce-tabs .panel {
  padding: clamp(24px, 3vw, 40px) !important;
  background: var(--scf-surface); border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg); box-shadow: var(--scf-shadow-xs);
  margin: 0 !important;
}
#tab-description table, #tab-additional_information table { width: 100%; border-collapse: collapse; }
#tab-additional_information th, #tab-additional_information td,
#tab-description th, #tab-description td {
  padding: 11px 14px; border: 1px solid var(--scf-line); text-align: left; font-size: .92rem;
}
#tab-additional_information th { background: var(--scf-bg-alt); font-weight: 650; width: 30%; }
.scf-specs-empty { margin: 0; color: var(--scf-ink-2); font-size: .95rem; }
.scf-specs-html > :first-child { margin-top: 0; }
.scf-specs-html > :last-child { margin-bottom: 0; }
.scf-specs-html table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.scf-specs-html th, .scf-specs-html td { padding: 11px 14px; border: 1px solid var(--scf-line); text-align: left; font-size: .92rem; }
.scf-specs-html th { background: var(--scf-bg-alt); font-weight: 650; width: 30%; }
.scf-specs-html ul, .scf-specs-html ol { padding-left: 20px; }
.scf-specs-html img { max-width: 100%; height: auto; border-radius: var(--scf-radius-md); }

/* 三个选项卡：自己切（theme.js 会加 .is-tabbed）；没 JS 时不加这个类，三块直接堆叠 */
.woocommerce-tabs.is-tabbed .panel { display: none !important; }
.woocommerce-tabs.is-tabbed .panel.is-active { display: block !important; }
.woocommerce-tabs.is-tabbed #tab-description > h2:first-child,
.woocommerce-tabs.is-tabbed #tab-additional_information > h2:first-child { display: none; }
body .woocommerce-tabs ul.tabs li a:hover { color: var(--scf-brand-700) !important; }

.related.products, .upsells.products, .cross-sells { margin-top: clamp(40px, 5vw, 68px); }
.related.products > h2, .upsells.products > h2, .cross-sells > h2 {
  font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem);
  margin-bottom: 24px;
}

.scf-sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; align-items: center; gap: 14px;
  padding: 12px var(--scf-gutter);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--scf-line);
  box-shadow: 0 -8px 26px -18px rgba(13, 27, 38, .4);
}
.scf-sticky-buy.is-visible { display: flex; }
.scf-sticky-buy__info { flex: 1; min-width: 0; }
.scf-sticky-buy__info strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scf-sticky-buy__info span { font-size: 1rem; font-weight: 750; color: var(--scf-navy); }

/* reviews */
.woocommerce #reviews #comments ol.commentlist { padding: 0; }
.woocommerce #reviews #comments ol.commentlist li { margin-bottom: 14px !important; }
.woocommerce #reviews #comments ol.commentlist li .comment-text {
  margin: 0 0 0 62px !important; padding: 18px 20px !important;
  border: 1px solid var(--scf-line) !important; border-radius: var(--scf-radius) !important;
  background: var(--scf-surface-2) !important;
}
.woocommerce #reviews #comments ol.commentlist li img.avatar { width: 48px; border-radius: 50%; border: 0; padding: 0; top: 5px; left: 0; }

/* 17. WooCommerce: cart ================================================== */
.woocommerce table.shop_table {
  border: 1px solid var(--scf-line) !important;
  border-radius: var(--scf-radius-lg) !important;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  background: var(--scf-surface);
  box-shadow: var(--scf-shadow-xs);
}
.woocommerce table.shop_table th {
  padding: 15px 18px !important;
  background: var(--scf-bg-alt);
  font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--scf-muted);
  font-weight: 700; text-align: left;
}
.woocommerce table.shop_table td {
  padding: 18px !important;
  border-top: 1px solid var(--scf-line) !important;
  vertical-align: middle;
}
.woocommerce table.shop_table td.product-thumbnail img { width: 78px; border-radius: var(--scf-radius-xs); border: 1px solid var(--scf-line); }
.woocommerce table.shop_table td.product-name a { font-weight: 650; color: var(--scf-ink); }
.woocommerce table.shop_table td.product-name a:hover { color: var(--scf-brand-700); }

.woocommerce .cart_item .quantity input { width: 76px !important; text-align: center; }

.woocommerce .cart-collaterals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(20px, 3vw, 36px); margin-top: 30px; align-items: start; }
.woocommerce .cart-collaterals .cart_totals { width: 100% !important; float: none !important; }
.woocommerce .cart-collaterals .cart_totals > h2 { font-size: 1.2rem; }
.woocommerce .cart_totals table { margin-bottom: 16px; }
.woocommerce .coupon { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.woocommerce .coupon input[type="text"] { max-width: 220px; }
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  display: block; width: 100%; padding: 17px;
  background: linear-gradient(135deg, var(--scf-brand), var(--scf-brand-600)) !important;
  border-radius: var(--scf-radius-pill) !important;
  font-size: 1.03rem !important; font-weight: 700 !important;
  box-shadow: var(--scf-shadow-brand);
}
.woocommerce .cart-empty, .woocommerce-cart .cart-empty {
  padding: 60px 20px; text-align: center;
  background: var(--scf-surface); border: 1px dashed var(--scf-line-strong);
  border-radius: var(--scf-radius-lg);
  font-size: 1.05rem; color: var(--scf-ink-2);
}
.woocommerce .return-to-shop { text-align: center; margin-top: 20px; }
.woocommerce-shipping-calculator .shipping-calculator-button { font-size: .89rem; font-weight: 650; }

/* 18. WooCommerce: checkout ============================================= */
.woocommerce-checkout .woocommerce { display: block; }
.woocommerce form.checkout {
  display: grid; gap: clamp(24px, 3vw, 44px);
  grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
  align-items: start;
}
.woocommerce-checkout #customer_details { grid-column: 1; }
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review { grid-column: 2; }
.woocommerce-checkout #order_review {
  position: sticky; top: 100px;
  padding: 26px;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  box-shadow: var(--scf-shadow-md);
}
.woocommerce-checkout #order_review_heading { margin: 0 0 -14px; font-size: 1.2rem; }
.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields {
  padding: 26px; margin-bottom: 20px;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  box-shadow: var(--scf-shadow-xs);
}
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { font-size: 1.1rem; }
.woocommerce form .form-row { padding: 0 !important; margin: 0 0 14px !important; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px) !important; float: none !important; display: inline-block; }
.woocommerce form .form-row-first { margin-right: 12px !important; }
.woocommerce-checkout-review-order-table { border: 0 !important; box-shadow: none !important; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td {
  padding: 11px 0 !important; background: transparent !important; border: 0 !important;
  border-bottom: 1px solid var(--scf-line) !important;
  font-size: .92rem; text-transform: none; letter-spacing: 0;
}
.woocommerce-checkout-review-order-table thead th { color: var(--scf-muted); }
.woocommerce-checkout-review-order-table .order-total td, .woocommerce-checkout-review-order-table .order-total th { font-size: 1.1rem; font-weight: 750; border-bottom: 0 !important; }
#payment { background: transparent !important; border-radius: 0 !important; }
#payment ul.payment_methods { padding: 0 !important; border: 0 !important; list-style: none; }
#payment ul.payment_methods li {
  margin-bottom: 10px; padding: 14px 16px;
  border: 1px solid var(--scf-line); border-radius: var(--scf-radius-sm);
  background: var(--scf-surface-2);
  transition: border-color var(--scf-transition), background-color var(--scf-transition);
}
#payment ul.payment_methods li:hover { border-color: var(--scf-brand-100); }
#payment ul.payment_methods li label { margin: 0; font-weight: 600; color: var(--scf-ink); display: inline; }
#payment div.payment_box { background: var(--scf-bg-alt) !important; border-radius: var(--scf-radius-sm); margin-top: 10px !important; font-size: .87rem; }
#payment div.payment_box::before { display: none !important; }
#place_order { width: 100%; padding: 17px !important; font-size: 1.03rem !important; border-radius: var(--scf-radius-pill) !important; }

/* --- 结算页改造：地址下拉 / 物流下拉 / 支付卡片 / 商品清单缩略图 --------------- */
.scf-co-card {
  padding: 26px; margin-bottom: 20px;
  background: var(--scf-surface); border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg); box-shadow: var(--scf-shadow-xs);
}
.scf-co-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.scf-co-card__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.1rem; }
.scf-co-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--scf-ink); color: #fff; font-size: .78rem; font-weight: 700; flex-shrink: 0;
}
.scf-co-card__link { font-size: .87rem; color: var(--scf-brand-700); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.scf-co-addr__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.scf-co-addr__label { display: block; margin-bottom: 7px; font-size: .84rem; font-weight: 600; color: var(--scf-ink-2); }
.scf-co-select {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--scf-line-strong); border-radius: var(--scf-radius-sm);
  background-color: var(--scf-surface); color: var(--scf-ink); font-size: .92rem;
}
.scf-co-select:disabled { opacity: .6; cursor: not-allowed; }
.scf-co-addr__preview { margin: 9px 0 0; font-size: .86rem; line-height: 1.55; color: var(--scf-muted); }
.scf-co-addr__preview strong { color: var(--scf-ink); }
.scf-co-same { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .86rem; color: var(--scf-ink-2); cursor: pointer; }
.scf-co-addr__toggle { margin: 14px 0 0; }
.scf-co-link { padding: 0; border: 0; background: none; color: var(--scf-brand-700); font-size: .87rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.scf-co-addr__none { padding: 20px; border: 1px dashed var(--scf-line-strong); border-radius: var(--scf-radius); background: var(--scf-surface-2); text-align: center; }
.scf-co-addr__none p { margin: 0 0 14px; color: var(--scf-ink-2); font-size: .92rem; }
/* 选了地址就不用看 WooCommerce 那一堆地址输入框（点「手动填写」再展开） */
#customer_details.scf-co-fields--collapsed .col-1,
#customer_details.scf-co-fields--collapsed .col-2 { display: none; }
/* 物流方式下拉（原来的单选列表藏起来） */
#scf-co-shipping-select { width: 100%; min-width: 168px; margin-bottom: 4px; }
.woocommerce-checkout-review-order-table tr.shipping td { padding-left: 12px !important; }
.woocommerce-checkout-review-order-table tr.shipping th { white-space: nowrap; }
ul#shipping_method.scf-co-hidden { display: none !important; }
/* 支付方式：两列卡片 */
#payment ul.payment_methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#payment ul.payment_methods li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
#payment ul.payment_methods li.is-active { border-color: var(--scf-brand); background: var(--scf-brand-050); box-shadow: inset 0 0 0 1px var(--scf-brand); }
#payment ul.payment_methods li input.input-radio { accent-color: var(--scf-brand); margin: 0; }
#payment ul.payment_methods li .payment_box { flex: 1 0 100%; width: 100%; }
/* 用 !important 压过 WooCommerce 用 JS 写在内联样式上的显示/隐藏，
   这样「选中的通道展开、其它收起」永远跟 is-active 一致 */
#payment .wc_payment_method:not(.is-active) .payment_box { display: none !important; }
#payment .wc_payment_method.is-active .payment_box { display: block !important; }
/* 商品清单：缩略图 + 单价 × 数量 */
/* 有地址时：地址卡片 + 订单摘要 一列排下来，不要留一大片空白 */
.woocommerce form.checkout.scf-co-onecol { grid-template-columns: minmax(0, 1fr); max-width: 920px; margin-inline: auto; }
.woocommerce form.checkout.scf-co-onecol #customer_details,
.woocommerce form.checkout.scf-co-onecol #order_review_heading,
.woocommerce form.checkout.scf-co-onecol #order_review { grid-column: 1; }
.woocommerce form.checkout.scf-co-onecol #order_review { position: static; }
.scf-co-mini { margin: 20px 0 10px; padding-top: 16px; border-top: 1px solid var(--scf-line); font-size: .95rem; }
.scf-co-item { display: flex; align-items: center; gap: 12px; }
.scf-co-item__thumb { width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--scf-line); object-fit: cover; flex-shrink: 0; }
.scf-co-item__name { font-weight: 600; }
.scf-co-item__unit { display: block; margin-top: 4px; font-size: .82rem; color: var(--scf-muted); }
@media (max-width: 768px) {
  .scf-co-addr__grid { grid-template-columns: 1fr; }
  #payment ul.payment_methods { grid-template-columns: 1fr; }
  .scf-co-card { padding: 20px 18px; }
}

.woocommerce-info.scf-checkout-steps {
  border-left-color: var(--scf-navy) !important;
  justify-content: center; gap: 18px;
}
.scf-steps { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .86rem; }
.scf-steps b { color: var(--scf-ink); }

.woocommerce-order {
  max-width: 860px; margin-inline: auto;
  padding: clamp(26px, 4vw, 46px);
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-xl);
  box-shadow: var(--scf-shadow-md);
}
.woocommerce-thankyou-order-received { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); font-weight: 750; text-align: center; margin-bottom: 28px; color: var(--scf-ink); }
.woocommerce-order-overview { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0 0 32px; }
.woocommerce-order-overview li {
  padding: 16px; margin: 0;
  border: 1px solid var(--scf-line); border-radius: var(--scf-radius);
  background: var(--scf-surface-2);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--scf-muted);
}
.woocommerce-order-overview li strong { display: block; margin-top: 6px; font-size: 1.02rem; text-transform: none; letter-spacing: 0; color: var(--scf-ink); }

/* 19. WooCommerce: my account ============================================ */
.scf-account-wrap { padding-block: clamp(34px, 4vw, 64px); }
/* The My Account layout lives in section 22 (.scf-account): a sidebar with the
   account card + navigation, and the endpoint content beside it. The older
   two-column rules that used to sit here fought that grid (they created a
   second nested grid and pushed the nav labels to the right). */

/* login / register split layout */
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.scf-auth-wrap { max-width: 980px; margin-inline: auto; }
.scf-auth-head { text-align: center; margin-bottom: 34px; }
.scf-auth-head h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
.scf-auth-head p { color: var(--scf-ink-2); }
.scf-auth-grid { display: grid; gap: clamp(20px, 3vw, 34px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.scf-auth-card {
  padding: clamp(24px, 3vw, 38px);
  background: var(--scf-surface); border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg); box-shadow: var(--scf-shadow-sm);
}
.scf-auth-card--accent {
  background: linear-gradient(160deg, #f4fbfa 0%, #eaf6f7 100%);
  border-color: var(--scf-brand-100);
}
.scf-auth-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.scf-auth-card .woocommerce-form { margin: 0; }
.woocommerce form.login, .woocommerce form.register {
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important;
}
.woocommerce form.login .form-row, .woocommerce form.register .form-row { margin-bottom: 16px !important; }
.woocommerce form .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.woocommerce-Button, .woocommerce-form-login__submit, .woocommerce-form-register__submit {
  width: auto; min-width: 132px; padding: 13px 30px !important; font-size: .97rem !important;
  border-radius: var(--scf-radius-pill) !important;
  background: linear-gradient(135deg, var(--scf-brand), var(--scf-brand-600)) !important;
  box-shadow: var(--scf-shadow-brand);
}
/* 按钮跟着文字走，不要横跨整张卡片；只有手机上才铺满（手指好点） */
@media (max-width: 600px) {
  .woocommerce-Button, .woocommerce-form-login__submit, .woocommerce-form-register__submit { width: 100%; }
}
/* WooCommerce 的「显示密码」小图标按钮：主题没引它的图标字体，会显示成一根小横线，藏掉 */
button.show-password-input { display: none !important; }
.woocommerce-LostPassword { text-align: right; font-size: .87rem; margin-top: 4px; }
.scf-auth-benefits { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.scf-auth-benefits li { display: flex; align-items: flex-start; gap: 10px; font-size: .91rem; color: var(--scf-ink-2); }
.scf-auth-benefits svg { width: 17px; height: 17px; color: var(--scf-brand); flex-shrink: 0; margin-top: 3px; }

/* order tracking block (custom) */
.scf-tracking { margin-top: 24px; padding: 22px; border: 1px solid var(--scf-line); border-radius: var(--scf-radius); background: var(--scf-surface-2); }
.scf-tracking h3 { font-size: 1rem; margin-bottom: 14px; }
.scf-tracking__row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .91rem; margin-bottom: 18px; }
.scf-track-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 8px; }
.scf-track-step { position: relative; text-align: center; font-size: .78rem; color: var(--scf-muted); padding-top: 30px; }
.scf-track-step::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--scf-surface); border: 2px solid var(--scf-line-strong); z-index: 2;
}
.scf-track-step::after {
  content: ""; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px;
  background: var(--scf-line-strong);
}
.scf-track-step:last-child::after { display: none; }
.scf-track-step.is-done::before { background: var(--scf-brand); border-color: var(--scf-brand); }
.scf-track-step.is-done::after { background: var(--scf-brand); }
.scf-track-step.is-done { color: var(--scf-brand-700); font-weight: 650; }
.scf-track-step.is-current::before { box-shadow: 0 0 0 5px var(--scf-brand-050); }

/* 20. Live chat widget ================================================== */
.scf-chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 15px;
  background: linear-gradient(135deg, var(--scf-brand), var(--scf-brand-700));
  color: #fff; border: 0; cursor: pointer;
  border-radius: var(--scf-radius-pill);
  font-family: inherit; font-size: .93rem; font-weight: 650;
  box-shadow: 0 18px 36px -16px rgba(10, 114, 104, .7);
  transition: transform var(--scf-transition), box-shadow var(--scf-transition);
}
.scf-chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 22px 42px -16px rgba(10, 114, 104, .8); }
.scf-chat-launcher svg { width: 22px; height: 22px; }
.scf-chat-launcher__dot {
  width: 9px; height: 9px; border-radius: 50%; background: #6ef0c9;
  box-shadow: 0 0 0 3px rgba(110, 240, 201, .3);
}
@media (max-width: 640px) { .scf-chat-launcher span.scf-chat-launcher__label { display: none; } .scf-chat-launcher { padding: 15px; } }

.scf-chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 99;
  width: min(384px, calc(100vw - 32px));
  height: min(586px, calc(100vh - 44px));
  display: none; flex-direction: column;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  box-shadow: var(--scf-shadow-lg);
  overflow: hidden;
}
.scf-chat-panel.is-open { display: flex; animation: scf-chat-in .26s ease-out; }
@keyframes scf-chat-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.scf-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 17px;
  background: linear-gradient(135deg, var(--scf-navy), #14506b);
  color: #fff;
}
.scf-chat-head__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14);
  font-weight: 700; font-size: .95rem; flex-shrink: 0;
}
.scf-chat-head__meta { flex: 1; min-width: 0; }
.scf-chat-head__meta strong { display: block; font-size: .96rem; }
.scf-chat-head__meta span { font-size: .78rem; color: #9fd6cf; display: inline-flex; align-items: center; gap: 6px; }
.scf-chat-head__meta i { width: 7px; height: 7px; border-radius: 50%; background: #6ef0c9; display: inline-block; }
.scf-chat-close {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.scf-chat-close:hover { background: rgba(255, 255, 255, .24); }
.scf-chat-close svg { width: 17px; height: 17px; }

.scf-chat-context {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 17px;
  background: var(--scf-brand-050);
  border-bottom: 1px solid var(--scf-brand-100);
  font-size: .8rem; color: var(--scf-brand-700);
}
.scf-chat-context svg { width: 15px; height: 15px; flex-shrink: 0; }
.scf-chat-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.scf-chat-log { flex: 1; overflow-y: auto; padding: 17px; display: flex; flex-direction: column; gap: 12px; background: var(--scf-surface-2); }
.scf-chat-log::-webkit-scrollbar { width: 6px; }
.scf-chat-log::-webkit-scrollbar-thumb { background: var(--scf-line-strong); border-radius: 3px; }

.scf-msg { max-width: 84%; display: flex; flex-direction: column; gap: 4px; }
.scf-msg__bubble {
  padding: 11px 15px; border-radius: 16px;
  font-size: .9rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.scf-msg__time { font-size: .68rem; color: var(--scf-muted); }
.scf-msg--agent { align-self: flex-start; }
.scf-msg--agent .scf-msg__bubble { background: var(--scf-surface); border: 1px solid var(--scf-line); border-bottom-left-radius: 5px; color: var(--scf-ink); }
.scf-msg--user { align-self: flex-end; align-items: flex-end; }
.scf-msg--user .scf-msg__bubble {
  background: linear-gradient(135deg, var(--scf-brand), var(--scf-brand-600));
  color: #fff; border-bottom-right-radius: 5px;
}
.scf-msg--sys { align-self: center; max-width: 100%; }
.scf-msg--sys .scf-msg__bubble { background: var(--scf-bg-alt); color: var(--scf-muted); font-size: .8rem; border-radius: var(--scf-radius-pill); }

.scf-chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 17px 10px; }
.scf-chat-quick button {
  padding: 7px 13px; border: 1px solid var(--scf-line-strong); border-radius: var(--scf-radius-pill);
  background: var(--scf-surface); color: var(--scf-ink-2); cursor: pointer;
  font-family: inherit; font-size: .8rem; font-weight: 600;
  transition: border-color var(--scf-transition), color var(--scf-transition), background-color var(--scf-transition);
}
.scf-chat-quick button:hover { border-color: var(--scf-brand); color: var(--scf-brand-700); background: var(--scf-brand-050); }

.scf-chat-form { display: flex; align-items: flex-end; gap: 9px; padding: 13px 15px; border-top: 1px solid var(--scf-line); background: var(--scf-surface); }
.scf-chat-form textarea {
  flex: 1; min-height: 44px; max-height: 110px; padding: 11px 14px;
  border-radius: var(--scf-radius-sm); font-size: .9rem; resize: none;
}
.scf-chat-send {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--scf-brand), var(--scf-brand-600));
  color: #fff; box-shadow: var(--scf-shadow-brand);
  transition: transform var(--scf-transition), opacity var(--scf-transition);
}
.scf-chat-send:hover { transform: scale(1.05); }
.scf-chat-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.scf-chat-send svg { width: 19px; height: 19px; }

.scf-typing { display: inline-flex; gap: 4px; align-items: center; }
.scf-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--scf-muted); animation: scf-blink 1.2s infinite; }
.scf-typing i:nth-child(2) { animation-delay: .2s; }
.scf-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes scf-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* 21. Motion & responsive =============================================== */
.scf-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
.scf-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .scf-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scf-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scf-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .scf-hero__grid { grid-template-columns: 1fr; }
  .scf-hero__visual { order: -1; min-height: 0; }
  .scf-float-card--tl { top: -12px; left: 4px; }
  .scf-float-card--br { bottom: -14px; right: 4px; }
  .scf-single__grid { grid-template-columns: 1fr; }
  .scf-single__summary { position: static; }
  .scf-shop-layout { grid-template-columns: 1fr; }
  .scf-filter-panel { position: static; max-height: none; display: none; }
  .scf-filter-panel.is-open { display: grid; }
  .scf-filter-toggle { display: inline-flex; }
  .woocommerce form.checkout { grid-template-columns: 1fr; }
  .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; }
  .woocommerce-checkout #order_review { position: static; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .scf-account-nav ul { position: static; }
  .scf-promo { grid-template-columns: 1fr; }
  .scf-newsletter { grid-template-columns: 1fr; }
  .scf-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce .cart-collaterals { grid-template-columns: 1fr; }
  .woocommerce-order-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scf-auth-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .scf-nav { display: none; }
  .scf-burger { display: grid; }
  .scf-mobile-nav {
    position: fixed; inset: 0; z-index: 120;
    background: var(--scf-surface);
    padding: 22px var(--scf-gutter);
    overflow-y: auto;
    display: none;
  }
  .scf-mobile-nav.is-open { display: block; }
  .scf-mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
  .scf-mobile-nav ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 2px; }
  .scf-mobile-nav a, .scf-mobile-nav summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 12px; border-radius: var(--scf-radius-sm);
    font-size: 1.02rem; font-weight: 650; color: var(--scf-ink);
    cursor: pointer;
  }
  .scf-mobile-nav a:hover, .scf-mobile-nav summary:hover { background: var(--scf-bg-alt); }
  .scf-mobile-nav summary { list-style: none; }
  .scf-mobile-nav summary::-webkit-details-marker { display: none; }
  .scf-mobile-nav details[open] summary { color: var(--scf-brand-700); background: var(--scf-brand-050); }
  .scf-mobile-nav .sub-menu { border-left: 2px solid var(--scf-line); margin: 4px 0 8px 16px; padding-left: 10px; }
  .scf-mobile-nav .sub-menu a { padding: 10px 12px; font-size: .93rem; font-weight: 500; color: var(--scf-ink-2); }
  .scf-quotes { grid-template-columns: 1fr; }
  .scf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scf-type-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
  .scf-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scf-cat-grid, .scf-cat-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scf-cat-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scf-hero__cta .scf-btn { flex: 1 1 100%; }
  .woocommerce-order-overview { grid-template-columns: 1fr; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100% !important; margin-right: 0 !important; }
  .scf-track-steps { grid-template-columns: 1fr; gap: 8px; }
  .scf-track-step { text-align: left; padding: 4px 0 4px 26px; }
  .scf-track-step::before { left: 0; top: 8px; transform: none; }
  .scf-track-step::after { display: none; }
  .scf-sticky-buy.is-visible { display: flex; }
  body.scf-has-sticky-buy { padding-bottom: 78px; }
}

@media (max-width: 520px) {
  .scf-products { grid-template-columns: 1fr; }
  .scf-cat-grid, .scf-cat-grid--3, .scf-cat-grid--6 { grid-template-columns: 1fr; }
  .scf-trust { grid-template-columns: 1fr; }
  .scf-stats { grid-template-columns: 1fr 1fr; }
  .scf-footer__top { grid-template-columns: 1fr; }
  .scf-chat-panel { right: 10px; left: 10px; width: auto; bottom: 10px; height: calc(100vh - 20px); }
  .scf-announce__item:nth-child(n+2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .scf-reveal { opacity: 1; transform: none; }
}

/* print */
@media print {
  .scf-header, .scf-footer, .scf-chat-launcher, .scf-chat-panel, .scf-sticky-buy { display: none !important; }
}

/* Small phones: the header cannot fit brand + language switch + search +
   account + cart + burger. Keep brand, cart and burger; the mobile drawer
   already carries search, the language switch and the account links. */
@media (max-width: 700px) {
  .scf-header__actions { gap: 10px; }
  .scf-lang,
  .scf-search-toggle,
  .scf-account-link { display: none; }
  /* Payment badges are a single 450px row — let them wrap so they cannot
     push the whole document wider than a phone viewport. */
  .scf-footer__pay { flex-wrap: wrap; gap: 8px; }
}

/* The inline nav needs ~565px; below 1024px it no longer fits next to the
   brand and the action icons, so collapse it into the drawer earlier. */
@media (max-width: 1024px) {
  .scf-nav { display: none; }
  .scf-burger { display: grid; }
  .scf-mobile-nav {
    position: fixed; inset: 0; z-index: 120;
    background: var(--scf-surface);
    padding: 22px var(--scf-gutter);
    overflow-y: auto;
  }
  .scf-mobile-nav.is-open { display: block; }
  .scf-mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
}

/* 16. Hero slider (photo-led) ==========================================
   Compact carousel: text left, photo right with an overlay card. Sized so the
   slide + its controls fit inside a ~600px-tall browser window.
   ==================================================================== */
.scf-slider {
  padding-top: calc(var(--scf-section-y) * .44);
  padding-bottom: calc(var(--scf-section-y) * .5);
}
.scf-slider__viewport { overflow: hidden; }
.scf-slider__track {
  display: flex;
  transition: transform .78s cubic-bezier(.45, .05, .2, 1);
  will-change: transform;
}
.scf-slider__track.is-instant { transition: none; }
.scf-slide { flex: 0 0 100%; min-width: 100%; }

.scf-slide__title {
  margin-bottom: .38em;
  font-size: clamp(1.7rem, 1.02rem + 1.9vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.scf-slide__title em { font-style: normal; color: var(--scf-brand-700); }
.scf-slide .scf-hero__sub { font-size: clamp(.98rem, .94rem + .25vw, 1.1rem); max-width: 520px; }
.scf-slide .scf-hero__cta { margin-top: 24px; }

/* staged entrance for the active slide */
.scf-slide__title,
.scf-slide .scf-hero__sub,
.scf-slide .scf-hero__cta,
.scf-slide .scf-hero__visual { opacity: 0; transform: translateY(14px); }

.scf-slide.is-active .scf-slide__title,
.scf-slide.is-active .scf-hero__sub,
.scf-slide.is-active .scf-hero__cta,
.scf-slide.is-active .scf-hero__visual {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .65s cubic-bezier(.3, .7, .3, 1);
}
.scf-slide.is-active .scf-hero__sub  { transition-delay: .05s; }
.scf-slide.is-active .scf-hero__cta  { transition-delay: .1s; }
.scf-slide.is-active .scf-hero__visual { transition-delay: .08s; }

/* --- photo --- */
.scf-hero__visual--photo { position: relative; }
.scf-photo {
  position: relative;
  margin: 0;
  border-radius: var(--scf-radius-xl);
  overflow: hidden;
  border: 1px solid var(--scf-line);
  box-shadow: var(--scf-shadow-lg);
  background: var(--scf-brand-050);
  aspect-ratio: 16 / 10;
  max-height: 368px;
}
.scf-photo::after {
  /* a whisper of teal so photos sit inside the palette */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(15, 163, 148, .16), rgba(11, 34, 57, .12) 70%);
  pointer-events: none;
}
.scf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- overlay cards on the photo --- */
.scf-float-card--bl { bottom: 14px; left: 14px; }
.scf-float-card--tl { top: 14px; left: 14px; }
.scf-float-card--br { display: none; }

.scf-overlay-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: min(84%, 380px);
  padding: 14px 16px;
  background: rgba(255, 255, 255, .96);
  border-radius: var(--scf-radius-lg);
  text-decoration: none;
  color: inherit;
}
.scf-overlay-card__label {
  font-size: .68rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--scf-brand-700);
}
.scf-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.scf-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px;
  background: var(--scf-brand-050); color: var(--scf-ink);
  font-size: .8rem; font-weight: 600; text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.scf-chip svg { color: var(--scf-brand-700); }
.scf-chip:hover { background: var(--scf-brand); color: #fff; }
.scf-chip:hover svg { color: #fff; }

.scf-overlay-card--product { flex-direction: row; align-items: center; gap: 13px; }
.scf-overlay-card__thumb {
  width: 62px; height: 62px; flex-shrink: 0; border-radius: var(--scf-radius-sm);
  overflow: hidden; background: var(--scf-brand-050);
}
.scf-overlay-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.scf-overlay-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.scf-overlay-card__title {
  font-size: .95rem; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.scf-overlay-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scf-overlay-card__meta .price { font-size: 1.02rem; font-weight: 800; color: var(--scf-ink); }
.scf-overlay-card__meta del { color: var(--scf-muted); font-weight: 500; font-size: .84em; margin-right: 5px; }
.scf-overlay-card__meta ins { text-decoration: none; color: var(--scf-danger); }
.scf-overlay-card__stock {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 600; color: var(--scf-brand-700);
}

.scf-overlay-card--benefits { gap: 9px; }
.scf-benefit-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.scf-benefit { display: flex; align-items: center; gap: 9px; }
.scf-benefit__ico {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--scf-brand-050); color: var(--scf-brand-700);
}
.scf-benefit__text { font-size: .84rem; font-weight: 600; color: var(--scf-ink); }

/* --- navigation --- */
.scf-slider__navwrap { position: absolute; left: 0; right: 0; bottom: 14px; }
.scf-slider__nav {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 22px;
  /* keep clear of the bottom-right live-support launcher */
  padding-right: 200px;
}

.scf-slider__dots { display: flex; align-items: center; gap: 8px; }
.scf-slider__dot { border: 0; background: none; padding: 6px 0; cursor: pointer; line-height: 0; }
.scf-slider__dot-bar {
  display: block; width: 34px; height: 4px; border-radius: 999px;
  background: var(--scf-line-strong); transition: width .3s ease, background .3s ease;
}
.scf-slider__dot:hover .scf-slider__dot-bar { background: var(--scf-brand-100); }
.scf-slider__dot.is-active .scf-slider__dot-bar { width: 54px; background: var(--scf-brand); }
.scf-slider__dot:focus-visible { outline: 2px solid var(--scf-brand); outline-offset: 4px; border-radius: 6px; }

.scf-slider__arrows { display: flex; align-items: center; gap: 8px; }
.scf-slider__arrow {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--scf-line); background: var(--scf-surface); color: var(--scf-ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--scf-shadow-xs);
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.scf-slider__arrow:hover { border-color: var(--scf-brand); color: var(--scf-brand-700); transform: translateY(-1px); }
.scf-slider__arrow:focus-visible { outline: 2px solid var(--scf-brand); outline-offset: 3px; }
.scf-slider__toggle { width: 34px; height: 34px; }

.scf-slider__counter { font-size: .82rem; font-weight: 600; color: var(--scf-muted); }
.scf-slider__counter strong { color: var(--scf-ink); font-size: 1rem; }

/* --- breakpoints --- */
@media (max-width: 1024px) {
  .scf-slide .scf-hero__text { order: 1; }
  .scf-slide .scf-hero__visual { order: 2; }
  .scf-slider__nav { justify-content: center; padding-right: 0; }
  .scf-photo { max-height: 320px; }
}
@media (max-width: 860px) {
  .scf-slider { padding-top: 26px; padding-bottom: 18px; }
  .scf-slider__navwrap { position: static; margin-top: 20px; }
  .scf-slider__toggle { display: none; }
  .scf-slide__title { font-size: clamp(1.6rem, 1rem + 4.4vw, 2.2rem); }
  .scf-photo { aspect-ratio: 4 / 3; max-height: 260px; }
  .scf-float-card--tl { top: 10px; left: 10px; }
  .scf-float-card--bl { bottom: 10px; left: 10px; }
  .scf-overlay-card { max-width: calc(100% - 20px); padding: 12px 14px; }
  .scf-overlay-card__thumb { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .scf-slider__track { transition: none; }
  .scf-slide__title,
  .scf-slide .scf-hero__sub,
  .scf-slide .scf-hero__cta,
  .scf-slide .scf-hero__visual { opacity: 1; transform: none; transition: none; }
}
/* the confirm field turns red until it matches */
.scf-pass-hint { display: block; margin: 6px 0 0; font-size: .82rem; line-height: 1.5; color: var(--scf-muted); }
.scf-pass-hint--bad { color: #c62828; }
.scf-input--error {
  border-color: #e05d5d !important;
  box-shadow: 0 0 0 3px rgba(224, 93, 93, .14) !important;
}

/* WooCommerce's built-in meter wording is unhelpful; assets/js/password.js
   also removes it at runtime. */
.woocommerce-password-strength,
.woocommerce-password-hint {
  display: none !important;
}

/* 18. Product grid fixes ================================================
   The loop uses CSS grid. WooCommerce's clearfix pseudo-elements
   (ul.products::before / ::after { content: " "; display: table }) become grid
   items inside a grid container and steal the first cell, so the whole grid is
   offset by one slot. Remove them.
   ====================================================================== */
.scf-products::before,
.scf-products::after {
  content: none !important;
  display: none !important;
}

/* WooCommerce classes the same element "first"/"last" for its float layout;
   they can add stray margins inside a grid. */
.scf-products > li.product.first,
.scf-products > li.product.last {
  margin-right: 0 !important;
  clear: none !important;
}

/* 19. Shop toolbar heading ==============================================
   Category / tag archives show their name as a small heading on the left of
   the toolbar; the controls stay pinned to the right. The toolbar therefore
   uses flex-start + margin-left:auto (not space-between, which would push a
   lone control to the left on the shop page where there is no heading).
   ====================================================================== */
.scf-toolbar {
  justify-content: flex-start;
}
.scf-toolbar__right {
  margin-left: auto;
}
.scf-shop-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--scf-ink);
  line-height: 1.3;
}
@media (max-width: 560px) {
  .scf-shop-title { font-size: 1rem; }
}

/* 20. Cart page =========================================================
   Two columns: the item list on the left, a sticky summary on the right.
   WooCommerce's default cart markup (a table inside a narrow column) is
   replaced by woocommerce/cart/cart.php in this theme.
   ==================================================================== */
.scf-cart {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(310px, .85fr);
  gap: clamp(20px, 2.4vw, 34px);
  align-items: start;
}
.scf-cart__main { min-width: 0; }
.scf-cart__side { position: sticky; top: 22px; }

/* ---- items ---- */
.scf-cart-items {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; gap: 14px;
}
.scf-cart-item {
  position: relative;
  display: flex; align-items: flex-start; gap: 18px;
  padding: 18px; padding-right: 54px;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  box-shadow: var(--scf-shadow-xs);
  transition: box-shadow var(--scf-transition), border-color var(--scf-transition);
}
.scf-cart-item:hover { box-shadow: var(--scf-shadow-sm); border-color: var(--scf-brand-100); }

.scf-cart-item__media { flex: 0 0 96px; }
.scf-cart-item__media img {
  width: 96px; height: 96px; object-fit: cover;
  border-radius: 14px; background: var(--scf-brand-050);
  border: 1px solid var(--scf-line);
}

.scf-cart-item__body {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.scf-cart-item__name { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.scf-cart-item__name a { color: var(--scf-ink); text-decoration: none; }
.scf-cart-item__name a:hover { color: var(--scf-brand-700); }
.scf-cart-item__meta,
.scf-cart-item__sku { font-size: .78rem; color: var(--scf-muted); }
.scf-cart-item__note { font-size: .78rem; color: #b26a00; font-weight: 600; }
.scf-cart-item__unit { margin-top: 4px; font-size: .86rem; color: var(--scf-ink-2); }

.scf-cart-item__qty { flex: 0 0 auto; }
.scf-cart-item__total {
  flex: 0 0 auto; min-width: 104px; text-align: right;
  font-size: 1.05rem; font-weight: 700; color: var(--scf-ink);
}
.scf-cart-item__remove { position: absolute; top: 14px; right: 14px; }
.scf-cart-item__remove .remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--scf-muted); background: var(--scf-bg, #f4f8fa);
  text-decoration: none; transition: all .16s ease;
}
.scf-cart-item__remove .remove span { display: none; }
.scf-cart-item__remove .remove:hover { background: #fdeaea; color: #d64545; }

/* ---- quantity stepper (shared with the product page) ---- */
.woocommerce .quantity,
.woocommerce div.product form.cart .quantity {
  display: inline-flex; align-items: stretch;
  height: 44px; overflow: hidden;
  border: 1px solid var(--scf-line);
  border-radius: 999px; background: #fff;
}
.woocommerce .quantity input.qty,
.woocommerce div.product form.cart .quantity input {
  width: 54px !important; min-width: 54px; height: 100% !important;
  padding: 0 !important; margin: 0 !important;
  border: 0 !important; background: transparent !important;
  text-align: center; font-weight: 700; font-size: .98rem; color: var(--scf-ink);
  box-shadow: none !important; outline: none;
  -moz-appearance: textfield;
}
.woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.scf-qty-btn {
  flex: 0 0 38px; width: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer;
  color: var(--scf-ink-2); font-size: 16px; line-height: 1;
  transition: background .16s ease, color .16s ease;
}
.scf-qty-btn:hover { background: var(--scf-brand-050); color: var(--scf-brand-700); }

/* ---- actions row ---- */
.scf-cart-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-top: 4px;
}
.scf-cart-coupon { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.scf-cart-coupon input[type="text"] {
  height: 40px; min-width: 172px;
  padding: 0 14px; border: 1px solid var(--scf-line); border-radius: 999px;
  font-size: .88rem; background: #fff;
}
.scf-cart-coupon input[type="text"]:focus {
  border-color: var(--scf-brand); box-shadow: 0 0 0 3px rgba(15, 163, 148, .14); outline: none;
}
.scf-cart-update { order: 99; }

/* ---- summary ---- */
.cart_totals {
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  padding: clamp(20px, 2vw, 26px);
  box-shadow: var(--scf-shadow-sm);
}
.cart_totals h2.scf-cart-summary__title {
  margin: 0 0 16px; font-size: 1.06rem; font-weight: 700;
  padding: 0; background: none; border: 0;
}
.scf-cart-summary { display: grid; gap: 11px; }
.scf-cart-summary__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  font-size: .94rem; color: var(--scf-ink-2);
}
.scf-cart-summary__row > span:last-child { color: var(--scf-ink); font-weight: 600; }
.scf-cart-summary__row--coupon > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--scf-brand-700); font-weight: 600; }
.scf-cart-summary__coupon-remove { color: var(--scf-muted); display: inline-flex; }
.scf-cart-summary__coupon-remove:hover { color: #d64545; }
.scf-cart-summary__block {
  border-top: 1px dashed var(--scf-line);
  margin-top: 4px; padding-top: 13px;
}
.scf-cart-summary__row--total {
  border-top: 1px solid var(--scf-line);
  margin-top: 8px; padding-top: 15px;
  font-size: 1.16rem; font-weight: 700; color: var(--scf-ink);
}
.scf-cart-summary__row--total > span:last-child { font-size: inherit; }

/* shipping options rendered by WooCommerce */
.woocommerce-shipping-totals { font-size: .88rem; }
.woocommerce-shipping-totals h3 { font-size: .86rem; margin: 0 0 8px; color: var(--scf-ink); }
.woocommerce-shipping-totals ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.woocommerce-shipping-totals li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.woocommerce-shipping-totals input[type="radio"] { margin-top: 3px; accent-color: var(--scf-brand); }
.woocommerce-shipping-totals .woocommerce-Price-amount { white-space: nowrap; font-weight: 600; }
.woocommerce-shipping-destination { color: var(--scf-muted); font-size: .84rem; margin: 8px 0 0; }
.woocommerce-shipping-calculator button { margin-top: 6px; }

.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout .checkout-button,
.wc-proceed-to-checkout a.checkout-button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px;
  background: var(--scf-brand); color: #fff;
  border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; box-shadow: 0 10px 24px rgba(15, 163, 148, .22);
  transition: background .16s ease, transform .16s ease;
}
.wc-proceed-to-checkout .checkout-button:hover { background: var(--scf-brand-700); transform: translateY(-1px); }

.scf-cart .cross-sells { margin-top: 26px; }
.scf-cart .cross-sells h2 { font-size: 1.02rem; }

@media (max-width: 1000px) {
  .scf-cart { grid-template-columns: 1fr; }
  .scf-cart__side { position: static; }
}
@media (max-width: 620px) {
  .scf-cart-item { flex-wrap: wrap; padding-right: 48px; }
  .scf-cart-item__media { flex: 0 0 74px; }
  .scf-cart-item__media img { width: 74px; height: 74px; }
  .scf-cart-item__total { min-width: 0; margin-left: auto; }
  .scf-cart-coupon { margin-left: 0; width: 100%; }
  .scf-cart-coupon input[type="text"] { flex: 1 1 auto; min-width: 0; }
}

/* 21. Empty cart ======================================================== */
.scf-empty {
  max-width: 640px; margin: 26px auto 0; text-align: center;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-xl);
  padding: clamp(30px, 4vw, 52px) clamp(22px, 3vw, 40px);
  box-shadow: var(--scf-shadow-sm);
}
.scf-empty__icon {
  width: 78px; height: 78px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--scf-brand-050); color: var(--scf-brand-700);
}
.scf-empty__title { margin: 0 0 8px; font-size: 1.4rem; }
.scf-empty__text { margin: 0 auto 22px; max-width: 42ch; color: var(--scf-ink-2); font-size: .96rem; }
.scf-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.scf-empty__tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--scf-line); text-align: left;
}
.scf-empty__tiles a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--scf-brand-050); color: var(--scf-ink);
  text-decoration: none; font-size: .88rem; font-weight: 600;
  transition: background .16s ease;
}
.scf-empty__tiles a:hover { background: var(--scf-brand-100); color: var(--scf-brand-700); }
.scf-empty__tiles svg { color: var(--scf-brand-700); flex-shrink: 0; }
@media (max-width: 560px) { .scf-empty__tiles { grid-template-columns: 1fr; } }

/* 22. My account ======================================================== */
.scf-account {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
}
.scf-account__side { position: sticky; top: 22px; }
.scf-account__main { min-width: 0; }

/* account card */
.scf-account-card {
  background: linear-gradient(160deg, var(--scf-brand-050), #fff 70%);
  border: 1px solid var(--scf-brand-100);
  border-radius: var(--scf-radius-lg);
  padding: 20px;
}
.scf-account-card__id { display: flex; align-items: center; gap: 13px; }
.scf-account-card__avatar {
  flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--scf-brand), #0b7d74);
  color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(15, 163, 148, .28);
}
.scf-account-card__who { display: flex; flex-direction: column; min-width: 0; }
.scf-account-card__who strong { font-size: 1rem; color: var(--scf-ink); }
.scf-account-card__who span {
  font-size: .8rem; color: var(--scf-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scf-account-card__since { font-size: .74rem !important; color: var(--scf-brand-700) !important; }
.scf-account-card__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.scf-account-card__stats a {
  display: block; text-align: center; padding: 12px 6px;
  background: #fff; border: 1px solid var(--scf-line); border-radius: 14px;
  text-decoration: none;
}
.scf-account-card__stats a:hover { border-color: var(--scf-brand); }
.scf-account-card__stats b { display: block; font-size: 1.32rem; color: var(--scf-brand-700); line-height: 1.2; }
.scf-account-card__stats span { font-size: .76rem; color: var(--scf-muted); }

/* navigation */
.scf-account-nav {
  margin-top: 16px;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  padding: 10px;
}
.scf-account-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.scf-account-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: 11px;
  color: var(--scf-ink); text-decoration: none;
  font-size: .92rem; font-weight: 600;
  transition: background .16s ease, color .16s ease;
}
.scf-account-nav a svg { color: var(--scf-muted); flex-shrink: 0; }
.scf-account-nav a:hover { background: var(--scf-brand-050); color: var(--scf-brand-700); }
.scf-account-nav a:hover svg { color: var(--scf-brand-700); }
.scf-account-nav .is-active > a { background: var(--scf-brand); color: #fff; }
.scf-account-nav .is-active > a svg { color: #fff; }
.scf-account-nav .woocommerce-MyAccount-navigation-link--customer-logout {
  border-top: 1px solid var(--scf-line); margin-top: 6px; padding-top: 6px;
}
.scf-account-nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--scf-ink-2); font-weight: 500; }

/* content area */
.scf-account__main .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.scf-account__main form.woocommerce-EditAccountForm,
.scf-account__main form.edit-account,
.scf-account__main form.woocommerce-address,
.scf-account__main form.woocommerce-ResetPassword {
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: var(--scf-shadow-xs);
}
.scf-account__main h2,
.scf-account__main h3 { color: var(--scf-ink); }
.scf-account__main .woocommerce-Addresses {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0;
}
.scf-account__main .woocommerce-Address {
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  padding: 20px;
}
.scf-account__main .woocommerce-Address address { font-style: normal; color: var(--scf-ink-2); line-height: 1.7; font-size: .92rem; }
.scf-account__main .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scf-account__main .woocommerce-Address-title h2,
.scf-account__main .woocommerce-Address-title h3 { font-size: 1rem; margin: 0; }

/* orders table */
.scf-account__main table.shop_table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  overflow: hidden;
  font-size: .92rem;
}
.scf-account__main table.shop_table th {
  background: var(--scf-brand-050);
  color: var(--scf-ink);
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 13px 16px; text-align: left;
  border-bottom: 1px solid var(--scf-line);
}
.scf-account__main table.shop_table td {
  padding: 15px 16px; border-top: 1px solid var(--scf-line); vertical-align: middle;
}
.scf-account__main table.shop_table tr:first-child td { border-top: 0; }
.scf-account__main table.shop_table .button {
  background: var(--scf-brand-050); color: var(--scf-brand-700);
  border: 0; border-radius: 999px; padding: 8px 16px;
  font-weight: 700; font-size: .82rem; cursor: pointer; text-decoration: none;
}
.scf-account__main table.shop_table .button:hover { background: var(--scf-brand); color: #fff; }
.scf-account__main .woocommerce-orders-table__cell-order-status,
.scf-account__main .woocommerce-orders-table__cell-order-actions { white-space: nowrap; }

/* 地址管理（表格格式对齐后台「个人资料 → 地址管理」） */
.scf-addr-intro { color: var(--scf-muted); font-size: .9rem; margin: 0 0 14px; }
.scf-addr-wrap {
  background: var(--scf-surface);
  border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg);
  overflow-x: auto;
  box-shadow: var(--scf-shadow-xs);
}
.scf-addr-table { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.scf-addr-table td { line-height: 1.6; }
.scf-addr-table td strong { font-weight: 700; color: var(--scf-ink); }
.scf-addr-tag {
  display: inline-flex; align-items: center; margin-left: 7px; padding: 2px 9px;
  border-radius: 999px; background: var(--scf-brand); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle;
}
.scf-addr-none { color: var(--scf-muted); }
.scf-addr-btn {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--scf-brand-050); color: var(--scf-brand-700) !important;
  font-weight: 700; font-size: .82rem; text-decoration: none; white-space: nowrap;
}
.scf-addr-btn:hover { background: var(--scf-brand); color: #fff !important; }

/* 「个人资料」页：顶部一行 + 两张卡片 + 底部保存 */
.scf-profile-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin: 0 0 16px;
}
.scf-profile-bar__hint { margin: 0; color: var(--scf-muted); font-size: .9rem; }
.scf-pass-open {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--scf-surface); border: 1px solid var(--scf-line);
  color: var(--scf-ink); font-weight: 700; font-size: .86rem; cursor: pointer;
  box-shadow: var(--scf-shadow-xs);
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.scf-pass-open:hover { border-color: var(--scf-brand); color: var(--scf-brand-700); background: var(--scf-brand-050); }
.scf-pass-open svg { flex-shrink: 0; }

.scf-account__main form.woocommerce-EditAccountForm.scf-profile {
  background: transparent; border: 0; box-shadow: none; padding: 0;
}
.scf-profile__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scf-pcard {
  background: var(--scf-surface); border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg); padding: 22px; box-shadow: var(--scf-shadow-xs);
}
.scf-pcard__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.scf-pcard__ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--scf-brand-050); color: var(--scf-brand-700);
}
.scf-pcard__title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--scf-ink); line-height: 1.3; }
.scf-pcard__sub { margin: 3px 0 0; font-size: .8rem; color: var(--scf-muted); }
.scf-pcard .woocommerce-form-row { margin-bottom: 14px !important; }
.scf-pcard .woocommerce-form-row label { font-size: .84rem; font-weight: 600; color: var(--scf-ink-2); }
.scf-pcard .input-text { border-radius: 11px !important; }
.scf-pcard #account_display_name_description { display: block; margin-top: 5px; font-size: .78rem; color: var(--scf-muted); }
.scf-pcard #account_display_name_description em { font-style: normal; }

.scf-profile__foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  flex-wrap: wrap; margin-top: 18px;
}

/* 地址管理：工具条 + 行内操作 */
.scf-addr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.scf-addr-toolbar .scf-addr-intro { margin: 0; max-width: 62%; }
.scf-pass-open__plus { font-weight: 700; }
.scf-addr-ops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.scf-addr-op { display: inline-flex; margin: 0; }
.scf-addr-btn {
  display: inline-block; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  background: var(--scf-brand-050); border: 1px solid transparent;
  color: var(--scf-brand-700) !important; font-weight: 700; font-size: .82rem;
  text-decoration: none; white-space: nowrap; font-family: inherit;
}
.scf-addr-btn:hover { background: var(--scf-brand); color: #fff !important; }
.scf-addr-btn--ghost { background: #fff; border-color: var(--scf-line); color: var(--scf-ink-2) !important; }
.scf-addr-btn--ghost:hover { background: var(--scf-surface-2, #f7f8f9); color: var(--scf-ink) !important; }
.scf-addr-btn--danger { background: #fff; border-color: #f3d0d0; color: #c02626 !important; }
.scf-addr-btn--danger:hover { background: #c02626; border-color: #c02626; color: #fff !important; }
.scf-addr-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.scf-addr-form__grid .form-row-wide { grid-column: 1 / -1; }
.scf-addr-form select, .scf-addr-form .input-text { width: 100%; }
@media (max-width: 700px) {
  .scf-addr-form__grid { grid-template-columns: 1fr; }
  .scf-addr-toolbar .scf-addr-intro { max-width: 100%; }
}

/* 我的工单分页 */
.scf-pager {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--scf-line);
}
.scf-pager__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: var(--scf-surface);
  border: 1px solid var(--scf-line); color: var(--scf-ink-2);
  font-size: .84rem; font-weight: 600; text-decoration: none;
}
.scf-pager__btn:hover { border-color: var(--scf-brand); color: var(--scf-brand-700); background: var(--scf-brand-050); }
.scf-pager__btn.is-disabled { opacity: .45; pointer-events: none; }
.scf-pager__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px;
  background: var(--scf-surface); border: 1px solid var(--scf-line);
  color: var(--scf-ink-2); font-size: .86rem; font-weight: 600; text-decoration: none;
}
.scf-pager__num:hover { border-color: var(--scf-brand); color: var(--scf-brand-700); }
.scf-pager__num.is-current { background: var(--scf-brand); border-color: var(--scf-brand); color: #fff; }
.scf-pager__info { margin-left: auto; color: var(--scf-muted); font-size: .82rem; }

/* 弹窗（修改密码） */
.scf-modal { display: none; position: fixed; inset: 0; z-index: 9999; }
.scf-modal.is-open { display: block; }
.scf-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.scf-modal__dialog {
  position: relative; margin: 6vh auto 0; width: min(460px, calc(100% - 28px));
  max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: var(--scf-radius-lg);
  padding: 26px; box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}
.scf-modal__close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: #f3f4f6; color: var(--scf-ink-2);
  font-size: .95rem; cursor: pointer; line-height: 1;
}
.scf-modal__close:hover { background: #e5e7eb; color: var(--scf-ink); }
.scf-modal__title { margin: 0 0 6px; font-size: 1.15rem; }
.scf-modal__sub { margin: 0 0 18px; color: var(--scf-muted); font-size: .85rem; }
.scf-modal__foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.scf-modal__foot .scf-btn-plain {
  padding: 11px 18px; border-radius: 999px; background: #fff;
  border: 1px solid var(--scf-line); color: var(--scf-ink-2);
  font-weight: 600; font-size: .9rem; cursor: pointer;
}
.scf-modal__foot .scf-btn-plain:hover { border-color: var(--scf-brand); color: var(--scf-brand-700); }
.scf-pass-form .form-row { margin-bottom: 14px !important; }
.scf-pass-form label { font-size: .84rem; font-weight: 600; color: var(--scf-ink-2); }
body.scf-modal-open { overflow: hidden; }

/* 「个人资料」表单里的分区标题 */
.scf-account__main .scf-form-head {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--scf-brand-700); margin: 26px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--scf-line);
}
.scf-account__main .scf-form-head:first-of-type { margin-top: 0; }
.scf-account__main form.woocommerce-EditAccountForm fieldset { border: 0; padding: 0; margin: 0; }
.scf-account__main form.woocommerce-EditAccountForm fieldset legend {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--scf-brand-700); margin: 26px 0 12px; padding: 0 0 8px; width: 100%;
  border-bottom: 1px solid var(--scf-line);
}

/* buttons inside the account area */
.scf-account__main .button,
.scf-account__main button.button,
.scf-account__main input.button {
  background: var(--scf-brand); color: #fff; border: 0;
  border-radius: 999px; padding: 11px 22px;
  font-weight: 700; font-size: .92rem; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.scf-account__main .button:hover { background: var(--scf-brand-700); color: #fff; }

/* dashboard */
.scf-dash { display: grid; gap: 20px; }
.scf-dash__hello {
  background: linear-gradient(150deg, var(--scf-brand-050), #fff 75%);
  border: 1px solid var(--scf-brand-100);
  border-radius: var(--scf-radius-lg);
  padding: clamp(20px, 2.2vw, 28px);
}
.scf-dash__hello h2 { margin: 0 0 6px; font-size: 1.35rem; }
.scf-dash__hello p { margin: 0; color: var(--scf-ink-2); font-size: .95rem; }

.scf-dash__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scf-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 18px; border-radius: var(--scf-radius-lg);
  background: var(--scf-surface); border: 1px solid var(--scf-line);
  text-decoration: none; box-shadow: var(--scf-shadow-xs);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.scf-tile:hover { transform: translateY(-2px); box-shadow: var(--scf-shadow-sm); border-color: var(--scf-brand-100); }
.scf-tile__ico {
  width: 38px; height: 38px; border-radius: 11px; margin-bottom: 8px;
  display: grid; place-items: center;
  background: var(--scf-brand-050); color: var(--scf-brand-700);
}
.scf-tile__num { font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--scf-ink); }
.scf-tile__label { font-size: .82rem; color: var(--scf-muted); }

.scf-dash__block {
  background: var(--scf-surface); border: 1px solid var(--scf-line);
  border-radius: var(--scf-radius-lg); padding: clamp(18px, 2vw, 24px);
  box-shadow: var(--scf-shadow-xs);
}
.scf-dash__blockhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.scf-dash__blockhead h3 { margin: 0; font-size: 1.02rem; }
.scf-dash__blockhead a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .84rem; font-weight: 700; color: var(--scf-brand-700); text-decoration: none;
}
.scf-dash__empty { margin: 0; color: var(--scf-muted); font-size: .93rem; }

.scf-orderlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scf-orderlist > li > a {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center; gap: 14px;
  padding: 13px 15px; border-radius: 14px;
  background: var(--scf-bg, #f7fafb);
  text-decoration: none; color: var(--scf-ink);
  transition: background .16s ease;
}
.scf-orderlist > li > a:hover { background: var(--scf-brand-050); }
.scf-orderlist__no { font-weight: 700; font-size: .94rem; }
.scf-orderlist__date { font-size: .82rem; color: var(--scf-muted); }
.scf-orderlist__total { font-weight: 700; font-size: .94rem; }
.scf-orderlist__go { color: var(--scf-brand-700); display: inline-flex; }

.scf-pill {
  justify-self: start;
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .01em;
  background: var(--scf-brand-050); color: var(--scf-brand-700);
}
.scf-pill--pending,
.scf-pill--on-hold { background: #fdf3e3; color: #a86a12; }
.scf-pill--processing { background: #e7f0fd; color: #2b66bf; }
.scf-pill--completed { background: #e8f6ec; color: #20794a; }
.scf-pill--cancelled,
.scf-pill--failed,
.scf-pill--refunded { background: #fdeaea; color: #b23b3b; }

.scf-dash__help {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border-radius: var(--scf-radius-lg);
  background: linear-gradient(140deg, #0b2239, #12364f);
  color: #fff;
}
.scf-dash__help strong { display: block; font-size: 1rem; }
.scf-dash__help span { font-size: .87rem; opacity: .82; }

@media (max-width: 1000px) {
  .scf-account { grid-template-columns: 1fr; }
  .scf-account__side { position: static; }
  .scf-account__main .woocommerce-Addresses { grid-template-columns: 1fr; }
  .scf-profile__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* 地址管理：手机上只留「地址类型 / 地址 / 操作」三列，不横向滚动 */
  .scf-addr-table { min-width: 0; }
  .scf-addr-table .scf-addr-col-name, .scf-addr-table .scf-addr-col-phone { display: none; }
  .scf-addr-table th, .scf-addr-table td { padding: 12px 12px !important; }
}
@media (max-width: 700px) {
  .scf-dash__tiles { grid-template-columns: 1fr 1fr; }
  .scf-orderlist > li > a { grid-template-columns: 1fr auto; row-gap: 6px; }
  .scf-orderlist__date { grid-column: 1 / -1; }
}

/* 23. App pages (cart / checkout / my account) =========================
   page.php renders these full width instead of inside the 820px prose
   measure, and gives them a compact title instead of the tall page hero.
   ==================================================================== */
.scf-app { padding-top: clamp(22px, 2.4vw, 38px); }
.scf-app-title {
  margin: 0 0 clamp(16px, 1.8vw, 26px);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--scf-ink);
}
.scf-app__body { min-width: 0; }

/* WooCommerce notices inside app pages sit above the layout */
.scf-app .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 18px; }
.scf-app .woocommerce-message,
.scf-app .woocommerce-info,
.scf-app .woocommerce-error {
  border-radius: var(--scf-radius);
  border-top: 0;
  padding: 15px 20px;
  font-size: .92rem;
}
.scf-app .woocommerce-message { background: var(--scf-brand-050); color: var(--scf-brand-700); border-left: 3px solid var(--scf-brand); }
.scf-app .woocommerce-info { background: #eef4fb; color: #2b66bf; border-left: 3px solid #2b66bf; }
.scf-app .woocommerce-error { background: #fdeaea; color: #b23b3b; border-left: 3px solid #d64545; }
.scf-app .woocommerce-message .button,
.scf-app .woocommerce-info .button,
.scf-app .woocommerce-error .button {
  background: var(--scf-brand); color: #fff; border-radius: 999px;
  padding: 8px 18px; font-size: .82rem; font-weight: 700; text-decoration: none;
}

/* ==========================================================================
 * 会员中心 · 我的工单 / Tickets（前台）
 * ========================================================================== */
.kr-ticket-thread { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 20px; }
.kr-ticket-msg { border: 1px solid #e8e8ea; border-radius: 10px; padding: 12px 14px; max-width: 88%; background: #fff; }
.kr-ticket-msg--me { align-self: flex-start; }
.kr-ticket-msg--staff { align-self: flex-end; background: #f6f7f8; }
.kr-ticket-msg__meta { margin: 0 0 6px; font-size: 12px; color: #8a8f98; }
.kr-ticket-msg__body { font-size: 14px; line-height: 1.65; }
.kr-ticket-msg__body p { margin: 0 0 8px; }
.kr-ticket-msg__body p:last-child { margin-bottom: 0; }
.woocommerce-account .kr-ticket-thread + form textarea { min-height: 120px; }
