/* ============================================================
   KAKOBUY LIFESTYLE THEME — 暗场潮牌皮肤 v2.0.21
   原型视觉（深炭 #0D0D12 + 信号橙 #FF5A1F + Archivo Black 巨字）
   由 server.js 自动注入所有页面；内容/SEO/埋词零改动，只换视觉
   ============================================================ */

:root {
  /* ── 全局基础变量（覆盖 styles.css / minimal-theme.css / home.min.css）── */
  --bg: #0D0D12;
  --surface: #131318;
  --surface-2: #17171E;
  --line: rgba(236, 234, 227, 0.12);
  --line-strong: rgba(236, 234, 227, 0.24);
  --text: #ECEAE3;
  --muted: #9A97A1;
  --blue: #FF5A1F;
  --blue-light: #FF7A45;
  --green: #FF5A1F;
  --white: #131318;
  --accent: #FF5A1F;
  --accent-light: #FF7A45;
  --accent-soft: rgba(255, 90, 31, 0.13);
  --ink: #ECEAE3;
  --paper: #0D0D12;
  --soft: #131318;
  --display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --radius: 14px;

  /* ── new-site.css 的 site-* 变量 ── */
  --site-ink: #ECEAE3;
  --site-paper: #0D0D12;
  --site-white: #131318;
  --site-soft: #17171E;
  --site-line: rgba(236, 234, 227, 0.12);
  --site-muted: #9A97A1;
  --site-green: #FF5A1F;
  --site-green-dark: #E04E15;
  --site-coral: #FF5A1F;
  --site-blue: #FF5A1F;
  --site-yellow: #FFB84D;
  --site-radius: 14px;
  --site-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

/* ── 全局 ── */
html { color-scheme: dark; }
body { background: var(--bg); color: var(--text); }
::selection { background: var(--accent); color: #0D0D12; }
* { scrollbar-color: #34343E #14141A; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #34343E; border-radius: 6px; }
*::-webkit-scrollbar-track { background: #14141A; }

/* 巨字字体断崖：h1/h2/hero 用 Archivo Black */
h1, h2, .hero-title, .catalog-hero h1, .brands-hero h1, .content-hero h1,
.detail-copy h1, .compact-heading strong, .quick-category-title,
.latest-guides h2, .home-guide-grid h3 {
  font-family: var(--display);
  letter-spacing: -0.01em;
}

/* ── 顶栏（白底 → 深色半透明）── */
.site-header {
  background: rgba(13, 13, 18, 0.88) !important;
  border-bottom-color: var(--line) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand strong, .brand-words strong strong { color: var(--accent); }
.brand-words small { color: var(--accent) !important; }
.brand-mark { background: var(--accent) !important; }
.desktop-nav a, .icon-text-btn, .saved-link {
  color: #B9B5BE !important;
}
.desktop-nav a:hover, .desktop-nav a.active, .icon-text-btn:hover, .saved-link:hover {
  color: var(--accent) !important;
}
.language-switcher summary, .global-language-switcher summary {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.language-switcher > div, .global-language-switcher__menu {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.5) !important;
}
.language-switcher > div a, .global-language-switcher__option {
  color: var(--text) !important;
}
.language-switcher > div a:hover, .global-language-switcher__option:hover,
.global-language-switcher__option.is-active {
  background: var(--accent) !important;
  color: #0D0D12 !important;
}
.saved-link {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}
.saved-link b { background: var(--accent); color: #0D0D12; }
.header-shop-link {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #0D0D12 !important;
  border-radius: 999px;
}
.menu-toggle {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  border-radius: 999px;
}
.menu-toggle span { background: var(--text); }

@media (max-width: 760px) {
  .menu-toggle span {
    top: 50%;
    right: auto;
    left: 50%;
    width: 18px;
    transform: translate(-50%, -50%);
  }

  .menu-toggle span:first-child { top: calc(50% - 4px); }
  .menu-toggle span:last-child { top: calc(50% + 4px); }

  .menu-toggle[aria-expanded="true"] span:first-child,
  .menu-toggle[aria-expanded="true"] span:last-child { top: 50%; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
}

/* Product detail gallery: keep the desktop image area square so a tall copy
   column cannot stretch the main image into an oversized white panel. */
@media (min-width: 761px) {
  .product-detail-v3 .detail-copy-v3 h1 {
    font-size: clamp(34px, 2.8vw, 42px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em !important;
  }
  .product-detail-v3 > .detail-gallery-v2 {
    align-self: start !important;
    height: max-content !important;
    min-height: 0 !important;
  }
  .product-detail-v3 .detail-gallery-v2 .gallery-main {
    flex: none !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .product-detail-v3 .detail-gallery-v2 .gallery-main > img {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* ── 移动菜单 ── */
.mobile-menu {
  background: #101016 !important;
  border-bottom-color: var(--line) !important;
  border-left-color: var(--line) !important;
  box-shadow: -20px 0 50px rgba(0,0,0,.5) !important;
}
.mobile-menu > a, .mobile-menu > button {
  color: var(--text) !important;
  border-bottom-color: var(--line) !important;
}
.mobile-menu > a.active { color: var(--accent) !important; }
.mobile-menu-intro { border-bottom-color: var(--line); }
.mobile-menu-intro strong { color: var(--text); }
.mobile-menu-intro span { color: var(--muted); }
.mobile-menu .mobile-menu-shop { background: var(--accent); color: #0D0D12; border-radius: 999px; }
.mobile-menu-language { border-bottom-color: var(--line); }
.mobile-menu-language > span { color: var(--muted); }
.mobile-menu-language__links a, .mobile-menu-language__option {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  border-radius: 999px;
}
.mobile-menu-language__links a.is-active,
.mobile-menu-language__option.is-active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #0D0D12 !important;
}

@media (max-width: 760px) {
  .mobile-menu {
    inset: 64px 0 auto auto;
    width: min(76vw, 360px);
    height: auto;
    max-height: min(58dvh, 660px);
    box-sizing: border-box;
    padding: clamp(16px, 4vw, 22px);
    padding-bottom: max(clamp(16px, 4vw, 22px), env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0 0 0 8px;
  }

  .mobile-menu > .mobile-menu-language:first-child {
    margin-top: 0;
  }
}

/* ── 首页 hero ── */
.hero-copy > p { color: #B9B5BE; }
.eyebrow span { background: var(--accent); border-radius: 999px; }
.hero-search, .hero-search-area .hero-search {
  background: var(--surface) !important;
  border-color: var(--line-strong) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.35) !important;
  border-radius: 999px;
}
.hero-search-area .hero-search { border-color: rgba(255,90,31,.55) !important; }
.hero-search input { color: var(--text) !important; }
.hero-search input::placeholder { color: #6F6B76 !important; }
.hero-search svg { stroke: #6F6B76; }
.hero-camera { color: #8C8892; }
.hero-camera:hover { color: var(--accent); background: var(--accent-soft); border-radius: 999px; }
.hero-updated { color: #8C8892; }
.hero-updated::before { color: var(--accent); }
.hero-catalog-meta .hero-updated { color: #8C8892; }

/* ── 热搜下拉 ── */
.hot-searches {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  box-shadow: 0 24px 55px rgba(0,0,0,.6) !important;
}
.hot-searches > strong { color: var(--text); }
.hot-searches > strong span { color: var(--accent); }
.hot-search-list a {
  background: var(--surface) !important;
  color: #C9C5CE !important;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hot-search-list a:hover { background: var(--accent-soft); color: var(--accent); }
.hot-search-list a span { background: #34343E; color: #D5D2D9; }
.hot-search-list a:first-child span,
.hot-search-list a:nth-child(2) span,
.hot-search-list a:nth-child(3) span { background: var(--accent); color: #0D0D12; }

/* ── 分类快捷卡（大图卡片）── */
.quick-categories a, .quick-categories .quick-category-card {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.25) !important;
  transition: transform .35s var(--ease, ease), border-color .3s, box-shadow .3s;
}
.quick-categories a:hover, .quick-categories .quick-category-card:hover {
  border-color: rgba(255,90,31,.55) !important;
  background: var(--surface-2) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.4) !important;
  transform: translateY(-3px);
}
.quick-categories strong { color: var(--text); font-family: var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.quick-category-media { background: #101015 !important; }
.quick-category-media img { transition: transform .6s ease; }
.quick-categories a:hover .quick-category-media img { transform: scale(1.05); }
.quick-category-title {
  border-top-color: var(--line) !important;
  color: var(--text) !important;
}

/* ── 三步指南 ── */
.buy-steps { border-color: var(--line); }
.buy-steps article { background: var(--surface) !important; border-radius: 16px; }
.buy-steps article + article { border-left-color: var(--line); }
.buy-steps article > span, .buy-steps span { color: var(--accent); }
.buy-steps h3 { color: var(--text); }
.buy-steps p { color: var(--muted); }

/* ── SEO 长文 / editorial ── */
.seo-intro-copy > p, .catalog-editorial > p { color: #B9B5BE !important; }
.seo-intro-copy > small { color: #8C8892; }
.seo-intro-links a, .home-guide-grid article {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  border-radius: 14px;
}
.seo-intro-links a:hover { border-color: rgba(255,90,31,.5); }
.seo-intro-links span { color: #8C8892; }
.seo-intro-links strong { color: var(--text); }
.catalog-editorial h2 { color: var(--text); }
.catalog-editorial > p strong { color: var(--text); }

/* ── FAQ ── */
.home-faq-list { border-top-color: var(--line); }
.home-faq-list details { border-bottom-color: var(--line); }
.home-faq-list summary { color: var(--text); }
.home-faq-list summary::after { color: var(--accent); }
.home-faq-list details p { color: var(--muted); }
.home-faq-heading p { color: var(--muted); }

/* ── 联盟条 ── */
.affiliate-offer {
  background: var(--surface) !important;
  border-color: rgba(255,90,31,.35) !important;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3) !important;
}
.affiliate-offer span { color: var(--accent); }
.affiliate-offer strong { color: var(--text); }
.affiliate-offer small { color: var(--muted); }

/* ── 商品卡（列表/分类/品牌/搜索）─ 原型风格：深面板卡片 ── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .35s var(--ease, ease), border-color .3s, box-shadow .3s;
}
.product-card:hover {
  border-color: rgba(255, 90, 31, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.product-image { background: #fff; }
.product-image img {
  transition: transform .6s ease;
  mix-blend-mode: normal;
  filter: none;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-badge {
  background: var(--accent) !important;
  color: #0D0D12 !important;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.quick-view {
  background: rgba(13, 13, 18, 0.82) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 999px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
}
.quick-view:hover { background: var(--accent) !important; color: #0D0D12 !important; border-color: var(--accent) !important; }
.product-cat { color: var(--muted); }
.product-cat a { color: var(--accent); }
.product-title-link h3 { color: var(--text); transition: color .25s; }
.product-title-link:hover h3 { color: var(--accent); }
.product-price strong { color: var(--text); font-family: var(--display); font-size: 1.12em; }
.product-price span { color: #8C8892; }
.product-views { color: #8C8892; }
.product-views i, .product-views span[aria-hidden="true"] { color: var(--accent); }
.product-views.is-new { color: var(--accent); }
.rating, .catalog-product .rating { color: #8C8892; }
.rating strong, .catalog-product .rating strong { color: #D5D2D9; }
.rating i, .catalog-product .rating i { color: var(--accent); }

/* ── 商品详情页 ── */
.server-product-gallery { background: #fff; border-radius: 18px; overflow: hidden; }
.server-product-gallery img {
  width: 100%; height: auto;
  mix-blend-mode: normal;
  filter: none;
}
.detail-badge { background: var(--accent) !important; color: #0D0D12 !important; border-radius: 999px; }
.detail-copy h1, .server-product-copy h1 { color: var(--text); }
.detail-description, .product-description-panel p { color: #B9B5BE; }
.detail-price-row { border-block-color: var(--line); }
.detail-price-row small { color: #8C8892; }
.server-product-price { color: var(--accent) !important; font-family: var(--display); font-size: 1.35em !important; }
.detail-options div { color: #8C8892; }
.detail-options strong { color: #D5D2D9; }
.detail-rating { color: #8C8892; }
.detail-rating strong { color: #E9E7E1; }
.detail-rating i { color: var(--accent); }
.detail-category { color: var(--accent); }
.product-highlights { border-left: 3px solid var(--accent); }
.product-highlights h2 { color: var(--text); }
.product-highlights li { color: #B9B5BE; }
.product-description-heading { color: var(--text); }

/* ── 表单控件 ── */
input, select, textarea, option {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}
select option { background: var(--surface-2); }
.catalog-toolbar select { background: var(--surface) !important; border-color: var(--line) !important; color: #C9C5CE !important; border-radius: 999px; }
.catalog-toolbar option { background: var(--surface-2); }
input::placeholder, textarea::placeholder { color: #6F6B76 !important; }

/* ── 分类/品牌侧栏与筛选 ── */
.catalog-sidebar, .facet, .filter-title, .facet-group { color: var(--text); }
.filter-section-heading { color: var(--text); }
.catalog-note { background: var(--surface) !important; border-color: var(--line) !important; border-radius: 14px; }
.catalog-note span { color: var(--accent); }
.catalog-note p { color: #8C8892; }
.catalog-toolbar span { color: var(--text); }
.catalog-toolbar small { color: #8C8892; }
.catalog-search-wrap { background: var(--surface) !important; border-color: var(--line-strong) !important; border-radius: 999px; }
.catalog-search-wrap input { color: var(--text); }
.price-filter input { accent-color: var(--accent); }
.facet-pill-options a, .facet-pill-options label, .type-filter-options a, .type-filter-options label {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
  border-radius: 999px !important;
  transition: all .25s;
}
.facet-pill-options a:hover, .facet-pill-options label:hover,
.type-filter-options a:hover, .type-filter-options label:hover { border-color: rgba(255,90,31,.5); color: var(--text) !important; }
.facet-pill-options .active, .facet-pill-options a.active, .facet-pill-options label.active,
.type-filter-options .active, .type-filter-options a.active, .type-filter-options label.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #0D0D12 !important;
}
.filter-group input[type="checkbox"] { accent-color: var(--accent); }

/* ── 分类/品牌 hero ── */
.catalog-hero, .brands-hero, .content-hero { border-bottom-color: var(--line); }
.catalog-hero h1 em, .brands-hero h1 em, .content-hero h1 em { color: var(--accent); font-style: normal; }
.catalog-hero > p, .brands-hero > p { color: #B9B5BE; }
.section-kicker { color: var(--accent) !important; letter-spacing: .14em; }
.breadcrumb, .catalog-breadcrumb { color: #8C8892; }
.breadcrumb a:hover { color: var(--accent); }

/* ── 分页（圆钮）── */
.pagination a, .pagination span, .pagination button,
.catalog-pagination a, .catalog-pagination span, .catalog-pagination button {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  border-radius: 999px !important;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
}
.pagination a:hover, .catalog-pagination a:hover { border-color: rgba(255,90,31,.5); }
.pagination .active, .catalog-pagination .active {
  background: var(--accent) !important;
  color: #0D0D12 !important;
  border-color: var(--accent) !important;
}
.pagination .disabled, .catalog-pagination .disabled { opacity: .35; }

/* ── Footer ── */
.site-footer { border-top-color: var(--line); }
.footer-brand p, .footer-links a, .footer-bottom { color: #8C8892; }
.footer-links h4 { color: var(--text); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top-color: var(--line); color: #6F6B76; }

/* ── Toast ── */
.toast { background: var(--text); color: #0D0D12; border-radius: 999px; }

/* ── 移动端底部导航 ── */
@media (max-width: 760px) {
  .mobile-bottom-nav {
    background: rgba(13, 13, 18, 0.96) !important;
    border-top-color: var(--line) !important;
    box-shadow: 0 -8px 24px rgba(0,0,0,.4) !important;
  }
  .mobile-bottom-nav__link { color: #8C8892; }
  .mobile-bottom-nav__link:active { background: var(--surface); }
  .mobile-bottom-nav__link.is-active { color: var(--accent); }
  .mobile-bottom-nav__count {
    background: var(--accent) !important;
    color: #0D0D12 !important;
    border-color: #14141A;
  }
}

/* ── 其余静态页（about/privacy/how-to-buy/shipping/blog）通用覆盖 ── */
.content-hero, .content-page, .shipping-tools, .blog-page { color: var(--text); }
.content-page p, .shipping-tools p, .blog-page p { color: #B9B5BE; }
.content-page a, .shipping-tools a, .blog-page a { color: var(--accent); }

/* ── v0.20.1 compact catalog hero：覆盖红渐变（#ff6268→#df2517），换皮肤深炭 ── */
.catalog-page .catalog-hero,
.catalog-page .catalog-hero.section-shell {
  background: linear-gradient(120deg, #141318 0%, #1C1B21 100%) !important;
  border-bottom: 1px solid var(--line) !important;
}
.catalog-page .catalog-hero h1 { color: #F2EFF4 !important; }
.catalog-page .catalog-hero .section-kicker { display: none !important; }
/* Brand/category H1s include the complete search phrase, so keep them
   readable at desktop and mobile widths instead of inheriting the oversized
   all-catalog hero scale. */
.catalog-page.brand-category-page .catalog-hero h1 {
  max-width: 100%;
  font-size: clamp(42px, 5.5vw, 78px);
  line-height: 1.02;
}
@media (max-width: 760px) {
  .catalog-page.brand-category-page .catalog-hero h1 {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(30px, 8.5vw, 44px);
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* Keep long brand/category phrases inside the mobile viewport. Grid items
   otherwise preserve their min-content width and can create a clipped page. */
@media (max-width: 760px) {
  .catalog-page,
  .catalog-page .catalog-hero,
  .catalog-page .catalog-hero > *,
  .catalog-page .catalog-layout,
  .catalog-page .catalog-products,
  .catalog-page .catalog-products-heading,
  .catalog-page .catalog-products-supporting,
  .catalog-page .catalog-seo {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-page .catalog-products-heading {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .catalog-page .catalog-products-supporting,
  .catalog-page .catalog-seo p,
  .catalog-page .catalog-seo h2 {
    overflow-wrap: anywhere;
  }
}

/* ── new-site.css 主题层白底容器 → 皮肤深色（一次性补齐）── */
.catalog-toolbar,
.catalog-sidebar,
.catalog-seo,
.brands-directory,
.content-card,
.product-detail,
.related {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text);
}
.catalog-toolbar span, .catalog-toolbar small,
.catalog-seo h2, .catalog-seo p,
.catalog-sidebar h3, .catalog-sidebar label,
.brands-directory h3, .brands-directory p,
.content-card h2, .content-card p,
.product-detail, .product-detail p,
.related h2, .related h3 { color: var(--text); }
.catalog-toolbar small, .catalog-seo small, .catalog-sidebar small,
.brands-directory small, .content-card small { color: #8C8892; }

/* hero 浅绿背景（new-site）→ 深色 */
.brands-hero, .content-hero, .home-page .home-hero {
  background: var(--surface) !important;
}
.brands-hero p, .content-hero > p { color: #B9B5BE !important; }

/* 热搜标签（new-site .hot-searches a 类名）*/
.hot-searches a {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: #C9C5CE !important;
}
.hot-searches a:hover { border-color: var(--accent) !important; color: var(--accent) !important; }

/* 首页品牌链接卡 */
.home-brand-links a {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.home-brand-links a:hover { border-color: var(--accent) !important; }

/* 搜索框 / 下拉框（new-site 全局 select #fff）*/
.catalog-search-wrap, .brand-search-wrap, .catalog-search-wrap input,
.brand-search-wrap input, select, .catalog-toolbar select, .mobile-sort-control select {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: #C9C5CE !important;
}
.catalog-search-wrap input::placeholder, .brand-search-wrap input::placeholder { color: #6F6B76 !important; }
select option { background: var(--surface-2) !important; color: #C9C5CE !important; }

/* 语言切换器（new-site .language-switcher 类名）*/
.language-switcher summary,
.language-switcher > div {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.language-switcher > div a { color: var(--text) !important; }
.language-switcher > div a:hover,
.language-switcher > div a[aria-current="page"] { background: var(--accent) !important; color: #0D0D12 !important; }

/* 移动筛选抽屉/收藏控制残留白底 */
.filter-drawer, .filter-drawer-footer, .mobile-filter-toggle, .saved-control {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

/* ── v2.0.21 新组件：preview-banner / taxonomy / 商品页高亮区 / 大图透明化 ── */
.catalog-preview-banner {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.catalog-preview-banner span { color: var(--accent) !important; }
.catalog-preview-banner p { color: #8C8892 !important; }
.catalog-preview-banner a { background: var(--surface-2) !important; border-color: var(--line) !important; color: var(--text) !important; }

.catalog-taxonomy { background: var(--surface) !important; border-color: var(--line) !important; }
.catalog-taxonomy-row + .catalog-taxonomy-row { border-top-color: var(--line) !important; }
.catalog-taxonomy-label { color: var(--text) !important; }
.catalog-taxonomy-label span { background: var(--accent-soft) !important; color: var(--accent) !important; }

/* 商品页主图：白底图框 + 正常显示（与原型一致，白底商品图自然融入） */
.server-product-gallery img,
.detail-gallery-v2 .gallery-main > img,
.gallery-main > img {
  background: #fff !important;
  mix-blend-mode: normal !important;
}
.detail-gallery-v2 .gallery-main { background: #fff !important; }
.gallery-thumb { background: #fff !important; }
.gallery-thumb img { mix-blend-mode: normal !important; }

/* 商品页高亮卖点区（new-site 浅绿）→ 深色 */
.product-highlights { background: var(--surface-2) !important; border-left-color: var(--accent) !important; }
.product-highlights li { color: #C9C5CE !important; }
.product-highlights h2 { color: var(--text) !important; }

/* 移动端底部购买条（minimal 白 97%）→ 深 */
.mobile-buy-bar { background: rgba(13,13,18,.96) !important; border-color: var(--line) !important; }
.mobile-buy-bar strong { color: var(--text) !important; }
.mobile-buy-bar span { color: #8C8892 !important; }

/* ── 最后两个 v2.0.21 白底组件：分类导航条 + 顶部搜索 ── */
.catalog-category-strip,
.catalog-brand-strip { background: var(--surface) !important; border-bottom-color: var(--line) !important; }
.catalog-category-strip a,
.catalog-brand-strip a {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  color: #C9C5CE !important;
}
.catalog-category-strip a:hover,
.catalog-category-strip a[aria-current="page"],
.catalog-brand-strip a:hover {
  background: var(--accent-soft) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.catalog-top-search {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}
.catalog-top-search input { color: var(--text) !important; }
.catalog-top-search input::placeholder { color: #6F6B76 !important; }
.catalog-top-search button { color: #C9C5CE !important; }
.catalog-top-search button:hover { color: var(--accent) !important; }

/* 商品页主体网格（minimal-theme 白底 #fff 两处）→ 深色 */
.server-product-grid {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}

/* 商品页右侧信息区（detail-copy-v3 白底 rgb(255,255,255)）→ 深色 */
.detail-copy-v3,
.detail-copy-v2,
.detail-copy {
  background: transparent !important;
}

/* ============================================================
   KAKOBUY LIFESTYLE THEME — v7 对齐补丁 v1
   目的：覆盖 minimal-theme.css / new-site.css 剩余白底组件
   ============================================================ */

/* 品牌目录（brands.html #brand-grid 由 JS 生成） */
.brand-card,
#brand-grid .brand-card {
  background: #111113 !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.brand-card strong { color: var(--text) !important; }
.brand-card span { color: #5d5d64 !important; }
.brand-card small { color: #85858c !important; }
.brand-card b { color: var(--accent) !important; }
.brand-card:hover {
  border-color: var(--accent) !important;
  background: rgba(255, 90, 31, 0.08) !important;
}

/* 商品卡（new-site.css 白底） */
.product-card,
.catalog-product,
.related-card,
.catalog-grid .catalog-product,
.catalog-product .product-info {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}
.product-card:hover,
.catalog-product:hover { border-color: var(--accent) !important; }
.product-card .product-title,
.catalog-product h3,
.product-card .product-title-link h3 { color: var(--text) !important; }
.product-card .product-meta,
.product-card .rating,
.catalog-product .rating { color: var(--muted) !important; }

/* 分类页 Filter 强化 */
.catalog-sidebar,
.catalog-sidebar.open,
.filter-title,
.filter-group,
.category-options,
.category-option,
.facet-pill-options a,
.facet-pill-options label,
.type-filter-options a,
.type-filter-options label,
.type-filter-option {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.category-option.active,
.type-filter-option.active {
  background: var(--accent-soft) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
.category-option small,
.filter-title small { color: var(--muted) !important; }

.mobile-filter-toggle,
.mobile-sort-control {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.mobile-filter-toggle b { background: var(--accent) !important; color: #0D0D12 !important; }

/* 商品详情页白底 */
.server-product-grid,
.server-product-content,
.server-product-gallery,
.server-product-copy,
.server-product-copy dl div,
.server-product-copy .product-description-panel,
.product-description-panel,
.detail-description,
.detail-description-full,
.product-description-heading,
.server-product-description,
.detail-options,
.detail-selector select,
.detail-save,
.agent-options,
.order-flow,
.seller-panel {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.detail-description p,
.server-product-copy p,
.server-product-copy li,
.server-product-copy dd { color: #C9C5CE !important; }
.server-product-copy dt { color: var(--muted) !important; }

/* 商品图：容器暗底，图片本身保持白底（与原型一致） */
.detail-gallery-v2,
.detail-gallery,
.gallery-main,
.gallery-thumbs,
.gallery-thumb {
  background: var(--surface) !important;
}
.gallery-main > img,
.server-product-gallery img,
.detail-gallery-v2 .gallery-main > img,
.detail-gallery-v2 .gallery-thumb img {
  background: #fff !important;
}
.detail-gallery-v2 .gallery-main {
  border-radius: 0 !important;
}

/* 隐藏商品页 h1 后缀 · #1466 */
.product-source-id,
.server-product-copy .product-source-id,
.detail-copy .product-source-id,
.detail-copy-v2 .product-source-id,
.detail-copy-v3 .product-source-id,
.product-title-wrapper .product-source-id,
.server-product-copy h1 .product-source-id {
  display: none !important;
}

/* 按钮和操作区 */
.detail-secondary-actions a,
.detail-secondary-actions button,
.product-action-secondary,
.agent-grid button,
.kakobuy-buy,
.catalog-pagination a,
.catalog-pagination button,
.catalog-pagination span,
.filter-chip {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.detail-secondary-actions a:hover,
.detail-secondary-actions button:hover,
.product-action-secondary:hover,
.agent-grid button:hover,
.catalog-pagination a:hover,
.catalog-pagination button:hover,
.catalog-pagination button.active,
.filter-chip:hover {
  background: var(--accent-soft) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* 首页组件白底 */
.hero-search,
.home-cta,
.cta-section,
.footer-callout,
.footer-cta,
.trust-grid article,
.buy-steps article,
.home-guide-grid article,
.seo-intro-links a,
.home-brand-links a,
.quick-category-card {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.quick-category-card:hover,
.home-brand-links a:hover,
.seo-intro-links a:hover {
  border-color: var(--accent) !important;
}
.quick-category-card h3,
.quick-category-card span { color: var(--text) !important; }

/* FAQ / content */
.catalog-faq details,
.catalog-faq summary,
.catalog-faq p,
.catalog-faq-item,
.catalog-faq-item h4,
.catalog-faq-item p,
.content-card,
.catalog-seo,
.catalog-seo h2,
.catalog-seo p {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.catalog-faq p { color: var(--muted) !important; }
.catalog-faq-item {
  border-top: 1px solid var(--line) !important;
  background: var(--surface) !important;
}
.catalog-faq-item h4 {
  color: var(--text) !important;
}
.catalog-faq-item p {
  color: var(--muted) !important;
}

/* Structured comparison tables keep category guidance scannable for people and parsers. */
.category-editorial-table-wrap {
  max-width: 100%;
  margin: 24px 0 30px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.category-editorial-section + .category-editorial-section {
  margin-top: 42px;
}
.category-editorial-section h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}
.category-editorial-section p {
  max-width: 78ch;
  line-height: 1.75;
}
.category-editorial-section ul,
.category-editorial-section ol {
  max-width: 78ch;
  margin: 14px 0 24px;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.7;
}
.category-editorial-section li + li {
  margin-top: 8px;
}
.category-editorial-section li::marker {
  color: var(--accent);
  font-weight: 700;
}
.category-editorial-section li strong {
  color: var(--text);
}
.catalog-seo {
  grid-template-columns: 1fr !important;
  align-items: start;
  gap: 42px !important;
}
.catalog-seo > div,
.catalog-faq {
  min-width: 0;
  width: 100%;
}
.catalog-seo > div {
  max-width: none;
}
.catalog-seo .brand-editorial-copy,
.catalog-seo .category-editorial-copy,
.catalog-seo .catalog-editorial-copy {
  max-width: none !important;
}
.catalog-seo .brand-editorial-copy > p,
.catalog-seo .brand-editorial-copy > section,
.catalog-seo .brand-editorial-copy > .brand-type-table-wrap {
  width: 100%;
  max-width: none !important;
}
.catalog-seo > div > p,
.catalog-seo .category-editorial-copy > p,
.catalog-seo .catalog-editorial-copy > p {
  max-width: none !important;
  width: 100% !important;
}
.catalog-seo .brand-editorial-copy p,
.catalog-seo .category-editorial-copy p,
.catalog-seo .catalog-editorial-copy p,
.catalog-seo .brand-editorial-copy section,
.catalog-seo .category-editorial-copy section,
.catalog-seo .catalog-editorial-copy section {
  max-width: none !important;
  width: 100% !important;
}
.catalog-subcategory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 12px;
  padding-bottom: 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.catalog-subcategory-heading {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.catalog-subcategory-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.catalog-subcategory-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: #C9C5CE;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.catalog-subcategory-links a:hover,
.catalog-subcategory-links a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}
.catalog-subcategory-links .catalog-subcategory-parent {
  border-style: dashed;
}
.category-editorial-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.category-editorial-table caption {
  padding: 16px 18px 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}
.category-editorial-table th,
.category-editorial-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.category-editorial-table thead th {
  color: var(--text);
  background: rgba(255,255,255,.04);
  font-weight: 700;
}
.category-editorial-table tbody th {
  width: 22%;
  color: var(--text);
  font-weight: 700;
}
.category-editorial-table tbody td { color: var(--muted); }
.brand-type-table-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 700;
}
.brand-type-table-link:hover,
.brand-type-table-link:focus-visible {
  color: var(--text) !important;
  text-decoration-thickness: 2px;
}
@media (max-width: 760px) {
  .catalog-subcategory-links {
    gap: 8px;
    margin-top: 20px;
    margin-bottom: -10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .catalog-subcategory-items { gap: 8px; }
  .catalog-subcategory-links a {
    min-height: 40px;
    padding: 0 17px;
  }
  .category-editorial-section + .category-editorial-section { margin-top: 34px; }
  .category-editorial-section ul,
  .category-editorial-section ol { padding-left: 20px; }
  .category-editorial-table-wrap { margin: 20px 0 26px; }
  .category-editorial-table { font-size: 13px; }
  .category-editorial-table caption { padding: 14px; font-size: 15px; }
}

/* 输入框统一 */
input[type="search"],
input[type="text"],
select,
textarea,
.brand-search input,
.hero-search input,
.catalog-search-wrap input,
.catalog-top-search input {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
input::placeholder { color: var(--muted) !important; }
select option { background: var(--surface-2) !important; color: var(--text) !important; }

/* 移动菜单 */
.mobile-menu,
.mobile-menu-intro,
.mobile-menu-language,
.mobile-menu-language__links a,
.mobile-menu-shop a {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.mobile-menu-language__links a:hover {
  background: var(--accent) !important;
  color: #0D0D12 !important;
}

/* 订单流 */
.order-flow { background: var(--surface-2) !important; border-color: var(--accent-soft) !important; }
.order-flow span { color: var(--accent) !important; }
.order-flow p { color: var(--muted) !important; }

/* Toast / 提示 */
.toast { background: var(--surface-2) !important; border-color: var(--line) !important; color: var(--text) !important; }

/* ═══ v7 对齐第二轮（v4）：分类页+首页再压暗 ═══ */
/* 页面底色对齐 v7 深炭 #0D0D12 */
body, .page, main, #catalog-app, .catalog-layout,
.home-page, .home-main, .home-hero, .home-categories {
  background: var(--bg) !important;
}
:root { --bg: #0D0D12; }

/* 分类页：toolbar + 侧栏再压暗、收窄卡片 */
.catalog-toolbar, .catalog-sidebar, .filter-group, .filter-panel,
.catalog-layout, .catalog-grid, #catalog-grid {
  background: #0D0D12 !important;
  border-color: rgba(255,255,255,.06) !important;
}
.catalog-product { border-radius: 12px !important; }
.catalog-product .product-image { background: #F4F4F6 !important; }
.catalog-product .product-info { padding: 10px 12px 14px !important; }

/* 首页：各 section 深色化 + 隐藏 v7 没有的组件 */
.home-categories-section, .home-strip, .home-cta,
.hot-searches, .top-search, .preview-banner, .category-strip,
.home-intro, .seo-block, .home-section {
  background: transparent !important;
  color: var(--text) !important;
}
.home-hero, .home-hero-content, .hero-section {
  background: #0D0D12 !important;
}
.home-category-card, .category-card, .home-tile {
  background: var(--surface) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 16px !important;
}
.home-category-card img, .category-card img { border-radius: 12px !important; }

/* v7 风格巨字标题感（h2 加粗加大，纯字号不改语义） */
.home-categories-section h2, .home-section h2, .catalog-page-title,
.home-hero h1, .home-hero .hero-title {
  font-family: var(--display) !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
  color: var(--text) !important;
}

/* 全站滚动条暗色 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0D0D12; }
::-webkit-scrollbar-thumb { background: #2A2A33; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #FF5A1F; }

/* ═══ v5：filter 排名圆点橘色 + 收藏按钮橘色 ═══ */
.facet-rank {
  background: rgba(255,90,31,.14) !important;
  color: #FF5A1F !important;
}
.facet-rank.rank-1 { background: #FF5A1F !important; color: #0D0D12 !important; }
.facet-rank.rank-2 { background: rgba(255,90,31,.32) !important; color: #FFB08A !important; }
.facet-rank.rank-3 { background: rgba(255,90,31,.2) !important; color: #FF9A6A !important; }
.facet-rank.facet-rank-placeholder { background: transparent !important; border: 1px solid rgba(255,255,255,.14); }

.save-btn { border-color: rgba(255,90,31,.55) !important; }
.save-btn svg { stroke: #FF5A1F !important; }
.save-btn:hover { background: rgba(255,90,31,.16) !important; border-color: #FF5A1F !important; }
.save-btn.saved { background: #FF5A1F !important; border-color: #FF5A1F !important; }
.save-btn.saved svg { fill: #0D0D12 !important; stroke: #0D0D12 !important; }

.detail-save { border-color: rgba(255,90,31,.55) !important; }
.detail-save svg { stroke: #FF5A1F !important; }
.detail-save:hover { background: rgba(255,90,31,.16) !important; border-color: #FF5A1F !important; }
.detail-save.saved { background: #FF5A1F !important; border-color: #FF5A1F !important; }
.detail-save.saved svg { fill: #0D0D12 !important; stroke: #0D0D12 !important; }

/* ═══ v6：Product type 改为 v7 复选框列表，价格按钮白底黑字 ═══ */
#catalog-sidebar .type-filter-options {
  display: grid !important;
  gap: 6px !important;
}
#catalog-sidebar .type-filter-option {
  display: grid !important;
  grid-template-columns: 22px 22px minmax(0, 1fr) max-content !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 39px !important;
  padding: 7px 9px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  color: var(--text) !important;
  cursor: pointer !important;
}
#catalog-sidebar .type-filter-option input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #FF5A1F !important;
}
#catalog-sidebar .type-filter-option > span {
  font-size: 12px !important;
  font-weight: 650 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#catalog-sidebar .type-filter-option small {
  color: var(--muted) !important;
  font-size: 10px !important;
  justify-self: end !important;
  white-space: nowrap !important;
}
#catalog-sidebar .type-filter-option:hover {
  background: var(--surface) !important;
  border-color: rgba(255,255,255,.08) !important;
}
#catalog-sidebar .type-filter-option.active {
  border-color: #FF5A1F !important;
  background: rgba(255,90,31,.12) !important;
  color: #FF5A1F !important;
}
#catalog-sidebar .type-filter-option.active small {
  color: #FF5A1F !important;
}
#catalog-sidebar .price-input-grid {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  gap: 7px !important;
  align-items: center !important;
}
#catalog-sidebar .price-input-grid label { display: block !important; }
#catalog-sidebar .price-input-grid label > div {
  background: var(--surface) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 999px !important;
  color: var(--text) !important;
  height: 44px !important;
}
#catalog-sidebar .price-input-grid label > div:focus-within {
  border-color: #FF5A1F !important;
  box-shadow: none !important;
}
#catalog-sidebar .price-input-grid input {
  color: var(--text) !important;
  font-weight: 750 !important;
}
#catalog-sidebar .price-input-grid input::placeholder {
  color: var(--muted) !important;
  opacity: 1 !important;
}
#catalog-sidebar .price-input-grid b { color: var(--muted) !important; }
#catalog-sidebar .price-dash {
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: center !important;
}
#catalog-sidebar .price-apply-button {
  background: var(--surface) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: var(--text) !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}
#catalog-sidebar .price-apply-button:hover {
  background: #FF5A1F !important;
  border-color: #FF5A1F !important;
  color: #0D0D12 !important;
}
#catalog-sidebar .filter-section-heading strong {
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  font-size: 11px !important;
}

/* ═══ v8：筛选器统一复选框列表 + 页码跳转 + 搜索按钮对齐 + 其他细节 ═══ */

/* 统一所有筛选器选项为行列表（brand / type / color / gender / style / season） */
.facet-list-options,
.brand-filter-options,
.type-filter-options,
#color-filter-options,
#gender-filter-options,
#style-filter-options,
#season-filter-options {
  display: grid !important;
  gap: 4px !important;
}
.brand-filter-option,
.type-filter-option,
.attribute-filter-option {
  display: grid !important;
  grid-template-columns: 22px 22px minmax(0, 1fr) max-content !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 6px 9px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  color: var(--text) !important;
  cursor: pointer !important;
}
body #catalog-sidebar .brand-filter-option,
body #catalog-sidebar .type-filter-option,
body #catalog-sidebar .attribute-filter-option {
  grid-template-columns: 22px 22px minmax(0, 1fr) max-content !important;
}
@media (max-width: 760px) {
  body #catalog-sidebar .mobile-filter-panels .brand-filter-option,
  body #catalog-sidebar .mobile-filter-panels .type-filter-option,
  body #catalog-sidebar .mobile-filter-panels .attribute-filter-option {
    grid-template-columns: 22px minmax(0, 1fr) max-content !important;
  }
}
.brand-filter-option input[type="checkbox"],
.type-filter-option input[type="checkbox"],
.attribute-filter-option input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #FF5A1F !important;
}
.brand-filter-option > span,
.type-filter-option > span,
.attribute-filter-option > span {
  font-size: 12px !important;
  font-weight: 650 !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  line-height: 1.25 !important;
}
.brand-filter-option > small,
.type-filter-option > small,
.attribute-filter-option > small {
  color: var(--muted) !important;
  font-size: 10px !important;
  justify-self: end !important;
  white-space: nowrap !important;
}
.brand-filter-option:hover,
.type-filter-option:hover,
.attribute-filter-option:hover {
  background: var(--surface) !important;
  border-color: rgba(255,255,255,.08) !important;
}
.brand-filter-option.active,
.type-filter-option.active,
.attribute-filter-option.active {
  border-color: #FF5A1F !important;
  background: rgba(255,90,31,.12) !important;
  color: #FF5A1F !important;
}
.brand-filter-option.active > small,
.type-filter-option.active > small,
.attribute-filter-option.active > small {
  color: #FF5A1F !important;
}

/* Show more 按钮统一 */
.filter-show-more {
  margin-top: 6px !important;
  padding: 7px 10px !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 7px !important;
  color: #FF5A1F !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.filter-show-more:hover {
  background: rgba(255,90,31,.12) !important;
}

/* 旧的 facet-pill 不再需要药丸外观 */
.facet-pill-options {
  display: grid !important;
  gap: 4px !important;
}

/* 移动端 Brands 按钮白底改深色 */
.mobile-brand-toggle {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.mobile-brand-toggle > b {
  background: #FF5A1F !important;
  color: #0D0D12 !important;
}

/* 移动端筛选抽屉深色化 */
.catalog-sidebar,
.catalog-sidebar.open,
.filter-drawer-header,
.filter-drawer-footer,
.mobile-filter-body,
.mobile-filter-tabs,
.mobile-filter-panels,
.filter-title {
  background: #0D0D12 !important;
  color: var(--text) !important;
}
.mobile-filter-tabs button {
  background: transparent !important;
  color: var(--muted) !important;
  border-color: var(--line) !important;
}
.mobile-filter-tabs button.is-active {
  background: rgba(255,90,31,.14) !important;
  color: #FF5A1F !important;
  border-color: #FF5A1F !important;
}
.mobile-filter-panels .filter-section-heading {
  background: transparent !important;
}
#show-filter-results {
  background: #FF5A1F !important;
  color: #0D0D12 !important;
}

/* 首页搜索框放大镜按钮对齐 */
.hero-search {
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 6px 6px 6px 22px !important;
}
.hero-search input {
  height: 44px !important;
  align-self: center !important;
}
.hero-search-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 44px !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hero-camera {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  align-self: center !important;
}

/* Create account 按钮改橘色 */
.hero-actions .btn-primary,
.content-card .btn-primary,
.affiliate-offer > a,
.create-account-btn {
  background: #FF5A1F !important;
  border-color: #FF5A1F !important;
  color: #0D0D12 !important;
}
.hero-actions .btn-primary:hover,
.content-card .btn-primary:hover,
.affiliate-offer > a:hover {
  background: #FF7A45 !important;
  border-color: #FF7A45 !important;
}

/* How-to-buy 页面深色化 */
body > main .content-hero,
.content-layout,
.content-body,
.content-aside,
.guide-steps,
.guide-step,
.content-section,
.content-faq details,
.content-card {
  background: transparent !important;
  color: var(--text) !important;
}
.guide-step {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
}
.guide-step h3,
.guide-step p {
  color: var(--text) !important;
}
.content-faq details {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
}
.content-faq summary,
.content-faq p {
  color: var(--text) !important;
}

/* 分页器页码输入框 */
.catalog-pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.page-jump {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: 8px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}
.page-jump input {
  width: 52px !important;
  height: 36px !important;
  padding: 0 6px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  text-align: center !important;
  font-weight: 700 !important;
}
.page-jump button {
  height: 36px !important;
  padding: 0 12px !important;
  background: #FF5A1F !important;
  border: none !important;
  border-radius: 8px !important;
  color: #0D0D12 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.page-jump button:hover {
  background: #FF7A45 !important;
}

/* 筛选标题已选数量样式 */
.filter-section-heading strong {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

/* ═══ v9：移动端筛选抽屉全 facet 统一为 Brands 复选框 + 关闭按钮深色 + 购买弹窗深色 + 价格居中 ═══ */

/* 1. 强制移动端所有 facet 为复选框行列表（覆盖 minimal-theme 的药丸） */
@media (max-width: 760px) {
  #catalog-sidebar .mobile-filter-panels .type-filter-options,
  #catalog-sidebar .mobile-filter-panels .facet-list-options,
  #catalog-sidebar .mobile-filter-panels .color-list-options,
  #catalog-sidebar .mobile-filter-panels #color-filter-options,
  #catalog-sidebar .mobile-filter-panels #gender-filter-options,
  #catalog-sidebar .mobile-filter-panels #style-filter-options,
  #catalog-sidebar .mobile-filter-panels #season-filter-options {
    display: grid !important;
    gap: 4px !important;
  }
  #catalog-sidebar .mobile-filter-panels .type-filter-option,
  #catalog-sidebar .mobile-filter-panels .attribute-filter-option,
  #catalog-sidebar .mobile-filter-panels .facet-pill,
  #catalog-sidebar .mobile-filter-panels .color-pill {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) max-content !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 38px !important;
    padding: 6px 9px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    color: var(--text) !important;
    cursor: pointer !important;
    width: auto !important;
  }
  #catalog-sidebar .mobile-filter-panels .type-filter-option input[type="checkbox"],
  #catalog-sidebar .mobile-filter-panels .attribute-filter-option input[type="checkbox"],
  #catalog-sidebar .mobile-filter-panels .facet-pill input[type="checkbox"],
  #catalog-sidebar .mobile-filter-panels .color-pill input[type="checkbox"] {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: #FF5A1F !important;
  }
  #catalog-sidebar .mobile-filter-panels .type-filter-option > span,
  #catalog-sidebar .mobile-filter-panels .attribute-filter-option > span,
  #catalog-sidebar .mobile-filter-panels .facet-pill > span,
  #catalog-sidebar .mobile-filter-panels .color-pill > span {
    font-size: 12px !important;
    font-weight: 650 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }
  #catalog-sidebar .mobile-filter-panels .type-filter-option > small,
  #catalog-sidebar .mobile-filter-panels .attribute-filter-option > small,
  #catalog-sidebar .mobile-filter-panels .facet-pill > small,
  #catalog-sidebar .mobile-filter-panels .color-pill > small {
    display: block !important;
    color: var(--muted) !important;
    font-size: 10px !important;
    justify-self: end !important;
    white-space: nowrap !important;
  }
  #catalog-sidebar .mobile-filter-panels .type-filter-option:hover,
  #catalog-sidebar .mobile-filter-panels .attribute-filter-option:hover,
  #catalog-sidebar .mobile-filter-panels .facet-pill:hover,
  #catalog-sidebar .mobile-filter-panels .color-pill:hover {
    background: var(--surface) !important;
    border-color: rgba(255,255,255,.08) !important;
  }
  #catalog-sidebar .mobile-filter-panels .type-filter-option.active,
  #catalog-sidebar .mobile-filter-panels .attribute-filter-option.active,
  #catalog-sidebar .mobile-filter-panels .facet-pill.active,
  #catalog-sidebar .mobile-filter-panels .color-pill.active {
    border-color: #FF5A1F !important;
    background: rgba(255,90,31,.12) !important;
    color: #FF5A1F !important;
  }
  #catalog-sidebar .mobile-filter-panels .type-filter-option.active > small,
  #catalog-sidebar .mobile-filter-panels .attribute-filter-option.active > small,
  #catalog-sidebar .mobile-filter-panels .facet-pill.active > small,
  #catalog-sidebar .mobile-filter-panels .color-pill.active > small {
    color: #FF5A1F !important;
  }
  #catalog-sidebar .mobile-filter-panels .attribute-filter-option .facet-rank,
  #catalog-sidebar .mobile-filter-panels .color-pill .facet-rank,
  #catalog-sidebar .mobile-filter-panels .facet-pill .facet-rank {
    display: none !important;
  }
}

/* 2. 移动端筛选抽屉右上角关闭按钮去白底 */
.filter-drawer-header button,
#filter-close,
.mobile-filter-body .filter-drawer-header button {
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 50% !important;
  color: var(--text) !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
.filter-drawer-header button:hover,
#filter-close:hover {
  border-color: #FF5A1F !important;
  color: #FF5A1F !important;
}

/* 3. 商品页 Other buy links / Purchase options 弹窗深色化 */
.agent-modal,
.agent-modal-panel {
  background: #0D0D12 !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}
.agent-modal-head {
  border-bottom-color: var(--line) !important;
}
.agent-modal-head h2 {
  color: var(--text) !important;
}
.agent-modal-head p {
  color: var(--muted) !important;
}
.agent-modal-close {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.agent-modal-close:hover {
  border-color: #FF5A1F !important;
  color: #FF5A1F !important;
}
.agent-modal-grid {
  padding: 18px 0 !important;
}
.agent-modal-link {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}
.agent-modal-link:hover {
  background: rgba(255,90,31,.12) !important;
  border-color: #FF5A1F !important;
  color: #FF5A1F !important;
}
.agent-modal-link strong {
  color: var(--text) !important;
}
.agent-modal-link small {
  color: var(--muted) !important;
}
.agent-modal-link b {
  color: #FF5A1F !important;
}
.agent-modal-link.featured {
  background: var(--surface) !important;
  border-color: #FF5A1F !important;
  color: #FF5A1F !important;
}
.agent-modal-link.featured strong {
  color: #FF5A1F !important;
}
.agent-modal-link.featured small {
  color: #FF7A45 !important;
}
.agent-modal-link.featured b {
  color: #FF5A1F !important;
}
.agent-modal-link.featured:hover {
  background: rgba(255,90,31,.16) !important;
}
.agent-modal-foot {
  border-top-color: var(--line) !important;
}
.agent-modal-foot p {
  color: var(--muted) !important;
}
.agent-modal-foot button,
.agent-register-link {
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}
.agent-modal-foot button:hover,
.agent-register-link:hover {
  background: #FF5A1F !important;
  border-color: #FF5A1F !important;
  color: #0D0D12 !important;
}

/* 4. Price range 输入数字居中 */
#catalog-sidebar .price-input-grid input,
.price-input-grid input {
  text-align: center !important;
}

/* ============================================================
   v11 patch — 2026-09-10
   1) 移动端筛选抽屉左侧 tab 显示各板块已选数量
   2) 桌面端 Reset 按钮视觉强化
   3) 移动端 Saved 下方增加 Reset 按钮
   ============================================================ */

/* 1. 移动端左侧 tab 已选数量徽章 */
.mobile-filter-tabs button {
  justify-content: space-between !important;
  gap: 8px !important;
}
.mobile-filter-tabs button .tab-count {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #FF5A1F;
  color: #0D0D12;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}
.mobile-filter-tabs button .tab-count[hidden] {
  display: none !important;
}
.mobile-filter-tabs button.is-active .tab-count {
  background: #FF5A1F;
  color: #0D0D12;
}

/* 2. 桌面端 Reset 按钮强化 */
.filter-title {
  align-items: center !important;
}
.filter-title span {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
}
#reset-filters {
  min-height: 28px;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  background: #FF5A1F !important;
  color: #0D0D12 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  transition: background .2s, transform .15s;
}
#reset-filters:hover {
  background: #FF7A45 !important;
  transform: translateY(-1px);
}

/* 3. 移动端 Saved 下方 Reset 按钮 */
.mobile-filter-reset-tab {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 12px 13px 12px 18px;
  border: 0;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
  color: #FF5A1F !important;
  font: 650 13px/1.22 var(--body);
  text-align: left;
  cursor: pointer;
}
.mobile-filter-reset-tab:hover,
.mobile-filter-reset-tab:active {
  background: rgba(255, 90, 31, 0.14) !important;
}
.mobile-filter-reset-tab::before {
  content: "↺";
  margin-right: 8px;
  font-size: 14px;
}

/* 4. 右上角 Saved 按钮统一为网站暗场+信号橙色调 */
html body .site-header .saved-link {
  background: #131318 !important;
  border-color: rgba(236, 234, 227, 0.16) !important;
  color: #ECEAE3 !important;
}
html body .site-header .saved-link:hover {
  border-color: #FF5A1F !important;
  color: #FF5A1F !important;
}
html body .site-header .saved-link svg {
  stroke: currentColor !important;
}
html body .site-header .saved-link b {
  background: #FF5A1F !important;
  color: #0D0D12 !important;
}
/* How-to-buy CTAs use the site orange consistently. */
body:has(.content-hero) .content-card .btn-outline,
body:has(.content-hero) .footer-callout a {
  background: #FF5A1F !important;
  border-color: #FF5A1F !important;
  color: #0D0D12 !important;
}
body:has(.content-hero) .content-card .btn-outline:hover,
body:has(.content-hero) .footer-callout a:hover {
  background: #FF7A45 !important;
  border-color: #FF7A45 !important;
  color: #0D0D12 !important;
}

/* Keep the mobile header wordmark on two intentional lines. */
@media (max-width: 760px) {
  body .site-header .brand:not(.brand-system) {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 0.88;
    white-space: normal;
  }

  body .site-header .brand:not(.brand-system) span,
  body .site-header .brand:not(.brand-system) strong {
    display: block;
    white-space: nowrap;
  }
}

/* Keep the home category cards readable as a two-column grid on phones. */
@media (max-width: 760px) {
  body.home-page .quick-categories {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.home-page .quick-categories .quick-category-card {
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    min-height: 0 !important;
    grid-template-rows: minmax(0, 1fr) 46px !important;
  }

  body.home-page .quick-categories .quick-category-media {
    min-height: 0 !important;
    aspect-ratio: 1 / 0.82;
    padding: 8px !important;
  }

  body.home-page .quick-categories .quick-category-title {
    min-height: 46px !important;
    padding: 7px 6px !important;
    font-size: 13px !important;
  }
}

/* Keep the homepage H1 compact after the theme overrides load. */
body.home-page .hero h1 {
  max-width: 100%;
  width: 100%;
  text-align: center;
  font-size: clamp(18px, 1.8vw, 21px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Polish uses a longer localized H1; let it wrap inside the hero instead of
   clipping the highlighted phrase on narrower desktop viewports. */
html[lang="pl"] body.home-page .hero h1 {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

/* Keep the full desktop H1 inside a centered line box. */
body.home-page .hero-copy {
  width: min(1120px, 100%);
}

body.home-page .hero h1 .hero-title-highlight {
  color: #FF5A1F !important;
}

@media (max-width: 760px) {
  body.home-page .hero h1 {
    font-size: clamp(20px, 5.4vw, 30px) !important;
    line-height: 1.12 !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Balance the homepage hierarchy: a slightly larger single-line H1 and
   compact section headings that leave more room for the catalog itself. */
body.home-page .hero h1 {
  font-size: clamp(22px, 2.3vw, 27px) !important;
}

body.home-page .compact-heading h2,
body.home-page .home-brand-discovery h2,
body.home-page .catalog-editorial h2,
body.home-page .buy-guide h2,
body.home-page .latest-guides h2,
body.home-page .home-faq h2,
body.home-page .seo-intro-heading h2,
body.home-page .home-faq-heading h2 {
  font-size: clamp(24px, 2.4vw, 32px) !important;
  line-height: 1.04 !important;
}

@media (max-width: 760px) {
  body.home-page .hero h1 {
    font-size: clamp(20px, 5.4vw, 30px) !important;
  }

  body.home-page .compact-heading h2,
  body.home-page .home-brand-discovery h2,
  body.home-page .catalog-editorial h2,
  body.home-page .buy-guide h2,
  body.home-page .latest-guides h2,
  body.home-page .home-faq h2,
  body.home-page .seo-intro-heading h2,
  body.home-page .home-faq-heading h2 {
    font-size: clamp(24px, 7vw, 30px) !important;
  }
}

body.home-page .seo-intro-heading h2 {
  white-space: nowrap;
}

/* Keep homepage guide titles readable inside the compact cards. */
body.home-page .home-guide-grid h3 {
  margin: 18px 0 10px;
  font-size: clamp(17px, 1.55vw, 20px) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.01em;
}

@media (max-width: 760px) {
  body.home-page .seo-intro-heading h2 {
    font-size: clamp(12px, 4vw, 20px) !important;
  }

  body.home-page .home-guide-grid h3 {
    margin-top: 14px;
    font-size: 17px !important;
    line-height: 1.2 !important;
  }
}

/* ── Homepage five-step buying route ── */
.home-how-it-works {
  margin: 34px 0 42px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-how-it-works-heading { margin-bottom: 24px; }
.home-how-it-works-heading .section-kicker { display: block; margin-bottom: 9px; }
.home-how-it-works-heading h3 {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: clamp(26px, 3vw, 38px) !important;
  line-height: 1 !important;
  text-transform: none !important;
}
.home-how-it-works-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-how-it-works-step {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  grid-template-rows: auto auto 1fr;
  column-gap: 10px;
  row-gap: 9px;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}
.home-how-it-works-step:first-child { padding-left: 0; border-left: 0; }
.home-how-it-works-number {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 800 16px/1 var(--body, sans-serif);
}
.home-how-it-works-icon {
  grid-column: 2;
  grid-row: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--text);
}
.home-how-it-works-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.home-how-it-works-step h4 {
  grid-column: 1;
  grid-row: 2;
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  text-transform: none !important;
}
.home-how-it-works-step p {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
@media (max-width: 900px) {
  .home-how-it-works-step { padding-inline: 12px; }
}
@media (max-width: 760px) {
  .home-how-it-works {
    margin: 28px 0 34px;
    padding: 24px 0 12px;
  }
  .home-how-it-works-heading { margin-bottom: 14px; }
  .home-how-it-works-heading h3 { font-size: 28px !important; }
  .home-how-it-works-list {
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-how-it-works-step,
  .home-how-it-works-step:first-child {
    display: grid;
    grid-template-columns: 40px 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 3px;
    align-items: center;
    padding: 13px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .home-how-it-works-step:last-child { border-bottom: 0; }
  .home-how-it-works-number { grid-column: 1; grid-row: 1 / span 2; width: 34px; height: 34px; }
  .home-how-it-works-icon { grid-column: 2; grid-row: 1 / span 2; }
  .home-how-it-works-step h4 { grid-column: 3; grid-row: 1; font-size: 16px !important; }
  .home-how-it-works-step p { grid-column: 3; grid-row: 2; font-size: 12px !important; }
}
