/* ==========================================================================
   CipherDrip — American Minimal 组件皮肤
   叠加在主题编译样式之后，只覆盖视觉层，不动布局结构。
   所有规则都限定在 body.am-minimal 下，方便整体回滚（删掉 body class 即失效）。
   ========================================================================== */

.am-minimal {
  --am-ink: #111111;
  --am-ink-soft: #3d3d3d;
  --am-muted: #757575;
  --am-line: #e6e6e6;
  --am-soft: #f6f6f5;

  /* 主色：单色系统。要换品牌色只改这两个值（例如藏青 #1b2a41） */
  --am-accent: #111111;
  --am-accent-hover: #3a3a3a;

  --am-font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 覆盖 Bootstrap 主色变量：.text-primary / .bg-primary / .btn-primary 一起生效 */
  --bs-primary: #111111;
  --bs-primary-rgb: 17, 17, 17;
  --bs-primary-text-emphasis: #111111;
  --bs-primary-bg-subtle: #f2f2f2;
  --bs-primary-border-subtle: #dcdcdc;

  /* 主题在 :root 里把 --bs-body-font-family 写成了 Jost，
     Bootstrap 的 body / 组件都从这个变量取字体，所以必须改变量本身 */
  --bs-body-font-family: var(--am-font);
  --bs-btn-font-family: inherit;

  font-family: var(--am-font);
  color: var(--am-ink);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 表单控件默认不继承字体，逐个显式指定，避免回落到 Jost / 系统 UI 字体 */
.am-minimal input,
.am-minimal button,
.am-minimal select,
.am-minimal textarea,
.am-minimal .form-control,
.am-minimal .form-select,
.am-minimal .input-group-text,
.am-minimal .btn,
.am-minimal .tooltip,
.am-minimal .popover {
  font-family: var(--am-font);
}

/* 价格数字用等宽数字，列表对齐更整齐 */
.am-minimal .product-price,
.am-minimal .price-new,
.am-minimal .price-old,
.am-minimal .offcanvas-right-cart-amount,
.am-minimal table {
  font-variant-numeric: tabular-nums;
}

/* ---------- 主配色收敛：主题里写死的橙色 → 墨黑 ---------------------------- */
.am-minimal header .header-content .nav-item:hover > a,
.am-minimal header .header-content .menu-wrap > .navbar-nav .ul-children a:hover,
.am-minimal footer .footer-content a:hover,
.am-minimal .product-wrap .product-price .price-new,
body.am-minimal.page-product .product-info .rating-wrap .rating i,
body.am-minimal.page-product .product-description .nav-tabs .nav-link.active,
body.am-minimal.page-categories .children-wrap a:hover,
.am-minimal #offcanvas-right-cart .select-wrap i.bi-check-circle-fill {
  color: #111111 !important;
}

body.am-minimal.page-product .product-description .nav-tabs .nav-link.active::before,
body.am-minimal.page-checkout .radio-line-wrap .radio-line-item.active .radio,
body.am-minimal.page-checkout .radio-line-wrap .radio-line-item.active .radio::before {
  background-color: #111111 !important;
  border-color: #111111 !important;
}

body.am-minimal.page-checkout .comment-wrap .commentTxt:focus-visible,
.am-minimal #offcanvas-search-top .search-input-wrap input:focus {
  border-color: #111111 !important;
  box-shadow: none !important;
}

body.am-minimal.page-categories .style-wrap label.active svg,
body.am-minimal.page-categories .filter-value-wrap .list-group .list-group-item.delete-all,
body.am-minimal.page-categories .filter-value-wrap .list-group .list-group-item:hover,
.am-minimal .sidebar-widget li.active > a,
.am-minimal .pages-wrap:hover .page-info .pages-title a,
.am-minimal .swiper-style-plus .swiper-button-next:hover,
.am-minimal .swiper-style-plus .swiper-button-prev:hover {
  color: #111111 !important;
}

body.am-minimal.page-categories .ui-widget-content .ui-widget-header,
body.am-minimal.page-categories .ui-widget-content .ui-slider-handle,
.am-minimal .swiper-style-plus .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #111111 !important;
  border-color: #111111 !important;
}

.am-minimal .filter-box .attribute-item .form-check-label:hover .form-check-input,
.am-minimal .module-brand .brand-item:hover {
  border-color: #111111 !important;
}

/* Bootstrap 把主色写死在了组件自己的作用域里（不是继承 :root），
   必须逐个组件重设变量，否则下拉菜单激活态、分页、胶囊标签仍是橙色 */
.am-minimal .dropdown-menu {
  --bs-dropdown-link-active-bg: #111111;
  --bs-dropdown-link-active-color: #ffffff;
  --bs-dropdown-link-hover-bg: #f2f2f2;
  --bs-dropdown-link-hover-color: #111111;
}

.am-minimal .dropdown-menu-dark {
  --bs-dropdown-link-active-bg: #ffffff;
  --bs-dropdown-link-active-color: #111111;
}

.am-minimal .nav-pills {
  --bs-nav-pills-link-active-bg: #111111;
}

.am-minimal .pagination {
  --bs-pagination-active-bg: #111111;
  --bs-pagination-active-border-color: #111111;
  --bs-pagination-hover-color: #111111;
}

.am-minimal .list-group {
  --bs-list-group-active-bg: #111111;
  --bs-list-group-active-border-color: #111111;
}

.am-minimal .progress {
  --bs-progress-bar-bg: #111111;
}

.am-minimal .btn-outline-primary {
  --bs-btn-color: #111111;
  --bs-btn-border-color: #111111;
  --bs-btn-hover-bg: #111111;
  --bs-btn-hover-border-color: #111111;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-bg: #111111;
  --bs-btn-active-border-color: #111111;
  --bs-btn-disabled-color: #111111;
  --bs-btn-disabled-border-color: #111111;
}

/* 购物车角标：橙 → 黑 */
.am-minimal .cart-badge-quantity {
  background-color: #111111 !important;
  color: #ffffff;
}

.am-minimal .text-primary {
  color: #111111 !important;
}

/* ---------- 排版 ---------------------------------------------------------- */
.am-minimal h1,
.am-minimal h2,
.am-minimal h3,
.am-minimal h4,
.am-minimal h5,
.am-minimal h6,
.am-minimal .hero-heading {
  font-family: var(--am-font);
  color: var(--am-ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.am-minimal h1,
.am-minimal .hero-heading {
  font-size: clamp(28px, 4vw, 46px);
}

.am-minimal h2 { font-size: clamp(22px, 2.6vw, 32px); }
.am-minimal h3 { font-size: 22px; }
.am-minimal h4 { font-size: 18px; }

.am-minimal p { color: var(--am-ink-soft); }

.am-minimal a { color: var(--am-ink); }

.am-minimal a:hover {
  color: var(--am-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.am-minimal .text-muted,
.am-minimal .text-secondary {
  color: var(--am-muted) !important;
}

/* 小字标签：全大写 + 字距，美式极简的标志性细节 */
.am-minimal .am-eyebrow,
.am-minimal .section-subtitle,
.am-minimal .breadcrumb,
.am-minimal .breadcrumb a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--am-muted);
}

/* ---------- 按钮 ---------------------------------------------------------- */
.am-minimal .btn {
  --bs-btn-border-radius: 0;
  border-radius: 0;
  font-family: var(--am-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  line-height: 1.2;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.am-minimal .btn-lg {
  font-size: 12px;
  padding: 1.1rem 2rem;
}

.am-minimal .btn-sm {
  font-size: 10.5px;
  padding: 0.6rem 1.1rem;
}

/* 主按钮：黑底白字，hover 提亮为深灰 */
.am-minimal .btn-dark {
  --bs-btn-bg: #111111;
  --bs-btn-border-color: #111111;
  --bs-btn-color: #ffffff;
  --bs-btn-hover-bg: var(--am-accent-hover);
  --bs-btn-hover-border-color: var(--am-accent-hover);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-bg: #000000;
  --bs-btn-active-border-color: #000000;
  --bs-btn-active-color: #ffffff;
  --bs-btn-disabled-bg: #9a9a9a;
  --bs-btn-disabled-border-color: #9a9a9a;
}

.am-minimal .btn-primary {
  --bs-btn-bg: #111111;
  --bs-btn-border-color: #111111;
  --bs-btn-color: #ffffff;
  --bs-btn-hover-bg: var(--am-accent-hover);
  --bs-btn-hover-border-color: var(--am-accent-hover);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-bg: #000000;
  --bs-btn-active-border-color: #000000;
}

/* 描边按钮：1px 实线，hover 反色 */
.am-minimal .btn-outline-dark,
.am-minimal .btn-outline-secondary {
  --bs-btn-color: #111111;
  --bs-btn-border-color: #111111;
  --bs-btn-hover-bg: #111111;
  --bs-btn-hover-border-color: #111111;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-bg: #111111;
  --bs-btn-active-border-color: #111111;
  --bs-btn-active-color: #ffffff;
  background-color: transparent;
}

.am-minimal .btn-light {
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: var(--am-line);
  --bs-btn-color: #111111;
  --bs-btn-hover-bg: #111111;
  --bs-btn-hover-border-color: #111111;
  --bs-btn-hover-color: #ffffff;
}

.am-minimal .btn-link {
  color: var(--am-ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.am-minimal .btn-link:hover {
  color: var(--am-ink);
  text-decoration: underline;
}

/* ---------- 表单 ---------------------------------------------------------- */
.am-minimal .form-control,
.am-minimal .form-select,
.am-minimal textarea.form-control {
  border-radius: 0;
  border: 1px solid var(--am-line);
  background-color: #fff;
  color: var(--am-ink);
  font-size: 14px;
  min-height: 46px;
  padding: 0.7rem 0.95rem;
  box-shadow: none;
  transition: border-color .16s ease;
}

.am-minimal .form-control:focus,
.am-minimal .form-select:focus,
.am-minimal textarea.form-control:focus {
  border-color: #111111;
  box-shadow: none;
  outline: 0;
}

.am-minimal .form-control::placeholder { color: #9e9e9e; }

.am-minimal .form-label,
.am-minimal label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--am-ink);
  margin-bottom: 0.45rem;
}

.am-minimal .form-check-input {
  border-radius: 0;
  border-color: #c9c9c9;
}

.am-minimal .form-check-input:checked {
  background-color: #111111;
  border-color: #111111;
}

/* ---------- 卡片 / 容器 ---------------------------------------------------- */
.am-minimal .card {
  border: 1px solid var(--am-line);
  border-radius: 0;
  box-shadow: none;
  background-color: #fff;
}

.am-minimal .dropdown-menu {
  border: 1px solid var(--am-line);
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

.am-minimal .badge {
  border-radius: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.6em;
}

/* ---------- 商品卡片 ------------------------------------------------------ */
.am-minimal .product-wrap {
  border-bottom: 0;
  padding-bottom: 1.2rem;
  text-align: center;
  background: transparent;
}

.am-minimal .product-wrap .image {
  background-color: var(--am-soft);
  overflow: hidden;
  position: relative;
}

/* 商品图统一成正方形画框：不同比例的图片都居中完整显示，卡片高度才会一致 */
.am-minimal .product-wrap:not(.list) .image {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.am-minimal .product-wrap:not(.list) .image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.am-minimal .product-wrap:not(.list) .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.am-minimal .product-wrap .image img {
  transition: transform .7s cubic-bezier(.19, 1, .22, 1);
}

.am-minimal .product-wrap:hover .image img {
  transform: scale(1.035);
}

.am-minimal .product-wrap .product-name {
  margin: 12px 0 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--am-ink);
}

.am-minimal .product-wrap .product-name a { color: inherit; }

.am-minimal .product-wrap .product-price .price-new {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.am-minimal .product-wrap .product-price .price-old {
  margin-left: 6px;
  font-size: 12.5px;
  color: var(--am-muted);
  text-decoration: line-through;
}

.am-minimal .product-wrap .button-wrap .btn {
  font-size: 10.5px;
  padding: 0.62rem 0.9rem;
  letter-spacing: 0.08em;
}

/* ---------- 关闭按钮 / 搜索弹层 -------------------------------------------- */
/* Bootstrap 的 .btn-close 自带一圈以主色为准的聚焦光晕：
   --bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(253,86,15,.25)
   点一下就会闪橙色，这里整体去掉，改用 1px 黑描边表示键盘聚焦 */
.am-minimal .btn-close {
  --bs-btn-close-focus-shadow: none;
  border-radius: 0;
  transition: opacity .16s ease;
}

.am-minimal .btn-close:hover {
  background-color: transparent;
  opacity: 1;
}

/* 点击/聚焦时的中性光晕（代替原来的橙色圈） */
.am-minimal .btn-close:focus,
.am-minimal .btn-close:focus-visible {
  box-shadow: 0 0 0 3px rgba(17, 17, 17, .08), 0 0 18px rgba(17, 17, 17, .14);
  outline: 0;
}

/* 其余组件的橙色聚焦光圈：统一改成中性灰环 */
.am-minimal .form-control:focus,
.am-minimal .form-select:focus {
  box-shadow: none;
  border-color: #111111;
}

.am-minimal .form-check-input:focus {
  box-shadow: 0 0 0 2px rgba(17, 17, 17, .15);
  border-color: #111111;
}

.am-minimal .nav-link:focus-visible,
.am-minimal .page-link:focus,
.am-minimal .accordion-button:focus {
  box-shadow: 0 0 0 2px rgba(17, 17, 17, .15) !important;
  outline: 0;
}

.am-minimal .form-range:focus::-webkit-slider-thumb,
.am-minimal .form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 2px rgba(17, 17, 17, .15);
}

/* 搜索弹层：胶囊输入框 → 直角；聚焦橙色边框 → 黑色 */
.am-minimal #offcanvas-search-top .search-input-wrap input {
  border-radius: 0;
  border-color: var(--am-line);
  box-shadow: none;
}

.am-minimal #offcanvas-search-top .search-input-wrap input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, .06);
}

.am-minimal #offcanvas-search-top .search-input-wrap .input-group-text {
  color: #111111;
}

.am-minimal #offcanvas-search-top .hot-search-list .btn {
  border-radius: 0 !important;
  border-color: var(--am-line) !important;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
}

.am-minimal #offcanvas-search-top .hot-search-list .btn:hover {
  background: #111111;
  border-color: #111111 !important;
  color: #ffffff;
}

/* ---------- 头部导航 ------------------------------------------------------ */
.am-minimal header {
  background-color: #fff;
}

/* 顶部工具条：浅灰底 → 白底 + 发丝线 */
.am-minimal .top-wrap {
  background: #fff;
  border-bottom: 1px solid var(--am-line);
  height: 34px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--am-muted);
}

.am-minimal .top-wrap .btn {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 0 0.2rem;
  background: transparent;
  border: 0;
  color: var(--am-muted);
  text-transform: uppercase;
}

.am-minimal .top-wrap a {
  color: var(--am-muted);
  text-decoration: none;
}

.am-minimal .top-wrap a:hover,
.am-minimal .top-wrap .btn:hover {
  color: var(--am-ink);
}

/* 主导航：加高留白，去掉阴影 */
.am-minimal .header-content {
  background: #fff;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--am-line);
  box-shadow: none;
}

.am-minimal .header-content .logo {
  margin-right: 36px;
}.am-minimal .header-content .logo img {
  max-height: 30px;
  width: auto;
}

.am-minimal .header-content .menu-wrap > .navbar-nav {
  gap: 2px;
}

.am-minimal .header-content .menu-wrap > .navbar-nav > .nav-item > .nav-link {
  padding: 0.55rem 1.1rem;
  font-size: 11.5px;
  font-weight: 500 !important;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--am-ink);
  text-decoration: none;
}

.am-minimal .header-content .menu-wrap > .navbar-nav > .nav-item > .nav-link:hover {
  color: var(--am-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* 右侧图标 */
.am-minimal .header-content .right-btn .nav-link {
  padding: 0 0.6rem;
  color: var(--am-ink);
}

.am-minimal .header-content .right-btn .nav-link img {
  width: 21px;
  opacity: .9;
  transition: opacity .16s ease;
}

.am-minimal .header-content .right-btn .nav-link:hover img {
  opacity: .5;
}

/* 下拉面板 */
.am-minimal header .dropdown-menu {
  border: 1px solid var(--am-line);
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .07);
  padding: 10px 0;
}

.am-minimal header .dropdown-menu .dropdown-item {
  padding: 9px 18px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--am-ink);
}

.am-minimal header .dropdown-menu .dropdown-item:hover {
  background-color: var(--am-soft);
  color: var(--am-ink);
}

/* 滚动吸附状态：去掉投影，只用发丝线 */
.am-minimal .header-content.fixed {
  box-shadow: none;
  border-bottom: 1px solid var(--am-line);
  padding: 0.7rem 0;
}

/* 移动端：顶部与吸顶都保留底部发丝线（与电脑端一致） */
.am-minimal .header-mobile {
  border-bottom: 1px solid var(--am-line);
}

/* 主题在 .fixed 状态下把边框设成透明并加了大阴影，这里改回细线、去掉阴影 */
.am-minimal .header-mobile.fixed {
  background: #ffffff;
  border-bottom: 1px solid var(--am-line) !important;
  box-shadow: none !important;
}

.am-minimal .header-mobile .mobile-content {
  padding: 10px 14px;
}

/* 左侧汉堡 / 搜索图标：统一 22px，与右侧图标视觉等重 */
.am-minimal .header-mobile .mobile-open-menu img,
.am-minimal .header-mobile .mobile-open-search img {
  width: 22px;
  height: 22px;
  display: block;
}

.am-minimal .header-mobile .mobile-open-menu,
.am-minimal .header-mobile .mobile-open-search {
  cursor: pointer;
  opacity: .95;
  transition: opacity .16s ease;
}

.am-minimal .header-mobile .mobile-open-menu:hover,
.am-minimal .header-mobile .mobile-open-search:hover {
  opacity: .55;
}

.am-minimal .header-mobile .mobile-content > div.center a img {
  max-height: 26px;
}

.am-minimal .header-mobile .nav-link img {
  width: 22px;
}

/* ---------- 面包屑 / 分页 -------------------------------------------------- */
.am-minimal .breadcrumb-wrap {
  background-color: transparent;
  border-bottom: 1px solid var(--am-line);
}

.am-minimal .pagination .page-link {
  border-radius: 0;
  border-color: var(--am-line);
  color: var(--am-ink);
  font-size: 13px;
}

.am-minimal .pagination .page-item.active .page-link {
  background-color: #111111;
  border-color: #111111;
  color: #fff;
}

/* ---------- 结算 / 账户等区块 ---------------------------------------------- */
.am-minimal .steps .step,
.am-minimal .step {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.am-minimal table {
  font-size: 13.5px;
}

.am-minimal table thead th {
  border-bottom: 1px solid #111111;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- 设计器模块（幻灯片 / 图片组 / 品牌墙）：统一直角 ---------------- */
/* 原样式里 .module-img-text-slideshow-2.w-container-fluid 是 16px，
   图片模块 10px，品牌卡 15px，banner 14px，内部标签 40px 胶囊，这里全部抹平 */
.am-minimal .module-img-text-slideshow,
.am-minimal .module-img-text-slideshow-2,
.am-minimal .module-img-text-slideshow-2.w-container,
.am-minimal .module-img-text-slideshow-2.w-container-fluid,
.am-minimal .module-img-text-slideshow-2 .image-wrap,
.am-minimal .module-image-400 .image-wrap,
.am-minimal .module-image-402 .image-wrap,
.am-minimal .module-image-403 .image-wrap,
.am-minimal .module-image-400 .img-name span,
.am-minimal .module-image-402 .img-name span,
.am-minimal .module-img-text-banner-multiple .image-wrap,
.am-minimal .module-img-text-banner-multiple .image-wrap .image-item,
.am-minimal .module-img-text-banner-multiple .image-wrap .text-wrap .btn,
.am-minimal .module-brand .brand-item {
  border-radius: 0 !important;
}

/* Bootstrap 圆角工具类带 !important，这里用更高优先级压掉 */
.am-minimal .rounded,
.am-minimal .rounded-1,
.am-minimal .rounded-2,
.am-minimal .rounded-3,
.am-minimal .rounded-4,
.am-minimal .rounded-5,
.am-minimal .rounded-pill,
.am-minimal .rounded-circle {
  border-radius: 0 !important;
}

/* 幻灯片区里的 CTA：白底、直角、hover 反色 */
.am-minimal .module-img-text-slideshow-2 .text-wrap a.btn {
  border-radius: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* 幻灯片：去掉放大裁切效果，保证整图完整显示（右侧不再被切） */
.am-minimal .module-img-text-slideshow-2 .image-wrap,
.am-minimal .module-img-text-slideshow-2 .swiper-slide-active .image-wrap {
  transform: none !important;
}

.am-minimal .module-img-text-slideshow-2 .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* 幻灯片分页器：细长条，比圆点更克制 */
.am-minimal .module-img-text-slideshow-2 .swiper-pagination-bullet {
  width: 22px;
  height: 2px;
  border-radius: 0;
}

.am-minimal .module-img-text-slideshow-2 .swiper-pagination-bullet::after {
  display: none;
}

/* ---------- 购物车抽屉 ------------------------------------------------------ */
.am-minimal #offcanvas-right-cart {
  background: #fff;
}

.am-minimal #offcanvas-right-cart .offcanvas-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--am-line);
}

.am-minimal #offcanvas-right-cart .offcanvas-header h5 {
  font-family: var(--am-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-ink);
}

.am-minimal #offcanvas-right-cart .btn-close {
  opacity: .75;
  border-radius: 0;
}

.am-minimal #offcanvas-right-cart .btn-close:hover { opacity: 1; }

/* 空购物车 */
.am-minimal #offcanvas-right-cart .empty-cart {
  padding: 44px 0 24px;
}

.am-minimal #offcanvas-right-cart .empty-cart-icon i {
  font-size: 26px;
  color: #111111;
}

.am-minimal #offcanvas-right-cart .empty-cart-text h5 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--am-ink);
}

.am-minimal #offcanvas-right-cart .empty-cart-text p {
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--am-muted);
}

.am-minimal #offcanvas-right-cart .empty-cart-action .btn {
  width: 100%;
  padding: 0.85rem 1.4rem;
}

/* 抽屉主按钮：与全站一致的黑色（保留选中态描边） */
.am-minimal #offcanvas-right-cart .btn-primary {
  --bs-btn-bg: #111111;
  --bs-btn-border-color: #111111;
  --bs-btn-color: #ffffff;
  --bs-btn-hover-bg: var(--am-accent-hover);
  --bs-btn-hover-border-color: var(--am-accent-hover);
  --bs-btn-hover-color: #ffffff;
}

/* 商品行 */
.am-minimal #offcanvas-right-cart .product-list {
  padding: 16px 0;
  border-top: 1px solid var(--am-line);
}

.am-minimal #offcanvas-right-cart .product-list .name {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--am-ink);
}

.am-minimal #offcanvas-right-cart .product-list .text-muted {
  font-size: 11.5px;
  color: var(--am-muted) !important;
}

.am-minimal #offcanvas-right-cart .product-list .price input {
  height: 28px;
  border-radius: 0;
  border: 1px solid var(--am-line);
  font-size: 12px;
}

.am-minimal #offcanvas-right-cart .offcanvas-products-delete {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--am-muted);
}

/* 底部结算区 */
.am-minimal #offcanvas-right-cart .offcanvas-footer .top-footer {
  background: var(--am-soft) !important;
  border-top: 1px solid var(--am-line);
  font-size: 12px;
}

.am-minimal #offcanvas-right-cart .offcanvas-footer .btn {
  border-radius: 0;
}

.am-minimal #offcanvas-right-cart .offcanvas-footer .p-4 {
  border-top: 1px solid var(--am-line);
}

/* ---------- 页脚 ---------------------------------------------------------- */
.am-minimal footer {
  background: #ffffff;
  border-top: 1px solid var(--am-line);
  margin-top: 72px;
  color: var(--am-ink);
}

/* 服务承诺条：去底色，改发丝分隔 */
.am-minimal footer .services-wrap {
  padding: 30px 0;
  border-bottom: 1px solid var(--am-line);
}

.am-minimal footer .services-wrap .service-item .icon {
  margin-bottom: 12px;
  opacity: .75;
}

.am-minimal footer .services-wrap .service-item .icon img {
  filter: grayscale(1);
}

.am-minimal footer .services-wrap .service-item .title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--am-ink);
  margin-bottom: 4px;
}

.am-minimal footer .services-wrap .service-item .sub-title {
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--am-muted);
}

/* 主体区 */
.am-minimal footer .footer-content {
  padding: 56px 0 48px;
}

.am-minimal footer .footer-content h6 {
  font-family: var(--am-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-ink);
  margin-bottom: 18px;
}

.am-minimal footer .footer-content .text,
.am-minimal footer .footer-content p {
  font-size: 13px;
  line-height: 1.75;
  color: #555555;
}

.am-minimal footer .footer-content a {
  color: #555555;
  text-decoration: none;
  transition: color .16s, border-color .16s;
  border-bottom: 1px solid transparent;
}

.am-minimal footer .footer-content a:hover {
  color: var(--am-ink);
  border-bottom-color: var(--am-ink);
}

.am-minimal footer .footer-link-wrap ul.list-unstyled li {
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 1.6;
}

.am-minimal footer .footer-link-wrap ul.list-unstyled li i {
  color: #9a9a9a;
  margin-right: 6px;
  font-size: 12px;
}

/* 社交图标：去边框、去位移动画 */
.am-minimal footer .social-network {
  margin-top: 16px;
  gap: 14px;
}

.am-minimal footer .social-network > a {
  width: 22px;
  height: 22px;
  margin-right: 0;
  opacity: .7;
  transition: opacity .16s;
  border-bottom: 0;
}

.am-minimal footer .social-network > a:hover {
  transform: none;
  opacity: 1;
  border-bottom: 0;
}

/* 底栏 */
.am-minimal footer .footer-bottom {
  border-top: 1px solid var(--am-line);
  color: var(--am-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 0;
  min-height: 0;
}

.am-minimal footer .footer-bottom .copyright-content strong {
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* 移动端手风琴：发丝线代替灰底 */
@media (max-width: 767.98px) {
  .am-minimal footer {
    margin-top: 48px;
  }

  .am-minimal footer .footer-content {
    padding: 8px 0 24px;
  }

  .am-minimal footer .footer-link-wrap {
    border-bottom: 1px solid var(--am-line);
  }

  .am-minimal footer .footer-link-wrap h6 {
    margin-bottom: 0;
    padding: 16px 0;
    font-size: 11px;
  }

  .am-minimal footer .footer-bottom {
    padding: 16px 0;
  }
}

/* ---------- 响应式 -------------------------------------------------------- */
@media (max-width: 767.98px) {
  .am-minimal { font-size: 14.5px; }
  .am-minimal .btn { font-size: 11px; padding: 0.85rem 1.3rem; }
  .am-minimal .product-wrap .product-name { font-size: 12.5px; }
  .am-minimal .product-wrap .product-price .price-new { font-size: 13px; }
}

/* ---------- 商品详情：规格值方块 ---------------------------------------- */
/* 主题默认是胶囊（border-radius:100px），这里只改形状，不动其它布局 */
.am-minimal .variables-wrap .variable-info > div {
  border-radius: 0 !important;
  min-width: 50px;
  height: 42px;
  margin: 0 8px 8px 0;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
}

.am-minimal .variables-wrap .variable-info > div.selected {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

/* ---------- 商品详情：数量步进器 ---------------------------------------- */
/* 主题全局写了 .input-group{max-width:60px}，把数量框挤成两行，
   加号按钮被截断。这里重建为一行固定尺寸。 */
.am-minimal .quantity-wrap {
  display: flex;
  flex-wrap: nowrap;
  width: 132px;
  max-width: 132px;
  height: 44px;
  margin: 0;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  overflow: hidden;
}

.am-minimal .quantity-wrap .btn {
  flex: 0 0 44px;
  width: 44px;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  line-height: 1;
}

.am-minimal .quantity-wrap .btn:hover {
  background: #f6f6f5;
  color: #111111;
}

.am-minimal .quantity-wrap .btn:active {
  background: #ededed;
}

.am-minimal .quantity-wrap .form-control {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-left: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  border-radius: 0;
  text-align: center;
  font-size: 14px;
}

/* ---------- 商品详情：主图自动裁剪 ---------------------------------------- */
/* 和列表卡片一致，主图框固定 1:1，图片 cover 裁切填满 */
/* 用 #zoom 这个 ID 兜底，权重 (1,5,1)，主题任何规则都压不过 */
body.am-minimal.page-product #zoom .product-img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #fafafa;
  position: relative;
}

body.am-minimal.page-product #zoom .product-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  position: static !important;
  opacity: 1 !important;
}

/* 移动端轮播同样 1:1 */
.am-minimal #swiper-mobile .swiper-slide {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.am-minimal #swiper-mobile .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- 链接式按钮（a.btn） -------------------------------------- */
/* 全局 .am-minimal a 的颜色会盖掉按钮自带的 --bs-btn-color，
   导致黑底按钮上的文字也是黑色（看不见）。这里让它跟随按钮变量。 */
.am-minimal a.btn {
  color: var(--bs-btn-color, var(--am-ink));
  text-decoration: none;
}

.am-minimal a.btn:hover,
.am-minimal a.btn:focus {
  color: var(--bs-btn-hover-color, #ffffff);
  text-decoration: none;
}

.am-minimal a.btn.disabled,
.am-minimal a.btn:disabled {
  color: var(--bs-btn-disabled-color, #9a9a9a) !important;
}

/* 链接式按钮的 hover：背景和文字必须一起变，
   否则会出现白底白字（看不见） */
.am-minimal a.btn:hover,
.am-minimal a.btn:focus {
  text-decoration: none;
}

/* 描边按钮：hover 反色为黑底白字 */
.am-minimal a.btn.btn-outline-dark:hover,
.am-minimal a.btn.btn-outline-dark:focus,
.am-minimal a.btn.btn-outline-secondary:hover,
.am-minimal a.btn.btn-outline-secondary:focus {
  background-color: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
}

/* 实心按钮：hover 提亮为深灰 */
.am-minimal a.btn.btn-dark:hover,
.am-minimal a.btn.btn-dark:focus,
.am-minimal a.btn.btn-primary:hover,
.am-minimal a.btn.btn-primary:focus {
  background-color: var(--am-accent-hover) !important;
  border-color: var(--am-accent-hover) !important;
  color: #ffffff !important;
}

/* 禁用态不反色 */
.am-minimal a.btn.disabled:hover,
.am-minimal a.btn.disabled:focus {
  background-color: #9a9a9a !important;
  border-color: #9a9a9a !important;
  color: #ffffff !important;
}

/* ==========================================================================
   商品详情页 v2 —— 对齐 kicksreplica 布局
   ========================================================================== */

/* 容器更宽，左右留白更舒展 */
body.am-minimal.page-product .product-container {
  max-width: 1320px;
  padding-left: 20px;
  padding-right: 20px;
}

/* 图库：大方图 + 左侧缩略图 */
body.am-minimal.page-product #zoom .product-img {
  background: #fafafa !important;
}

body.am-minimal.page-product .product-image .left {
  width: 88px;
}

body.am-minimal.page-product .product-image .left .swiper-slide a {
  border: 1px solid #e8e8e8;
}

body.am-minimal.page-product .product-image .left .swiper-slide.active a {
  border: 2px solid #111111;
}

/* 标题 */
body.am-minimal.page-product .product-info .product-name {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

/* 价格 */
body.am-minimal.page-product .product-info .price-wrap .new-price {
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

body.am-minimal.page-product .product-info .price-wrap .old-price {
  font-size: 15px;
  margin-left: 10px;
}

/* 库存/品牌/SKU：去框，弱化成小字 */
body.am-minimal.page-product .stock-and-sku {
  border: 0;
  padding: 12px 0 4px;
  font-size: 12.5px;
  color: #6b6b6b;
  background: transparent;
}

body.am-minimal.page-product .stock-and-sku > div {
  display: block;
  margin-bottom: 4px;
}

body.am-minimal.page-product .stock-and-sku .title {
  display: inline-block;
  min-width: 64px;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9a9a9a !important;
}

/* 规格名 */
body.am-minimal.page-product .variables-wrap .variable-group > p {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* 颜色（带图片的值）做成圆形色块 */
body.am-minimal.page-product .variables-wrap .variable-info > div.is-v-image {
  width: 58px;
  height: 58px;
  min-width: 58px;
  padding: 0;
  border-radius: 50% !important;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

body.am-minimal.page-product .variables-wrap .variable-info > div.is-v-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.am-minimal.page-product .variables-wrap .variable-info > div.is-v-image.selected {
  border: 2px solid #111111;
}

body.am-minimal.page-product .variables-wrap .variable-info > div.is-v-image.disabled {
  opacity: .35;
}

/* 尺码（文字值）方块 */
body.am-minimal.page-product .variables-wrap .variable-info > div:not(.is-v-image) {
  min-width: 54px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dfdfdf;
  border-radius: 0 !important;
  font-size: 13px;
  font-weight: 500;
}

body.am-minimal.page-product .variables-wrap .variable-info > div:not(.is-v-image):hover {
  border-color: #111111;
}

body.am-minimal.page-product .variables-wrap .variable-info > div:not(.is-v-image).selected {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

/* 数量 + 购买按钮 */
body.am-minimal.page-product .quantity-wrap {
  display: flex;
  flex-wrap: nowrap;
  width: 132px;
  max-width: 132px;
  height: 50px;
  border: 1px solid #dfdfdf;
}

body.am-minimal.page-product .quantity-wrap .btn {
  flex: 0 0 42px;
  width: 42px;
  height: 100%;
  border: 0;
  background: #fff;
}

body.am-minimal.page-product .quantity-wrap .form-control {
  height: 100%;
  border: 0;
  border-left: 1px solid #dfdfdf;
  border-right: 1px solid #dfdfdf;
  text-align: center;
}

body.am-minimal.page-product .product-btns .add-cart-btns {
  display: flex;
  gap: 12px;
}

body.am-minimal.page-product .product-btns .add-cart,
body.am-minimal.page-product .product-btns .btn-buy-now {
  flex: 1 1 0;
  height: 50px;
  margin: 0 !important;
  font-size: 11.5px;
  letter-spacing: .12em;
}

/* 详情页签 */
body.am-minimal.page-product .product-description {
  margin-top: 64px;
  border-top: 1px solid #e8e8e8;
}

body.am-minimal.page-product .product-description .nav-tabs {
  gap: 34px;
  border-bottom: 1px solid #e8e8e8;
}

body.am-minimal.page-product .product-description .nav-tabs .nav-link {
  padding: 18px 0;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a8a8a;
}

body.am-minimal.page-product .product-description .nav-tabs .nav-link.active {
  color: #111111;
  border-bottom: 2px solid #111111;
  margin-bottom: -1px;
}

/* 相关商品 */
body.am-minimal.page-product .relations-wrap {
  margin-top: 72px;
}

/* 移动端 */
@media (max-width: 767.98px) {
  body.am-minimal.page-product .product-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.am-minimal.page-product .product-info .product-name {
    font-size: 20px;
    margin-bottom: 8px;
  }

  body.am-minimal.page-product .product-info .price-wrap .new-price {
    font-size: 22px !important;
  }

  body.am-minimal.page-product .variables-wrap .variable-info > div.is-v-image {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  body.am-minimal.page-product .variables-wrap .variable-info > div:not(.is-v-image) {
    min-width: 50px;
    height: 42px;
    font-size: 12.5px;
  }

  body.am-minimal.page-product .quantity-wrap {
    width: 120px;
    max-width: 120px;
    height: 46px;
  }

  body.am-minimal.page-product .product-btns .add-cart,
  body.am-minimal.page-product .product-btns .btn-buy-now {
    height: 46px;
    font-size: 11px;
  }

  body.am-minimal.page-product .product-description {
    margin-top: 40px;
  }

  body.am-minimal.page-product .product-description .nav-tabs {
    gap: 20px;
  }
}

/* ==========================================================================
   商品详情页 —— 间距系统（对齐 kicksreplica 的垂直节奏）
   标题 12 → 评分 16 → 价格 4 → 库存 20 → 规格组 18 → 尺码标题 10
   ========================================================================== */

/* 标题 */
body.am-minimal.page-product .product-info .product-name {
  margin: 0 0 12px !important;
}

/* 标题下方的评分 */
body.am-minimal.page-product .sr-title-rating {
  margin: 0 0 16px !important;
}

/* 价格 */
body.am-minimal.page-product .product-info .price-wrap {
  margin: 0 0 4px;
}

/* 库存 / 品牌 / SKU：小字块，不占太多空间 */
body.am-minimal.page-product .product-info .stock-and-sku {
  margin: 0 0 20px;
  padding: 10px 0 0;
  line-height: 1.75;
}

/* 所有直接子块统一间距，避免主题的 mb-2 / mb-md-3 叠加 */
body.am-minimal.page-product .product-info > .mb-md-3,
body.am-minimal.page-product .product-info > .variables-wrap {
  margin: 0 0 18px !important;
}

/* 规格：用 gap 控制间距，去掉每个值自带的 margin（之前就是这个叠加导致不齐） */
body.am-minimal.page-product .variables-wrap .variable-info {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
}

body.am-minimal.page-product .variables-wrap .variable-info > div {
  margin: 0 !important;
}

body.am-minimal.page-product .variables-wrap .variable-group {
  margin: 0 0 18px !important;
}

body.am-minimal.page-product .variables-wrap .variable-group:last-child {
  margin-bottom: 0 !important;
}

body.am-minimal.page-product .variables-wrap .variable-group > p {
  margin: 0 0 10px !important;
}

/* 数量 */
body.am-minimal.page-product .product-info > .mb-md-3 > p {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.am-minimal.page-product .quantity-wrap {
  margin: 0;
}

/* 按钮组 */
body.am-minimal.page-product .product-btns {
  margin: 0;
}

body.am-minimal.page-product .product-btns .add-cart-btns {
  gap: 10px;
}

body.am-minimal.page-product .add-wishlist {
  margin-top: 14px;
}

/* 移动端同样的节奏 */
@media (max-width: 767.98px) {
  body.am-minimal.page-product .product-info .product-name {
    margin-bottom: 10px !important;
  }

  body.am-minimal.page-product .sr-title-rating {
    margin-bottom: 14px !important;
  }

  body.am-minimal.page-product .product-info .stock-and-sku {
    margin-bottom: 16px;
    padding-top: 8px;
  }

  body.am-minimal.page-product .product-info > .mb-md-3,
  body.am-minimal.page-product .product-info > .variables-wrap {
    margin-bottom: 16px !important;
  }

  body.am-minimal.page-product .variables-wrap .variable-info {
    gap: 8px;
  }

  body.am-minimal.page-product .variables-wrap .variable-group {
    margin-bottom: 16px !important;
  }
}

/* ---------- 商品信息折叠（Stock / Brand / SKU） ---------- */
body.am-minimal.page-product .pd-acc {
  margin: 0 0 20px;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

body.am-minimal.page-product .pd-acc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: transparent;
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

body.am-minimal.page-product .pd-acc-toggle:hover {
  opacity: .7;
}

body.am-minimal.page-product .pd-acc-icon {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}

body.am-minimal.page-product .pd-acc.is-open .pd-acc-icon {
  transform: rotate(45deg);
}

body.am-minimal.page-product .pd-acc-body {
  padding: 0 0 16px;
}

body.am-minimal.page-product .pd-acc-body[hidden] {
  display: none;
}

/* 折叠内部的库存块不再占外边距 */
body.am-minimal.page-product .pd-acc-body .stock-and-sku {
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 767.98px) {
  body.am-minimal.page-product .pd-acc-toggle {
    padding: 14px 0;
    font-size: 12px;
  }

  body.am-minimal.page-product .pd-acc {
    margin-bottom: 16px;
  }
}

/* ---------- 商品页：按钮下方的折叠堆栈（对齐参考站） ---------- */
body.am-minimal.page-product .pd-accordions {
  margin: 26px 0 0;
  border-bottom: 1px solid #e8e8e8;
}

body.am-minimal.page-product .pd-accordions .pd-acc {
  margin: 0 !important;
  border-top: 1px solid #e8e8e8;
  border-bottom: 0 !important;
}

body.am-minimal.page-product .pd-accordions .pd-acc-toggle {
  padding: 18px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

body.am-minimal.page-product .pd-accordions .pd-acc-body {
  padding: 0 0 18px;
}

body.am-minimal.page-product .pd-acc-table {
  margin: 10px 0 0;
  font-size: 13px;
}

body.am-minimal.page-product .pd-acc-table td {
  border: 0;
  padding: 6px 0;
}

body.am-minimal.page-product .pd-acc-label {
  width: 140px;
  color: #8a8a8a;
}

/* 评价区被插到堆栈里时，去掉它自带的上下边距 */
body.am-minimal.page-product .pd-accordions #product-reviews {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.am-minimal.page-product .pd-accordions #product-reviews .sr-toggle {
  padding: 18px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

body.am-minimal.page-product .pd-accordions #product-reviews .sr-body {
  padding: 0 0 18px;
}

@media (max-width: 767.98px) {
  body.am-minimal.page-product .pd-accordions {
    margin-top: 20px;
  }

  body.am-minimal.page-product .pd-accordions .pd-acc-toggle,
  body.am-minimal.page-product .pd-accordions #product-reviews .sr-toggle {
    padding: 15px 0;
    font-size: 12px;
  }

  body.am-minimal.page-product .pd-acc-label {
    width: 110px;
  }
}

/* ---------- 折叠堆栈：统一行高与分隔线（修正横线不齐） ---------- */
body.am-minimal.page-product .pd-accordions {
  border-top: 0 !important;
  border-bottom: 1px solid #e8e8e8 !important;
}

body.am-minimal.page-product .pd-accordions > * {
  margin: 0 !important;
}

/* 每个条目（含评价）只保留上边框 */
body.am-minimal.page-product .pd-accordions .pd-acc,
body.am-minimal.page-product .pd-accordions #product-reviews {
  border: 0 !important;
  border-top: 1px solid #e8e8e8 !important;
  background: transparent;
}

/* 标题行：高度/内边距/字号完全一致 */
body.am-minimal.page-product .pd-accordions .pd-acc-toggle,
body.am-minimal.page-product .pd-accordions #product-reviews .sr-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  height: 54px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111111 !important;
  text-align: left;
  cursor: pointer;
}

body.am-minimal.page-product .pd-accordions .pd-acc-toggle:hover,
body.am-minimal.page-product .pd-accordions #product-reviews .sr-toggle:hover {
  opacity: .7;
}

/* 展开后的内容区 */
body.am-minimal.page-product .pd-accordions .pd-acc-body,
body.am-minimal.page-product .pd-accordions #product-reviews .sr-body {
  padding: 0 0 20px !important;
}

body.am-minimal.page-product .pd-accordions .pd-acc-body[hidden],
body.am-minimal.page-product .pd-accordions #product-reviews .sr-body[hidden] {
  display: none !important;
}

@media (max-width: 767.98px) {
  body.am-minimal.page-product .pd-accordions .pd-acc-toggle,
  body.am-minimal.page-product .pd-accordions #product-reviews .sr-toggle {
    height: 48px;
    font-size: 12px !important;
  }
}

/* ---------- 商品页：全白背景（对齐参考站，尤其手机端） ---------- */
body.am-minimal.page-product {
  background-color: #ffffff !important;
}

body.am-minimal.page-product .product-container,
body.am-minimal.page-product #product-top {
  background-color: #ffffff !important;
}

/* 主图区也是白底，不再用浅灰 */
body.am-minimal.page-product #zoom .product-img {
  background: #ffffff !important;
}

@media (max-width: 991.98px) {
  /* 手机端：卡片白底保留，但页面不再露出灰底与卡片间隔 */
  body.am-minimal.page-product .product-mb-block {
    background-color: #ffffff !important;
    margin-bottom: 0 !important;
  }

  body.am-minimal.page-product .stock-and-sku {
    background: transparent !important;
  }

  /* 底部固定按钮条保持白底 */
  body.am-minimal.page-product .product-btns {
    background: #ffffff !important;
  }
}

/* ---------- 手机端：主图通栏（取消左右间距） ---------- */
@media (max-width: 767.98px) {
  body.am-minimal.page-product .product-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.am-minimal.page-product #product-top {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 图库列：去掉 Bootstrap 列的 12px 间距 */
  body.am-minimal.page-product #product-top > .col-12:first-child,
  body.am-minimal.page-product #product-top > .col-lg-6:first-child {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.am-minimal.page-product .product-image,
  body.am-minimal.page-product .product-image #swiper-mobile,
  body.am-minimal.page-product .product-image #swiper-mobile .swiper-slide {
    margin: 0 !important;
    border: 0 !important;
  }

  body.am-minimal.page-product #zoom .product-img {
    border: 0 !important;
  }

  /* 信息列：保留左右留白 */
  body.am-minimal.page-product #product-top > .col-12:last-child {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.am-minimal.page-product .product-info.product-mb-block {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ---------- 手机端：规格值等宽对齐（两列） ---------- */
@media (max-width: 767.98px) {
  body.am-minimal.page-product .variables-wrap .variable-info {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px !important;
  }

  /* 文字值（尺码）：一行两个，宽度完全相等 */
  body.am-minimal.page-product .variables-wrap .variable-info > div:not(.is-v-image) {
    flex: 0 0 calc(50% - 4px);
    min-width: 0 !important;
    width: calc(50% - 4px);
    height: 42px;
    margin: 0 !important;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }

  /* 颜色圆形色块：保持固定尺寸，不被拉伸 */
  body.am-minimal.page-product .variables-wrap .variable-info > div.is-v-image {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    min-width: 52px !important;
    margin: 0 !important;
  }

  /* 标题行（如 SIZE : US6...）与格子对齐 */
  body.am-minimal.page-product .variables-wrap .variable-group > p {
    margin: 0 0 10px !important;
    font-size: 11.5px !important;
    line-height: 1.5;
  }

  /* 数量区对齐 */
  body.am-minimal.page-product .product-info > .mb-md-3 > p {
    margin: 0 0 8px !important;
  }
}

/* 小屏（<=380px）字号再降一档，避免截断 */
@media (max-width: 380px) {
  body.am-minimal.page-product .variables-wrap .variable-info > div:not(.is-v-image) {
    font-size: 11px;
    padding: 0 6px;
    letter-spacing: -0.01em;
  }
}

/* ==========================================================================
   商品页规格区垂直节奏（参照欧美主流电商）
   标题 8 → 评分 12 → 价格 4 → 规格标题 22
   标题→选项 10、选项组之间 20、最后一组→数量 24
   ========================================================================== */

body.am-minimal.page-product .product-info .product-name {
  margin: 0 0 8px !important;
  line-height: 1.25 !important;
}

body.am-minimal.page-product .sr-title-rating {
  margin: 0 0 12px !important;
}

body.am-minimal.page-product .product-info .price-wrap {
  margin: 0 0 4px !important;
}

/* 第一个规格标题（COLOR）与价格拉开一档 */
body.am-minimal.page-product .product-info > .variables-wrap {
  margin: 22px 0 0 !important;
}

body.am-minimal.page-product .variables-wrap .variable-group {
  margin: 0 0 20px !important;
}

body.am-minimal.page-product .variables-wrap .variable-group:last-child {
  margin-bottom: 0 !important;
}

body.am-minimal.page-product .variables-wrap .variable-group > p {
  margin: 0 0 10px !important;
  line-height: 1.3 !important;
}

/* 尺码区与数量区之间 */
body.am-minimal.page-product .product-info > .mb-md-3 {
  margin: 24px 0 0 !important;
}

body.am-minimal.page-product .product-info > .mb-md-3 > p {
  margin: 0 0 8px !important;
}

body.am-minimal.page-product .product-btns {
  margin-top: 24px !important;
}

/* 手机端：整体收紧一档 */
@media (max-width: 767.98px) {
  body.am-minimal.page-product .product-info .product-name {
    margin-bottom: 6px !important;
  }

  body.am-minimal.page-product .sr-title-rating {
    margin-bottom: 10px !important;
  }

  body.am-minimal.page-product .product-info > .variables-wrap {
    margin-top: 18px !important;
  }

  body.am-minimal.page-product .variables-wrap .variable-group {
    margin-bottom: 16px !important;
  }

  body.am-minimal.page-product .variables-wrap .variable-group > p {
    margin-bottom: 8px !important;
  }

  body.am-minimal.page-product .product-info > .mb-md-3 {
    margin-top: 20px !important;
  }

  body.am-minimal.page-product .product-info > .mb-md-3 > p {
    margin-bottom: 8px !important;
  }
}

/* ---------- 电脑端：主图跟随滚动（sticky） ---------- */
@media (min-width: 992px) {
  body.am-minimal.page-product #product-top > .col-12:first-child,
  body.am-minimal.page-product #product-top > .col-lg-6:first-child {
    position: -webkit-sticky;
    position: sticky;
    top: 92px;                 /* 页头吸顶时的高度 + 留白 */
    align-self: flex-start;    /* flex 子项默认拉伸，必须顶部对齐 */
    height: fit-content;
    z-index: 2;
  }

  /* 主图本身不再单独固定，交给整列 sticky */
  body.am-minimal.page-product #product-top > .col-12:first-child .product-image {
    position: static;
  }
}

/* ==========================================================================
   购买区：电脑端流内排列 / 手机端数量+加购固定底部
   ========================================================================== */

/* ---- 电脑端 ---- */
body.am-minimal.page-product .pd-buybar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 26px 0 0;
}

body.am-minimal.page-product .pd-qty {
  flex: 0 0 auto;
}

body.am-minimal.page-product .pd-qty-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111111;
}

body.am-minimal.page-product .pd-buybar .product-btns {
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.am-minimal.page-product .pd-buybar .add-cart-btns {
  display: flex;
  gap: 10px;
}

body.am-minimal.page-product .pd-buybar .add-cart {
  flex: 1 1 auto;
  height: 50px;
  margin: 0 !important;
}

body.am-minimal.page-product .pd-secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 0;
}

body.am-minimal.page-product .pd-secondary .btn-buy-now {
  height: 50px;
  margin: 0 !important;
}

body.am-minimal.page-product .pd-secondary .add-wishlist {
  margin: 0;
}

/* ---- 手机端：底部固定条 = 数量 + 加购 ---- */
@media (max-width: 991.98px) {
  body.am-minimal.page-product .pd-buybar {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 10px 14px;
    background: #ffffff !important;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, .08);
  }

  body.am-minimal.page-product .pd-qty {
    flex: 0 0 118px;
  }

  body.am-minimal.page-product .pd-qty-label {
    display: none;
  }

  body.am-minimal.page-product .pd-qty .quantity-wrap {
    width: 118px !important;
    max-width: 118px !important;
    height: 48px !important;
  }

  body.am-minimal.page-product .pd-qty .quantity-wrap .btn {
    flex: 0 0 38px;
    width: 38px;
  }

  body.am-minimal.page-product .pd-buybar .add-cart {
    height: 48px;
    font-size: 11px;
  }

  /* 立即购买 + 收藏：留在尺码下方的流内 */
  body.am-minimal.page-product .pd-secondary {
    margin: 18px 0 0;
    gap: 12px;
  }

  body.am-minimal.page-product .pd-secondary .btn-buy-now {
    height: 46px;
  }

  /* 给固定条让位 */
  body.am-minimal.page-product {
    padding-bottom: 84px !important;
  }
}

/* ---------- 收藏按钮：左对齐、无内边距 ---------- */
body.am-minimal.page-product .pd-secondary .add-wishlist {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}

body.am-minimal.page-product .pd-secondary .add-wishlist .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #6b6b6b !important;
  font-family: var(--am-font);
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  text-decoration: none !important;
  text-align: left;
  line-height: 1.2;
}

body.am-minimal.page-product .pd-secondary .add-wishlist .btn:hover {
  color: #111111 !important;
  text-decoration: none !important;
}

body.am-minimal.page-product .pd-secondary .add-wishlist .btn i {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

/* 参考站同款：手机端略小一点 */
@media (max-width: 767.98px) {
  body.am-minimal.page-product .pd-secondary .add-wishlist .btn {
    font-size: 11px !important;
  }
}

/* ---------- 手机端：ADD TO CART 黑底 / BUY NOW 白底（两者互换） ---------- */
@media (max-width: 991.98px) {
  /* ADD TO CART：实心黑 */
  body.am-minimal.page-product .pd-buybar .add-cart {
    background-color: #111111 !important;
    border: 1px solid #111111 !important;
    color: #ffffff !important;
  }

  body.am-minimal.page-product .pd-buybar .add-cart:hover,
  body.am-minimal.page-product .pd-buybar .add-cart:focus {
    background-color: #3a3a3a !important;
    border-color: #3a3a3a !important;
    color: #ffffff !important;
  }

  body.am-minimal.page-product .pd-buybar .add-cart:disabled,
  body.am-minimal.page-product .pd-buybar .add-cart.disabled {
    background-color: #9a9a9a !important;
    border-color: #9a9a9a !important;
    color: #ffffff !important;
  }

  /* BUY NOW：白底黑边 */
  body.am-minimal.page-product .pd-secondary .btn-buy-now {
    background-color: #ffffff !important;
    border: 1px solid #111111 !important;
    color: #111111 !important;
  }

  body.am-minimal.page-product .pd-secondary .btn-buy-now:hover,
  body.am-minimal.page-product .pd-secondary .btn-buy-now:focus {
    background-color: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
  }

  body.am-minimal.page-product .pd-secondary .btn-buy-now:disabled {
    background-color: #ffffff !important;
    border-color: #c9c9c9 !important;
    color: #b5b5b5 !important;
  }

  /* 图标也跟着变色 */
  body.am-minimal.page-product .pd-buybar .add-cart i {
    color: inherit !important;
  }
}

/* ---------- 电脑端：主图 sticky 修正（底部与右栏底部对齐） ---------- */
@media (min-width: 992px) {
  /* 左列拉满整行高度，把 sticky 交给里面的图库 */
  body.am-minimal.page-product #product-top > .col-12:first-child,
  body.am-minimal.page-product #product-top > .col-lg-6:first-child {
    position: static !important;
    align-self: stretch !important;
    height: auto !important;
  }

  body.am-minimal.page-product #product-top > .col-12:first-child .product-image,
  body.am-minimal.page-product #product-top > .col-lg-6:first-child .product-image {
    position: -webkit-sticky;
    position: sticky;
    top: 92px;
    z-index: 2;
  }

  /* 图库高度不超过可视区，避免被底部裁掉 */
  body.am-minimal.page-product #product-top > .col-12:first-child .product-image {
    max-height: calc(100vh - 120px);
  }
}

/* ==========================================================================
   修复：主题给 .product-container 设了 overflow-x:hidden，
   会把它变成滚动容器，导致里面的 position:sticky 完全失效。
   用 overflow-x: clip（不建立滚动容器）代替，不支持时回退为 visible。
   ========================================================================== */
@media (min-width: 992px) {
  body.am-minimal.page-product .product-container {
    overflow: visible !important;
    overflow-x: clip !important;
  }

  body.am-minimal.page-product .product-container > .row,
  body.am-minimal.page-product #product-top {
    overflow: visible !important;
  }
}

/* ==========================================================================
   主图布局修正
   1) .right 是 flex 子项但没设 flex-grow，宽度被图片撑成“自适应”，
      导致图片只占列宽的一半（你截图里左边空一大块）
   2) jquery.zoom 在悬停时会插入 .zoomImg 并强行改尺寸，和 1:1 裁剪冲突
   ========================================================================== */

body.am-minimal.page-product .product-image .right {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

body.am-minimal.page-product .product-image .left {
  flex: 0 0 auto;
}

/* 关掉悬停放大（它会把图片强行放大再缩回，视觉很乱） */
body.am-minimal.page-product #zoom .zoomImg {
  display: none !important;
  background: none !important;
}

body.am-minimal.page-product #zoom .product-img img {
  transform: none !important;
  transition: none !important;
  opacity: 1 !important;
  cursor: default !important;
}

/* 主图区不再显示拖拽手形 */
body.am-minimal.page-product #zoom {
  cursor: default !important;
}

/* ==========================================================================
   修正 1：恢复鼠标放大镜（但不再强行裁切/缩放源图）
   ========================================================================== */
body.am-minimal.page-product #zoom .zoomImg {
  display: block !important;
  opacity: 0;
  transition: opacity .12s ease;
}

body.am-minimal.page-product #zoom:hover .zoomImg {
  opacity: 1 !important;
}

body.am-minimal.page-product #zoom {
  cursor: crosshair !important;
}

body.am-minimal.page-product #zoom .product-img {
  overflow: hidden !important;   /* 放大层不会溢出到右栏 */
}

/* ==========================================================================
   修正 2：底部对齐——把右栏尾部的余留间距清零，
   让“整行底部”= “最后一个折叠项的下边框”
   ========================================================================== */
body.am-minimal.page-product .pd-accordions {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.am-minimal.page-product .pd-accordions > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.am-minimal.page-product .product-info,
body.am-minimal.page-product .product-info.product-mb-block {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.am-minimal.page-product #product-top {
  align-items: stretch !important;
  margin-bottom: 0 !important;
}

/* 图库列拉满，sticky 才能走到整行最底 */
@media (min-width: 992px) {
  body.am-minimal.page-product #product-top > .col-12:first-child,
  body.am-minimal.page-product #product-top > .col-lg-6:first-child {
    display: block !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 1px;
  }

  body.am-minimal.page-product #product-top > .col-12:first-child .product-image {
    position: -webkit-sticky;
    position: sticky;
    top: 92px;
    margin: 0;
  }
}

/* ==========================================================================
   商品页布局最终定义（放在最后，覆盖前面所有历史版本）
   排查结论：左列源码上带了 mb-2（8px），且右栏末尾有多层余留边距，
   导致「整行底部」和「折叠区底部」差了十几到二十几像素。
   ========================================================================== */
@media (min-width: 992px) {
  body.am-minimal.page-product #product-top {
    display: flex !important;
    align-items: stretch !important;
  }

  /* 左列：去掉 mb-2，拉满整行，不自己 sticky */
  body.am-minimal.page-product #product-top > .col-12:first-child,
  body.am-minimal.page-product #product-top > .col-lg-6:first-child {
    position: static !important;
    align-self: stretch !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 图库本身 sticky，容器就是这个拉满的左列 */
  body.am-minimal.page-product #product-top > .col-12:first-child .product-image {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 92px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* 主图区撑满剩余宽度 */
  body.am-minimal.page-product .product-image .left {
    flex: 0 0 auto !important;
  }

  body.am-minimal.page-product .product-image .right {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  /* 右栏：清掉末尾余留，保证底部与左列底部同一条线 */
  body.am-minimal.page-product .product-info,
  body.am-minimal.page-product .product-info.product-mb-block,
  body.am-minimal.page-product .pd-accordions,
  body.am-minimal.page-product .pd-accordions > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* ==========================================================================
   主图左对齐：与面包屑 HOME 同一起点
   1) 商品容器左内边距改回 12px（与 .breadcrumb-wrap .container 一致）
   2) 缩略图列移到主图右侧，主图成为左边第一个元素
   ========================================================================== */
@media (min-width: 992px) {
  body.am-minimal.page-product .product-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.am-minimal.page-product .product-image {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;   /* 必须拉伸，否则缩略图 swiper 高度塑陷，只显示一张 */
  }

  /* 缩略图保持在左边（恢复顺序） */
  body.am-minimal.page-product .product-image .left {
    order: 0 !important;
    flex: 0 0 80px !important;
    width: 80px;
    margin-left: 0 !important;
    margin-right: 6px !important;   /* 缩短与主图的间距，主图略往左 */
  }

  /* 主图：占剩余宽度 */
  body.am-minimal.page-product .product-image .right {
    order: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
}

/* 缩略图列：保证高度被撑开，垂直 swiper 能显示多张 */
@media (min-width: 992px) {
  body.am-minimal.page-product .product-image .left {
    align-self: stretch !important;
    height: auto !important;
    min-height: 1px;
  }

  body.am-minimal.page-product .product-image .left .swiper,
  body.am-minimal.page-product .product-image #swiper {
    height: 100% !important;
    min-height: 320px;
  }

  body.am-minimal.page-product .product-image .left .swiper .swiper-wrapper {
    flex-direction: column !important;
  }

  body.am-minimal.page-product .product-image .left .swiper-slide {
    height: 80px !important;
    min-height: 80px !important;
    margin-bottom: 10px;
  }
}

/* ==========================================================================
   商品卡片：去圆角（美式极简）
   主题给 .product-wrap .image 设了 border-radius:12px，这里统一归零
   ========================================================================== */
.am-minimal .product-wrap,
.am-minimal .product-wrap .image,
.am-minimal .product-wrap .image > a,
.am-minimal .product-wrap .image img,
.am-minimal .product-wrap .image .image-before,
.am-minimal .product-wrap .image .image-after,
.am-minimal .product-wrap .button-wrap .btn,
.am-minimal .product-grid .image,
.am-minimal .related-products .image {
  border-radius: 0 !important;
}

/* 卡片图框不再使用浅灰底，與商品页白底一致 */
.am-minimal .product-wrap .image {
  background-color: #fafafa;
}

/* 卡片内部文字对齐更紧凑 */
.am-minimal .product-wrap .product-name {
  margin: 12px 0 6px;
}

/* 相关商品区域的标题与间距 */
.am-minimal .relations-wrap .module-title,
.am-minimal .relations-wrap .title {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ==========================================================================
   首页「推荐商品」标签页：去掉 hover 时多出来的灰线
   主题：.module-tab-product .nav .nav-link:hover { border-color:#ddd }
   ========================================================================== */
.am-minimal .module-tab-product .nav .nav-link {
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: #8a8a8a !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
  padding: .35rem .2rem !important;
  margin: 0 14px !important;
  transition: color .16s ease;
}

.am-minimal .module-tab-product .nav .nav-link:hover,
.am-minimal .module-tab-product .nav .nav-link:focus {
  border-color: transparent !important;   /* 关键：不再出现灰线 */
  color: #111111 !important;
  text-decoration: none;
}

.am-minimal .module-tab-product .nav .nav-link.active {
  border-bottom: 2px solid #111111 !important;
  color: #111111 !important;
}

/* 标题下方的波浪线：改成细直线，更符合极简 */
.am-minimal .module-tab-product .module-title .wave-line {
  display: none !important;
}

/* ==========================================================================
   购物车页（查看购物车）—— 美式极简，与一页式结账保持一致
   ========================================================================== */
body.am-minimal.page-cart {
  background: #ffffff !important;
}

/* 与结账页一致：不再显示步骤条 */
body.am-minimal.page-cart .steps-wrap {
  display: none !important;
}

body.am-minimal.page-cart .row.mt-5 {
  margin-top: 12px !important;
}

/* 卡片：发丝线 + 直角 + 无阴影 */
body.am-minimal.page-cart .card {
  border: 1px solid #e8e8e8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

body.am-minimal.page-cart .card h4 {
  margin-bottom: 18px !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #111111;
}

/* 表格 */
body.am-minimal.page-cart .table {
  margin-bottom: 0;
}

body.am-minimal.page-cart .table thead {
  background: #ffffff !important;
}

body.am-minimal.page-cart .table thead th {
  padding: 12px 8px !important;
  border-bottom: 1px solid #111111 !important;
  background: #ffffff !important;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a8a8a;
  white-space: nowrap;
}

body.am-minimal.page-cart .table tbody td {
  padding: 18px 8px !important;
  border-color: #f0f0f0 !important;
  vertical-align: middle;
}

body.am-minimal.page-cart .table tbody tr.active {
  background: #fafafa;
}

/* 商品缩略图 */
body.am-minimal.page-cart .wh-80 {
  border-radius: 0 !important;
  border-color: #e8e8e8 !important;
  background: #fafafa;
}

/* 商品名 / 规格 / 价格 */
body.am-minimal.page-cart .name {
  font-size: 13.5px;
  font-weight: 600 !important;
  color: #111111 !important;
  text-decoration: none;
}

body.am-minimal.page-cart .text-size-min {
  font-size: 11.5px;
}

body.am-minimal.page-cart .price {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

body.am-minimal.page-cart .sub-total {
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 数量步进器：和商品页同款方框 */
body.am-minimal.page-cart .quantity-wrap {
  display: flex !important;
  flex-wrap: nowrap;
  width: 132px !important;
  max-width: 132px !important;
  height: 44px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  overflow: hidden;
}

body.am-minimal.page-cart .quantity-wrap .btn {
  flex: 0 0 40px;
  width: 40px;
  height: 100%;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #111111;
}

body.am-minimal.page-cart .quantity-wrap .btn:hover {
  background: #f6f6f5 !important;
}

body.am-minimal.page-cart .quantity-wrap .form-control {
  height: 100%;
  padding: 0;
  border: 0 !important;
  border-left: 1px solid #e0e0e0 !important;
  border-right: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  text-align: center;
  font-size: 13px;
}

/* 删除操作：灰色小字，不再红色 */
body.am-minimal.page-cart .table .text-danger,
body.am-minimal.page-cart .table .text-danger i,
body.am-minimal.page-cart .table a.text-danger {
  color: #9a9a9a !important;
  font-size: 11.5px;
  text-decoration: none;
}

body.am-minimal.page-cart .table .text-danger:hover,
body.am-minimal.page-cart .table a.text-danger:hover {
  color: #111111 !important;
}

/* 复选框：方角 */
body.am-minimal.page-cart .form-check-input {
  border-radius: 0 !important;
  border-color: #c9c9c9;
}

body.am-minimal.page-cart .form-check-input:checked {
  background-color: #111111;
  border-color: #111111;
}

/* 右侧汇总 */
body.am-minimal.page-cart .total-wrap {
  border: 1px solid #e8e8e8;
  background: #ffffff;
}

body.am-minimal.page-cart .total-wrap .card-header {
  padding: 18px 22px !important;
  border-bottom: 1px solid #e8e8e8 !important;
  background: #ffffff !important;
}

body.am-minimal.page-cart .total-wrap .list-group-item {
  padding: 12px 22px !important;
  border-color: #f0f0f0 !important;
  font-size: 13px;
}

body.am-minimal.page-cart .total-wrap .total-price {
  font-size: 20px;
  font-weight: 700;
  color: #111111 !important;
  font-variant-numeric: tabular-nums;
}

/* 去结算按钮 */
body.am-minimal.page-cart .total-wrap .btn {
  height: 54px;
  border-radius: 0 !important;
  background: #111111 !important;
  border: 1px solid #111111 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.am-minimal.page-cart .total-wrap .btn:hover {
  background: #3a3a3a !important;
  border-color: #3a3a3a !important;
}

/* 手机端底部便携条 */
body.am-minimal.page-cart .cart-mb-total {
  background: #ffffff !important;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -6px 16px rgba(0, 0, 0, .08);
  padding: 10px 14px;
}

body.am-minimal.page-cart .cart-mb-total .btn-checkout {
  height: 46px;
  border-radius: 0 !important;
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  body.am-minimal.page-cart .card h4 {
    font-size: 11px;
  }

  body.am-minimal.page-cart .table tbody td {
    padding: 14px 6px !important;
  }

  body.am-minimal.page-cart .quantity-wrap {
    width: 112px !important;
    max-width: 112px !important;
    height: 40px !important;
  }
}

/* ---------- 购物车汇总：计算状态行 + 应付总金额加强 ---------- */
body.am-minimal.page-cart .total-wrap .list-group-item .text-muted {
  font-size: 12px;
  color: #9a9a9a !important;
}

body.am-minimal.page-cart .total-wrap .list-group-item.total-final {
  margin-top: 6px;
  padding-top: 16px !important;
  border-top: 1px solid #e8e8e8 !important;
}

body.am-minimal.page-cart .total-wrap .list-group-item.total-final > span:first-child {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #111111;
}

/* ==========================================================================
   购物车右侧汇总（对齐欧美主流：小标题 + 计数 + 合计 + 按钮）
   ========================================================================== */
body.am-minimal.page-cart .total-wrap .card-body.p-lg-0 {
  padding: 0 !important;
}

/* 标题：与列表行左对齐，小字大写，不再像一个内容行 */
body.am-minimal.page-cart .total-wrap h4 {
  margin: 0 !important;
  padding: 16px 22px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a8a8a !important;
  border-bottom: 1px solid #e8e8e8;
}

/* 计数行 */
body.am-minimal.page-cart .total-wrap .list-group-item {
  padding: 12px 22px !important;
  background: #ffffff !important;
  border-color: #f2f2f2 !important;
  font-size: 13px;
  color: #3d3d3d;
}

/* 应付总金额 */
body.am-minimal.page-cart .total-wrap .list-group-item.total-final {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
  padding: 18px 22px !important;
  border-top: 1px solid #111111 !important;
  border-bottom: 0 !important;
}

body.am-minimal.page-cart .total-wrap .list-group-item.total-final > span:first-child {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #111111;
}

body.am-minimal.page-cart .total-wrap .list-group-item.total-final .total-price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111111 !important;
  font-variant-numeric: tabular-nums;
}

/* 按钮行 */
body.am-minimal.page-cart .total-wrap .list-group-item.d-grid {
  padding: 6px 22px 22px !important;
  border-bottom: 0 !important;
}

body.am-minimal.page-cart .total-wrap .btn-primary {
  width: 100%;
  height: 54px;
  border-radius: 0 !important;
  background: #111111 !important;
  border: 1px solid #111111 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.am-minimal.page-cart .total-wrap .btn-primary:hover {
  background: #3a3a3a !important;
  border-color: #3a3a3a !important;
}

@media (max-width: 767.98px) {
  body.am-minimal.page-cart .total-wrap h4,
  body.am-minimal.page-cart .total-wrap .list-group-item,
  body.am-minimal.page-cart .total-wrap .list-group-item.total-final {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.am-minimal.page-cart .total-wrap .list-group-item.total-final .total-price {
    font-size: 19px;
  }
}

/* ---------- 购物车微调：去掉合计上方的粗黑线 + 全选对齐 ---------- */

/* 1) 应付总金额上方不再画黑线 */
body.am-minimal.page-cart .total-wrap .list-group-item.total-final {
  border-top: 0 !important;
  margin-top: 0 !important;
  padding-top: 14px !important;
}

/* 2) 表头「全选」框与文字水平居中 */
body.am-minimal.page-cart .cart-products-wrap table thead th:first-child {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

body.am-minimal.page-cart .cart-products-wrap table thead th .form-check-input {
  margin: 0 !important;
  float: none !important;
  position: static !important;
  flex: 0 0 auto;
}

body.am-minimal.page-cart .cart-products-wrap table thead th .form-check-label {
  margin: 0 !important;
  line-height: 1;
  white-space: nowrap;
}

/* ==========================================================================
   购物车表头「全选」修正
   上一版用了 display:flex，让 th 不再是表格单元格，
   导致 border-collapse 下边框丢失（你截图里第一列下面没线）。
   改回表格单元格 + 行内元素垂直居中。
   ========================================================================== */
body.am-minimal.page-cart .cart-products-wrap table thead th:first-child {
  display: table-cell !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #111111 !important;
  white-space: nowrap;
  padding-left: 8px !important;
}

body.am-minimal.page-cart .cart-products-wrap table thead th:first-child .form-check-input {
  display: inline-block !important;
  vertical-align: middle !important;
  float: none !important;
  position: static !important;
  margin: 0 8px 0 0 !important;
  border-radius: 0 !important;
}

body.am-minimal.page-cart .cart-products-wrap table thead th:first-child .form-check-label {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 12px;
  font-weight: 600;
  color: #111111;
}

/* 表头其他列保持与第一列同高 */
body.am-minimal.page-cart .cart-products-wrap table thead th {
  vertical-align: middle !important;
  border-bottom: 1px solid #111111 !important;
}

/* ==========================================================================
   Element UI 弹窗（地址编辑等）：美式极简
   主题原样式：.el-input__inner{border-radius:100px} .el-dialog{border-radius:10px} .el-button{border-radius:10rem}
   ========================================================================== */
.am-minimal .el-dialog {
  border-radius: 0 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18) !important;
  overflow: hidden;
}

.am-minimal .el-dialog__header {
  padding: 20px 24px !important;
  border-bottom: 1px solid #e8e8e8;
}

.am-minimal .el-dialog__title {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #111111 !important;
}

.am-minimal .el-dialog__headerbtn {
  top: 18px !important;
  right: 20px !important;
  width: 28px;
  height: 28px;
}

.am-minimal .el-dialog__headerbtn .el-dialog__close {
  color: #8a8a8a !important;
  font-size: 16px;
}

.am-minimal .el-dialog__headerbtn:hover .el-dialog__close {
  color: #111111 !important;
}

.am-minimal .el-dialog__body {
  padding: 22px 24px !important;
  color: #111111;
}

.am-minimal .el-dialog__footer {
  padding: 0 24px 22px !important;
}

/* 表单 */
.am-minimal .el-form-item {
  margin-bottom: 18px !important;
}

.am-minimal .el-form-item__label {
  padding-bottom: 6px !important;
  line-height: 1.4 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: .04em;
  color: #111111 !important;
}

.am-minimal .el-input__inner {
  height: 44px !important;
  border-radius: 0 !important;
  border-color: #dddddd !important;
  font-size: 13px !important;
  color: #111111 !important;
  background: #ffffff !important;
}

.am-minimal .el-input__inner::placeholder {
  color: #b5b5b5 !important;
}

.am-minimal .el-input__inner:focus,
.am-minimal .el-input.is-focus .el-input__inner {
  border-color: #111111 !important;
  box-shadow: none !important;
}

.am-minimal .el-textarea__inner {
  border-radius: 0 !important;
  border-color: #dddddd !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.am-minimal .el-textarea__inner:focus {
  border-color: #111111 !important;
}

.am-minimal .el-select .el-input__inner {
  border-radius: 0 !important;
}

.am-minimal .el-select .el-input__suffix .el-select__caret {
  color: #8a8a8a !important;
}

.am-minimal .el-select-dropdown {
  border-radius: 0 !important;
  border-color: #e8e8e8 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1) !important;
}

.am-minimal .el-select-dropdown__item {
  font-size: 13px !important;
}

.am-minimal .el-select-dropdown__item.selected {
  color: #111111 !important;
  font-weight: 600 !important;
}

/* 开关 */
.am-minimal .el-switch.is-checked .el-switch__core {
  background-color: #111111 !important;
  border-color: #111111 !important;
}

.am-minimal .el-switch__core {
  border-radius: 20px !important;
}

/* 按钮 */
.am-minimal .el-button {
  height: 44px;
  padding: 0 24px !important;
  border-radius: 0 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.am-minimal .el-button--primary {
  background-color: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
}

.am-minimal .el-button--primary:hover,
.am-minimal .el-button--primary:focus {
  background-color: #3a3a3a !important;
  border-color: #3a3a3a !important;
  color: #ffffff !important;
}

.am-minimal .el-button--default {
  background-color: #ffffff !important;
  border-color: #111111 !important;
  color: #111111 !important;
}

.am-minimal .el-button--default:hover,
.am-minimal .el-button--default:focus {
  background-color: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
}

/* 错误提示改成单色 */
.am-minimal .el-form-item__error {
  font-size: 11px !important;
  color: #111111 !important;
  opacity: .7;
}

/* ==========================================================================
   手机端：购物车 + 结账页重排
   ========================================================================== */

/* ---------- 购物车（手机） ---------- */
@media (max-width: 767.98px) {
  body.am-minimal.page-cart {
    padding-bottom: 84px;
  }

  body.am-minimal.page-cart .mb-product-wrap {
    margin: 0 !important;
    padding: 0 14px;
  }

  body.am-minimal.page-cart .mb-product-list {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    margin: 0 !important;
    padding: 16px 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0;
  }

  body.am-minimal.page-cart .mb-product-list.active {
    background: #fafafa !important;
  }

  body.am-minimal.page-cart .mb-product-list .product-img {
    flex: 0 0 auto;
    align-items: flex-start !important;
    padding-top: 2px;
  }

  body.am-minimal.page-cart .mb-product-list .wh-80 {
    width: 72px !important;
    height: 72px !important;
    border-radius: 0 !important;
    border-color: #e8e8e8 !important;
    background: #fafafa;
  }

  body.am-minimal.page-cart .mb-product-list .product-mb-info {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0 !important;
  }

  body.am-minimal.page-cart .mb-product-list .name {
    font-size: 13.5px !important;
    line-height: 1.35;
    font-weight: 600 !important;
    color: #111111 !important;
  }

  body.am-minimal.page-cart .mb-product-list .text-size-min {
    font-size: 11px !important;
    color: #9a9a9a !important;
  }

  body.am-minimal.page-cart .mb-product-list .price {
    font-size: 13px !important;
    color: #111111 !important;
    font-weight: 600 !important;
  }

  body.am-minimal.page-cart .mb-product-list .quantity-wrap {
    width: 110px !important;
    max-width: 110px !important;
    height: 38px !important;
  }

  body.am-minimal.page-cart .mb-product-list .quantity-wrap .btn {
    flex: 0 0 34px;
    width: 34px;
  }

  body.am-minimal.page-cart .mb-product-list .btn.text-secondary {
    font-size: 11px !important;
    color: #9a9a9a !important;
    padding: 0 !important;
  }

  /* 底部结算条 */
  body.am-minimal.page-cart .cart-mb-total {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 !important;
    padding: 10px 14px;
    background: #ffffff !important;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, .08);
  }

  body.am-minimal.page-cart .cart-mb-total .left {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: #3d3d3d;
  }

  body.am-minimal.page-cart .cart-mb-total .left label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }

  body.am-minimal.page-cart .cart-mb-total .right {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    text-align: right;
  }

  body.am-minimal.page-cart .cart-mb-total .total-price {
    font-size: 15px !important;
    font-weight: 700;
    color: #111111 !important;
    font-variant-numeric: tabular-nums;
  }

  body.am-minimal.page-cart .cart-mb-total .btn-checkout {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 112px;
    height: 44px;
    margin: 0 !important;
    padding: 0 16px;
    border-radius: 0 !important;
    background: #111111 !important;
    border: 1px solid #111111 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  /* 空购物车 */
  body.am-minimal.page-cart .empty-cart-wrap {
    padding: 40px 16px;
  }

  body.am-minimal.page-cart .empty-cart-wrap .btn {
    height: 44px;
    border-radius: 0 !important;
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
}

/* ---------- 结账页（手机） ---------- */
@media (max-width: 767.98px) {
  body.am-minimal.page-checkout {
    padding-bottom: 92px;
  }

  body.am-minimal.page-checkout .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.am-minimal.page-checkout .left-column,
  body.am-minimal.page-checkout .right-column {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.am-minimal.page-checkout .card {
    margin-bottom: 14px;
  }

  body.am-minimal.page-checkout .address-right {
    margin-bottom: 10px;
  }

  /* 提交区固定在底部 */
  body.am-minimal.page-checkout .submit-checkout-wrap {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 10px 14px !important;
    background: #ffffff !important;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, .08);
  }

  body.am-minimal.page-checkout .submit-checkout-wrap .text-nowrap {
    flex: 0 0 auto;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a8a8a;
  }

  body.am-minimal.page-checkout .submit-checkout-wrap .text-total {
    display: block;
    font-size: 16px;
    letter-spacing: 0;
    color: #111111;
    font-variant-numeric: tabular-nums;
  }

  body.am-minimal.page-checkout .submit-checkout-wrap #submit-checkout {
    flex: 1 1 auto;
    height: 46px !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   手机端购物车页：三栏网格（复选框 / 图 / 信息）
   ========================================================================== */
@media (max-width: 767.98px) {
  body.am-minimal.page-cart .mb-product-list {
    display: grid !important;
    grid-template-columns: 20px 72px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 16px 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0;
  }

  /* 让复选框和图片各自成为网格子项 */
  body.am-minimal.page-cart .mb-product-list .product-img {
    display: contents !important;
  }

  body.am-minimal.page-cart .mb-product-list .form-check-input {
    grid-column: 1;
    margin: 26px 0 0 0 !important;
    flex: none;
  }

  body.am-minimal.page-cart .mb-product-list .wh-80 {
    grid-column: 2;
    width: 72px !important;
    height: 72px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-color: #e8e8e8 !important;
    background: #fafafa;
  }

  body.am-minimal.page-cart .mb-product-list .product-mb-info {
    grid-column: 3;
    margin: 0 !important;
    min-width: 0;
  }

  body.am-minimal.page-cart .mb-product-list .name {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px !important;
    line-height: 1.35;
    font-weight: 600 !important;
    color: #111111 !important;
    margin-bottom: 3px !important;
  }

  body.am-minimal.page-cart .mb-product-list .text-size-min {
    font-size: 10.5px !important;
    color: #9a9a9a !important;
    margin-bottom: 4px !important;
  }

  body.am-minimal.page-cart .mb-product-list .price {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    margin-bottom: 8px !important;
  }

  /* 数量 + 删除 放到一行 */
  body.am-minimal.page-cart .mb-product-list .product-mb-info > .d-flex {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  body.am-minimal.page-cart .mb-product-list .quantity-wrap {
    width: 104px !important;
    max-width: 104px !important;
    height: 34px !important;
  }

  body.am-minimal.page-cart .mb-product-list .quantity-wrap .btn {
    flex: 0 0 30px;
    width: 30px;
    font-size: 11px;
  }

  body.am-minimal.page-cart .mb-product-list .quantity-wrap .form-control {
    font-size: 12px;
  }

  body.am-minimal.page-cart .mb-product-list .text-end .btn {
    font-size: 10.5px !important;
    letter-spacing: .04em;
    color: #9a9a9a !important;
    white-space: nowrap;
  }
}

/* ==========================================================================
   手机端购物车弹窗（offcanvas drawer）
   ========================================================================== */
.am-minimal .offcanvas-right .offcanvas-body,
.am-minimal #offcanvasRight .offcanvas-body {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.am-minimal .offcanvas-right-products .product-list {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.am-minimal .offcanvas-right-products .product-list > .select-wrap {
  flex: 0 0 18px;
  width: 18px;
  padding-top: 24px;
  cursor: pointer;
}

.am-minimal .offcanvas-right-products .product-list > .select-wrap i {
  font-size: 16px;
  color: #111111;
}

.am-minimal .offcanvas-right-products .product-info {
  flex: 1 1 auto !important;
  min-width: 0;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px;
}

.am-minimal .offcanvas-right-products .product-info .left {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  overflow: hidden;
}

.am-minimal .offcanvas-right-products .product-info .left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.am-minimal .offcanvas-right-products .product-info .right {
  flex: 1 1 auto;
  min-width: 0;
}

.am-minimal .offcanvas-right-products .name {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px !important;
  line-height: 1.35;
  font-weight: 600 !important;
  color: #111111 !important;
  margin-bottom: 3px !important;
  text-decoration: none;
}

.am-minimal .offcanvas-right-products .text-size-min {
  font-size: 10.5px !important;
  color: #9a9a9a !important;
  margin-bottom: 6px !important;
}

.am-minimal .offcanvas-right-products .product-bottom {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.am-minimal .offcanvas-right-products .price {
  display: flex !important;
  align-items: center;
  gap: 4px;
  font-size: 12px !important;
  font-weight: 600;
  color: #111111;
  white-space: nowrap;
}

.am-minimal .offcanvas-right-products .price .form-control {
  width: 36px !important;
  height: 28px !important;
  min-width: 36px;
  padding: 0 2px !important;
  text-align: center;
  font-size: 12px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

.am-minimal .offcanvas-right-products .offcanvas-products-delete {
  font-size: 10.5px !important;
  letter-spacing: .04em;
  color: #9a9a9a !important;
  white-space: nowrap;
  cursor: pointer;
}

/* 弹窗底部 */
.am-minimal .offcanvas-footer .top-footer {
  background: #ffffff !important;
  border-top: 1px solid #e8e8e8;
  padding: 12px 16px !important;
  font-size: 12px;
}

.am-minimal .offcanvas-footer .top-footer .bi {
  font-size: 16px;
  color: #111111;
}

.am-minimal .offcanvas-footer .to-checkout {
  height: 48px;
  border-radius: 0 !important;
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.am-minimal .offcanvas-footer .btn-outline-dark {
  height: 48px;
  border-radius: 0 !important;
  border-color: #111111 !important;
  color: #111111 !important;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.am-minimal .offcanvas-footer .btn-outline-dark:hover {
  background: #111111 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   修正：弹窗选择器失效。
   主题用 #offcanvas-right-cart（ID 选择器）写规则，权重高于类选择器，
   所以之前那批 .am-minimal .offcanvas-right-products 没生效。
   ========================================================================== */
.am-minimal #offcanvas-right-cart .offcanvas-right-products .product-list {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px;
  padding: 14px 0 !important;
  border-top: 1px solid #f0f0f0 !important;
}

.am-minimal #offcanvas-right-cart .select-wrap {
  flex: 0 0 18px;
  width: 18px;
  margin-right: 4px !important;
  padding-top: 24px;
}

.am-minimal #offcanvas-right-cart .select-wrap i {
  color: #c9c9c9 !important;
  font-size: 15px !important;
}

.am-minimal #offcanvas-right-cart .select-wrap i.bi-check-circle-fill {
  color: #111111 !important;
}

.am-minimal #offcanvas-right-cart .offcanvas-right-products .product-list .product-info {
  flex: 1 1 auto !important;
  min-width: 0;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px;
}

.am-minimal #offcanvas-right-cart .offcanvas-right-products .product-list .left {
  flex: 0 0 64px !important;
  width: 64px !important;
  height: 64px !important;
  margin-right: 0 !important;
  border: 1px solid #e8e8e8 !important;
  background: #fafafa;
  overflow: hidden;
}

.am-minimal #offcanvas-right-cart .offcanvas-right-products .product-list .left img {
  width: 100%;
  height: 100%;
  max-height: none !important;
  object-fit: cover;
}

.am-minimal #offcanvas-right-cart .offcanvas-right-products .product-list .right {
  flex: 1 1 auto;
  min-width: 0;
}

/* 名称：不再 word-break:break-all（下面主题是这个，所以 "Sne/aker" 被拦腰斩断） */
.am-minimal #offcanvas-right-cart .offcanvas-right-products .product-list .right .name {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal !important;
  overflow-wrap: anywhere;
  font-size: 12.5px !important;
  line-height: 1.35;
  font-weight: 600 !important;
  color: #111111 !important;
  margin-bottom: 3px !important;
  text-decoration: none;
}

.am-minimal #offcanvas-right-cart .offcanvas-right-products .text-size-min {
  font-size: 10.5px !important;
  color: #9a9a9a !important;
  margin-bottom: 6px !important;
}

.am-minimal #offcanvas-right-cart .offcanvas-right-products .product-bottom {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.am-minimal #offcanvas-right-cart .offcanvas-right-products .price {
  font-size: 12px !important;
  font-weight: 600;
  color: #111111;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* 数量输入框：主题给的是 50×24 + margin-left:10px，这里收成 34×26 */
.am-minimal #offcanvas-right-cart .offcanvas-right-products .product-list .right .price input {
  width: 34px !important;
  min-width: 34px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 2px !important;
  margin-left: 6px !important;
  text-align: center;
  font-size: 11.5px !important;
  line-height: 26px;
  border: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.am-minimal #offcanvas-right-cart .offcanvas-right-products .offcanvas-products-delete {
  font-size: 10.5px !important;
  letter-spacing: .04em;
  color: #9a9a9a !important;
  white-space: nowrap;
  cursor: pointer;
}

/* 弹窗底部按钮：文字上下左右居中 */
.am-minimal .offcanvas-footer .to-checkout,
.am-minimal .offcanvas-footer .btn-outline-dark {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 0 !important;
  font-size: 11.5px !important;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.am-minimal .offcanvas-footer .to-checkout {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
}

.am-minimal .offcanvas-footer .btn-outline-dark {
  border-color: #111111 !important;
  color: #111111 !important;
  background: #ffffff !important;
}

.am-minimal .offcanvas-footer .btn-outline-dark:hover {
  background: #111111 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   购物车页手机端：数量输入框不再溢出、图片与文字顶部齐平
   ========================================================================== */
@media (max-width: 767.98px) {
  body.am-minimal.page-cart .mb-product-list .quantity-wrap {
    overflow: hidden;
    align-items: stretch;
  }

  body.am-minimal.page-cart .mb-product-list .quantity-wrap .form-control,
  body.am-minimal.page-cart .mb-product-list .quantity-wrap input {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 32px !important;
    text-align: center;
    font-size: 12px !important;
    border: 0 !important;
    border-left: 1px solid #e0e0e0 !important;
    border-right: 1px solid #e0e0e0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  body.am-minimal.page-cart .mb-product-list .quantity-wrap .btn {
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
  }

  /* 图片与文字块同一起点 */
  body.am-minimal.page-cart .mb-product-list .wh-80 {
    align-self: start !important;
    margin-top: 0 !important;
  }

  body.am-minimal.page-cart .mb-product-list .product-mb-info {
    padding-top: 0 !important;
  }
}

/* ==========================================================================
   购物车页手机端：数量步进器重建（最终定义）
   之前输入框为何溢出：主题有 .quantity-wrap input{padding:.5rem}
   + Bootstrap .form-control 默认高度，两者叠加后比容器高。
   这里把三个元素都强制成同一高度、同一框高。
   ========================================================================== */
@media (max-width: 767.98px) {
  body.am-minimal.page-cart .mb-product-list {
    padding: 14px 0 !important;
    grid-template-columns: 18px 72px minmax(0, 1fr);
    column-gap: 10px;
  }

  body.am-minimal.page-cart .mb-product-list .form-check-input {
    margin-top: 26px !important;
    width: 16px;
    height: 16px;
  }

  body.am-minimal.page-cart .mb-product-list .wh-80 {
    width: 72px !important;
    height: 72px !important;
  }

  /* 文字块间距统一，不再忽大忽小 */
  body.am-minimal.page-cart .mb-product-list .name {
    margin: 0 0 4px !important;
  }

  body.am-minimal.page-cart .mb-product-list .text-size-min {
    margin: 0 0 6px !important;
    line-height: 1.35 !important;
  }

  body.am-minimal.page-cart .mb-product-list .price {
    margin: 0 0 10px !important;
    line-height: 1.2;
  }

  body.am-minimal.page-cart .mb-product-list .product-mb-info > .d-flex {
    margin-top: 0 !important;
    align-items: center;
  }

  /* ---- 步进器 ---- */
  body.am-minimal.page-cart .mb-product-list .quantity-wrap,
  body.am-minimal.page-cart .mb-product-list .quantity-wrap.input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 96px !important;
    max-width: 96px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-sizing: border-box;
  }

  body.am-minimal.page-cart .mb-product-list .quantity-wrap .btn {
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.am-minimal.page-cart .mb-product-list .quantity-wrap .btn:hover {
    background: #f5f5f5 !important;
  }

  body.am-minimal.page-cart .mb-product-list .quantity-wrap .form-control,
  body.am-minimal.page-cart .mb-product-list .quantity-wrap input[type="text"],
  body.am-minimal.page-cart .mb-product-list .quantity-wrap input {
    flex: 1 1 auto !important;
    width: 36px !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid #e0e0e0 !important;
    border-right: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1 !important;
    appearance: textfield;
  }

  body.am-minimal.page-cart .mb-product-list .text-end .btn {
    height: 34px;
    display: flex;
    align-items: center;
  }
}

/* ==========================================================================
   结账页未登录：登录提示框重排
   原来：卡片标题 + 一个宽度不满、左对齐的带框按钮，看着很突兀
   ========================================================================== */
body.am-minimal.page-checkout .guest-checkout-login {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  height: 46px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid #111111 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #111111 !important;
  font-size: 11.5px !important;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: none !important;
}

body.am-minimal.page-checkout .guest-checkout-login:hover {
  background: #111111 !important;
  color: #ffffff !important;
}

body.am-minimal.page-checkout .guest-checkout-login i {
  font-size: 14px;
  margin: 0 !important;
}

@media (max-width: 767.98px) {
  /* 登录提示框：去掉重复的标题，只留一个通栏按钮 */
  body.am-minimal.page-checkout .left-column > .card:has(.guest-checkout-login) .card-header {
    display: none !important;
  }

  body.am-minimal.page-checkout .left-column > .card:has(.guest-checkout-login) .card-body {
    padding: 12px 14px !important;
  }

  body.am-minimal.page-checkout .left-column > .card:has(.guest-checkout-login) {
    margin-bottom: 12px !important;
  }

  body.am-minimal.page-checkout .guest-checkout-login {
    height: 44px;
    font-size: 11px !important;
  }
}

/* ---------- 登录按钮与「添加地址」按钮宽度对齐 ---------- */
@media (max-width: 767.98px) {
  body.am-minimal.page-checkout .left-column > .card:has(.guest-checkout-login) .card-body {
    padding: 12px 28px 14px !important;   /* 与地址区块的内缩进一致 */
  }
}

/* 地址卡片选择器修正：模板是 class="item address-right"，
   之前写的 .address-right .item 永远不会命中 */
body.am-minimal.page-checkout .address-right.item {
  border: 1px solid #e8e8e8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
  background: #ffffff !important;
}

body.am-minimal.page-checkout .address-right.item .btn {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px !important;
  border: 1px solid #111111 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #111111 !important;
  font-size: 11.5px !important;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.am-minimal.page-checkout .address-right.item .btn:hover {
  background: #111111 !important;
  color: #ffffff !important;
}

body.am-minimal.page-checkout .address-right.item .btn i {
  font-size: 14px;
  margin: 0 !important;
}

/* ==========================================================================
   购物车弹窗底部工具栏：全选 + 合计
   原来：flex 两端对齐，左侧被挤压后 "Select All" 被折行成两行
   ========================================================================== */
.am-minimal #offcanvas-right-cart .top-footer {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  padding: 12px 16px !important;
  margin: 0 !important;
  background: #ffffff !important;
  border-top: 1px solid #e8e8e8;
}

/* 左：圆圈 + 全选，不换行 */
.am-minimal #offcanvas-right-cart .top-footer .select-wrap {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
}

.am-minimal #offcanvas-right-cart .top-footer .select-wrap i {
  flex: 0 0 auto;
  font-size: 16px !important;
  color: #c9c9c9 !important;
  line-height: 1;
}

.am-minimal #offcanvas-right-cart .top-footer .select-wrap i.bi-check-circle-fill {
  color: #111111 !important;
}

.am-minimal #offcanvas-right-cart .top-footer .select-wrap span {
  white-space: nowrap !important;
  margin: 0 !important;
  font-size: 11px !important;
  letter-spacing: .04em;
  color: #111111 !important;
}

/* 右：合计金额，不换行、靠右 */
.am-minimal #offcanvas-right-cart .top-footer > div:last-child {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px;
  margin: 0 !important;
  white-space: nowrap;
  font-size: 11px !important;
  line-height: 1.2;
}

.am-minimal #offcanvas-right-cart .top-footer > div:last-child .text-secondary {
  font-size: 10.5px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9a9a9a !important;
}

.am-minimal #offcanvas-right-cart .top-footer > div:last-child strong {
  font-weight: 600 !important;
  color: #111111 !important;
}

.am-minimal #offcanvas-right-cart .offcanvas-right-cart-amount {
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-left: 2px !important;
}

/* 底部按钮区 */
.am-minimal #offcanvas-right-cart .offcanvas-footer > .p-4 {
  padding: 12px 16px 16px !important;
}

@media (max-width: 767.98px) {
  .am-minimal #offcanvas-right-cart .top-footer {
    padding: 10px 14px !important;
  }

  .am-minimal #offcanvas-right-cart .top-footer .select-wrap span,
  .am-minimal #offcanvas-right-cart .top-footer > div:last-child {
    font-size: 10.5px !important;
  }

  .am-minimal #offcanvas-right-cart .offcanvas-right-cart-amount {
    font-size: 12.5px !important;
  }
}

/* ==========================================================================
   手机端：页脚的几条分隔线改成带左右间距（不再通栏）
   之前 footer{border-top} 和 .services-wrap{border-bottom} 都是直接铺满屏幕宽度
   ========================================================================== */
@media (max-width: 767.98px) {
  .am-minimal footer {
    border-top: 0 !important;
    position: relative;
  }

  .am-minimal footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: var(--am-line);
    pointer-events: none;
  }

  /* 服务说明区的底线保持原样（通栏），上一版内缩过头了 */
}

/* ==========================================================================
   首页模块标题：美式极简（Editorial Minimal）
   —— 「Fashion items」「Brand」「Holiday Specials」等所有 module-title 统一
   —— 小号大写字母 + 字距，两侧细线，去掉波浪装饰
   ========================================================================== */
.am-minimal .module-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 30px;
  padding: 0;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  overflow: visible;
}

.am-minimal .module-title::before,
.am-minimal .module-title::after {
  content: "";
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 1px;
  background: #d8d8d8;
}

/* 波浪线装饰一律隐藏 */
.am-minimal .module-title .wave-line,
.am-minimal .module-title .wave-line::after {
  display: none !important;
  animation: none !important;
}

/* 模块整体上下留白，让标题呼吸 */
.am-minimal .module-item .module-info {
  padding-top: 8px;
}

/* 标签页：与标题同语言的小号大写 + 细下划线 */
.am-minimal .module-tab-product .nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 0 0 30px;
  border: 0;
}

.am-minimal .module-tab-product .nav .nav-link {
  padding: 0 0 9px !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  color: #8c8c8c !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  background: transparent !important;
}

.am-minimal .module-tab-product .nav .nav-link:hover,
.am-minimal .module-tab-product .nav .nav-link:focus {
  color: #111 !important;
  border-bottom-color: #cfcfcf !important;
  text-decoration: none;
}

.am-minimal .module-tab-product .nav .nav-link.active {
  color: #111 !important;
  border-bottom-color: #111 !important;
}

/* 手机端：与电脑端保持同一套处理（小号大写 + 两侧细线），只整体缩小 */
@media (max-width: 767.98px) {
  .am-minimal .module-title {
    gap: 12px;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #111;
    overflow: visible;
  }

  .am-minimal .module-title::before,
  .am-minimal .module-title::after {
    display: block;
    content: "";
    flex: 0 0 30px;
    width: 30px;
    height: 1px;
    background: #d8d8d8;
  }

  .am-minimal .module-tab-product .nav {
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .am-minimal .module-tab-product .nav .nav-link {
    font-size: 11px !important;
    letter-spacing: .1em;
    padding: 0 0 7px !important;
  }

  /* 模块上下留白同步收紧，避免手机上标题与内容贴太近 */
  .am-minimal .modules-box > .module-item {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}


/* ==========================================================================
   商品详情页（桌面端）：尺码选择器改为「主尺码 + 副尺码」网格
   —— US9 大字在上，UK8 · EU42.5 小字在下
   —— 等宽网格排列，选中黑底白字，缺货虚线上划
   ========================================================================== */
@media (min-width: 992px) {
  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin: 0;
    padding: 8px 6px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group > div:hover {
    border-color: #111;
    background: #fff;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group > div.selected {
    border-color: #111;
    background: #111;
    color: #fff;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group > div.disabled {
    border-style: dashed;
    border-color: #d4d4d4;
    color: #b5b5b5;
    background: #fafafa;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group > div.disabled .v-label {
    text-decoration: line-through;
  }

  /* 主尺码 */
  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group .v-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group .v-main {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
  }

  /* 副尺码：UK · EU */
  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group .v-sub {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .03em;
    color: #8c8c8c;
    white-space: nowrap;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group > div.selected .v-sub {
    color: rgba(255, 255, 255, .72);
  }

  /* 规格标题与网格间距 */
  body.am-minimal.page-product .variables-wrap .variable-group > p {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
}

/* 平板与手机：保持两列网格，避免一行塞太满 */
@media (max-width: 991.98px) {
  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 6px;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 6px 4px;
    border-radius: 0;
    margin: 0;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group .v-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group .v-main {
    font-size: 12px;
    font-weight: 600;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group .v-sub {
    font-size: 9px;
    color: #8c8c8c;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group > div.selected {
    background: #111;
    border-color: #111;
    color: #fff;
  }

  body.am-minimal.page-product .variables-wrap .variable-info.is-text-group > div.selected .v-sub {
    color: rgba(255, 255, 255, .72);
  }
}


/* ==========================================================================
   首页首屏：公告条与幻灯片
   —— 去掉「页头底线 + 公告条顶线」两条贴在一起的横线
   —— 公告条改为单条细底线，高度收窄，幻灯片整体上移
   ========================================================================== */

/* 首个模块不要顶部留白（原本 32px 把幻灯片压了下去） */
.am-minimal .modules-box > .module-item:first-child,
.am-minimal .modules-box > section.module-item:first-of-type {
  padding-top: 0 !important;
}

.am-minimal .modules-box > .module-item:first-child .module-info,
.am-minimal .modules-box > section.module-item:first-of-type .module-info {
  padding-top: 0 !important;
}

/* 滚动公告条：去掉上下两条横线，改成浅灰底色 */
.am-minimal .module-swiper-img-scroll-text,
.am-minimal .module-swiper-img-scroll-text-2 {
  border-top: 0 !important;
  border-bottom: 0 !important;
  background: #f7f7f7 !important;
  padding: 8px 0 !important;
  font-size: 11px !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5a5a5a;
}

/* 首页：页头不留底线，改为公告条的浅灰底色做分隔 */
body.page-home .am-minimal .header-content,
body.am-minimal.page-home .header-content {
  border-bottom: 0 !important;
}

/* 公告条内的文字间距与分隔符缩小一点 */
.am-minimal .module-swiper-img-scroll-text .scroll-info .scroll-text,
.am-minimal .module-swiper-img-scroll-text-2 .scroll-info .scroll-text {
  padding: 0 26px;
  font-weight: 500;
}

.am-minimal .module-swiper-img-scroll-text-2 .scroll-info .scroll-text:after {
  font-size: 6px;
  right: -3px;
}

/* 幻灯片紧贴公告条，不再留缝 */
.am-minimal .module-swiper-img-scroll-text + .swiper,
.am-minimal .module-swiper-img-scroll-text-2 + .swiper {
  margin-top: 0 !important;
  border-top: 0 !important;
}

/* 页头底线与公告条底线不要重复：页头下方若无空隙则视觉上是一条 */
.am-minimal header + .modules-box > .module-item:first-child .module-swiper-img-scroll-text,
.am-minimal header + .modules-box > .module-item:first-child .module-swiper-img-scroll-text-2 {
  border-top: 0 !important;
}


/* 首页首屏：彻底清掉公告条链路上任何多余边框，保证只有「无横线」一条视觉带 */
body.page-home .modules-box > .module-item:first-child,
body.page-home .modules-box > .module-item:first-child .module-info,
body.page-home .modules-box > .module-item:first-child .module-info > div,
body.page-home .module-swiper-img-scroll-text,
body.page-home .module-swiper-img-scroll-text-2 {
  border: 0 !important;
  box-shadow: none !important;
}

/* 幻灯片顶到公告条下沿，不再留白 */
body.page-home .modules-box > .module-item:first-child .swiper {
  margin-top: 0 !important;
}


/* 首页公告条：上方保留一条发丝线，下方不留线（全页唯一分隔线） */
body.page-home .module-swiper-img-scroll-text,
body.page-home .module-swiper-img-scroll-text-2 {
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  background: #fafafa !important;
}


/* 首页：把分隔线放在「页头底线」上（公告条紧贴其下，视觉上就是公告条上方一条线） */
body.page-home .am-minimal .header-content,
body.am-minimal.page-home .header-content,
body.page-home .header-content {
  border-bottom: 1px solid var(--am-line) !important;
  box-shadow: none !important;
}


/* ==========================================================================
   商品详情页 · 颜色选择器
   —— 样式已迁移到 ColorSwatch 插件（plugins/ColorSwatch），
      在后台「插件 → 颜色选项」里可调节形状 / 尺寸 / 选中样式
   ========================================================================== */


/* ==========================================================================
   手机端 · 汉堡抽屉菜单（美式极简）
   —— 主题用的是 #id 深层选择器，这里用同样前缀 + !important 覆盖
   —— 白底、发丝线分隔、纤细箭头、二级灰字
   ========================================================================== */

#offcanvas-mobile-menu {
  width: min(86vw, 400px) !important;
  max-width: 100%;
  background: #ffffff !important;
  border-right: 1px solid var(--am-line);
  box-shadow: 12px 0 40px rgba(0, 0, 0, .06);
}

@media (min-width: 992px) {
  #offcanvas-mobile-menu { display: none !important; }
}

#offcanvas-mobile-menu .offcanvas-header {
  padding: 20px 20px 14px !important;
  border-bottom: 0 !important;
  align-items: center;
}

#offcanvas-mobile-menu .offcanvas-header .offcanvas-title {
  margin: 0;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #111111;
}

/* 自绘细线关闭按钮 */
#offcanvas-mobile-menu .offcanvas-header .btn-close {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  background: transparent !important;
  background-image: none !important;
  position: relative;
}

#offcanvas-mobile-menu .offcanvas-header .btn-close::before,
#offcanvas-mobile-menu .offcanvas-header .btn-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: #111111;
  transform-origin: center;
}

#offcanvas-mobile-menu .offcanvas-header .btn-close::before { transform: translate(-50%, -50%) rotate(45deg); }
#offcanvas-mobile-menu .offcanvas-header .btn-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* 列表容器 */
#offcanvas-mobile-menu .offcanvas-body {
  padding: 4px 20px 32px !important;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion {
  border-top: 0 !important;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item {
  border-bottom: 1px solid #f0f0f0 !important;
  background: transparent !important;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item:last-child {
  border-bottom: 0 !important;
}

/* 一级菜单行 */
#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > a {
  height: 54px !important;
  padding-left: 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: .03em;
  color: #111111 !important;
  text-transform: none;
  line-height: 1.3;
}

/* 展开箭头：去方框、去竖线、细箭头 */
#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > span {
  height: 54px !important;
  width: 34px !important;
  border-left: 0 !important;
  color: #9c9c9c !important;
  justify-content: flex-end !important;
  background: transparent !important;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > span i {
  font-size: 11px;
  transition: transform .25s ease;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > span[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* 展开区 */
#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item > .accordion-collapse {
  border-top: 0 !important;
  padding: 0 0 14px 0 !important;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item > .accordion-collapse .children-group {
  padding-left: 2px;
}

/* 二级菜单项 */
#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item > .accordion-collapse .children-group .nav a,
#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .children-group .ul-children .nav-link {
  height: 40px !important;
  line-height: 40px !important;
  padding: 0 !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  letter-spacing: .02em;
  color: #6f6f6f !important;
  background: transparent !important;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .children-group .ul-children .nav-link:hover,
#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .children-group .ul-children .nav-link:active {
  color: #111111 !important;
}

/* 子分组标题 */
#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item > .accordion-collapse .children-group .children-title {
  height: 40px !important;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item > .accordion-collapse .children-group .children-title span {
  height: 40px !important;
  justify-content: flex-start !important;
  font-size: 12px !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9c9c9c !important;
  background: transparent !important;
}

/* 角标：方形，去掉主题三角 */
#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > a .badge {
  margin-left: 8px !important;
  padding: 2px 5px !important;
  border-radius: 0 !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  letter-spacing: .08em;
}

#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > a .badge::before {
  display: none !important;
}


/* ==========================================================================
   移动端抽屉 · 展开性能优化
   —— 展开动画 300ms（Bootstrap 默认 350ms，稍快一点但不失顺滑）
   —— 关闭滚动锚定，避免展开时页面/列表跳动
   —— 去掉 iOS 旧版惯性滚动标记（会和高度动画打架）
   ========================================================================== */

#offcanvas-mobile-menu .collapsing {
  transition-duration: .3s !important;
  transition-timing-function: cubic-bezier(.22, .61, .36, 1) !important;
  will-change: height;
}

#offcanvas-mobile-menu .offcanvas-body {
  overflow-anchor: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: auto;
}

#offcanvas-mobile-menu {
  box-shadow: 8px 0 24px rgba(0, 0, 0, .05);
}


/* ==========================================================================
   导航栏 · 菜单标签（badge）
   参考主流电商做法：
     · 位置：紧跟文字右侧，抬起约 2px，与字母上沿对齐（而不是压在基线上）
     · 尺寸：高度固定 15px，横向内边距 5px，字 9px/600
     · 形状：2px 微圆角的小方块（不是药丸、不是纯方角、不浮空）
     · 配色：沿用后台「标签背景色 / 标签文字色」
   ========================================================================== */

/* 电脑端主导航：绝对定位到文字右上角，不占布局宽度 */
.am-minimal .header-content .menu-wrap > .navbar-nav > .nav-item > .nav-link .badge {
  position: absolute !important;
  top: -4px !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 14px;
  min-width: 14px;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 2px !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  transform: none !important;
  background-color: #111111;
  color: #ffffff;
  pointer-events: none;
  z-index: 2;
}

/* 带下拉箭头的菜单：右边缘对齐文字右端（避开 16px 箭头 + 8px 内边距） */
.am-minimal .header-content .menu-wrap > .navbar-nav > .nav-item > .nav-link.dropdown-toggle .badge {
  right: 22px !important;
}

/* 普通菜单项：右边缘对齐文字右端 */
.am-minimal .header-content .menu-wrap > .navbar-nav > .nav-item > .nav-link:not(.dropdown-toggle) .badge {
  right: 4px !important;
}

/* 手机抽屉 */
#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > a .badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 14px;
  min-width: 14px;
  margin: 0 0 0 6px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 2px !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 6px;
  background-color: #111111;
  color: #ffffff;
}

/* 手机端去掉主题三角箭头 */
#offcanvas-mobile-menu .mobile-menu-wrap #menu-accordion .accordion-item .nav-item-text > a .badge::before {
  display: none !important;
}


/* ==========================================================================
   首页幻灯片 · Farfetch 式编辑型版面
   参考其设计语言（第三方设计系统整理）：
     Carbon #222222 / Paper #FFFFFF / Graphite #727272 / Smoke #E6E6E6
     全站 0 圆角、0 阴影；正文 15px/400，标题 22-30px/700，字距 -0.3px
   幻灯片做法：整图铺满，文字压左下角，CTA 只用 1px 描边
   ========================================================================== */

/* 文字区贴左下角 */
.am-minimal .module-img-text-slideshow-2 .image-text-wrap {
  align-items: flex-end;
}

.am-minimal .module-img-text-slideshow-2 .content-wrap {
  align-items: flex-end;
  padding: 0 48px 56px;
}

.am-minimal .module-img-text-slideshow-2 .text-wrap {
  max-width: 520px;
  padding: 0;
  text-align: left;
  color: #222222;
}

/* 眉标：小号大写 + 字距 */
.am-minimal .module-img-text-slideshow-2 .text-wrap .sub-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #727272;
}

/* 主标题：30px / 700 / -0.3px，与 Farfetch display-hero 一致 */
.am-minimal .module-img-text-slideshow-2 .text-wrap .title {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: #222222;
}

.am-minimal .module-img-text-slideshow-2 .text-wrap .description {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #727272;
}

/* CTA：1px 描边、直角、白字，hover 反白 */
.am-minimal .module-img-text-slideshow-2 .text-wrap a.btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #222222;
  border-radius: 0;
  background: transparent;
  color: #222222;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.am-minimal .module-img-text-slideshow-2 .text-wrap a.btn:hover {
  background: #222222;
  border-color: #222222;
  color: #ffffff;
}

/* 分页：细横条，当前页纯白，其余半透明 */
.am-minimal .module-img-text-slideshow-2 .swiper-pagination {
  bottom: 24px !important;
}

.am-minimal .module-img-text-slideshow-2 .swiper-pagination-bullet {
  width: 24px;
  height: 2px;
  margin: 0 4px !important;
  border-radius: 0;
  background: rgba(34, 34, 34, .3);
  opacity: 1;
}

.am-minimal .module-img-text-slideshow-2 .swiper-pagination-bullet-active {
  background: #222222;
}

/* 左右箭头：无底框，hover 才出现，1px 细箭头 */
.am-minimal .module-img-text-slideshow-2 .swiper-button-prev,
.am-minimal .module-img-text-slideshow-2 .swiper-button-next {
  width: 44px;
  height: 44px;
  color: #222222;
  background: transparent;
  border: 0;
  opacity: 0;
  transition: opacity .2s ease;
}

.am-minimal .module-img-text-slideshow-2:hover .swiper-button-prev,
.am-minimal .module-img-text-slideshow-2:hover .swiper-button-next {
  opacity: .9;
}

.am-minimal .module-img-text-slideshow-2 .swiper-button-prev::after,
.am-minimal .module-img-text-slideshow-2 .swiper-button-next::after {
  font-size: 18px;
  font-weight: 300;
}

/* 手机端：字号收小，内边距收紧 */
@media (max-width: 767.98px) {
  .am-minimal .module-img-text-slideshow-2 .content-wrap {
    padding: 0 20px 40px;
  }

  .am-minimal .module-img-text-slideshow-2 .text-wrap {
    max-width: 100%;
  }

  .am-minimal .module-img-text-slideshow-2 .text-wrap .sub-title {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .am-minimal .module-img-text-slideshow-2 .text-wrap .title {
    margin-bottom: 10px;
    font-size: 21px;
    letter-spacing: -0.2px;
  }

  .am-minimal .module-img-text-slideshow-2 .text-wrap .description {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .am-minimal .module-img-text-slideshow-2 .text-wrap a.btn {
    padding: 9px 14px;
    font-size: 11px;
  }

  .am-minimal .module-img-text-slideshow-2 .swiper-pagination {
    bottom: 14px !important;
  }

  .am-minimal .module-img-text-slideshow-2 .swiper-pagination-bullet {
    width: 18px;
  }

  .am-minimal .module-img-text-slideshow-2 .swiper-button-prev,
  .am-minimal .module-img-text-slideshow-2 .swiper-button-next {
    display: none;
  }
}


/* ==========================================================================
   首页首屏 · 左右分栏（Farfetch 编辑型版面）
   —— 左：白底 + 深色文字 + 1px 描边按钮
   —— 右：产品图，纯白底，无遮罩、无圆角、无阴影
   —— 手机端上下堆叠：图在上，文字在下
   ========================================================================== */

@media (min-width: 992px) {
  .am-minimal .module-img-text-slideshow-2 .swiper-slide {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: #ffffff;
    min-height: 460px;
  }

  /* 文字栏 */
  .am-minimal .module-img-text-slideshow-2 .image-text-wrap {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    order: 1;
    padding: 64px 5vw;
  }

  .am-minimal .module-img-text-slideshow-2 .content-wrap {
    display: block !important;
    padding: 0 !important;
    max-width: 480px;
    margin: 0 auto;
    align-items: initial !important;
  }

  .am-minimal .module-img-text-slideshow-2 .text-wrap {
    max-width: 100%;
    text-align: left;
  }

  /* 图片栏 */
  .am-minimal .module-img-text-slideshow-2 .image-wrap {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 0;
  }

  .am-minimal .module-img-text-slideshow-2 .image-wrap img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
  }

  .am-minimal .module-img-text-slideshow-2 .swiper-pagination {
    bottom: 14px !important;
  }
}

/* 手机端：上下堆叠 */
@media (max-width: 991.98px) {
  .am-minimal .module-img-text-slideshow-2 .swiper-slide {
    display: flex !important;
    flex-direction: column;
    background: #ffffff;
  }

  .am-minimal .module-img-text-slideshow-2 .image-text-wrap {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    order: 2;
    padding: 20px 20px 32px;
  }

  .am-minimal .module-img-text-slideshow-2 .content-wrap {
    display: block !important;
    padding: 0 !important;
    align-items: initial !important;
  }

  .am-minimal .module-img-text-slideshow-2 .text-wrap {
    max-width: 100%;
    text-align: left;
  }

  .am-minimal .module-img-text-slideshow-2 .image-wrap {
    order: 1;
    width: 100%;
  }

  .am-minimal .module-img-text-slideshow-2 .image-wrap img {
    width: 100%;
    height: auto;
  }
}


/* ==========================================================================
   首页区块标题 · 横向标题带（Farfetch 编辑型）
   —— 左对齐、上下发丝线、不再居中配两侧短线
   —— 标签页（Fashion sheet / Trendy outfits / Promotions）跟在标题下方左对齐
   ========================================================================== */

.am-minimal .module-title {
  display: block !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 0 !important;
  margin: 0 0 22px !important;
  padding: 18px 0 14px !important;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: .16em !important;
  color: #111111 !important;
  text-transform: uppercase;
  overflow: visible !important;
}

/* 去掉两侧短线与波浪装饰 */
.am-minimal .module-title::before,
.am-minimal .module-title::after {
  content: none !important;
  display: none !important;
}

.am-minimal .module-title .wave-line {
  display: none !important;
}

/* 标签页：左对齐、细下划线 */
.am-minimal .module-tab-product .nav {
  justify-content: flex-start !important;
  gap: 28px !important;
  margin: 0 0 26px !important;
  padding: 0 !important;
  border-bottom: 0 !important;
}

.am-minimal .module-tab-product .nav .nav-link {
  margin: 0 !important;          /* 主题残留 margin: 0 14px，会把首个标签右移，去掉才能与标题对齐 */
  padding: 0 0 8px !important;
  border: 0;
  border-bottom: 1px solid transparent;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
  color: #8c8c8c !important;
  background: transparent !important;
}

.am-minimal .module-tab-product .nav .nav-link:hover {
  color: #222222 !important;
}

.am-minimal .module-tab-product .nav .nav-link.active {
  color: #111111 !important;
  border-bottom-color: #111111 !important;
}

/* 品牌模块底部的 View all：改成描边小按钮，和标题带同一套语言 */
.am-minimal .module-brand .btn-outline-secondary {
  padding: 10px 16px;
  border: 1px solid #222222;
  border-radius: 0;
  background: transparent;
  color: #222222;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.am-minimal .module-brand .btn-outline-secondary:hover {
  background: #222222;
  border-color: #222222;
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .am-minimal .module-title {
    margin-bottom: 18px !important;
    padding: 14px 0 12px !important;
    font-size: 11px !important;
    letter-spacing: .14em !important;
  }

  .am-minimal .module-tab-product .nav {
    gap: 20px !important;
    margin-bottom: 20px !important;
  }

  .am-minimal .module-tab-product .nav .nav-link {
    font-size: 10.5px !important;
  }
}


/* ==========================================================================
   首页区块 · 左右页边距（原来内容直接铺满屏幕）
   —— 标题带、商品网格、品牌卡统一 40px 内缩（手机 16px）
   —— 幻灯片保持整幅铺满，不参与这条规则
   ========================================================================== */

@media (min-width: 992px) {
  .am-minimal .module-info.module-tab-product,
  .am-minimal .module-info.module-brand,
  .am-minimal .module-info.module-product {
    padding-left: 40px;
    padding-right: 40px;
  }

  /* 内层 container-fluid 不再叠加内边距，避免双重缩进 */
  .am-minimal .module-info.module-tab-product > .container-fluid,
  .am-minimal .module-info.module-brand > .container-fluid,
  .am-minimal .module-info.module-product > .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 991.98px) {
  .am-minimal .module-info.module-tab-product,
  .am-minimal .module-info.module-brand,
  .am-minimal .module-info.module-product {
    padding-left: 16px;
    padding-right: 16px;
  }

  .am-minimal .module-info.module-tab-product > .container-fluid,
  .am-minimal .module-info.module-brand > .container-fluid,
  .am-minimal .module-info.module-product > .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }
}


/* ==========================================================================
   手机端 · 商品 / 品牌模块改为横向滑动（Farfetch 式）
   —— 一行横滑，卡片贴左侧对齐，右侧露出下一张的边缘
   —— scroll-snap 让每次停在卡片边界
   ========================================================================== */

@media (max-width: 767.98px) {
  /* 商品网格（Fashion items / Holiday Specials） */
  .am-minimal .module-tab-product .tab-content .row,
  .am-minimal .module-product .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin: 0 !important;
    padding: 0 0 6px;
    scrollbar-width: none;
  }

  .am-minimal .module-tab-product .tab-content .row::-webkit-scrollbar,
  .am-minimal .module-product .row::-webkit-scrollbar {
    display: none;
  }

  .am-minimal .module-tab-product .tab-content .row > *,
  .am-minimal .module-product .row > * {
    flex: 0 0 72% !important;
    width: 72% !important;
    max-width: 72% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-snap-align: start;
  }

  /* 品牌墙：一行两列宽，横向滑动 */
  .am-minimal .module-brand .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin: 0 !important;
    padding: 0 0 6px;
    scrollbar-width: none;
  }

  .am-minimal .module-brand .row::-webkit-scrollbar {
    display: none;
  }

  .am-minimal .module-brand .row > * {
    flex: 0 0 46% !important;
    width: 46% !important;
    max-width: 46% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-snap-align: start;
  }

  /* 横滑区域右侧留一点余量，最后一张不会顶到屏幕边 */
  .am-minimal .module-tab-product .tab-content .row > *:last-child,
  .am-minimal .module-product .row > *:last-child,
  .am-minimal .module-brand .row > *:last-child {
    margin-right: 16px;
  }
}


/* ==========================================================================
   手机端横滑模块 · 底部滚动进度条
   —— 2px 细轨 + 深色滑块，宽度/位置随滑动实时变化
   —— 滑到底滑块贴右，一眼能看出还剩多少内容
   ========================================================================== */

.pc-scroll-bar {
  position: relative;
  height: 2px;
  margin: 14px 0 0;
  background: #ececec;
  overflow: hidden;
  display: none;
}

.pc-scroll-bar > span {
  display: block;
  height: 100%;
  width: 30%;
  background: #111111;
  will-change: width, margin-left;
}

@media (min-width: 768px) {
  .pc-scroll-bar { display: none !important; }
}


/* ==========================================================================
   商品详情页 · 手机端画廊
   模板现在同时输出「桌面画廊」和「手机 swiper」，由 CSS 切换，
   这样页面缓存对手机/电脑返回同一份 HTML。
   ========================================================================== */

@media (max-width: 991.98px) {
  body.am-minimal.page-product .product-image {
    display: block !important;
  }

  body.am-minimal.page-product .pc-gallery-mobile {
    width: 100%;
  }

  body.am-minimal.page-product .pc-gallery-mobile #swiper-mobile {
    width: 100%;
    border: 0 !important;
  }

  body.am-minimal.page-product .pc-gallery-mobile #swiper-mobile .swiper-slide {
    background: #ffffff;
  }

  body.am-minimal.page-product .pc-gallery-mobile #swiper-mobile img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 分页圆点：放到图下方，不压在图上 */
  body.am-minimal.page-product .pc-gallery-mobile .mobile-pagination {
    position: static;
    margin: 12px 0 4px;
    text-align: center;
  }
}


/* ==========================================================================
   商品页 · 桌面画廊容器
   模板改成「桌面/手机两套画廊都渲染」后，桌面版的 flex 布局需要落到
   .pc-gallery-desktop 这一层，否则 .left / .right 会上下堆叠
   ========================================================================== */

@media (min-width: 992px) {
  body.am-minimal.page-product .product-image {
    display: block !important;
  }

  body.am-minimal.page-product .pc-gallery-desktop {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100%;
  }

  body.am-minimal.page-product .pc-gallery-desktop .left {
    order: 0 !important;
    flex: 0 0 80px !important;
    width: 80px !important;
    margin-left: 0 !important;
    margin-right: 6px !important;
    align-self: stretch !important;
    height: auto !important;
  }

  body.am-minimal.page-product .pc-gallery-desktop .right {
    order: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }
}

/* 手机画廊容器：桌面上彻底不占位 */
@media (min-width: 992px) {
  body.am-minimal.page-product .pc-gallery-mobile {
    display: none !important;
  }
}


/* ==========================================================================
   手机端分页：PREVIOUS  |  2 / 2  |  NEXT
   —— 三段等宽、直角、发丝线，和全站一致
   ========================================================================== */

@media (max-width: 767.98px) {
  .am-minimal .mobile-paginator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 26px 0 10px;
  }

  .am-minimal .mobile-paginator > .btn {
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #e6e6e6 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .am-minimal .mobile-paginator > .btn.disabled {
    color: #bdbdbd !important;
    border-color: #f0f0f0 !important;
    pointer-events: none;
  }

  /* 页码：当前页 / 总页数 */
  .am-minimal .mobile-paginator .page-jump {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 44px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
  }

  .am-minimal .mobile-paginator .page-jump .form-control {
    width: 38px;
    height: 100%;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #ffffff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #111111;
  }

  .am-minimal .mobile-paginator .page-jump .page-total {
    height: 100%;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-left: 1px solid #e6e6e6;
    background: #fafafa;
    font-size: 11px;
    letter-spacing: .04em;
    color: #757575;
  }
}


/* ==========================================================================
   分页（电脑 + 手机统一）：方形按钮
   —— 每页一个方块，当前页黑底白字
   —— 整组水平居中
   ========================================================================== */

.am-minimal .mobile-paginator {
  display: none !important;
}

.am-minimal .am-pagination-nav {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
}

.am-minimal .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 28px 0 12px;
  padding: 0;
}

.am-minimal .pagination .page-item .page-link,
.am-minimal .pagination .page-item > span {
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f5f5f5 !important;
  color: #111111 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  box-shadow: none !important;
}

.am-minimal .pagination .page-item.active .page-link,
.am-minimal .pagination .page-item.active > span {
  background: #111111 !important;
  color: #ffffff !important;
}

.am-minimal .pagination .page-item.disabled .page-link,
.am-minimal .pagination .page-item.disabled > span {
  background: #fafafa !important;
  color: #bdbdbd !important;
}

.am-minimal .pagination .page-item:not(.active):not(.disabled) .page-link:hover {
  background: #111111 !important;
  color: #ffffff !important;
}

@media (max-width: 767.98px) {
  .am-minimal .pagination {
    gap: 6px;
    margin: 22px 0 10px;
  }

  .am-minimal .pagination .page-item .page-link,
  .am-minimal .pagination .page-item > span {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    font-size: 12px;
  }
}
