/* =============================================
   home.css — Home 页面模块样式
   依赖 common.css 所提供的 CSS 变量
   ============================================= */

/* =============================================
   LAYOUT — 页面骨架
   ============================================= */
.page-home {
  background-color: #191919;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background-color: var(--color-text-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 顶栏：logo + 搜索 + 用户操作 */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo img {
  height: 96px;
  width: auto;
  object-fit: contain;
}

/* 搜索栏 */
.header-search {
  flex: 1;
  max-width: 680px;
  position: relative;
}

/* 导航栏内移动端搜索框（默认隐藏，≤768px 展示） */
.nav-search {
  display: none;
  position: relative;
  flex: 1;
  min-width: 0;
}

/* =============================================
   MOBILE CATEGORIES DRAWER
   ============================================= */
.mobile-cats-drawer {
  display: none;
  /* shown only ≤768px via .is-open */
}

@media (max-width: 768px) {

  /* site-header: positioning context for absolute drawer */
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    overflow: visible !important;
  }

  .mobile-cats-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    /* PC/tablet: half-screen from left */
    width: 50%;
    background: #fff;
    z-index: 999;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-top: 1px solid var(--color-border);
  }

  .mobile-cats-drawer.is-open {
    display: block;
  }

  .m-cats-inner {
    padding: 4px 0 8px;
  }

  /* Row: top-level item or link */
  .m-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
    color: var(--color-text-dark);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
    box-sizing: border-box;
  }

  .m-cat-row:active,
  .m-cat-row:hover {
    color: var(--color-primary);
    background: rgba(227, 30, 36, 0.05);
  }

  .m-cat-row:hover .m-cat-chevron {
    background-color: var(--color-primary);
  }

  /* Toggle (has children) */
  .m-cat-toggle {
    font-weight: 500;
  }

  .m-cat-item--open>.m-cat-toggle {
    color: var(--color-primary);
    background: rgba(227, 30, 36, 0.05);
  }

  /* Chevron icon */
  .m-cat-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
    background-color: #999;
    -webkit-mask: url('/static/home/icon/shop-chevron-down.svg') center / contain no-repeat;
    mask: url('/static/home/icon/shop-chevron-down.svg') center / contain no-repeat;
    transition: transform 0.2s, background-color 0.2s;
  }

  .m-cat-item--open>.m-cat-toggle .m-cat-chevron {
    transform: rotate(180deg);
    background-color: var(--color-primary);
  }

  /* Level-1 sub */
  .m-cat-sub {
    display: none;
  }

  .m-cat-sub.is-open {
    display: block;
  }

  .m-cat-sub>.m-cat-row,
  .m-cat-sub>.m-cat-item>.m-cat-row {
    padding-left: 36px;
    font-size: 14px;
    font-weight: 400;
  }

  .m-cat-sub>.m-cat-item--open>.m-cat-toggle {
    color: var(--color-primary);
    background: rgba(227, 30, 36, 0.04);
  }

  /* Level-2 sub */
  .m-cat-sub--l2 {
    background: #fafafa;
  }

  .m-cat-sub--l2 .m-cat-row {
    padding-left: 52px;
    font-size: 13px;
    color: var(--color-text-muted);
  }

  /* Leaf link */
  .m-cat-leaf {
    display: block;
    padding: 10px 20px 10px 52px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
  }

  .m-cat-leaf:hover {
    color: var(--color-primary);
    background: #f5f5f5;
  }
}

.header-search-input {
  width: 100%;
  height: 48px;
  padding: 0 56px 0 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--color-text-body);
  background: #fff;
  transition: border-color var(--transition-base);
}

.header-search-input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.header-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.header-search-btn:hover {
  background: var(--color-primary-hover);
}

.header-search-btn svg,
.header-search-btn img {
  width: 18px;
  height: 18px;
}

.header-search-btn svg {
  stroke: #fff;
}

.header-search-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* 用户工具区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.action-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.action-icon-btn:hover {
  opacity: 0.8;
}

.action-icon-btn svg,
.action-icon-btn img {
  width: 24px;
  height: 24px;
}

.action-icon-btn svg {
  stroke: #fff;
}

.action-icon-btn img {
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.action-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.action-badge--green {
  background: #28a745;
}

/* 用户下拉菜单触发器 */
.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.header-user__name {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.header-user svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  transition: transform var(--transition-base);
}

.header-user .chevron-down-svg {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform var(--transition-base);
}

.header-user.open svg {
  transform: rotate(180deg);
}

.header-user.open .chevron-down-svg {
  transform: rotate(180deg);
}

/* 用户头像占位 — 覆盖 .header-user svg 的 14px 规则 */
.user-avatar,
.header-user .user-avatar {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

/* 导航栏 */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 52px;
  background: var(--color-text-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-link {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Vehicle Fitment 按钮 */
.btn-vehicle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.btn-vehicle:hover {
  background: var(--color-primary-hover);
}

.btn-vehicle svg,
.btn-vehicle img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-vehicle svg {
  stroke: #fff;
}

.btn-vehicle img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.product-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px
}

.product-card__sku {
  margin: 0;
  font-size: 13px;
  color: #666;
  display: inline-block
}

.product-card__meta-row .stock-badge {
  position: static !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
}

.product-card__meta-row .stock-badge__dot {
  margin-right: 6px
}

/* =============================================
   BANNER / HERO SLIDER
   ============================================= */
.home-banner {
  position: relative;
  overflow: hidden;
  height: 560px;
  background: #111;
}

@media (max-width: 768px) {
  .home-banner {
    height: 320px;
  }
}

/* ---------- 移动端 Header 优化（覆盖全局样式，放在文件尾部以确保优先级） ---------- */
@media (max-width: 480px) {
  .container {
    padding: 0 12px !important;
    max-width: 100% !important;
  }

  .header-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    height: auto !important;
    background: var(--color-text-dark) !important;
  }

  .header-logo img {
    height: 32px;
    width: auto;
    margin-right: 8px;
  }

  /* 搜索已移至导航栏，header-top 里保持隐藏 */
  .header-search {
    display: none !important;
  }

  /* 导航内搜索框在 480px 下的输入框尺寸 */
  .nav-search .header-search-input {
    height: 36px !important;
    padding: 0 40px 0 10px !important;
    font-size: 13px !important;
  }

  .nav-search .header-search-btn {
    right: 4px;
    width: 32px !important;
    height: 32px !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .action-icon-btn {
    width: 28px !important;
    height: 28px !important;
  }

  .action-icon-btn img,
  .action-icon-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .header-user__name {
    display: none;
  }

  .header-nav {
    padding: 0 12px !important;
    height: 44px !important;
    gap: 6px !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
  }

  /* 480px 下 Vehicle Fitment 更紧凑 */
  .btn-vehicle-fitment {
    padding: 0 8px !important;
    font-size: 12px !important;
    gap: 4px !important;
    height: 34px !important;
  }

  .btn-vehicle-fitment img {
    width: 14px !important;
    height: 14px !important;
  }

  /* All Categories 按钮 */
  .nav-cat--filters {
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  /* 避免 sticky header 引起的布局溢出（右侧出现空白列） */
  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
  }

  /* 防止任意元素导致横向滚动出现右侧空白 */
  html,
  body {
    overflow-x: hidden !important;
  }

  /* 减少 banner 在窄屏下的高度，避免遮挡 */
  .banner-slide__content {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 20px;
  }
}

.banner-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.banner-slide__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.banner-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
}

.banner-slide__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 20px;
}

.banner-slide__text {
  max-width: 600px;
}

.banner-slide__tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.banner-slide__title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.banner-slide__desc {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 480px;
}

.banner-slide__cta {
  z-index: 10;
  display: inline-flex;
  align-items: center;
  height: 41px;
  padding: 0 32px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.banner-slide__cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

/* 左右箭头 */
.banner-arrow {
  position: absolute;
  top: 43%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-base);
  z-index: 10;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.banner-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.banner-arrow:active {
  background: rgba(255, 255, 255, 0.35);
}

.banner-arrow:focus {
  outline: none;
}

.banner-arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.banner-arrow svg,
.banner-arrow img {
  width: 24px;
  height: 24px;
}

.banner-arrow svg,
.banner-arrow img {
  stroke: #fff;
}

.home-banner .banner-arrow img {
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.banner-arrow--prev {
  left: 24px;
}

.banner-arrow--next {
  right: 24px;
}

/* 指示点 */
.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base), width var(--transition-base);
  padding: 0;
}

.banner-dot.active {
  background: var(--color-primary);
  width: 28px;
}

/* =============================================
   HOME BODY — dark wrapper below banner
   ============================================= */
.home-body {
  background: #1a1a1a;
}

/* =============================================
   MAIN LAYOUT (Sidebar + Content)
   ============================================= */
.home-main {
  display: flex;
  gap: 24px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 24px 284px;
  background: transparent;
}

/* 侧边栏占位（如有），当前设计 main content 占满 */
.home-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =============================================
   WELCOME SECTION
   ============================================= */
.welcome-section {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-top: 30px;
}

.welcome-section__heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

.welcome-section__notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.welcome-section__notice svg,
.welcome-section__notice img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.welcome-section__notice svg,
.welcome-section__notice img {
  stroke: var(--color-primary);
}

.welcome-section__notice img {
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(20%) sepia(87%) saturate(6139%) hue-rotate(352deg) brightness(93%) contrast(90%);
}

.welcome-section__notice a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
}

.welcome-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: #fafafa;
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  border: 1px solid transparent;
}

.stat-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-border);
  transform: translateY(-1px);
}

.stat-card__icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card__icon--red {
  background: #fff0f0;
}

.stat-card__icon--green {
  background: #f0fff4;
}

.stat-card__icon--dark {
  background: var(--color-text-dark);
  color: #fff;
}

.stat-card__icon svg,
.stat-card__icon img {
  width: 20px;
  height: 20px;
}

.stat-card__icon--red svg {
  stroke: var(--color-primary);
}

.stat-card__icon--green svg {
  stroke: #28a745;
}

.stat-card__icon--red img,
.stat-card__icon--green img {
  object-fit: contain;
}

.stat-card__icon--red img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(87%) saturate(6139%) hue-rotate(352deg) brightness(93%) contrast(90%);
}

.stat-card__icon--green img {
  filter: brightness(0) saturate(100%) invert(44%) sepia(68%) saturate(535%) hue-rotate(91deg) brightness(94%) contrast(90%);
}

.stat-card__icon--dark span {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-card__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.5;
}

.stat-card__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* =============================================
   FEATURED PRODUCTS
   ============================================= */
.featured-section {
  background: transparent;
  border-radius: 0;
  padding: 32px 0 48px;
}

/* Section meta row: label + view-all */
.featured-section__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.featured-section__label {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-transform: capitalize;
  line-height: 1.5;
  margin: 0;
}

.featured-section__viewall {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  text-transform: capitalize;
  transition: opacity 0.2s;
}

.featured-section__viewall:hover {
  opacity: 0.75;
}

.featured-section__viewall img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: inline-block;
  vertical-align: middle;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-header__left .section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.5;
  margin-bottom: 4px;
}

.section-header__left .section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 32px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color var(--transition-base);
}

.btn-view-all:hover {
  background: var(--color-primary-hover);
}

/* =============================================
   PRODUCTS SECTION (HOT / NEW / PROMO) base
   ============================================= */
.products-section {
  padding: 0 0 56px;
}

.products-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.products-section__label {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.5;
  margin: 0;
}

.products-section__viewall {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  text-transform: lowercase;
  transition: opacity 0.2s;
}

.products-section__viewall:hover {
  opacity: 0.75;
}

.products-section__viewall img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  display: inline-block;
  vertical-align: middle;
}

/* =============================================
   HOT SECTION — featured left + 2×2 right
   ============================================= */
.hot-layout {
  display: grid;
  grid-template-columns: 641px 1fr;
  gap: 20px;
}

.hot-layout__featured {
  height: 100%;
}

.hot-featured-card {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  align-items: flex-end;
  box-sizing: border-box;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.hot-featured-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.hot-featured-card__image {
  align-self: stretch;
  width: 641px;
  aspect-ratio: 1 / 1;
  height: auto;
  flex-shrink: 0;
  background: #f5f5f5;
  overflow: hidden;
}

.hot-featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hot-featured-card__info {
  flex: 1;
  padding: 0 24px;
  background: #fff;
  text-align: right;
  display: flex;
  align-items: center;
}

.hot-featured-card__name {
  font-size: 20px;
  font-weight: 400;
  color: #1a1a1a;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px;
}

.hot-featured-card__price {
  font-size: 24px;
  font-weight: 400;
  color: #333;
  margin: 0;
}

.hot-featured-card__NZD {
  font-size: 16px;
}

.hot-featured-card__gst {
  font-size: 13px;
  color: rgba(26, 26, 26, 0.5);
}

.hot-layout__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

/* =============================================
   PROMO / NEW BANNERS
   ============================================= */
.promo-banner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 430px;
  margin-bottom: 20px;
}

.promo-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.promo-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.promo-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 84px;
}

.promo-banner__title {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 0 12px;
}

.promo-banner__sub {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.promo-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 161px;
  height: 48px;
  background: #e31e24;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.promo-banner__cta:hover {
  background: #c0181d;
}

/* NEW section: 2-column large cards */
.new-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.products-section:last-child .new-products-grid{
  grid-template-columns: repeat(4, 1fr) !important;
}
.products-section:last-child .new-products-grid .product-card__body{
  text-align: left;
  align-items:baseline;
}
.products-section:last-child .new-products-grid .product-card__body .product-card__price{
  font-size: 16px;
}
.products-section:last-child .new-products-grid a em{
  display: none;
}

.new-products-grid .product-card {
  width: 100%;
  min-width: 0px;
  height: auto;
  position: relative;
  padding: 20px 20px 0;
  box-sizing: border-box;
}

/* .new-products-grid .product-card::before {
  content: "NEW";
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  border-radius: 999px;
  background: #e31e24;
  padding: 7px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  pointer-events: none;
} */

.new-products-grid .product-card__image-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  align-self: stretch;
  border-radius: 4px;
}
.new-products-grid .product-card__image-wrap em{
  width: 42px;
  height: 24px;
  background: #E31E24;
  color:#fff;
  line-height: 24px;
  text-align: center;
  font-style: normal;
  border-radius: 16px;
  font-size: 12px;
  display: block;
  position: absolute;
  top: 20px;
  left: 20px;
}
/* PROMO section: auto-wrap cards */
.products-section .products-grid {
  grid-template-columns: repeat(auto-fit, minmax(229px, 1fr));
  gap: 20px;
}

.products-section[aria-labelledby="promo-heading"] .products-grid .product-card {
  min-width: 229px;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

.products-section[aria-labelledby="promo-heading"] .products-grid .product-card__image-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
}

.products-section[aria-labelledby="promo-heading"] .products-grid .product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-section[aria-labelledby="promo-heading"] .products-grid .product-card__body {
  text-align: left;
  align-items: flex-start;
  margin-top: 0px;
  padding-left: 0px;
}

.products-section[aria-labelledby="promo-heading"] .products-grid .product-card__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Price row in simplified product card */
.product-card__gst {
  font-size: 13px;
  color: rgba(26, 26, 26, 0.5);
  font-weight: 400;
}

/* 商品卡片网格：auto-fit 自动换行，最小列宽 229px */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(229px, 1fr));
  gap: 24px;
}

/* 商品卡片 */
.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  padding: 16px 16px 0px 16px;
  box-sizing: border-box;
  min-width: 229px;
  height: auto;
}

/* hot-layout__grid 是固定 2×2 布局，卡片跟随格宽自适应 */
.hot-layout__grid .product-card {
  min-width: 0;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* 图片容器 */
.product-card__image-wrap {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
  align-self: stretch;
  border-radius: 4px;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* 信息区 */
.product-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-card__sku {
  font-size: 24px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.product-card__name {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.4;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.product-card__rrp {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: line-through;
  line-height: 1.5;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.product-card__price {
  font-size: 20px;
  color: var(--color-primary);
  line-height: 1.5;
}

.product-card__gst {
  font-size: 13px;
  color: var(--color-text-muted);
}

.product-card__price--mask {
  color: var(--color-text-muted);
}

.product-card__hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
}

/* 库存状态 */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 4px;
}

.stock-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stock-badge--in {
  background: #e8f5e9;
  color: #28a745;
}

.stock-badge--in .stock-badge__dot {
  background: #28a745;
}

.stock-badge--low {
  background: #fff9e5;
  color: #ff9800;
}

.stock-badge--low .stock-badge__dot {
  background: #ff9800;
}

.stock-badge--out {
  background: #ffe7e5;
  color: var(--color-primary);
}

.stock-badge--out .stock-badge__dot {
  background: var(--color-primary);
}

/* 操作按钮区 */
.product-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-add-cart {
  flex: 1;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.btn-add-cart:hover {
  background: var(--color-primary-hover);
}

.btn-add-cart svg,
.btn-add-cart img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-add-cart svg {
  stroke: #fff;
}

.btn-add-cart img {
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.btn-notify {
  flex: 1;
  height: 44px;
  background: #ffc107;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.btn-notify:hover {
  background: #e6ac00;
}

.btn-notify svg,
.btn-notify img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-notify svg {
  stroke: #fff;
}

.btn-notify img {
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.btn-wishlist {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.btn-wishlist:hover,
.btn-wishlist.active {
  border-color: var(--color-primary);
  background: #fff0f0;
}

.btn-wishlist svg,
.btn-wishlist img {
  width: 18px;
  height: 18px;
  transition: stroke var(--transition-base), fill var(--transition-base);
}

.btn-wishlist img {
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(41%) sepia(0%) saturate(6%) hue-rotate(197deg) brightness(94%) contrast(90%);
}

.btn-wishlist svg {
  stroke: var(--color-text-muted);
}

.btn-wishlist.active svg,
.btn-wishlist.active img,
.btn-wishlist:hover svg,
.btn-wishlist:hover img {
  stroke: var(--color-primary);
}

.btn-wishlist.active img,
.btn-wishlist:hover img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(87%) saturate(6139%) hue-rotate(352deg) brightness(93%) contrast(90%);
}

/* =============================================
   PARTNERS CAROUSEL
   ============================================= */
.partners-section {
  background: #1a1a1a;
  padding: 64px 0 48px;
  position: relative;
}

.partners-section__heading {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.partners-section__sub {
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

/* 外层容器：为箭头提供定位上下文，同时提供左右 padding */
.partners-outer {
  position: relative;
  padding: 0 56px;
}

/* 内层裁切容器：overflow:hidden + 边缘渐隐遮罩 */
.partners-track-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.partners-track {
  display: flex;
  gap: 24px;
  overflow: visible;
  will-change: transform;
  /* Animation injected by JS (home.js initPartnersMarquee) */
}

.partner-item {
  flex-shrink: 0;
  width: 240px;
  height: 120px;
  background: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
  user-select: none;
  cursor: default;
}

.partner-item:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
}

/* 左右手动箭头（加速/减速触发） */
.partners-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
  z-index: 3;
}

.partners-arrow:hover {
  background: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.partners-arrow svg,
.partners-arrow img {
  width: 20px;
  height: 20px;
}

.partners-arrow svg,
.partners-arrow img {
  stroke: var(--color-text-dark);
}

.partners-arrow img {
  object-fit: contain;
}

/* 箭头相对 .partners-outer 定位，居于左右 padding 区域内 */
.partners-arrow--prev {
  left: 4px;
}

.partners-arrow--next {
  right: 4px;
}

/* 指示点区域（自动滚动时保留，用于速度指示） */
.partners-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  min-height: 16px;
}

.partners-dot {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-base), width var(--transition-base);
}

.partners-dot.active {
  background: var(--color-primary);
  width: 28px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-text-dark);
  color: #ddd;
  padding: 64px 284px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-col__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* 反馈表单 */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 14px;
  color: var(--color-text-body);
  font-family: var(--font-family);
  transition: border-color var(--transition-base);
}

.feedback-form input {
  height: 40px;
}

.feedback-form textarea {
  height: 88px;
  padding: 8px 12px;
  resize: vertical;
  line-height: 1.5;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: var(--color-text-placeholder);
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn-submit-feedback {
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.btn-submit-feedback:hover {
  background: var(--color-primary-hover);
}

/* 联系信息 */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-item svg,
.contact-item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item svg {
  stroke: var(--color-primary);
}

.contact-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(87%) saturate(6139%) hue-rotate(352deg) brightness(93%) contrast(90%);
}

.contact-item__text {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
}

.contact-item__text a {
  color: #ddd;
  text-decoration: none;
  transition: color var(--transition-base);
}

.contact-item__text a:hover {
  color: #fff;
}

/* 帮助中心链接 */
.help-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-link {
  font-size: 14px;
  color: #ddd;
  text-decoration: none;
  transition: color var(--transition-base);
  line-height: 1.5;
}

.help-link:hover {
  color: #fff;
}

/* Footer 底部版权 */
.footer-bottom {
  border-top: 1px solid #333;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom__copy {
  font-size: 14px;
  color: #ddd;
  line-height: 1.5;
}

.footer-bottom__links {
  display: flex;
  gap: 24px;
}

.footer-bottom__links a {
  font-size: 14px;
  color: #ddd;
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-bottom__links a:hover {
  color: #fff;
}

/* =============================================
   TOAST 提示 (加购反馈)
   ============================================= */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #1a1a1a;
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, calc(100vw - 64px));
  box-sizing: border-box;
}

.toast #toast-msg {
  flex: 1;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast svg,
.toast img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.toast svg {
  stroke: #28a745;
}

.toast img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(44%) sepia(68%) saturate(535%) hue-rotate(91deg) brightness(94%) contrast(90%);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* 1280–1800px：home-main 留边收窄，hot-layout 流式 */
@media (max-width: 1800px) {
  .home-main {
    padding-left: 80px;
    padding-right: 80px;
  }

  .hot-layout {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .hot-featured-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

@media (max-width: 1280px) {

  .header-top,
  .header-nav,
  .site-footer {
    padding-left: 80px;
    padding-right: 80px;
  }

  .home-main {
    padding-left: 80px;
    padding-right: 80px;
  }

  /* HOT layout: fluid at this breakpoint */
  .hot-layout {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .hot-featured-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .banner-slide__cta {
    left: 100px;
    top: 180px;
  }
}

@media (max-width: 1024px) {

  /* Padding align with home-main */
  .header-top,
  .header-nav,
  .site-footer {
    padding-left: 40px;
    padding-right: 40px;
  }

  .home-main {
    padding-left: 40px;
    padding-right: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .banner-slide__cta {
    left: 60px;
    top: 170px;
  }

  .welcome-stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  /* HOT layout */
  .hot-layout {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .hot-layout__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* HOT featured card: fluid image */
  .hot-featured-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  /* PROMO cards: fluid */
  .products-section[aria-labelledby="promo-heading"] .products-grid .product-card {
    width: 100%;
    height: auto;
  }

  .products-section[aria-labelledby="promo-heading"] .products-grid .product-card__image-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .products-section[aria-labelledby="promo-heading"] .products-grid .product-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .promo-banner__title {
    font-size: 32px;
  }

  .promo-banner__content {
    padding: 0 48px;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 10px 16px;
    flex-wrap: nowrap;
    gap: 12px;
  }

  /* 搜索移到导航栏，隐藏 header-top 里的搜索 */
  .header-search {
    display: none !important;
  }

  /* 导航单行：All Categories | shop | Vehicle Fitment | search */
  .header-nav {
    padding: 0 16px;
    flex-wrap: nowrap;
    height: 48px;
    gap: 8px;
    overflow: visible;
  }

  /* 显示移动端搜索 */
  .nav-search {
    display: flex !important;
  }

  /* 调小 Vehicle Fitment 按钮，避免过宽 */
  .btn-vehicle-fitment {
    padding: 0 12px !important;
    font-size: 13px !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }

  .btn-vehicle-fitment img {
    width: 16px !important;
    height: 16px !important;
  }

  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-main {
    padding: 8px !important;
  }

  /* Banner：CTA 移到底部，避免与左右箭头重叠 */
  .banner-slide__cta {
    left: 20px;
    top: auto;
    bottom: 24px;
    height: 40px;
    font-size: 14px;
    padding: 0 24px;
  }

  .banner-arrow--prev {
    left: 8px;
  }

  .banner-arrow--next {
    right: 8px;
  }

  .products-grid {
    gap: 12px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .featured-section__meta {
    align-items: flex-end;
    gap: 12px;
  }

  /* HOT/NEW/PROMO at 768px */
  .products-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hot-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Mobile: 2×2 only — hide the 5th item */
  .hot-layout__grid .product-card:last-child {
    display: none !important;
  }

  /* Flatten wrappers so all cards flow into parent 2-col grid */
  .hot-layout__featured,
  .hot-layout__grid {
    display: contents;
  }

  /* Featured / hot / new cards share the same mobile shell */
  .hot-featured-card,
  .hot-layout__grid .product-card,
  .new-products-grid .product-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    min-width: 0;
  }

  .new-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .products-section:last-child .new-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .hot-featured-card__image,
  .hot-layout__grid .product-card__image-wrap,
  .new-products-grid .product-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    flex-shrink: 0;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 0;
    align-self: stretch;
    display: block;
    line-height: 0;
    text-decoration: none;
  }

  .hot-featured-card__image img,
  .hot-layout__grid .product-card__image-wrap img,
  .new-products-grid .product-card__image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .new-products-grid .product-card__image-wrap em {
    top: 12px;
    left: 12px;
    z-index: 1;
  }

  .hot-featured-card__info,
  .hot-layout__grid .product-card__body,
  .new-products-grid .product-card__body {
    flex: none;
    text-align: center;
    padding: 16px 16px 20px;
    justify-content: flex-start;
    align-items: center;
  }

  .hot-featured-card__name,
  .hot-layout__grid .product-card__name,
  .hot-layout__grid .product-card__name a,
  .new-products-grid .product-card__name,
  .new-products-grid .product-card__name a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text-dark);
    text-align: center;
    margin: 0 0 8px;
    width: 100%;
    min-height: calc(1.35em * 2);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hot-featured-card__price,
  .hot-layout__grid .product-card__price,
  .new-products-grid .product-card__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
  }

  .hot-featured-card__gst,
  .hot-layout__grid .product-card__gst,
  .new-products-grid .product-card__gst {
    font-size: 12px;
    color: rgba(26, 26, 26, 0.5);
    font-weight: 400;
  }

  .promo-banner {
    height: 320px;
  }

  .promo-banner__title {
    font-size: 26px;
  }

  .promo-banner__sub {
    font-size: 16px;
  }

  .promo-banner__content {
    padding: 0 32px;
  }

  .products-section:last-child .new-products-grid .product-card__body {
    text-align: center;
    align-items: center;
  }

  .welcome-stats {
    grid-template-columns: 1fr;
  }

  .welcome-section {
    padding: 20px 16px;
  }

  .welcome-section__heading {
    font-size: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Partners */
  .partners-section {
    padding: 40px 0 32px;
  }

  .partners-section__heading {
    font-size: 24px;
  }

  .partners-section__sub {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .partners-outer {
    padding: 0 40px;
  }

  .partner-item {
    width: 160px;
    height: 80px;
    font-size: 16px;
  }

  /* Section labels */
  .products-section__label,
  .featured-section__label {
    font-size: 24px;
  }

  .site-footer {
    padding: 40px 20px 0;
  }
}

@media (max-width: 480px) {

  /* H5: drawer full-screen */
  .mobile-cats-drawer {
    width: 100%;
    right: 0;
    left: 0;
  }

  .banner-slide__title {
    font-size: 22px;
  }

  .header-logo img {
    height: 48px !important;
  }

  .hot-layout__grid {
    display: contents;
  }

  /* Banner */
  .promo-banner {
    height: 240px;
  }

  .promo-banner__title {
    font-size: 20px;
    line-height: 1.3;
  }

  .promo-banner__sub {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .promo-banner__content {
    padding: 0 20px;
  }

  .promo-banner__cta {
    width: 100px;
    height: 36px;
    font-size: 13px;
  }

  /* ---- PROMO product card: 图片满宽，edge-to-edge ---- */
  .products-section[aria-labelledby="promo-heading"] .products-grid .product-card {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    height: auto;
  }

  .products-section[aria-labelledby="promo-heading"] .products-grid .product-card__image-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    align-self: stretch;
    display: block;
  }

  .products-section[aria-labelledby="promo-heading"] .products-grid .product-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .products-section[aria-labelledby="promo-heading"] .products-grid .product-card__body {
    padding: 12px 16px 16px;
    margin-top: 0;
    align-items: flex-start;
    text-align: left;
  }

  .products-section[aria-labelledby="promo-heading"] .products-grid .product-card__name {
    font-size: 15px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .products-section[aria-labelledby="promo-heading"] .products-grid .product-card__price {
    font-size: 16px;
  }

  /* Welcome stats: single column on mobile */
  .welcome-stats {
    grid-template-columns: 1fr;
  }

  .welcome-section__heading {
    font-size: 18px;
  }

  /* Section labels */
  .products-section__label,
  .featured-section__label {
    font-size: 20px;
  }

  /* Partners */
  .partners-section__heading {
    font-size: 20px;
  }

  .partner-item {
    width: 120px;
    height: 64px;
    font-size: 14px;
  }

  /* Footer */
  .footer-col__title {
    font-size: 18px;
  }
}