/*
 * IDF 全站样式层：在主题原有样式之后加载，统一字体、间距、按钮、商品卡片和各页面细节。
 * 品牌色沿用现状：页头黄色，强调色灰青 #658387，悬停黑色。
 */
:root {
  --idf-accent: #658387;
  --idf-accent-dark: #4f6a6e;
  --idf-accent-soft: #eef3f3;
  --idf-ink: #222;
  --idf-text: #555;
  --idf-muted: #888;
  --idf-line: #e6e6e6;
  --idf-radius: 8px;
  --idf-sale: #b3382c;
}

body {
  color: var(--idf-text);
}

/* ---------- 标题与区块标题 ---------- */
h1, h2, h3, h4,
.box-heading,
.page-title,
.refine-search,
.product-title {
  font-family: 'Jost', sans-serif;
  color: var(--idf-ink);
}

#content .box-heading,
.home-products .box-heading,
.box .box-heading {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  margin-bottom: 28px;
}

/* ---------- 按钮 ---------- */
.btn {
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn-primary,
#button-cart {
  background-color: var(--idf-accent);
}

.btn-primary:hover,
.btn-primary:focus,
#button-cart:hover {
  background-color: var(--idf-ink);
}

/* ---------- 表单 ---------- */
.form-control {
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: none;
  color: var(--idf-ink);
}

textarea.form-control {
  height: auto;
}

.form-control:focus {
  border-color: var(--idf-accent);
  box-shadow: 0 0 0 3px rgba(101, 131, 135, .15);
}

/* ---------- 商品卡片（首页模块、分类、搜索、相关商品共用） ---------- */
/* 主题里卡片按内容收缩宽度，图片原图小的卡片会变窄，这里统一撑满栏宽 */
.product-block,
.product-block .product-block-inner {
  display: block;
  width: 100%;
}

.product-thumb .image,
.product-block .image {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--idf-line) !important;
  border-radius: var(--idf-radius);
  overflow: hidden;
  background: #fff;
}

.product-block .image > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 图片完整显示在方框内，不裁切不变形，保证每张卡片图片区大小一致 */
.product-block .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}

.product-block:hover .image img.reg-image,
.product-block:hover .image > a > img:only-of-type {
  transform: scale(1.03);
}

.product-block .caption {
  padding: 14px 4px 6px;
  text-align: center;
}

/* 商品名最多两行，超出省略，替代原来按 32 个字符硬截断 */
.product-block .caption h4,
.product-block .product-details h4 {
  margin: 0 0 6px;
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 2.8em;
}

.product-block .caption h4 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--idf-ink);
}

.product-block .caption h4 a:hover {
  color: var(--idf-accent);
}

.idf-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 8px;
  margin: 0;
}

.idf-price .price-new {
  font-size: 16px;
  font-weight: 600;
  color: var(--idf-accent);
}

.idf-price .price-old {
  font-size: 13px;
  color: var(--idf-muted);
  text-decoration: line-through;
}

.idf-price .percentsaving {
  padding: 1px 7px;
  border-radius: 10px;
  background: #fdecea;
  color: var(--idf-sale);
  font-size: 12px;
  font-weight: 500;
}

.product-block .caption .rating {
  margin-top: 4px;
}

/* 分类 / 搜索 / 特价页网格：浮动布局在卡片高度不一时会错位留洞，改为 flex 换行 */
.product-layout-wrap > .row {
  display: flex;
  flex-wrap: wrap;
}

/* Bootstrap 清除浮动的伪元素在 flex 下会变成占位项 */
.product-layout-wrap > .row::before,
.product-layout-wrap > .row::after {
  display: none;
}

.product-layout-wrap .product-layout.product-grid {
  margin-bottom: 28px;
}

/* 列表视图：文字整体靠左 */
.product-list .product-block .caption,
.product-list .product-block .caption h4 {
  text-align: left;
  min-height: 0;
}

/* 列表视图 / 侧栏小卡片：价格靠左 */
.product-list .idf-price,
#column-left .idf-price,
#column-right .idf-price {
  justify-content: flex-start;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: none;
  font-size: 13px;
}

.breadcrumb > li > a,
.breadcrumb > li {
  color: var(--idf-muted);
}

.breadcrumb > li:last-child,
.breadcrumb > li:last-child a {
  color: var(--idf-ink);
}

/* ---------- 侧栏（分类页 Categories / Bestsellers） ---------- */
#column-left .box,
#column-right .box {
  background: #fff;
  border: 1px solid var(--idf-line);
  border-radius: var(--idf-radius);
  overflow: hidden;
}

#column-left .box-heading,
#column-right .box-heading {
  font-size: 17px;
  text-align: left;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--idf-line);
}

#column-left .box-content,
#column-right .box-content {
  padding: 12px 20px 16px;
  background: #fff;
}

/* 侧栏商品名可换行，避免被截断 */
#column-left .product-block .caption,
#column-right .product-block .caption {
  text-align: left;
  padding-top: 0;
}

#column-left .product-block .caption h4,
#column-right .product-block .caption h4 {
  min-height: 0;
  font-size: 14px;
  white-space: normal;
}

/* ---------- 分类页 ---------- */
.categorypage .category_thumb {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.categorypage .category_thumb .category_img {
  flex: 0 0 auto;
  width: auto;
  padding: 0;
}

.categorypage .category_thumb .category_img img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: none;
  border-radius: var(--idf-radius);
  padding: 0;
}

.categorypage .category_heading {
  flex: 1;
  min-width: 0;
}

.categorypage .category_heading .page-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  text-align: left;
}

.categorypage .category_thumb .category_description {
  width: auto;
  margin-top: 8px;
  padding: 0;
  color: var(--idf-text);
}

.categorypage .refine-search {
  font-size: 20px;
  margin: 0 0 16px;
}

.categorypage .category_list ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.categorypage .category_list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: auto !important;
  float: none !important;
  padding: 14px 10px;
  border: 1px solid var(--idf-line);
  border-radius: var(--idf-radius);
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}

.categorypage .category_list li:hover {
  border-color: var(--idf-accent);
  box-shadow: 0 4px 14px rgba(101, 131, 135, .15);
}

.categorypage .category_list li img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.categorypage .category_list li a {
  color: var(--idf-ink);
  font-size: 14px;
  line-height: 1.35;
}

.categorypage .category_filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 12px 16px;
  margin: 24px 0;
  border: 1px solid var(--idf-line);
  border-radius: var(--idf-radius);
  background: #fafafa;
}

.categorypage .category_filter .form-control {
  height: 36px;
}

.categorypage .pagination-wrapper {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--idf-line);
}

/* ---------- 商品详情页 ---------- */
.productpage .product-image .image {
  border: 1px solid var(--idf-line);
  border-radius: var(--idf-radius);
  overflow: hidden;
  background: #fff;
}

.productpage .product-image .image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* 缩略图轮播内部是浮动元素，自身高度为 0，不清除会盖住下方的描述标签 */
.productpage .additional-carousel {
  overflow: hidden;
  margin-top: 12px;
}

.productpage .additional-carousel .product-block {
  border: 1px solid var(--idf-line);
  border-radius: 6px;
  overflow: hidden;
}

.productpage .product-right-inner .product-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}

.productpage .product-right-inner .title-summary {
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--idf-text);
  margin: 0 0 12px;
}

.productpage .product-right-inner .list-unstyled li {
  color: var(--idf-text);
}

.productpage .product-right-inner .list-unstyled .desc {
  display: inline-block;
  min-width: 110px;
  color: var(--idf-muted);
}

.productpage .product-right-inner ul.price {
  margin: 18px 0 12px;
  padding: 16px 0;
  border-top: 1px solid var(--idf-line);
  border-bottom: 1px solid var(--idf-line);
}

.productpage .product-right-inner ul.price h2,
.productpage .product-right-inner .special-price {
  font-size: 30px;
  font-weight: 600;
  color: var(--idf-accent);
  margin: 0;
}

.productpage .product-right-inner .price-old {
  font-size: 16px;
  color: var(--idf-muted);
}

/* 数量 + 加入购物车：加大点击区域 */
.productpage .form-group.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.productpage .form-group.cart .control-label.qty {
  margin: 0;
  color: var(--idf-muted);
}

.productpage .form-group.cart #input-quantity {
  width: 72px;
  height: 48px;
  text-align: center;
  font-size: 16px;
}

.productpage .form-group.cart #button-cart {
  flex: 1 1 200px;
  width: auto;
  height: 48px;
  max-width: 320px;
  font-size: 16px;
  font-weight: 500;
}

.productpage .form-group.cart .btn-group {
  flex-basis: 100%;
  display: flex;
  gap: 18px;
}

.productpage .form-group.cart .btn-group .btn {
  background: none;
  padding: 0;
  color: var(--idf-text);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.productpage .form-group.cart .btn-group .btn:hover {
  color: var(--idf-accent);
}

/* 描述 / 规格 / 评价：两栏下方通栏 */
.idf-product-tabs {
  clear: both;
  margin-top: 48px;
}

.idf-product-tabs .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--idf-line);
}

.idf-product-tabs .nav-tabs > li {
  float: none;
  margin-bottom: -1px;
}

.idf-product-tabs #tabs_info .nav-tabs > li > a,
.idf-product-tabs #tabs_info .nav-tabs > li > a:hover {
  border: none;
  /* stripchairlayout2.css 里 body.product-product .nav-tabs > li a 用 !important 清掉了边框 */
  border-bottom: 2px solid transparent !important;
  border-radius: 0;
  background: none;
  color: var(--idf-muted);
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 20px;
}

/* 主题在 li::before 用 #fdad00 画选中线、a::after 画实心块，统一改用下面的灰青下划线 */
.idf-product-tabs #tabs_info .nav-tabs > li::before,
.idf-product-tabs #tabs_info .nav-tabs > li::after,
.idf-product-tabs #tabs_info .nav-tabs > li > a::after,
.idf-product-tabs #tabs_info .nav-tabs > li > a::before {
  display: none;
}

.idf-product-tabs #tabs_info .nav-tabs > li.active > a,
.idf-product-tabs #tabs_info .nav-tabs > li.active > a:hover,
.idf-product-tabs #tabs_info .nav-tabs > li.active > a:focus {
  border: none;
  border-bottom: 2px solid var(--idf-accent) !important;
  background: none;
  color: var(--idf-ink);
}

.idf-product-tabs .tab-content {
  padding: 28px 0;
  max-width: 900px;
}

/* 后台粘贴的描述常带 Times 等内联字体，统一成站点正文字体 */
.idf-product-tabs .tab-content,
.idf-product-tabs .tab-content p,
.idf-product-tabs .tab-content li,
.idf-product-tabs .tab-content span,
.idf-product-tabs .tab-content div,
.idf-product-tabs .tab-content td {
  font-family: 'Heebo', sans-serif !important;
  font-size: 15px;
  line-height: 1.75;
  color: var(--idf-text);
}

.idf-product-tabs .tab-content h1,
.idf-product-tabs .tab-content h2,
.idf-product-tabs .tab-content h3,
.idf-product-tabs .tab-content h4,
.idf-product-tabs .tab-content strong,
.idf-product-tabs .tab-content b {
  font-family: 'Jost', sans-serif !important;
  color: var(--idf-ink);
}

.idf-product-tabs .tab-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---------- 联系我们 ---------- */
.idf-page-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.idf-page-header .page-title {
  font-size: 34px;
  font-weight: 600;
  margin: 0 0 10px;
}

.idf-page-header p {
  color: var(--idf-text);
  font-size: 16px;
  margin: 0;
}

.idf-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  margin-bottom: 28px;
}

.idf-contact-info,
.idf-contact-form {
  padding: 28px;
  border: 1px solid var(--idf-line);
  border-radius: var(--idf-radius);
  background: #fff;
}

.idf-contact-info {
  background: var(--idf-accent-soft);
  border-color: transparent;
}

.idf-contact-image {
  max-width: 160px;
  margin-bottom: 20px;
}

.idf-contact-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #dbe5e5;
}

.idf-contact-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.idf-contact-item > i {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--idf-accent);
  font-size: 16px;
  line-height: 36px;
  text-align: center;
}

.idf-contact-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0 6px;
}

.idf-contact-item address,
.idf-contact-item p {
  margin: 0 0 4px;
  font-style: normal;
  line-height: 1.7;
  color: var(--idf-text);
}

.idf-contact-item a {
  display: inline-block;
  margin-right: 14px;
  color: var(--idf-accent);
  font-weight: 500;
}

.idf-contact-item a:hover {
  color: var(--idf-ink);
}

.idf-contact-form h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
}

.idf-contact-form .control-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--idf-ink);
}

.idf-contact-captcha .form-group {
  margin-left: 0;
  margin-right: 0;
}

.idf-contact-captcha legend {
  display: none;
}

.idf-contact-captcha .col-sm-2,
.idf-contact-captcha .col-sm-10 {
  float: none;
  width: auto;
  padding: 0;
  text-align: left;
}

.idf-contact-form .buttons .btn {
  padding: 12px 36px;
  font-size: 15px;
}

.idf-contact-map {
  margin-bottom: 40px;
  border-radius: var(--idf-radius);
  overflow: hidden;
  border: 1px solid var(--idf-line);
}

.idf-contact-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ---------- 首页 ---------- */
/* 后台 HTML 模块直接输出在全宽容器里的标题（如促销标语），收进内容宽度并居中 */
#common-home .content-botttom > h1,
#common-home .content-botttom > h2,
#common-home .content-botttom > h3 {
  max-width: 1170px;
  margin: 48px auto 20px;
  padding: 0 15px;
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
}

/* Shop By Category：与商品卡片同一套圆角卡片 */
/* 选择器与主题保持同等优先级，靠加载顺序覆盖；主题用 41px 内边距 + -41px 负边距对齐两端 */
.categorylist-inner {
  margin: 0 -10px;
}

#pstcategorylist .categorylist-inner .category_item li.item {
  padding: 0 10px;
}

#pstcategorylist .categoryblock {
  display: block;
  width: 100%;
  padding: 16px 12px 18px;
  border: 1px solid var(--idf-line);
  border-radius: var(--idf-radius);
  background: #fff;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}

#pstcategorylist .categoryblock:hover {
  border-color: var(--idf-accent);
  box-shadow: 0 4px 14px rgba(101, 131, 135, .15);
}

#pstcategorylist .category_item .image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 6px;
  background: #f7f7f7;
}

#pstcategorylist .category_item .image::before,
#pstcategorylist .category_item .image::after {
  display: none;
}

/* 图片外层的 <a> 按内容收缩，百分比尺寸要以整个图片框为基准 */
#pstcategorylist .category_item .image > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 主题默认黑白显示、悬停才变彩色，这里一直显示原色 */
#pstcategorylist .category_item .image img,
#pstcategorylist .category_item:hover .image img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: none;
  transition: transform .3s ease;
}

#pstcategorylist .category_item:hover .image img {
  transform: scale(1.04);
}

#pstcategorylist .cat-title {
  margin-top: 12px;
  min-height: 2.7em;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pstcategorylist .cat-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--idf-ink);
}

#pstcategorylist .viewmore a {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--idf-accent);
  text-transform: capitalize;
}

/* ---------- 提示框：浅底 + 左侧色条，与订单详情的付款提示一致 ---------- */
.alert {
  border: none;
  border-left: 4px solid;
  border-radius: 6px;
  padding: 14px 40px 14px 18px;
  font-size: 14px;
  line-height: 1.6;
}

.alert > .fa:first-child {
  margin-right: 6px;
}

.alert-danger {
  background: #fdf2f1;
  border-color: #d9534f;
  color: #8a2d26;
}

.alert-warning {
  background: #fff8ec;
  border-color: #f0ad4e;
  color: #7a5000;
}

.alert-success {
  background: #eef7f0;
  border-color: #4c9a5f;
  color: #24603a;
}

.alert-info {
  background: var(--idf-accent-soft);
  border-color: var(--idf-accent);
  color: #3d5457;
}

/* ---------- 购物车 ---------- */
.idf-cart-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 10px 0 24px;
}

.idf-cart-header .page-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  text-align: left;
}

.idf-cart-weight {
  color: var(--idf-muted);
  font-size: 14px;
}

.idf-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}

.idf-cart-main .table-responsive {
  border: 1px solid var(--idf-line);
  border-radius: var(--idf-radius);
  background: #fff;
}

.idf-cart .shopping-cart {
  margin: 0;
}

.idf-cart .shopping-cart > thead > tr > td {
  padding: 14px 12px;
  border: none;
  border-bottom: 1px solid var(--idf-line);
  background: #fafafa;
  color: var(--idf-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.idf-cart .shopping-cart > tbody > tr > td {
  padding: 18px 12px;
  border: none;
  border-top: 1px solid #f0f0f0;
  vertical-align: middle;
  color: var(--idf-text);
}

.idf-cart .shopping-cart > tbody > tr:first-child > td {
  border-top: none;
}

.idf-cart .shopping-cart .img-thumbnail {
  width: 84px;
  height: 84px;
  padding: 0;
  object-fit: cover;
  border: 1px solid var(--idf-line);
  border-radius: 6px;
}

.idf-cart .shopping-cart td.text-left > a {
  color: var(--idf-ink);
  font-size: 15px;
  font-weight: 500;
}

.idf-cart .shopping-cart td.text-left > a:hover {
  color: var(--idf-accent);
}

.idf-cart .shopping-cart small {
  color: var(--idf-muted);
}

.idf-cart .idf-cart-stock {
  font-weight: 600;
}

/* 数量：输入框 + 更新 + 删除，统一高度和圆角 */
.idf-cart .shopping-cart .input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.idf-cart .shopping-cart .input-group .form-control {
  width: 56px;
  height: 38px;
  padding: 4px;
  border-radius: 6px !important;
  text-align: center;
}

.idf-cart .shopping-cart .input-group-btn {
  display: flex;
  gap: 6px;
  width: auto;
}

.idf-cart .shopping-cart .input-group-btn .btn {
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--idf-line);
  border-radius: 6px !important;
  background: #fff;
  color: var(--idf-accent);
}

.idf-cart .shopping-cart .input-group-btn .btn:hover {
  border-color: var(--idf-accent);
  background: var(--idf-accent-soft);
  color: var(--idf-ink) !important;
}

.idf-cart .shopping-cart .input-group-btn .idf-cart-remove {
  color: #a94442;
}

.idf-cart .shopping-cart .input-group-btn .idf-cart-remove:hover {
  border-color: #d9534f;
  background: #fdf2f1;
  color: #a94442 !important;
}

.idf-cart .shopping-cart td:last-child {
  color: var(--idf-ink);
  font-weight: 600;
}

/* 订单汇总卡片 */
.idf-cart-summary {
  position: sticky;
  top: 20px;
  padding: 24px;
  border-radius: var(--idf-radius);
  background: var(--idf-accent-soft);
}

.idf-cart-summary h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 14px;
}

.idf-cart-summary #cart-totals {
  margin: 0 0 16px;
  background: none;
}

.idf-cart-summary #cart-totals td {
  padding: 7px 0;
  border: none;
  background: none;
  color: var(--idf-text);
}

.idf-cart-summary #cart-totals td:first-child {
  text-align: left;
}

.idf-cart-summary #cart-totals td strong {
  font-weight: 400;
}

.idf-cart-summary #cart-totals tr:last-child td {
  padding-top: 14px;
  border-top: 1px solid #d5e0e0;
  color: var(--idf-ink);
  font-size: 20px;
  font-weight: 600;
}

.idf-cart-summary #cart-totals tr:last-child td strong {
  font-weight: 600;
}

/* Afterpay 插件插入的分期提示，原为 pull-right */
.idf-cart-summary #append-afterpay {
  margin-bottom: 14px;
}

.idf-cart-summary #append-afterpay .pull-right {
  float: none !important;
}

.idf-cart-summary .buttons {
  margin: 0;
}

.idf-cart-summary .idf-cart-checkout {
  /* 主题把 .btn-primary 设为 width: auto，btn-block 不生效 */
  display: block;
  width: 100%;
  height: 50px;
  line-height: 34px;
  font-size: 16px;
  font-weight: 500;
}

.idf-cart-summary .idf-cart-continue {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: var(--idf-accent);
  font-weight: 500;
}

.idf-cart-summary .idf-cart-continue:hover {
  color: var(--idf-ink);
}

.idf-cart-modules {
  margin-top: 28px;
}

.idf-cart-modules h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

@media (max-width: 991px) {
  /* 用 minmax(0, 1fr)：1fr 的最小宽度等于内容宽度，宽表格会把整页撑出横向滚动 */
  .idf-cart {
    grid-template-columns: minmax(0, 1fr);
  }

  .idf-cart-summary {
    position: static;
  }
}

@media (max-width: 767px) {
  .idf-cart-header .page-title {
    font-size: 26px;
  }

  .idf-cart .shopping-cart .img-thumbnail {
    width: 64px;
    height: 64px;
  }
}

/* ---------- 页头账户下拉菜单 ---------- */
.myaccount .dropdown-menu.idf-account-menu {
  /* 主题限制了 max-height: 272px，会截掉底部的退出登录 */
  max-height: none;
  min-width: 240px;
  padding: 8px 0;
  border: 1px solid var(--idf-line);
  border-radius: var(--idf-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.idf-account-menu > li {
  display: block;
  float: none;
  width: 100%;
}

.idf-account-menu > li > a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 9px 20px !important;
  color: #444 !important;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  background: none;
}

.idf-account-menu.myaccount-menu > li > a .fa {
  width: 16px;
  text-align: center;
  color: var(--idf-accent);
  font-size: 15px;
}

.idf-account-menu > li > a:hover,
.idf-account-menu > li > a:focus {
  background: var(--idf-accent-soft) !important;
  color: #000 !important;
}

.idf-account-menu .idf-account-menu-head {
  padding: 8px 20px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.idf-account-menu .idf-account-menu-head strong {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  color: var(--idf-ink);
}

.idf-account-menu .idf-account-menu-head span {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--idf-muted);
}

.idf-account-menu .idf-account-menu-logout {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eee;
}

.idf-account-menu .idf-account-menu-logout a,
.idf-account-menu.myaccount-menu .idf-account-menu-logout a .fa {
  color: #a94442 !important;
}

/* ---------- 页脚 ---------- */
/* 营业时间标题原为深色字压在深色背景上，几乎看不见 */
.content_footer_wrapper h2,
.content_footer_wrapper h3,
.content_footer_wrapper h4,
.content_footer_wrapper h5 {
  color: #fff !important;
}

/* 营业时间块的标题是后台 HTML 里的 h2，字号对齐其它几列的 h5 */
.content_footer_wrapper .footer-right h2 {
  font-family: 'Heebo', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 12px;
}

/* ---------- 手机端 ---------- */
@media (max-width: 767px) {
  #content .box-heading,
  .home-products .box-heading,
  .box .box-heading {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .idf-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .idf-contact-info,
  .idf-contact-form {
    padding: 20px;
  }

  .idf-contact-map iframe {
    height: 280px;
  }

  .productpage .product-right-inner .product-title {
    font-size: 22px;
  }

  .productpage .form-group.cart #button-cart {
    max-width: none;
  }

  .idf-product-tabs {
    margin-top: 28px;
  }

  .categorypage .category_thumb {
    flex-direction: column;
    align-items: flex-start;
  }
}
