/*
Theme Name: Hong Kong Liangwei
Theme URI: https://hkliangwei.com/
Author: Hong Kong Liangwei Limited
Author URI: https://hkliangwei.com/
Description: Scientific Beauty & Nutrition — Hong Kong brand e-commerce website with bilingual (Chinese/English) support.
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: liangwei
Tags: e-commerce, beauty, supplements, bilingual, zh-hk, woocommerce
Requires at least: 6.0
Tested up to: 6.4
*/
/*--------------------------------------------------------------
This is main CSS file that contains custom style rules used in this template
--------------------------------------------------------------*/
/*--------------------------------------------------------------
/** VARIABLES
--------------------------------------------------------------*/
:root {
    /* widths for rows and containers
     */
    --header-height       : 160px;
    --header-height-min   : 80px;
}
/* on mobile devices below 600px
 */
@media screen and (max-width: 600px) {
    :root {
        --header-height : 100px;
        --header-height-min   : 80px;
    }
}
/* Theme Colors */
:root {
    --accent-color       : #FFC43F;
    --dark-color         : #222222;
    --light-dark-color   : #727272;
    --light-color        : #fff;
    --grey-color         : #dbdbdb;
    --light-grey-color   : #fafafa;
    --primary-color      : #6995B1;
    --light-primary-color   : #eef1f3;
}

/* Fonts �?default: English */
:root {
    --heading-font        : "Cormorant Garamond", "Nunito", Georgia, serif;
    --body-font           : "Plus Jakarta Sans", "Open Sans", sans-serif;
    --logo-font           : "Plus Jakarta Sans", "Open Sans", sans-serif;
}

body {
  --bs-link-color: #333;
  --bs-link-hover-color:#333;

  --bs-link-color-rgb: 40,40,40;
  --bs-link-hover-color-rgb: 0,0,0;

  --bs-light-rgb: 248, 248, 248;

  --bs-font-sans-serif: "Plus Jakarta Sans", "Open Sans", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 2;
  --bs-body-color: #747474;

  --bs-primary: #FFC43F;
  --bs-primary-rgb: 255, 196, 63;

  --bs-success: #a3be4c;
  --bs-success-rgb: 163, 190, 76;
  
  --bs-primary-bg-subtle: #FFF9EB;
  --bs-success-bg-subtle: #eef5e5;
  
  --bs-border-color: #F7F7F7;

  --bs-secondary-rgb: 230, 243, 251;
  --bs-danger-rgb: 249, 235, 231;
  --bs-warning-rgb: 255, 249, 235;
  --bs-info-rgb: 230, 243, 250;
}
/* Language toggle button */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: #555;
  line-height: 1;
}
.lang-toggle:hover {
  border-color: #FFC43F;
  color: #FFC43F;
}
.lang-toggle.active {
  background: #FFC43F;
  border-color: #FFC43F;
  color: #fff;
}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #ffc43f;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #f7a422;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #ffc43f;
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #d3d7dd;
  --bs-btn-disabled-border-color: transparent;
}

/* 首页中英切换（与 policy 页一致逻辑）：默认中文 */
.i18n-en {
  display: none !important;
}
html[data-lang="en"] .i18n-zh {
  display: none !important;
}
html[data-lang="en"] .i18n-en {
  display: block !important;
}
html[data-lang="en"] span.i18n-en,
html[data-lang="en"] a.i18n-en:not(.btn):not(.alert-link) {
  display: inline !important;
}
html[data-lang="en"] a.i18n-en.btn {
  display: inline-block !important;
}
html[data-lang="en"] .product-item .btn-add-cart .i18n-en {
  display: inline !important;
}
html[data-lang="en"] .badge.i18n-en {
  display: inline-flex !important;
  align-items: center;
}
.btn-outline-primary {
  --bs-btn-color: #ffc43f;
  --bs-btn-border-color: #ffc43f;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ffc107;
  --bs-btn-hover-border-color: #ffc107;
  --bs-btn-focus-shadow-rgb: 13,110,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #ffc107;
  --bs-btn-active-border-color: #ffc107;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff3cd;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #fff3cd;
  --bs-gradient: none;
}
.btn-outline-light {
  --bs-btn-color: #747474;
  --bs-btn-border-color: #EFEFEF;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #EFEFEF;
  --bs-btn-hover-border-color: #EFEFEF;
  --bs-btn-focus-shadow-rgb: 248,249,250;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #EFEFEF;
  --bs-btn-active-border-color: #EFEFEF;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #EFEFEF;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #EFEFEF;
  --bs-gradient: none;
}
.btn-warning {
  --bs-btn-color: #747474;
  --bs-btn-bg: #FCF7EB;
  --bs-btn-border-color: #FCF7EB;
  --bs-btn-hover-color: #747474;
  --bs-btn-hover-bg: #FFECBE;
  --bs-btn-hover-border-color: #FFECBE;
  --bs-btn-focus-shadow-rgb: 217,164,6;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #FFECBE;
  --bs-btn-active-border-color: #FFECBE;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #FCF7EB;
  --bs-btn-disabled-border-color: #FCF7EB;
}
.btn-success {
  --bs-btn-color: #222;
  --bs-btn-bg: #EEF5E4;
  --bs-btn-border-color: #EEF5E4;
  --bs-btn-hover-color: #222;
  --bs-btn-hover-bg: #9de3c2;
  --bs-btn-hover-border-color: #9de3c2;
  --bs-btn-focus-shadow-rgb: 60,153,110;
  --bs-btn-active-color: #222;
  --bs-btn-active-bg: #9de3c2;
  --bs-btn-active-border-color: #9de3c2;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #222;
  --bs-btn-disabled-bg: #EEF5E4;
  --bs-btn-disabled-border-color: #EEF5E4;
}
.btn-danger {
  --bs-btn-color: #222;
  --bs-btn-bg: #FFEADA;
  --bs-btn-border-color: #FFEADA;
  --bs-btn-hover-color: #222;
  --bs-btn-hover-bg: #ecc9af;
  --bs-btn-hover-border-color: #ecc9af;
  --bs-btn-focus-shadow-rgb: 60,153,110;
  --bs-btn-active-color: #222;
  --bs-btn-active-bg: #ecc9af;
  --bs-btn-active-border-color: #ecc9af;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #222;
  --bs-btn-disabled-bg: #FFEADA;
  --bs-btn-disabled-border-color: #FFEADA;
}
html,
body {
  background-color: #ffffff;
  font-family: var(--body-font);
}
h1, h2, h3, h4, h5, h6,
.section-title, .section-subtitle,
.product-item h3, .product-item h4,
.banner-hero-title, .banner-side-title,
.brand-philosophy-card-title, .post-title,
.widget-title, .footer-title {
  font-family: var(--heading-font);
}
.logo-text {
  font-family: var(--logo-font);
}
/* 全站 Logo 词标：与标题区一致的高级衬线气质 */
.site-brand-wordmark {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--dark-color);
  line-height: 1.15;
}
.site-brand-wordmark .site-brand-hk {
  font-weight: 600;
  color: inherit;
}
.site-brand-wordmark .site-brand-core {
  font-weight: 700;
  color: var(--accent-color);
}
.footer-brand-mark.site-brand-wordmark {
  color: rgba(255, 255, 255, 0.92);
}
.footer-brand-mark .site-brand-core {
  color: var(--accent-color);
}
.section-title {
  font-weight: 700;
}
/* 锚点滚动时预留顶栏高度，避免标题被固定导航挡�?*/
#hero,
#category,
#trending,
#about,
#register-promo {
  scroll-margin-top: 108px;
}
@media screen and (max-width: 991px) {
  #hero,
  #category,
  #trending,
  #about,
  #register-promo {
    scroll-margin-top: 88px;
  }
}
/* 若希望全站使用与原先首屏相同的花纹底，把 body 写成�?body class="site-bg-pattern"> */
body.site-bg-pattern {
  background-color: #fdfbf8;
  background-image: url('images/background-pattern.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

/* 白底页面上的内容块：统一白卡�?+ 细边，取代零散彩色底 */
.surface-panel {
  background-color: #ffffff;
  border: 1px solid #ececec;
}
.rounded-5.surface-panel {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
}
.banner-ad.surface-panel {
  background-color: #ffffff;
}

/* 双栏明星/新品卡：暖色渐变（仅促销双卡，不含底部注册条�?*/
.section-promo-dual .banner-ad.register-promo-panel.surface-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 196, 63, 0.18);
  background-color: #faf6ef;
  background-image:
    radial-gradient(ellipse 85% 65% at 12% 18%, rgba(255, 196, 63, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 88% 78%, rgba(255, 214, 140, 0.28) 0%, transparent 52%),
    linear-gradient(168deg, #fffefb 0%, #f7f1e6 42%, #faf5ec 100%);
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.section-promo-dual .banner-ad.register-promo-panel.surface-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.35'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* 首页底部「首单注册」横条：摄影底图 + 浅色遮罩，便于阅读表�?*/
#register-promo .register-promo-signup.surface-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 196, 63, 0.2);
  background-color: #f5f0e8;
  background-image:
    linear-gradient(105deg, rgba(255, 253, 248, 0.94) 0%, rgba(255, 253, 248, 0.82) 38%, rgba(255, 250, 242, 0.72) 100%),
    url("images/bg-light.jpg");
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
}
#register-promo .register-promo-signup.surface-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, transparent 55%);
  pointer-events: none;
}
#register-promo .register-promo-signup.surface-panel > .container {
  position: relative;
  z-index: 1;
}
#register-promo .register-promo-submit-wrap {
  max-width: 280px;
}
/* 双栏推广卡（明星单品 / 新品）：内容叠在肌理层之�?*/
.banner-ad.register-promo-panel .banner-content {
  position: relative;
  z-index: 1;
}

/* 首页双卡促销：手机两列一排，内边距收紧便于并排阅�?*/
.section-promo-dual .banner-ad.register-promo-panel .banner-content {
  padding: 0.7rem 0.65rem !important;
}
.section-promo-dual .banner-ad .categories {
  font-size: 0.7rem !important;
}
.section-promo-dual .banner-ad .banner-title {
  font-size: 0.82rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}
.section-promo-dual .banner-ad .banner-content p {
  font-size: 0.65rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.section-promo-dual .banner-ad .btn {
  font-size: 0.6rem;
  padding: 0.35rem 0.5rem;
}
@media (min-width: 768px) {
  .section-promo-dual .banner-ad.register-promo-panel .banner-content {
    padding: 2.5rem 3rem !important;
  }
  .section-promo-dual .banner-ad .categories {
    font-size: inherit !important;
  }
  .section-promo-dual .banner-ad .banner-title {
    font-size: inherit;
    line-height: inherit;
    margin-bottom: inherit;
  }
  .section-promo-dual .banner-ad .banner-content p {
    font-size: inherit;
    line-height: inherit;
    margin-bottom: inherit;
  }
  /* 桌面仍保持紧凑按钮，避免「View Details」过�?*/
  .section-promo-dual .banner-ad .btn {
    font-size: 0.8125rem;
    padding: 0.45rem 1rem;
    letter-spacing: 0.04em;
  }
}

/* 关于香港量维：淡�?+ 蜜金渐变，与首单区块区分又保持全站暖�?*/
.about-livwell-panel.surface-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(163, 190, 76, 0.22);
  background-color: #f5f8f4;
  background-image:
    radial-gradient(ellipse 72% 85% at 6% 48%, rgba(163, 190, 76, 0.2) 0%, transparent 56%),
    radial-gradient(ellipse 65% 55% at 94% 18%, rgba(255, 196, 63, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 50% 42% at 78% 88%, rgba(105, 149, 177, 0.09) 0%, transparent 58%),
    linear-gradient(152deg, #fcfdfb 0%, #eef4ec 36%, #faf6ee 100%),
    repeating-linear-gradient(
      18deg,
      transparent,
      transparent 4px,
      rgba(0, 0, 0, 0.012) 4px,
      rgba(0, 0, 0, 0.012) 5px
    );
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
.about-livwell-panel.surface-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.35'/%3E%3C/svg%3E");
  opacity: 0.032;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.about-livwell-panel.surface-panel > .container {
  z-index: 1;
}
.about-livwell-panel .text-muted {
  color: #5a635c !important;
}

body {
  letter-spacing: 0.03em;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--heading-font);
  color: var(--dark-color);
  font-weight: 700;
}
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
}
.breadcrumb.text-white {
  --bs-breadcrumb-divider-color: #fff;
  --bs-breadcrumb-item-active-color: var(--bs-primary);
}
.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--bs-primary);
}
.nav-pills .nav-link {
  --bs-nav-pills-link-active-color: #111;
  --bs-nav-pills-link-active-bg: #f1f1f1;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  --bs-gutter-x: 3rem;
}
/*----------------------------------------------*/
/* 6. SITE STRUCTURE */
/*----------------------------------------------*/
/* 6.1 Header
--------------------------------------------------------------*/
/* Preloader */
.preloader-wrapper {
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 111;
  background: #fff;
}

.preloader-wrapper .preloader {
  margin: 20% auto 0;
  transform: translateZ(0);
}

.preloader:before,
.preloader:after {
  content: '';
  position: absolute;
  top: 0;
}

.preloader:before,
.preloader:after,
.preloader {
  border-radius: 50%;
  width: 2em;
  height: 2em;
  animation: animation 1.2s infinite ease-in-out;
}

.preloader {
  animation-delay: -0.16s;
}

.preloader:before {
  left: -3.5em;
  animation-delay: -0.32s;
}

.preloader:after {
  left: 3.5em;
}

@keyframes animation {
  0%,
  80%,
  100% {
    box-shadow: 0 2em 0 -1em var(--accent-color);
  }
  40% {
    box-shadow: 0 2em 0 0 var(--accent-color);
  }
}

/* *** Start editing below this line *** */
.container-fluid {
  max-width: 1600px;
}
/* 顶栏贴顶，避免浏览器/主题�?header 上方留出白条�?*/
header {
  margin-top: 0;
  padding-top: 0;
}

/* ── 移动端顶栏贴顶，内容紧跟 ─────────────────────────── */
@media screen and (max-width: 991px) {
  /* Hero 本身 py-2 �?0.5rem，移动端直接砍掉上方空间 */
  #hero {
    padding-top: 0 !important;
  }
  /* 横幅内容 padding 收紧，贴�?header */
  .banner-ad .banner-content {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

/* 桌面顶栏：纵向收紧；右侧工具区单行横向排�?*/
@media (min-width: 992px) {
  header .row.border-bottom {
    align-items: center;
  }
  header .row.border-bottom > .col-lg-2,
  header .row.border-bottom > .col-lg-3,
  header .row.border-bottom > .col-lg-5,
  header .row.border-bottom > .col-lg-6,
  header .row.border-bottom > .col-lg-4 {
    padding-top: 0;
  }
  header .row.border-bottom > .header-search-col {
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  header .search-bar,
  header .header-search-bar {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  /* 桌面：限制最大宽度，�?360px 略宽以完整显示占位，又不过度占满中间�?*/
  header .header-search-col .header-search-bar {
    width: 100%;
    max-width: min(480px, 100%);
    flex: 0 1 auto;
  }
  header .header-search-bar.row {
    align-items: center;
  }
  /* 嵌套 row 默认�?margin 会超出父列，与右侧热线区叠在一�?*/
  header .search-bar.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  header .col-lg-4.d-flex.justify-content-end,
  header .header-tools-col {
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    margin-top: 0 !important;
  }
}
@media (min-width: 1200px) {
  header .support-box {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  header .support-box--inline {
    text-align: left;
  }
}
/* minmax(0,1fr) + min-width:0：避免宽屏下网格子项把整行撑出视口（外部浏览器常见） */
#hero .col-md-12 {
  min-width: 0;
}
.banner-blocks {
  display: grid;
  grid-gap: 1.25rem;
  min-width: 0;
  width: 100%;
}

/* 桌面（≥1120px）：左主横幅 + 右侧两张侧卡上下叠放（与窄屏竖排逻辑一致，侧卡更宽、文案不易截断） */
@media screen and (min-width: 1120px) {
  .banner-blocks {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: stretch;
  }
  .block-1 { grid-area: 1 / 1 / 3 / 8; }
  .block-2 { grid-area: 1 / 8 / 2 / 13; }
  .block-3 { grid-area: 2 / 8 / 3 / 13; }
}

/* 平板 / 较窄窗口：主横幅单独一行；两张侧卡下一行左右并排（避免仅上下叠两张�?*/
@media screen and (min-width: 576px) and (max-width: 1119px) {
  .banner-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    row-gap: 0.75rem;
    column-gap: 0.65rem;
  }
  .block-1 { grid-area: 1 / 1 / 2 / 3; }
  .block-2 { grid-area: 2 / 1 / 3 / 2; }
  .block-3 { grid-area: 2 / 2 / 3 / 3; }
  .banner-ad .swiper-pagination {
    bottom: 12px;
  }
}

/* 窄屏手机：三块竖�?*/
@media screen and (max-width: 575px) {
  .banner-blocks {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 0.35rem;
    column-gap: 0.5rem;
  }
  .block-1 { grid-area: 1 / 1 / 2 / 2; }
  .block-2 { grid-area: 2 / 1 / 3 / 2; }
  .block-3 { grid-area: 3 / 1 / 4 / 2; }
  .banner-ad .swiper-pagination {
    bottom: 12px;
  }
}

/* banner ad */
.banner-ad {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
}
.banner-ad.blue {
  background: #e6f3fb;
}
.banner-ad .swiper-pagination {
  bottom: 28px;
  left: 0;
  right: 0;
}
.banner-ad.hero-banner .swiper-pagination {
  z-index: 4;
}
.banner-ad .swiper-pagination .swiper-pagination-bullet {
  width: 16px;
  height: 16px;
  margin: 4px;
  background: #FFF;
  opacity: 1;
  transition: background 0.3s ease-out;
}
.banner-ad .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active{
  background: #FFC43F;
}
.banner-ad .swiper-slide {
  min-height: 630px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

/* 主轮播：大图�?<img>（与 HTML 同源解析），避免 file:// 或中文路径下 CSS url() 不加�?*/
.banner-ad.hero-banner.block-1 {
  background-color: transparent;
}
.banner-slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.banner-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.banner-ad .swiper-slide.banner-slide--1::after,
.banner-ad .swiper-slide.banner-slide--2::after,
.banner-ad .swiper-slide.banner-slide--3::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.banner-ad .swiper-slide.banner-slide--1::after {
  background: linear-gradient(105deg, rgba(255, 252, 248, 0.98) 0%, rgba(255, 252, 248, 0.92) 22%, rgba(255, 252, 248, 0.75) 38%, rgba(255, 252, 248, 0.28) 55%, transparent 72%);
}
.banner-ad .swiper-slide.banner-slide--2::after {
  background: linear-gradient(105deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 250, 242, 0.92) 22%, rgba(255, 250, 242, 0.75) 38%, rgba(255, 250, 242, 0.28) 55%, transparent 72%);
}
.banner-ad .swiper-slide.banner-slide--3::after {
  background: linear-gradient(105deg, rgba(248, 252, 255, 0.98) 0%, rgba(248, 252, 255, 0.92) 22%, rgba(248, 252, 255, 0.75) 38%, rgba(248, 252, 255, 0.28) 55%, transparent 72%);
}

/* 右侧两卡：同样用 <img> 铺底 */
.banner-side-card {
  min-height: 300px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.banner-side-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.banner-side-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.banner-side-card--1 .banner-side-card-media img {
  object-position: 58% center;
}
.banner-side-card--2 .banner-side-card-media img {
  object-position: 48% center;
}
.banner-side-card--1::after,
.banner-side-card--2::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 35%, rgba(255, 255, 255, 0.45) 58%, rgba(255, 255, 255, 0.08) 82%, transparent 100%);
}

@media screen and (max-width: 1140px) {
  .banner-side-card {
    min-height: 260px;
  }
}

.banner-ad.hero-banner .swiper-slide > .row.banner-content {
  min-height: 630px;
  position: relative;
  z-index: 2;
}
.banner-side-card .banner-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
}

/* 主轮播：统一主标题层级，避免与侧卡抢视线 */
.banner-ad.large.hero-banner .banner-hero-title {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--dark-color);
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  margin: 0 0 0.75rem;
}
.banner-ad.large.hero-banner .banner-content .categories {
  font-family: var(--heading-font);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a227;
  margin-bottom: 0.75rem !important;
}
.banner-ad.large.hero-banner .banner-content .content-wrapper > p {
  max-width: 26rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #5a5a5a;
  margin-bottom: 0;
}

/* 右侧两卡：次级信息区，字阶明显小于主轮播 */
.banner-side-eyebrow {
  display: block;
  font-family: var(--heading-font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 0.35rem;
}
.banner-side-title {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark-color);
  margin: 0 0 0.5rem;
}
.banner-side-lead {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #6e6e6e;
  margin: 0 0 1rem;
  max-width: 17rem;
}
.banner-side-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark-color);
  padding: 0;
  margin-top: auto;
  align-self: flex-start;
  gap: 0.35rem;
}
.banner-side-link:hover {
  color: #111;
}
.banner-side-link svg {
  flex-shrink: 0;
  opacity: 0.65;
}

/* .banner-ad .banner-content {
  padding: 52px;
}
.banner-ad.large .banner-content {
  padding: 90px;
} */
.banner-ad .banner-content .categories {
  font-family: 'Garamond';
  font-size: 37px;
  text-transform: capitalize;
  color: var(--dark-color);
}
.banner-ad .banner-content .sale {
  position: relative;
  display: inline-block;
}
.banner-ad .banner-content .sale:before {
  content: '';
  width: 80px;
  border-bottom: 1px solid #111;
  position: absolute;
  bottom: 6px;
}
.banner-ad .banner-content .sale:after {
  content: 'SALE';
  font-family: var(--body-font);
  position: absolute;
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #252525;
  bottom: 0;
  right: 0;
}
.banner-ad .banner-content .banner-title {
  letter-spacing: 0.02em;
  font-size: 33px;
}
.banner-ad.large .banner-content .categories {
  color: var(--accent-color);
}
.banner-ad.large .banner-content .banner-title {
  font-size: 54px;
}

/* Swiper carousel */
.swiper-prev,
.swiper-next {
  width: 38px;
  height: 38px;
  line-height: 38px;
  background: #F1F1F1;
  color: #222222;
  padding: 0;
  text-align: center;
  border-radius: 10px;
  --bs-btn-border-color: transparent;
  --bs-btn-active-bg: #ec9b22;
  --bs-btn-active-border-color: transparent;
  --bs-btn-hover-bg: #FFC43F;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-disabled-color: #ccc;
  --bs-btn-disabled-bg: #eaeaea;
  --bs-btn-disabled-border-color: #eaeaea
}
.swiper-prev:hover,
.swiper-next:hover {
  background: #FFC43F;
}
.btn-link {
  margin-right: 30px;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  text-align: right;
  text-transform: capitalize;
  color: #787878;
}
/* category carousel */
.category-carousel.swiper .swiper-wrapper {
  align-items: stretch;
}
.category-carousel .swiper-slide {
  height: auto;
  display: flex;
}
.category-carousel .category-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
  padding: 8px 10px 12px;
  margin: 4px 0;
  box-sizing: border-box;
  gap: 10px;
  transition: color 0.2s ease-out;
}
.category-carousel .category-item:hover {
  transform: none;
  box-shadow: none;
}
.category-carousel .category-item:hover .category-title {
  color: #111;
}
/* 仅作对齐用，无圆框、无�?*/
.category-carousel .category-item-icon-wrap {
  width: auto;
  height: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.category-carousel .category-item-icon-wrap img {
  width: auto;
  height: auto;
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: saturate(0.72);
}
.category-carousel .category-item .category-icon-placeholder {
  width: 76px;
  height: 76px;
  min-height: 76px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.category-carousel .category-item .category-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: #333;
  margin: 0;
  max-width: 11em;
}
@media screen and (min-width: 1200px) {
  .category-carousel .category-item-icon-wrap img {
    max-width: 84px;
    max-height: 84px;
  }
  .category-carousel .category-item .category-icon-placeholder {
    width: 84px;
    height: 84px;
    min-height: 84px;
    font-size: 2.65rem;
  }
  .category-carousel .category-item .category-title {
    font-size: 16px;
  }
}

/* 品牌理念：全宽三等分网格，三卡同宽同�?*/
.brand-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  align-items: stretch;
}
@media screen and (max-width: 991px) {
  .brand-philosophy-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.brand-philosophy-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}
.brand-philosophy-card .card-body {
  flex: 1 1 auto;
}
.brand-philosophy-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}
.brand-philosophy-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.brand-philosophy-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.brand-philosophy-card-title {
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
}
.brand-philosophy-desc {
  flex: 1 1 auto;
  min-height: 4.5rem;
  line-height: 1.55;
}

/* brand carousel */
.brand-carousel .brand-item {
  background: #FFFFFF;
  border: 1px solid #FBFBFB;
  box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 16px;
}
.brand-carousel .brand-item img {
  width: 100%;
  border-radius: 12px;
}
.brand-carousel .brand-item .brand-details {
  margin-left: 15px;
}
.brand-carousel .brand-item .brand-title {
  margin: 0;
}

/* product tabs */
.product-tabs .nav-tabs {
  justify-content: flex-end;
  border: none;
  
  --bs-nav-link-hover-color: #111;
  --bs-nav-link-color: #555;
  --bs-nav-tabs-link-border-color: #fff;
  --bs-nav-tabs-link-hover-border-color: transparent;
  --bs-nav-tabs-link-active-border-color: #fff;
}
/* 手机/平板：分类与「产品展示」标题左对齐（勿整排贴右�?*/
@media (max-width: 991.98px) {
  .product-tabs .nav-tabs {
    justify-content: flex-start;
  }
  .product-tabs-header .product-tabs-nav-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding-left: 0;
  }
  .product-tabs-header .nav-tabs {
    margin-left: 0;
    padding-left: 0;
    width: 100%;
  }
  .product-tabs-header .nav-tabs .nav-link:first-child {
    margin-left: 0;
    padding-left: 0;
  }
}
@media (min-width: 992px) {
  .product-tabs .nav-tabs {
    justify-content: flex-end;
  }
}
.product-tabs .nav-tabs .nav-link.active, 
.product-tabs .nav-tabs .nav-item.show .nav-link {
  /* border: none; */
  border-bottom: 3px solid var(--accent-color);
}

/* product-grid */
/* .product-grid {
  gap: 25px;
} */
.product-item {
  position: relative;
  isolation: isolate;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid #F1EEE7;
  box-shadow: 0px 8px 24px rgba(20, 20, 20, 0.05);
  border-radius: 16px;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease-out;
  cursor: pointer;
}
.product-item:hover {
  box-shadow: 0px 18px 36px rgba(20, 20, 20, 0.08);
}

/* 加入购物袋：左对齐（全站商品卡一致）；勿�?.nav-link（会继承灰字像禁用） */
.product-item .btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  align-self: flex-start;
  width: auto;
  color: #222 !important;
  font-weight: 600;
  text-decoration: none;
  gap: 0.35rem;
}
.product-item .btn-add-cart:hover {
  color: #000 !important;
}
.product-item .btn-add-cart svg {
  flex-shrink: 0;
  color: currentColor;
}

/* 产品展示：默认仅显示�?8 个，展开后显示全部（DOM 不删�?*/
#trending .tab-content:not(.product-showcase--expanded) .product-grid > .col.product-showcase-col--extra {
  display: none !important;
}
.product-showcase-more-wrap {
  width: 100%;
}
.product-item h3 {
  display: block;
  width: 100%;
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  text-transform: capitalize;
  color: #333333;
  margin: 0;
  min-height: 3em;
}
.product-item figure {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #FAF8F4 0%, #F5F2EC 100%);
  border: 1px solid rgba(204, 195, 178, 0.26);
  border-radius: 18px;
  text-align: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-bottom: 18px;
}
.product-item figure > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.product-item figure img,
.product-item .tab-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
}
.product-item .btn-wishlist {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #DED9CF;
  box-shadow: 0 8px 20px rgba(24, 24, 24, 0.04);
  transition: all 0.3s ease-out;
}
.product-item .btn-wishlist:hover {
  background: rgb(240, 56, 56);
  color: #fff;
}
.product-item .badge.position-absolute {
  top: 16px;
  left: 16px;
  z-index: 5;
}
.product-item .product-category-tag {
  position: relative;
  z-index: 2;
}
.product-item .qty {
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9D9D9D;
}
.product-item .rating {
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  text-transform: capitalize;
  color: #222222;
}
.product-item .rating iconify-icon {
  color: #FFC43F;
}
.product-item .price {
  display: block;
  width: 100%;
  font-weight: 600;
  font-size: 22px;
  line-height: 30px;
  text-transform: capitalize;
  color: #222222;
}
.product-item .product-qty {
  width: 85px;
}
.product-item .btn-link {
  text-decoration: none;
}
.product-item #quantity {
  height: auto;
  width: 28px;
  text-align: center;
  border: none;
  margin: 0;
  padding: 0;
}
.product-item .btn-number {
  width: 26px;
  height: 26px;
  line-height: 1;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  color: #222;
  padding: 0;
}

#product-grid .product-card-item {
  display: flex;
}

#product-grid .product-card-item > .product-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

#product-grid .product-card-item .product-item > .d-flex.align-items-center.justify-content-between {
  margin-top: auto;
}

/* cart */
.cart .product-qty {
  min-width: 130px;
}

/* floating image */
.image-float {
  margin-top: -140px;
  margin-bottom: -140px;
}
@media screen and (max-width:991px) {
  .image-float {
    margin: 0;
  }
}
 /* post item */
.post-item .post-meta {
  font-size: 0.8rem;
  line-height: 1;
}
.post-item .post-meta svg {
  margin-right: 5px;
}

/* 量维护肤小课堂：卡片�?flex 列时避免头图被纵向拉变形 */
#latest-blog .post-item.card > .image-holder {
  flex: 0 0 auto;
}
#latest-blog .post-item .image-holder a {
  display: block;
}
#latest-blog .post-item .image-holder img.card-img-top {
  width: 100%;
  height: auto;
  display: block;
}

/* 手机顶栏：单行左右分布，图标与菜单按钮统一尺寸 */
.header-mobile-bar .header-mobile-actions {
  gap: 0.2rem;
}
.header-mobile-bar .header-mobile-icon {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  flex-shrink: 0;
}
.header-mobile-bar .header-mobile-menu-btn {
  width: 2.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
}
.header-mobile-bar .header-mobile-menu-btn .header-mobile-menu-icon {
  display: block;
  color: #222;
}
@media screen and (max-width: 380px) {
  .header-mobile-bar .header-mobile-icon {
    width: 2.1rem;
    height: 2.1rem;
  }
  .header-mobile-bar .header-mobile-icon svg {
    width: 18px;
    height: 18px;
  }
  .header-mobile-bar .header-mobile-menu-btn {
    width: 2.1rem;
    min-width: 2.1rem;
    height: 2.1rem;
  }
}

@media screen and (max-width: 991px) {
  /* offcanvas menu */
  .offcanvas-body .nav-item {
    font-weight: 700;
    border-bottom: 1px solid #d1d1d1;
  }
  .offcanvas-body .filter-categories {
    width: 100%;
    margin-bottom: 20px !important;
    border: 1px solid #d1d1d1 !important;
    padding: 14px;
    border-radius: 8px;
  }
  /* dropdown-menu */
  .dropdown-menu {
    padding: 0;
    border: none;
    line-height: 1.4;
    font-size: 0.9em;
  }
  .dropdown-menu a {
    padding-left: 0;
  }
  .dropdown-toggle::after {
    position: absolute;
    right: 0;
    top: 21px;
  }
}

/* single product */
/* 热门搜索标签 */
.trending-tag {
  background-color: #fff;
  border: 1.5px solid #f0ede8;
  transition: all 0.25s ease;
}
.trending-tag:hover {
  background-color: #fff9e6;
  border-color: #FFC43F;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 196, 63, 0.18);
}
.trending-tag .trending-icon {
  font-size: 1.6rem;
  line-height: 1;
}

/* 轮播产品区：卡片下边距收紧，拉近与首单区�?*/
.section-carousel-products .product-item {
  margin-bottom: 0.6rem;
}
@media (min-width: 768px) {
  .section-carousel-products .product-item {
    margin-bottom: 0.85rem;
  }
}

/* Best Sellers / Star Products 轮播：同排卡片等高，标题区预留行数，底部操作条贴底对�?*/
.section-carousel-products .products-carousel .swiper-wrapper {
  align-items: stretch;
}
.section-carousel-products .products-carousel .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}
.section-carousel-products .products-carousel .product-item.swiper-slide {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}
.section-carousel-products .product-item figure {
  flex-shrink: 0;
}
.section-carousel-products .product-item h3 {
  min-height: 4.5em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.section-carousel-products .product-item > .d-flex.align-items-center.justify-content-between {
  margin-top: auto;
}

/* 热门搜索：横向胶�?+ 左大右宫格，与上方轮播卡片区�?*/
.hot-search-pills-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  touch-action: pan-x;
}
.hot-search-pill {
  flex: 0 0 auto;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #2c2c2c;
  background: #f4f1eb;
  border: 1px solid #e8e2d8;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hot-search-pill:hover {
  background: #fff9e6;
  border-color: #ffc43f;
  color: #111;
}
.hot-search-bento {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.5rem;
}
@media (max-width: 575.98px) {
  .hot-search-bento {
    flex-direction: column;
  }
}
.hot-search-feature {
  flex: 1 1 38%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: #252018;
  background: linear-gradient(145deg, #f3f8ff 0%, #f9f6ef 88%);
  border: 1px solid rgba(120, 160, 220, 0.22);
}
.hot-search-feature:hover {
  border-color: rgba(255, 196, 63, 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.hot-search-feature-emoji {
  font-size: 1.85rem;
  line-height: 1;
}
.hot-search-feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  text-align: left;
}
.hot-search-feature-title {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.3;
}
.hot-search-feature-sub {
  font-size: 0.68rem;
  color: #666;
  line-height: 1.35;
}
.hot-search-bento-side {
  flex: 1 1 62%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  align-content: start;
}
.hot-search-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.8rem;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  color: #333;
  background: #fafafa;
  border: 1px solid #ececec;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hot-search-cell:hover {
  border-color: #ffc43f;
  background: #fffdf6;
}
.hot-search-cell--accent {
  background: linear-gradient(165deg, #fffbf2 0%, #fff3d8 100%);
  border-color: rgba(255, 196, 63, 0.4);
}
.hot-search-cell--wide {
  grid-column: 1 / -1;
}
.hot-search-cell-ico {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

/* 页脚上方四项服务：手机起即横排四列；大屏保留副标�?*/
#service-highlights .service-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-left: 0;
  margin-right: 0;
}
#service-highlights .service-highlights-grid > .col {
  width: 100%;
  max-width: none;
  flex: none;
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 991px) {
  #service-highlights > .container-fluid {
    --bs-gutter-x: 0.75rem;
    padding-left: max(0.5rem, calc(var(--bs-gutter-x) * 0.5));
    padding-right: max(0.5rem, calc(var(--bs-gutter-x) * 0.5));
  }
  #service-highlights .service-highlights-grid .card {
    margin-bottom: 0 !important;
  }
  #service-highlights .service-highlights-grid .card > .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    --bs-gutter-x: 0;
  }
  #service-highlights .service-highlights-grid .card > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
  #service-highlights .service-highlights-grid .card svg {
    width: 22px;
    height: 22px;
  }
  #service-highlights .service-highlights-grid .card-body h5 {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
  }
  #service-highlights .service-highlights-grid .card-text {
    display: none !important;
  }
}
@media (min-width: 992px) {
  #service-highlights .service-highlights-grid {
    gap: 1.5rem;
  }
  #service-highlights .service-highlights-grid .card-body h5 {
    font-size: inherit;
  }
  #service-highlights .service-highlights-grid .card-text {
    display: block !important;
  }
}

/* 产品展示区块：窄屏居�?+ 左右留白；较宽手机上限宽，两侧自动留空（首页 + 产品列表页） */
@media (max-width: 991.98px) {
  #trending > .container-fluid,
  .products-page-main #trending > .container-fluid {
    width: 100%;
    max-width: min(100%, 25rem); /* ~400px：Pro Max 等宽屏手机两侧留出对称空白，整体视觉居中 */
    margin-left: auto;
    margin-right: auto;
    padding-left: max(1.125rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.125rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    overflow-x: visible; /* �?clip，否则内层分�?Tab 无法横向滑动 */
  }
  #trending .bootstrap-tabs,
  #trending .tab-content,
  #trending .tab-pane,
  .products-page-main #trending .bootstrap-tabs,
  .products-page-main #trending .tab-content,
  .products-page-main #trending .tab-pane {
    max-width: 100%;
  }
  #trending .product-grid.row,
  .products-page-main #trending .product-grid.row {
    --bs-gutter-x: 1.15rem;
    max-width: 100%;
    overflow-x: clip;
  }
  #trending .product-grid > .col,
  .products-page-main #trending .product-grid > .col {
    min-width: 0;
  }
  #trending .product-item,
  .products-page-main #trending .product-item {
    max-width: 100%;
    box-sizing: border-box;
  }
  #trending .product-item figure,
  .products-page-main #trending .product-item figure {
    max-width: 100%;
    overflow: hidden;
  }
  #trending .product-item figure img,
  .products-page-main #trending .product-item figure img {
    max-width: 100%;
    height: auto;
  }
}
@media (max-width: 575.98px) {
  #trending .product-item,
  .products-page-main #trending .product-item {
    padding: 10px 8px;
  }
  #trending .product-item .btn-wishlist,
  .products-page-main #trending .product-item .btn-wishlist {
    width: 36px;
    height: 36px;
    top: 10px;
    right: 8px;
  }
}

/* 产品展示：分�?Tab 单行横向滑动（触�?滚轮�?*/
.product-tabs-header .product-tabs-nav-wrap {
  min-width: 0;
  overflow: hidden;
}
.product-tabs-header .nav-tabs.product-tabs-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: thin;
  gap: 0.2rem;
  width: 100%;
  max-width: 100%;
}
.product-tabs-header .nav-tabs.product-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}
.product-tabs-header .nav-tabs.product-tabs-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}
.product-tabs-header .nav-tabs {
  border-bottom: 0;
  gap: 0.15rem;
}
.product-tabs-header .nav-tabs .nav-link {
  white-space: nowrap;
  font-size: 0.8rem;
  flex: 0 0 auto;
}
@media (min-width: 768px) {
  .product-tabs-header .nav-tabs .nav-link {
    font-size: inherit;
  }
}

/* 商品卡：类目标签（胶囊角标） */
.product-category-tag {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5c4a1e;
  background: linear-gradient(145deg, #fffbf0 0%, #fff3d6 100%);
  border: 1px solid rgba(255, 196, 63, 0.5);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
@media (min-width: 576px) {
  .product-category-tag {
    font-size: 0.68rem;
    padding: 0.15rem 0.55rem;
  }
}

/* 手机双列产品卡：压缩字号与按钮，避免挤爆 */
@media (max-width: 575px) {
  #trending .product-item h3,
  .products-page-main .product-item h3 {
    font-size: 0.8rem;
    line-height: 1.25;
  }
  #trending .product-item .qty,
  #trending .product-item .rating,
  .products-page-main .product-item .qty,
  .products-page-main .product-item .rating {
    font-size: 0.68rem;
  }
  #trending .product-item .price,
  .products-page-main .product-item .price {
    font-size: 0.9rem;
  }
  #trending .product-item .d-flex.align-items-center.justify-content-between,
  .products-page-main .product-item .d-flex.align-items-center.justify-content-between {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.35rem;
  }
  .product-item .btn-add-cart {
    font-size: 0.62rem;
  }
  #trending .product-item .product-qty,
  .products-page-main .product-item .product-qty {
    max-width: none;
  }
}

/* 会员登录 Modal 样式补充 */
#loginModal .modal-content {
  border-top: 4px solid #FFC43F;
}
#loginModal .modal-header {
  background: linear-gradient(160deg, #fffdf5 0%, #faf6ee 100%);
}

/* product-thumbnail-slider */
.product-thumbnail-slider {
  height: 740px;
}
@media screen and (max-width:992px) {
  .product-thumbnail-slider {
    margin-top: 20px;
    height: auto;
  }
}
@media screen and (min-width:992px) {
  .product-thumbnail-slider {
    height: 520px;
  }
}
@media screen and (min-width:1200px) {
  .product-thumbnail-slider {
    height: 740px;
  }
}

/* ── 动态特�?─────────────────────────────────────── */

/* 漂浮动画（用于装饰元素） */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
/* 金色光晕脉冲 */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px 0 rgba(255,196,63,0.35); }
  50%       { box-shadow: 0 0 20px 6px rgba(255,196,63,0.65); }
}
/* 渐入上滑（备用，不用 AOS 时） */
@keyframes slide-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 进度条填�?*/
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
/* 呼吸�?*/
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}
/* 文字流光 */
@keyframes text-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ── 入场动画样式 ─────────────────────────────────── */
.anim-float {
  animation: float 4s ease-in-out infinite;
}
.anim-glow {
  animation: glow-pulse 2.4s ease-in-out infinite;
}
.anim-breathe {
  animation: breathe 3s ease-in-out infinite;
}

/* ── 产品卡片悬浮 ─────────────────────────────────── */
.product-item {
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease;
}
.product-item:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
}
/* 图片悬浮放大 */
.product-item .tab-image {
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.product-item:hover .tab-image {
  transform: scale(1.08);
}

/* ── 按钮悬浮 ─────────────────────────────────────── */
.btn-add-cart,
.btn-primary {
  transition: background .22s ease, transform .15s ease, box-shadow .22s ease;
}
.btn-add-cart:hover {
  background: #e6a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,196,63,.45);
}
.btn-add-cart:active {
  transform: translateY(0) scale(.96);
  box-shadow: none;
}

/* ── 导航链接悬浮下划�?────────────────────────────── */
.navbar-nav .nav-link {
  position: relative;
  transition: color .2s ease;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--accent-color);
  transition: width .25s ease, left .25s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
  left: 0;
}

/* ── 分类标签滚动�?────────────────────────────────── */
.product-tabs-scroll::-webkit-scrollbar { height: 3px; }
.product-tabs-scroll::-webkit-scrollbar-track { background: #f1f1f1; }
.product-tabs-scroll::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 2px; }

/* ── 服务卡片悬浮 ─────────────────────────────────── */
.service-card {
  transition: transform .28s ease, box-shadow .28s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

/* ── 热搜 Pill 悬浮 ───────────────────────────────── */
.hot-search-pill {
  transition: background .2s ease, color .2s ease, transform .18s ease;
}
.hot-search-pill:hover {
  background: var(--accent-color);
  color: #222 !important;
  transform: translateY(-2px) scale(1.04);
}

/* ── 促销 banner 悬浮 ──────────────────────────────── */
.banner-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

/* ── 模态框入场 ───────────────────────────────────── */
.modal.fade .modal-dialog {
  transform: scale(.94) translateY(16px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s ease;
  opacity: 0;
}
.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ── 按钮涟漪效果 ─────────────────────────────────── */
.ripple-wrap {
  position: relative;
  overflow: hidden;
}
.ripple-wrap .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  width: 0; height: 0;
  transform: scale(0);
  animation: ripple-out .55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-out {
  to { transform: scale(4); opacity: 0; }
}

/* ── Hero 文字动画 ────────────────────────────────── */
.hero-animated-text {
  display: inline-block;
  animation: slide-up .7s ease-out both;
}
.hero-animated-text:nth-child(2) { animation-delay: .15s; }
.hero-animated-text:nth-child(3) { animation-delay: .3s;  }
.hero-animated-text:nth-child(4) { animation-delay: .45s; }

/* ── Logo 悬浮发光 ────────────────────────────────── */
.navbar-brand:hover .brand-glow {
  animation: glow-pulse 1.5s ease-in-out infinite;
}

/* ── 滚动条美�?───────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: #fafafa; }
::-webkit-scrollbar-thumb  { background: var(--accent-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #e6a800; }

/* ── 移动端优�?───────────────────────────────────── */
@media (max-width: 768px) {
  .product-item:hover { transform: none; }
  .product-item:hover .tab-image { transform: none; }
  .service-card:hover { transform: none; }
}
