/* bakba-sidebar-category-align */
#secondary .ast-woo-sidebar-widget.widget_block {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin-bottom: 26px !important;
}
#secondary .ast-woo-sidebar-widget.widget_block h2.widget-title {
  font-size: 24px;
  color: #1A1A1A;
  margin: 0 0 12px;
}
#secondary .ast-woo-sidebar-widget.widget_block .wc-block-product-categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
}
#secondary .ast-woo-sidebar-widget.widget_block .wc-block-product-categories-list li {
  margin: 0;
  padding: 0;
  border: 0;
}
#secondary .ast-woo-sidebar-widget.widget_block .wc-block-product-categories-list li a {
  display: inline-block;
  font-size: 16px;
  line-height: 32px;
  color: #4A4A4A;
  font-weight: 400;
  text-decoration: none;
}
#secondary .ast-woo-sidebar-widget.widget_block .wc-block-product-categories-list li a:hover {
  color: #1A1A1A;
}
#secondary .ast-woo-sidebar-widget.widget_block .wc-block-product-categories-list li a::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1px solid #8A8A8A;
  border-radius: 2px;
  margin-right: 9px;
  vertical-align: -2px;
  background: #FFFFFF;
}
#secondary .ast-woo-sidebar-widget.widget_block .wc-block-product-categories-list li.current-cat > a,
#secondary .ast-woo-sidebar-widget.widget_block .wc-block-product-categories-list li.current-menu-item > a {
  color: #1A1A1A;
}
#secondary .ast-woo-sidebar-widget.widget_block .wc-block-product-categories-list li.current-cat > a::before,
#secondary .ast-woo-sidebar-widget.widget_block .wc-block-product-categories-list li.current-menu-item > a::before {
  background: #1A1A1A;
  border-color: #1A1A1A;
}
#secondary .ast-woo-sidebar-widget.widget_block .wc-block-product-categories-list-item-count {
  display: inline !important;
  margin-left: 4px;
  color: #8A8A8A;
  font-size: 14px;
}
/* bakba-header-search-fix */
.ast-search-menu-icon .bakba-search-tags { display: none; }
/* 桌面端：展开后热搜面板绝对定位在搜索框正下方 */
.ast-search-menu-icon.ast-dropdown-active .bakba-search-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: absolute;
  top: 51px;
  right: -16px;
  width: 320px;
  max-width: calc(100vw - 48px);
  padding: 10px 12px;
  background: #FAF7F2;
  border: 1px solid #D5BB99;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  z-index: 99;
}
.bakba-search-tags-label { font-size: 12px; color: #8A8A8A; margin-right: 8px; white-space: nowrap; }
.bakba-search-tag {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #4A4A4A;
  background: #FFFFFF;
  border: 1px solid #D5BB99;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}
.bakba-search-tag:hover { color: #1A1A1A; border-color: #1A1A1A; }

/* 手机/平板(<=921px)：点搜索图标后整条铺满页头 */
@media (max-width: 921px) {
  .ast-mobile-header-wrap .ast-search-menu-icon.ast-dropdown-active {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #D5BB99;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    z-index: 99;
  }
  .ast-mobile-header-wrap .ast-search-menu-icon.ast-dropdown-active .search-form {
    position: static;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .ast-mobile-header-wrap .ast-search-menu-icon.ast-dropdown-active .search-form label {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    position: relative;
  }
  .ast-mobile-header-wrap .ast-search-menu-icon.ast-dropdown-active .search-field {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0;
    height: 42px;
    font-size: 15px;
    padding: 0 44px 0 12px;
    border: 1px solid #D5BB99;
    border-radius: 3px;
    background: #FAF7F2;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
  }
  .ast-mobile-header-wrap .ast-search-menu-icon.ast-dropdown-active .ast-search-submit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-left: -42px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #1A1A1A;
    cursor: pointer;
    position: relative;
    z-index: 1;
  }
  .ast-mobile-header-wrap .ast-search-menu-icon.ast-dropdown-active .ast-search-submit svg {
    width: 20px;
    height: 20px;
  }
  .ast-mobile-header-wrap .ast-search-menu-icon.ast-dropdown-active > .ast-search-icon {
    display: none !important;
  }
  .ast-mobile-header-wrap .ast-search-menu-icon.ast-dropdown-active .bakba-search-tags {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    top: auto;
    right: auto;
  }
}

/* bakba-cat-current-highlight */
body.tax-product_cat.term-women #secondary .wc-block-product-categories-list li a[href*="/women/"],
body.tax-product_cat.term-men #secondary .wc-block-product-categories-list li a[href*="/men/"],
body.tax-product_cat.term-unisex #secondary .wc-block-product-categories-list li a[href*="/unisex/"],
body.tax-product_cat.term-gift-sets #secondary .wc-block-product-categories-list li a[href*="/gift-sets/"] {
  color: #1A1A1A;
}
body.tax-product_cat.term-women #secondary .wc-block-product-categories-list li a[href*="/women/"]::before,
body.tax-product_cat.term-men #secondary .wc-block-product-categories-list li a[href*="/men/"]::before,
body.tax-product_cat.term-unisex #secondary .wc-block-product-categories-list li a[href*="/unisex/"]::before,
body.tax-product_cat.term-gift-sets #secondary .wc-block-product-categories-list li a[href*="/gift-sets/"]::before {
  background: #1A1A1A;
  border-color: #1A1A1A;
}

/* bakba-sticky-header */
#masthead {
  position: -webkit-sticky;
  position: sticky;
  top: 0; /* 公告条 + 主导航整块吸顶，滚动时始终可见 */
  z-index: 999;
}
body.admin-bar #masthead { top: 32px; }
/* sticky 与 body overflow-x:hidden 冲突时启用 clip 保持横向不溢出 */
@supports ( overflow: clip ) {
  body { overflow-x: clip; }
}
@media ( max-width: 921px ) {
  #masthead { top: 0; }
  body.admin-bar #masthead { top: 46px; }
}
/* bakba-mobile-toggle-fix */
.ast-mobile-header-wrap .main-header-menu-toggle,
.ast-mobile-header-wrap .ast-button-wrap .menu-toggle {
  color: #1A1A1A !important; /* 白色图标在白底页头上不可见；Astra 原生选择器优先级更高 */
}
.ast-mobile-header-wrap .main-header-menu-toggle svg { fill: #1A1A1A !important; }

/* Hero responsive overlay (<=1024px): keep headline readable over bottle image */
@media (max-width: 1024px) {
  .elementor-element-91c5561 .elementor-background-overlay {
    background: linear-gradient(90deg, rgba(250,247,242,0.97) 0%, rgba(250,247,242,0.88) 55%, rgba(250,247,242,0.25) 100%) !important;
    opacity: 1 !important;
  }
}

/* [修复] Astra 主导航行自带 margin-bottom:24px（.ast-desktop .ast-primary-header-bar.main-header-bar），
   margin 折叠溢出页头，在页头与 Hero 大图之间形成约 24px 空隙带。
   用同等特异性的选择器覆盖为 0，避免低特异性被 Astra 规则压过。 */
.ast-desktop .ast-primary-header-bar.main-header-bar,
.ast-header-break-point #masthead .ast-primary-header-bar.main-header-bar {
  margin-bottom: 0;
}

/* ===== Hero 卖点行（方案 A）：分隔线 + 三枚信任卖点 =====
   由 tmp/add-hero-usps.php 写入的元件：divider 4e52b68 / inner-section 0dd2f9a
   规格：图标 #1A1A1A 18px，文案 Inter 12px #1A1A1A medium，分隔线 #D5BB99 */
.elementor-element-4e52b68 { margin-top: 22px; max-width: 660px; }
.elementor-element-4e52b68 .elementor-divider { padding: 0; }
.elementor-element-4e52b68 .elementor-divider-separator { border-top: 1px solid #D5BB99; }

.elementor-element-0dd2f9a { margin-top: 14px; max-width: 660px; }
/* 用列内边距制造间距，避免给 flex 容器加 gap 导致 33% 列宽溢出换行 */
.elementor-element-0dd2f9a > .elementor-container > .elementor-column > .elementor-element-populated {
  padding: 0 16px 0 0;
}
.elementor-element-0dd2f9a > .elementor-container > .elementor-column:last-child > .elementor-element-populated {
  padding-right: 0;
}
.elementor-element-0dd2f9a .elementor-icon-box-wrapper { align-items: center; }
.elementor-element-0dd2f9a .elementor-icon-box-icon { line-height: 0; }
.elementor-element-0dd2f9a .elementor-icon-box-title { margin: 0; }
.elementor-element-0dd2f9a .elementor-icon-box-title span { font-size: 12px; line-height: 1.4; color: #1A1A1A; }
.elementor-element-0dd2f9a .elementor-icon i { font-size: 18px; color: #1A1A1A; }

@media ( max-width: 767px ) {
  .elementor-element-4e52b68 { margin-top: 20px; }
  .elementor-element-0dd2f9a { margin-top: 12px; }
  .elementor-element-0dd2f9a > .elementor-container > .elementor-column > .elementor-element-populated {
    padding: 0 0 9px 0;
  }
  .elementor-element-0dd2f9a > .elementor-container > .elementor-column:last-child > .elementor-element-populated {
    padding-bottom: 0;
  }
  .elementor-element-0dd2f9a .elementor-icon i { font-size: 16px; }
}
/* ===== Shop by Department 手机端：缩图 + 单行不换行 + 超出横滑 =====
   inner-section f41f567（4 个 25% 分类列），仅 ≤767px 生效，桌面/平板不变 */
@media ( max-width: 767px ) {
  .elementor-element-f41f567 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
  }
  .elementor-element-f41f567::-webkit-scrollbar { display: none; }
  .elementor-1923 .elementor-element.elementor-element-f41f567 > .elementor-container { flex-wrap: nowrap; }
  .elementor-1923 .elementor-element.elementor-element-f41f567 > .elementor-container > .elementor-column {
    width: 25% !important;
    min-width: 88px;
    flex: 0 0 auto;
  }
  .elementor-element-f41f567 .elementor-widget-image img {
    width: 64px;
    height: auto;
  }
  .elementor-element-f41f567 .elementor-spacer-inner { height: 6px !important; }
  .elementor-element-f41f567 .elementor-heading-title { font-size: 12px !important; }
}
/* ===== 分类页侧栏：品牌列表限高滚动（96 个品牌不撑长页面）===== */
.widget_brand_nav .wc-brand-list-layered-nav-product_brand,
.widget_brand_nav ul.wc-brand-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #EFE7DA transparent;
}
.widget_brand_nav .wc-brand-list-layered-nav-product_brand::-webkit-scrollbar { width: 5px; }
.widget_brand_nav .wc-brand-list-layered-nav-product_brand::-webkit-scrollbar-thumb { background: #EFE7DA; border-radius: 3px; }
/* bakba-berocket-slider */
/* ion.rangeSlider flat 主题默认红色，改为香槟金 */
#secondary .irs--flat .irs-line { background-color: #EFE7DA; }
#secondary .irs--flat .irs-bar { background-color: #1A1A1A; }
#secondary .irs--flat .irs-from,
#secondary .irs--flat .irs-to,
#secondary .irs--flat .irs-single,
#secondary .irs--flat .irs-min,
#secondary .irs--flat .irs-max { background-color: #1A1A1A; color: #FFFFFF; font-size: 11px; }
#secondary .irs--flat .irs-handle > i:first-child { background-color: #1A1A1A; }
#secondary .irs--flat .irs-handle.state_hover > i:first-child,
#secondary .irs--flat .irs-handle:hover > i:first-child,
#secondary .irs--flat .irs-handle > i:first-child { border-radius: 0; }

/* mpd-header-icons */
/* microperfumes(Dawn) 风格细线图标：账户图标避开 Astra 的 fill 着色，改用描边 */
.ast-header-account-type-icon .ahfb-svg-iconset svg path,
.ast-header-account-type-icon .ahfb-svg-iconset svg circle {
  fill: none !important;
  stroke: currentColor !important;
}
/* 搜索/购物车图标垂直居中 */
.ast-icon.icon-search svg,
.ast-icon.icon-bag svg,
.ast-icon.icon-cart svg {
  vertical-align: middle;
}
.ast-icon.icon-search svg path {
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 三图标垂直对齐修复：
   1) 移动端(≤921px)购物车图标（含数量角标）在 inline 行盒中被抬高约 9px，整体下移对齐（桌面端无此问题）；
   2) 搜索图标去掉 Astra 的 3px 视觉补偿 margin，改 flex 居中，与账户图标取齐 */
@media (max-width: 544px) {
  .site-header .ast-site-header-cart i.astra-icon.ast-icon-shopping-bag {
    position: relative;
    top: 9px;
  }
}
.site-header .ast-search-menu-icon .ast-icon.icon-search {
  display: flex;
  align-items: center;
}
.site-header .ast-search-menu-icon .ast-icon.icon-search svg {
  display: block;
  margin-top: 0 !important;
}
/* end mpd-header-icons */

/* mpd-shop-filters */
/* ===== 商店侧栏筛选（BeRocket）：折叠 + 单选 ===== */
/* 折叠标题：可点击感 + 悬停高亮 */
#secondary .bapf_sfilter .bapf_colaps_togl { cursor: pointer; }
#secondary .bapf_sfilter .bapf_colaps_togl:hover h3 { color: #1A1A1A; }
#secondary .bapf_sfilter .bapf_colaps_smb { font-size: 13px !important; color: #1A1A1A; }
/* 单选圆点：品牌色 */
#secondary .bapf_asradio2 ul li input[type=checkbox] {
  border-color: #1A1A1A;
  transition: background-color .15s ease, border-color .15s ease;
}
#secondary .bapf_asradio2 ul li input[type=checkbox]:hover { border-color: #1A1A1A; }
#secondary .bapf_asradio2 ul li input[type=checkbox]:checked {
  background-color: #1A1A1A;
  border-color: #1A1A1A;
}
/* 选中项文字高亮 */
#secondary .bapf_sfilter.bapf_ckbox ul li.checked label { color: #1A1A1A; }
/* 选项与数量计数的间距 */
#secondary .bapf_sfilter .bapf_body li .pcs { margin-left: 5px; color: #8a8a8a; font-size: .88em; }
/* end mpd-shop-filters */
/* bakba-term-desc-hide */
/* 前台隐藏 WooCommerce 术语描述（数据库里存的是中文对照，仅后台查看用） */
.term-description, .woocommerce-products-header .term-description { display: none !important; }
/* end bakba-term-desc-hide */

/* bakba-mobile-tabs */
/* 首页移动端快捷分类行（WOMEN/MEN/SHOP ALL），仅移动端显示（桌面/平板由 Elementor hidden 类隐藏） */
.bakba-mobile-tabs {
  background-color: #FFFFFF !important;
}
.bakba-mobile-tabs .elementor-button {
  background: transparent none !important;
  border: none !important;
  box-shadow: none !important;
  color: #1A1A1A !important;
  font-family: Inter, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 17px 0 !important;
  width: 100%;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
/* 点击/按压瞬间：不出现黑底，仅文字变金 */
.bakba-mobile-tabs .elementor-button:hover,
.bakba-mobile-tabs .elementor-button:focus,
.bakba-mobile-tabs .elementor-button:active,
.bakba-mobile-tabs .elementor-button:visited {
  background: transparent none !important;
  box-shadow: none !important;
  color: #A98850 !important;
}
@media (max-width: 767px) {
  .bakba-mobile-tabs .elementor-column { width: 33.33% !important; }
}
/* end bakba-mobile-tabs */
