/* ============================================================
   im8-mirror · PDP 收口样式（glowinggoddess / triunenutri 同口径）
   只补三件事：
     1) 源站靠 JS 切 animate--shown，本站无动画运行时 → 保证内容可见
     2) 数量输入与加购按钮同一行（源站主题原生结构），不额外增加高度
     3) 加购状态行 / sticky 条显隐由脚本控制
   版式（字体/间距/颜色/圆角）全部来自源站 base.css，不在这里重写。
   ============================================================ */

/* 1) 滚动进出场动画：源站由 JS 加 .animate--shown；无 JS 时强制可见 */
.animate-section.animate--hidden .animate-item {
  opacity: 1;
  filter: none;
  transform: none;
}

/* 2) .product-form__quantity-and-btn 是源站主题原生的「数量 + 按钮」横排容器 */
.product-form__quantity-and-btn .product-form__quantity {
  flex: 0 0 auto;
}
.product-form__quantity-and-btn .product-form__submit {
  flex: 1 1 auto;
  min-width: 0;
}
.product-form__quantity-and-btn quantity-input.quantity {
  min-height: calc((var(--inputs-border-width) * 2) + 4.5rem);
}
@media screen and (max-width: 749px) {
  .product-form__quantity-and-btn quantity-input.quantity {
    min-height: calc((var(--inputs-border-width) * 2) + 4rem);
  }
}

/* 3) 加购状态行（真反馈：Added to cart · View cart · Checkout） */
.im8-atc-status {
  margin: 1.2rem 0 0;
  font-size: 1.4rem;
  line-height: 1.5;
}
.im8-atc-status a {
  text-decoration: underline;
}

/* sticky 加购条：默认收起，滚过主加购按钮才出现（脚本控制 transform） */
sticky-atc.sticky-atc {
  transform: translateY(110%);
  will-change: transform;
}

/* 图库：缩略图/圆点/箭头切换时平滑滚动；主图横向滚动条不额外占高 */
.product__media-list {
  scroll-behavior: smooth;
}

/* content-tabs 的按钮行：源站在 1440 下比容器宽 76px（源站自身缺陷，sections.json 也记 76）。
   桌面端改为单行 + 横向滚动，页面横向溢出归零；移动端保留源站换行行为（高度不变）。 */
@media screen and (min-width: 750px) {
  .content-tabs__buttons {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .content-tabs__buttons::-webkit-scrollbar {
    display: none;
  }
}

/* sticky 页脚占位：源站由 JS 写入高度，这里由 pdp-js 按实际条高设置。
   子元素只用于绕开 base.css 的 div:empty{display:none}，不参与布局。 */
.sticky-atc-footer-spacer {
  pointer-events: none;
}
.sticky-atc-footer-spacer > span {
  display: none;
}
