/* Local rebuild: the original theme expects Shopify JS for these states.
   Everything else is the untouched theme CSS. */
.site-nav, .site-navigation { visibility: visible !important; }
[data-aos] { opacity: 1 !important; visibility: visible !important; }
/* The theme hides .image-element until its own JS fades it in. */
.image-element, image-element img { opacity: 1 !important; }
.image-wrap:not(.image-wrap__thumbnail) image-element { height:100%; left:0;
  position:absolute; top:0; width:100%; }
.icartShopifyCartContent { width: 100%; }
.custom-carousel-section, .carousel-container { overflow: hidden; }
.custom-carousel-section { position: relative; }
.carousel-slide__media picture, .carousel-slide__media img { display: block; width: 100%; }
.carousel-slide__media video { width: 100%; height: 100%; object-fit: cover; }
.wb-dot { width: 28px; height: 4px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35); border-radius: 2px; }
.wb-dot.on { background: #fff; }
.wb-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5; }
.wb-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.35); color: #fff; font-size: 20px; line-height: 1; }
.wb-arrow.prev { left: 16px; } .wb-arrow.next { right: 16px; }
.swiper-wrapper { overflow-x: auto !important; gap: 16px; scroll-snap-type: x mandatory; }
.swiper-wrapper > .swiper-slide { flex: 0 0 25% !important; width: 25% !important;
  min-width: 240px; scroll-snap-align: start; }
.drawer.wb-open { display: block !important; }
.drawer--right.wb-open { right: 0; } .drawer--left.wb-open { left: 0; }
@media (max-width: 768px) {
  .swiper-wrapper > .swiper-slide { flex-basis: 75% !important; width: 75% !important; }
}
/* Backend-driven footer contact/social bar (SiteSetting). */
.footer__contact-bar { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center;
  justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.footer__contact-info, .footer__social { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer__contact-info a, .footer__contact-info span, .footer__social a {
  color: inherit; font-size: 14px; text-decoration: none; opacity: .85; }
.footer__contact-info a:hover, .footer__social a:hover { opacity: 1; text-decoration: underline; }
/* Logo rendered as the backend site name (no hardcoded image). */
.site-header__logo-text { display: inline-block; font-size: 24px; font-weight: 800;
  letter-spacing: .5px; line-height: 1; color: #111; text-decoration: none; }
.site-header__logo .site-header__logo-text:hover { color: #e11d48; }
/* Logo uploaded from backend overrides the hardcoded brand image.
   LOGO_SIZE_V1：原站实测 logo 是 140px 宽 x 32px 高，CSS 限制的是 max-width
   （按原图等比缩放）。这里原来写死 max-height:34px，用户传横向图时会被压得
   又扁又小。改成跟原站一致：只限宽、不限高、不裁切。
   实际宽度由后台「Logo 最大宽度(px)」控制（模板 inline style 覆盖本条）。 */
.site-header__logo-img { display: inline-block; max-width: 140px; width: auto;
  height: auto; vertical-align: middle; }
.footer__logo-img { display: inline-block; max-width: 180px; max-height: 60px;
  width: auto; height: auto; }
.footer__logo .site-header__logo-text { color: inherit; font-size: 22px; }

/* FOOTER_LAYOUT_GUARD v2 — CSS Grid，列数固定，绝不换行塌成一列 */
.site-footer > .page-width { max-width: 1400px; margin: 0 auto; padding: 0 30px;
  box-sizing: border-box; }
.site-footer > .page-width > .grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  align-items: start !important;
}
.site-footer > .page-width > .grid > .grid__item {
  width: auto !important; min-width: 0 !important; float: none !important;
  box-sizing: border-box; padding: 0 15px !important;
}
.site-footer .footer__title.small--hide { display: block !important;
  font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.site-footer .footer__title.collapsible-trigger-btn { display: none !important; }
.site-footer .collapsible-content { display: block !important; height: auto !important;
  max-height: none !important; overflow: visible !important; opacity: 1 !important;
  visibility: visible !important; }
/* FOOTER_COLLAPSIBLE_TRANSFORM_FIX
   主题默认给折叠内容加了 transform:translateY(40px)（配合展开动画），
   但本站折叠面板是常开的、没有 is-open 类，于是内容被视觉下移 40px 而
   容器高度不变 -> 最后一行链接溢出，压到下一组标题上
   （手机端「配件/品牌」「联系我们/条款」叠在一起就是这个）。
   强制去掉 transform，内容回到容器内。 */
.site-footer .collapsible-content__inner { transform: none !important; }
.site-footer .site-footer__linklist li { margin: 0 0 8px; }
.newsletter-container { padding: 40px 0; }
.newsletter-section { max-width: 1400px; margin: 0 auto; padding: 0 30px;
  box-sizing: border-box; }
/* 窄屏只减列数，不塌成一列 */
@media (max-width: 900px) {
  .site-footer > .page-width > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  .site-footer > .page-width > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* FOOTER_BOTTOM_GUARD */
.site-footer > .site-footer__bottom {
  display: flex !important; flex-wrap: wrap !important;
  justify-content: space-between !important;
  max-width: 1400px !important; margin: 0 auto !important;
  padding: 24px 30px 32px !important; box-sizing: border-box;
  align-items: center !important; gap: 16px;
}
.site-footer .footer__copyright { flex: 1 1 55% !important; min-width: 260px;
  float: none !important; margin: 0 !important; text-align: left !important; }
.site-footer .policies { display: flex !important; flex-wrap: wrap !important;
  align-items: center !important; gap: 6px !important; list-style: none !important;
  padding: 0 !important; margin: 0 0 10px !important; }
.site-footer .policies > a, .site-footer .policies > span { font-size: 12px;
  color: #555; text-decoration: none; line-height: 1.4; }
.site-footer .copyright__content { font-size: 12px !important;
  line-height: 1.6 !important; color: #666; margin: 0 !important; }
.site-footer .copyright__content > a { display: none !important; }
.site-footer .copyright__content .copyright__content { display: block;
  font-size: inherit !important; line-height: inherit !important; margin-top: 6px; }
.site-footer .payment-icons { flex: 0 1 auto !important; float: none !important;
  margin: 0 !important; padding: 0 !important; text-align: right !important; }
.site-footer .shared-payment-icons { text-align: right !important; }
.site-footer .shared-payment-icons__list { display: flex !important;
  flex-wrap: wrap !important; justify-content: flex-end !important;
  align-items: center !important; gap: 6px !important; }
.site-footer .shared-payment-icons__list > svg { width: 38px !important;
  height: 24px !important; flex: 0 0 38px !important; }
/* Afterpay / Clearpay 是同一张绿色图，缩小后像坏掉的链条图标，隐藏 */
.site-footer .shared-payment-icons__list > svg[data-payment-method="afterpay"],
.site-footer .shared-payment-icons__list > svg[data-payment-method="clearpay"] { display: none !important; }
/* 原站 Shop App 关注按钮在本站无 JS 支持，不显示 */
.site-footer .footer__follow-on-shop, .site-footer shop-follow-button { display: none !important; }
@media (max-width: 900px) {
  .site-footer > .site-footer__bottom { padding: 20px 20px 26px !important; }
  .site-footer .payment-icons, .site-footer .shared-payment-icons,
  .site-footer .shared-payment-icons__list { text-align: left !important;
    justify-content: flex-start !important; }
}

/* ==========================================================================
   COLLECTION_FILTER_V1 — 商品集合页：面包屑 / 标题 / 分类筛选面板 / 结果栏
   一级分类为胶囊标签，二级分类按父级分组，只显示当前一级对应的那一组。
   ========================================================================== */
.collection-page-v2 { padding-top: 28px; padding-bottom: 40px; }
.cf-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 20px; font-size: 12px; color: #8a8a8a; }
.cf-breadcrumb a { color: #8a8a8a; text-decoration: none; }
.cf-breadcrumb a:hover { color: #1a1a1a; }
.cf-breadcrumb .cf-sep { color: #c9c9c9; }
.cf-breadcrumb .cf-current { color: #333; }

.collection-head-v2 { margin-bottom: 26px; }
.collection-title-v2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; line-height: 1.2; color: #1a1a1a; }
.collection-subtitle-v2 { max-width: 780px; margin: 0; font-size: 15px;
  line-height: 1.7; color: #666; }

.cf-panel { margin-bottom: 26px; padding: 18px 20px; border: 1px solid #e8e8e8;
  border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.cf-row { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 14px; }
.cf-row + .cf-row { padding-top: 14px; border-top: 1px dashed #ececec; }
.cf-row__label { flex: 0 0 70px; padding-top: 8px; font-size: 13px;
  font-weight: 600; color: #444; }
.cf-chips { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border: 1px solid #e3e3e3; border-radius: 999px; background: #fafafa;
  color: #333; font-size: 13px; line-height: 1.2; text-decoration: none;
  white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.cf-chip:hover { border-color: #1a1a1a; background: #fff; color: #1a1a1a; }
.cf-chip.is-active { border-color: #1a1a1a; background: #1a1a1a;
  color: #fff; font-weight: 600; }
.cf-chip.is-empty { opacity: .55; }
.cf-chip__count { min-width: 18px; padding: 1px 6px; border-radius: 9px;
  background: #eee; color: #999; font-size: 11px; text-align: center; }
.cf-chip.is-active .cf-chip__count { background: rgba(255,255,255,.22); color: #fff; }
.cf-chip.is-extra { display: none; }
.cf-panel.is-expanded .cf-chip.is-extra { display: inline-flex; }
.cf-more { padding: 7px 4px; border: 0; background: none; color: #1a1a1a;
  font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.cf-more:hover { color: #666; }
.cf-row--sub { margin: 0 -20px -18px; padding: 14px 20px 16px !important;
  border-top: 1px solid #eee !important; border-radius: 0 0 10px 10px;
  background: #fbfbfb; }
.cf-row--sub[hidden] { display: none !important; }
.cf-subgroup { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-subgroup[hidden] { display: none !important; }
.cf-subgroup .cf-chip { background: #fff; }

.collection-toolbar-v2 { display: flex; align-items: center;
  justify-content: space-between; gap: 16px; margin-top: 2px;
  padding-top: 14px; border-top: 1px solid #eee; }
.cf-result-count { font-size: 13px; color: #666; }
.cf-result-count strong { font-size: 16px; color: #1a1a1a; }
.cf-clear { margin-left: 14px; font-size: 12px; color: #999; text-decoration: underline; }
.cf-sort { display: flex; align-items: center; gap: 10px; }
.cf-sort label { font-size: 13px; color: #666; white-space: nowrap; }
.cf-sort select { min-width: 190px; height: 40px; padding: 0 34px 0 12px;
  border: 1px solid #ddd; border-radius: 6px; background: #fff;
  font-size: 13px; color: #333; }

.collection-product-grid { margin-left: -10px; margin-right: -10px; }
.collection-product-grid > .grid__item { padding-left: 10px;
  padding-right: 10px; margin-bottom: 22px; }
.cf-empty { width: 100%; padding: 60px 20px !important; text-align: center; color: #777; }
.cf-empty p { margin: 0 0 16px; font-size: 15px; }
.collection-pagination-v2 { display: flex; align-items: center;
  justify-content: center; gap: 18px; padding-top: 10px;
  font-size: 13px; color: #666; }
.collection-seo-desc { margin-top: 32px; padding-top: 20px;
  border-top: 1px solid #eee; color: #777; font-size: 13px; }

/* 语言下拉要盖过右下角「联系客服」浮层（后者 z-index 9999） */
.wb-lang.tl-switcher-container { z-index: 10001 !important; }

@media (max-width: 749px) {
  .cf-row { flex-direction: column; gap: 8px; }
  .cf-row__label { flex: none; padding-top: 0; }
  .cf-chip { padding: 6px 11px; font-size: 12px; }
  .collection-toolbar-v2 { flex-direction: column; align-items: flex-start; }
  .cf-sort { width: 100%; }
  .cf-sort select { flex: 1 1 auto; min-width: 0; }
  .cf-row--sub { margin: 0 -14px -14px; padding: 12px 14px !important; }
}

/* ===== NAV_SUBMENU_V1：顶部导航一 / 二级下拉 ===== */
/* 主题默认可能裁切溢出，这里保证下拉能完整露出；一级项相对定位做锚点。 */
.site-header .header-item--navigation,
.site-nav.site-navigation,
.site-nav.site-navigation > .site-nav__item { overflow: visible !important; }
.site-nav.site-navigation > .site-nav__item { position: relative !important; }
.site-nav.site-navigation .site-nav__link { display: inline-flex !important;
  align-items: center !important; gap: 3px; }
.nav-caret { font-size: 10px; line-height: 1; opacity: .6; }
.nav-submenu { display: none; position: absolute; top: 100%; left: 0;
  z-index: 80; min-width: 210px; max-width: 300px;
  margin: 0; padding: 7px 0; list-style: none; text-align: left;
  background: #fff; border: 1px solid #e8e8e1;
  border-radius: 0 0 4px 4px; box-shadow: 0 10px 28px rgba(0,0,0,.13); }
.site-nav__item.has-subnav:hover > .nav-submenu,
.site-nav__item.has-subnav:focus-within > .nav-submenu { display: block; }
.nav-submenu > li { display: block; margin: 0; }
.nav-submenu__link { display: block; padding: 9px 18px;
  font-size: 13px; line-height: 1.4; color: #222 !important;
  text-decoration: none !important; white-space: nowrap; }
.nav-submenu__link:hover, .nav-submenu__link:focus { background: #f5f5f7; }
/* 移动端抽屉里的二级：缩进 + 竖线，直接平铺可见，不依赖 hover */
.mobile-nav__sub { margin: 0 !important; padding: 0 0 4px 14px !important;
  list-style: none !important; border-left: 2px solid #e8e8e1; }
.mobile-nav__link--sub { font-size: 13px !important; opacity: .85;
  padding-top: 6px !important; padding-bottom: 6px !important; }
@media (max-width: 749px) {
  .site-nav.site-navigation .nav-submenu { display: none !important; }
}


/* PRODUCT_DETAIL_V1 —— 商品详情页右侧：标签 / 分类 / 库存 / 可配置卖点。
   这些内容原来要么写死、要么后台改了不显示，现在全部由后台驱动。 */
.svakom-product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.svakom-tag { display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6; letter-spacing: .3px; }
.svakom-tag--new { background: #111; color: #fff; }
.svakom-tag--best { background: #e11d48; color: #fff; }
.svakom-tag--app { background: #eef2ff; color: #3730a3; }
.svakom-tag--sale { background: #fff1e6; color: #c2410c; }
.svakom-product-category { margin-top: 8px; font-size: 13px; }
.svakom-product-category a { color: #6b7280; text-decoration: none; }
.svakom-product-category a:hover { color: #e11d48; }
