/* ============================================================================
 * themes/3ffood/pages/product.css — 3ffood 主題商品頁覆寫
 * ============================================================================
 *
 * 用途：
 *   承接舊 3ffood.css 的「三福商品頁」重設計段落（商品列表 /products +
 *   商品詳情 /products/{id}），作為 3ffood 主題對 common/pages/product.css
 *   的覆寫層。載入順序在 common/pages/product.css 之後（且在 3ffood layout
 *   之後），3ffood 商品頁版本後勝覆寫。
 *
 * 抽取策略（差異覆寫，三福以 .shop-section 高 specificity 重設計）：
 *   商品頁基底結構（grid / single-product / product-cat / treeview / spec-button /
 *   reviews-tab / 新版商品卡）由 common/pages/product.css 承接；本檔放 3ffood
 *   以 `.shop-section ...` 高 specificity 收斂的日式簡約重設計覆寫。
 *
 * 抽取來源（public/web/css/3ffood.css，「三福商品頁」段）：
 *   - line 9562-10144：商品頁按鈕（.shop-section .product-item .btnLike/.btnKG）/
 *                      商品卡片底色+圖片比例（.shop-section .shop-content .product-item）/
 *                      商品頁分頁（.shop-section .shop-content .pagination）/
 *                      商品標籤圓章（.product-tag/.single-product-image-tag）/
 *                      商品頁側欄搜尋+分類日式簡約（.shop-section .widget-search /
 *                      .shop-section .product-side-menu）/ 手機分類下拉
 *   - line 10808-11550：商品內頁主圖區（.shop-section .single-product-area /
 *                       single-product-main-image / imgs-zoom-area）/ 內頁資訊區
 *                       控制元件（cart-plus-minus / qtybutton / spec / 按鈕）/
 *                       相關商品區塊
 *
 * 跳過範圍（非本頁或其他層）：
 *   - 通用 .product-cat / .product-side-menu 基底（3060-3247）已入 sidebar.css(task 10.3)
 *   - 三福麵包屑（10145-10156）為跨頁，由 base.css breadcrumbs 處理
 *   - /posts（10158-10807）→ pages/post.css(task 10.7)
 *   - 早期非 .shop-section product 基底（2529+ 等）由 common/pages/product.css 承接，
 *     如 Playwright 對照發現差異再補
 *
 * 載入順序：
 *   common/pages/product.css -> themes/3ffood/pages/product.css（本檔）
 *
 * 詳細規格：openspec/specs/web-theme-css/spec.md（Requirement R.FUNC.1 / R.FUNC.8）
 * 變更記錄：openspec/changes/issue518-web-theme-css-modularization/（task 10.6）
 * ============================================================================
 */

/* ============================================================================
 * 三福商品列表/側欄：按鈕 / 卡片底色+圖片比例 / 分頁 / 標籤圓章 / 側欄搜尋+分類日式簡約 / 手機分類下拉 (3ffood.css 9562-10144)
 * ============================================================================ */

/* 三福商品頁按鈕（/products、/products/{id}） */
.shop-section .product-item .btnLike,
.single-product-info .action-button-box .btnLike {
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid #6a1d15;
  border-radius: 8px;
  background: #ffffff;
  color: #6a1d15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 22px;
  line-height: 1;
  /* box-shadow: 0 4px 10px rgba(40, 3, 0, 0.08); */
}

.shop-section .product-item .btnLike i,
.single-product-info .action-button-box .btnLike i {
  color: #6a1d15;
  font-size: 24px;
  margin-right: 0;
  line-height: 1;
}

.shop-section .product-item .btnKG:not(.btn-soldout),
.single-product-info .action-button-box .btnKG:not(.btn-soldout) {
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid #6a1d15;
  border-radius: 8px;
  background: #6a1d15;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  /* box-shadow: 0 6px 14px rgba(40, 3, 0, 0.2); */
}

.shop-section .product-item .btnKG:not(.btn-soldout) i,
.single-product-info .action-button-box .btnKG:not(.btn-soldout) i {
  color: #ffffff;
  font-size: 20px;
  margin-right: 0;
  line-height: 1;
}

.single-product-info .action-button-box .btnKG:not(.btn-soldout) {
  min-width: 168px;
}

.shop-section .product-item .btnKG:not(.btn-soldout):hover,
.single-product-info .action-button-box .btnKG:not(.btn-soldout):hover {
  background: #4f130d;
  border-color: #4f130d;
  color: #ffffff;
}

.shop-section .product-item .btnLike:hover,
.single-product-info .action-button-box .btnLike:hover {
  background: #f8ede2;
  border-color: #6a1d15;
  color: #6a1d15;
}

.shop-section .product-item .btnKG.btn-soldout,
.single-product-info .action-button-box .btnKG.btn-soldout {
  min-height: 50px;
  border-radius: 8px;
}

@media screen and (min-width: 768px) {

  .shop-section .product-item .btnLike,
  .single-product-info .action-button-box .btnLike {
    width: 48px;
    min-width: 48px;
    padding: 0;
  }
}

/* 三福 /products 商品卡片底色與圖片比例 */
.shop-section .shop-content .product-item {
  --card-arc-size: 60px;
  background: #fcf8f0;
  border-radius: 10px;
  border-top-left-radius: var(--card-arc-size);
  box-shadow: 0 4px 14px rgba(40, 3, 0, 0.08);
  padding: 10px 10px 14px;
  position: relative;
  overflow: hidden;
}

.shop-section .shop-content .product-item .product-img {
  --img-arc-size: 50px;
  width: 100%;
  margin: 0px auto 0;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 0;
  border-top-left-radius: var(--img-arc-size);
  position: relative;
  overflow: hidden;
}

.shop-section .shop-content .product-item .product-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-right: 2px solid rgba(201, 172, 110, 0.92);
  border-bottom: 2px solid rgba(201, 172, 110, 0.92);
  pointer-events: none;
  z-index: 2;
}

.shop-section .shop-content .product-item .product-img a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  position: relative;
  z-index: 1;
}

.shop-section .shop-content .product-item .product-img>img,
.shop-section .shop-content .product-item .product-img a img {
  border-radius: inherit;
  border: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.shop-section .shop-content .product-item .product-info {
  background: transparent;
  padding: 14px 6px 0;
}

.shop-section .shop-content .product-item .product-info .product-title,
.shop-section .shop-content .product-item .product-info .product-title a {
  display: block;
  color: #C9AF76;
  font-weight: 700;
  line-height: 1.35;
  min-height: 0;
  max-height: none;
  margin-top: 0;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  text-transform: none;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 175, 118, 0.38);
}

.shop-section .shop-content .product-item .product-info .pro-price {
  color: #6a1d15;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

@media screen and (max-width: 767px) {
  .shop-section .shop-content .product-item {
    --card-arc-size: 66px;
    padding: 8px 8px 12px;
  }

  .shop-section .shop-content .product-item .product-img::after {
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
  }

  .shop-section .shop-content .product-item .product-img {
    --img-arc-size: 54px;
    width: 90%;
    margin-top: 6px;
  }

  .shop-section .shop-content .product-item .product-info {
    padding: 10px 6px 0;
  }
}

/* 三福商品頁分頁（/products） */
.shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  background: transparent;
}

.shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item,
.shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item.active {
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  background: transparent;
}

.shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item.page-item-btn {
  width: auto !important;
  min-width: 98px !important;
}

.shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item>.page-link {
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border: 1.5px solid rgba(201, 172, 110, 0.72);
  border-radius: 999px;
  background: #fffdfa;
  color: #8f744b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  word-break: keep-all;
}

.shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item:not(.page-item-btn)>.page-link {
  min-width: 40px;
  padding: 0 10px;
}

.shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item>.page-link i {
  font-size: 16px;
  line-height: 1;
}

.shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item.page-item-btn>.page-link .d-lg-block {
  white-space: nowrap;
  word-break: keep-all;
}

.shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item.active>.page-link {
  border-color: #6a1d15;
  background: #6a1d15;
  color: #fff7ef;
}

.shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item:not(.active):not(.disabled)>.page-link:hover {
  border-color: #c9ac6e;
  background: #f8ede2;
  color: #6a1d15;
}

.shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item.disabled>.page-link {
  opacity: 0.45;
  pointer-events: none;
}

@media screen and (max-width: 767px) {
  .shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30 {
    gap: 6px;
    margin-top: 16px;
  }

  .shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item>.page-link {
    height: 34px;
    min-width: 34px;
    padding: 0 9px;
    font-size: 13px;
  }

  .shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item.page-item-btn {
    min-width: 0 !important;
  }

  .shop-section .shop-content .pagination.justify-content-center.text-center.ptblr-10-30>.page-item>.page-link i {
    font-size: 15px;
  }
}

/* 三福商品標籤圓章樣式 */
.shop-section .shop-content .product-item .product-img .product-tag,
.widget-product .product-item .product-tag,
.single-product-image-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  word-break: break-all;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a06400;
  border-radius: 999px;
  border: 2px dashed rgba(201, 172, 110, 0.92);
  background: rgba(252, 248, 240, 0.95);
  box-shadow: 0 3px 8px rgba(40, 3, 0, 0.08);
  padding: 8px;
}

.shop-section .shop-content .product-item .product-img .product-tag {
  top: auto;
  left: auto;
  right: 10px;
  bottom: 10px;
  width: 76px;
  height: 76px;
  font-size: 18px;
  z-index: 3;
}

.widget-product .product-item .product-tag {
  top: auto;
  left: auto;
  right: 10px;
  bottom: 10px;
  width: 64px;
  height: 64px;
  font-size: 13px;
}

.single-product-image-tag {
  top: auto;
  left: auto;
  right: 12px;
  bottom: 12px;
  width: 76px;
  height: 76px;
  font-size: 16px;
}

.single-product-image-tag.tag2 {
  left: auto;
  right: 96px;
  bottom: 12px;
}

/* 三福商品頁側欄（搜尋＋分類）- 日式簡約 */
.shop-section .widget-search {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.shop-section .widget-search form {
  position: relative;
}

.shop-section .widget-search input {
  height: 46px;
  border: 1px solid rgba(139, 118, 83, 0.35);
  border-radius: 2px;
  background: #fffdfa;
  color: #5c3a27;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 44px 0 14px;
  box-shadow: none;
}

.shop-section .widget-search input::placeholder {
  color: #9c8b71;
}

.shop-section .widget-search input:focus {
  border-color: #c9ac6e;
  box-shadow: 0 0 0 2px rgba(201, 172, 110, 0.16);
  background: #ffffff;
}

.shop-section .widget-search button {
  right: 12px;
  width: 24px;
  color: #8f744b;
  font-size: 18px;
}

.shop-section .widget-search button:hover {
  color: #6a1d15;
}

.shop-section .product-side-menu {
  background: #fffdfa;
  border: 1px solid rgba(139, 118, 83, 0.24);
  border-radius: 0;
  padding: 18px 14px;
  box-shadow: none;
}

.shop-section .product-side-menu .widget-title {
  margin: 0 0 12px 0;
  padding: 0 2px 10px;
  color: #5e2e24;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(201, 172, 110, 0.45);
}

.shop-section .product-side-menu .widget-title::before {
  display: none;
}

.shop-section .product-side-menu .product-cat>ul>.product-cat-item>a {
  margin-bottom: 0;
  padding: 12px 4px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(201, 172, 110, 0.3);
  background: transparent;
  color: #4a2c20;
  font-weight: 600;
  line-height: 1.45;
}

.shop-section .product-side-menu .product-cat>ul>.product-cat-item>a:hover {
  background: rgba(201, 172, 110, 0.1);
  color: #6a1d15;
}

.shop-section .product-side-menu .product-cat>ul>.product-cat-item.is-active>a {
  position: relative;
  background: rgba(201, 172, 110, 0.16);
  background:
    linear-gradient(rgba(201, 175, 118, .1) 50%, transparent 0),
    linear-gradient(90deg, rgba(201, 175, 118, .1) 50%, transparent 0);
  background-size: 100% 10px, 10px 100%;
  border-bottom-color: #580E0E;
  color: #6a1d15;
  color: #580E0E;
  font-weight: 700;
  box-shadow: none;
  padding-left: 12px;
}

.shop-section .product-side-menu .product-cat>ul>.product-cat-item.is-active>a::before {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%)rotate(45deg);
  background: #580E0E;
}

.shop-section .product-side-menu .product-cat-item ul {
  margin-top: 2px;
  padding-left: 14px;
  border-left: 1px solid rgba(201, 172, 110, 0.35);
}

.shop-section .product-side-menu .product-cat-item ul .product-cat-item>a {
  padding: 9px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 172, 110, 0.25);
  border-radius: 0;
  color: #6b5a44;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.shop-section .product-side-menu .product-cat-item ul .product-cat-item>a:hover {
  color: #6a1d15;
  border-bottom-color: rgba(106, 29, 21, 0.38);
}

.shop-section .product-side-menu .product-cat-item ul .product-cat-item.is-active>a {
  color: #6a1d15;
  font-weight: 700;
  background: transparent;
  border-radius: 0;
  border-bottom-color: rgba(106, 29, 21, 0.38);
  padding-left: 4px;
}

.shop-section .product-side-menu .product-cat-item.has-children>a::after {
  color: #b39666;
}

.shop-section .product-side-menu .product-cat-item.is-active.has-children>a::after,
.shop-section .product-side-menu .product-cat-item ul .product-cat-item.is-active.has-children>a::after {
  color: #a2824d;
}

.shop-section .product-side-menu .product-cat-item .text-danger {
  color: inherit !important;
}

/* 手機分類下拉維持同語言 */
.shop-section .btn-group-category {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.shop-section .btn-group-category .btn {
  height: 46px;
  border: 1px solid rgba(139, 118, 83, 0.35);
  border-radius: 2px;
  color: #5e2e24;
  font-weight: 600;
  background: #fffdfa;
  box-shadow: none;
}

.shop-section .btn-group-category .dropdown-menu {
  margin-top: 6px;
  border-radius: 2px;
  border: 1px solid rgba(139, 118, 83, 0.28);
  background: #fffdfa;
  padding: 8px;
  box-shadow: 0 10px 20px rgba(40, 3, 0, 0.08);
}

.shop-section .btn-group-category .product-cat-item>a,
.shop-section .btn-group-category .dropdown-item {
  border-radius: 0;
  color: #5a3a2a;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 172, 110, 0.3);
  font-weight: 500;
  padding: 10px 6px;
}

.shop-section .btn-group-category .product-cat-item>a:hover,
.shop-section .btn-group-category .dropdown-item:hover {
  background: rgba(201, 172, 110, 0.1);
}

.shop-section .btn-group-category .product-cat-item.is-active>a,
.shop-section .btn-group-category .dropdown-item:active {
  background: rgba(201, 172, 110, 0.18);
  color: #6a1d15;
  border-color: transparent;
  font-weight: 700;
}

@media screen and (max-width: 991px) {
  .shop-section .widget-search {
    margin-bottom: 10px;
  }

  .shop-section .product-side-menu {
    padding: 14px 10px;
  }

  .shop-section .product-side-menu .widget-title {
    font-size: 20px;
  }
}

/* ============================================================================
 * 三福商品內頁：主圖區 / 資訊區控制元件(cart-plus-minus/qty/spec/按鈕) / 相關商品 (3ffood.css 10808-11550)
 * ============================================================================ */

/* 三福商品內頁主圖區 */
.shop-section .single-product-area {
  /* background: rgba(252, 248, 240, 0.92);
  border: 1px solid rgba(201, 172, 110, 0.32);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(40, 3, 0, 0.05); */
  padding: 28px 28px 24px;
  background: transparent;
}

.shop-section .single-product-main-image {
  --detail-arc-size: 82px;
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  border-radius: 0;
}

.shop-section .single-product-main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-right: 2px solid rgba(201, 172, 110, 0.92);
  border-bottom: 2px solid rgba(201, 172, 110, 0.92);
  pointer-events: none;
  z-index: 2;
}

.shop-section .single-product-main-image #main-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  height: auto;
  background: #ffffff;
  border-radius: 0px
}

.shop-section .imgs-zoom-area .img-fluid {
  border-radius: 0;
  border-top-left-radius: inherit;
}

.shop-section .single-product-image-tag {
  z-index: 3;
}

.shop-section .thumb-slider-wrapper {
  margin-top: 14px;
}

.shop-section #product-thumbnails {
  /* padding: 0 40px; */
  padding: 10px 0;
}

.shop-section .p-c {
  width: 92px;
  padding: 0;
  margin-right: 10px;
  border: 0;
  background: transparent;
}

.shop-section .p-c .thumb-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(201, 172, 110, 0.5);
  border-radius: 0;
  /* border-top-left-radius: 24px; */
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-section .p-c .thumb-img:hover,
.shop-section #product-thumbnails .slick-current .thumb-img {
  border-color: rgba(201, 172, 110, 0.95);
  border: 1px solid #C9AF76;
  /* box-shadow: 0 6px 12px rgba(40, 3, 0, 0.08);
  transform: translateY(-2px); */
}

.shop-section #product-thumbnails .slick-slide .thumb-img {
  opacity: .8;
}

.shop-section #product-thumbnails .slick-current .thumb-img {
  /* opacity: 1; */
  border: 1px solid #C9AF76;
}

.shop-section #product-thumbnails .slick-prev.custom-arrow,
.shop-section #product-thumbnails .slick-next.custom-arrow {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(201, 172, 110, 0.8);
  border-radius: 999px;
  background: #fffdfa;
  color: #8f744b;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.shop-section #product-thumbnails .slick-prev.custom-arrow:hover,
.shop-section #product-thumbnails .slick-next.custom-arrow:hover {
  background: #6a1d15;
  border-color: #6a1d15;
  color: #fff7ef;
}

.shop-section #product-thumbnails .slick-prev.custom-arrow::before,
.shop-section #product-thumbnails .slick-next.custom-arrow::before {
  display: none;
}

@media screen and (max-width: 991px) {
  .shop-section .single-product-area {
    padding: 18px 14px 18px;
    border-radius: 12px;
  }

  .shop-section .single-product-main-image {
    --detail-arc-size: 58px;
  }

  .shop-section #product-thumbnails {
    padding: 0 24px;
  }

  .shop-section .p-c {
    width: 78px;
    margin-right: 8px;
  }

  .shop-section .p-c .thumb-img {
    border-top-left-radius: 18px;
  }
}

/* 三福商品內頁資訊區控制元件 */
.shop-section .single-product-info .main-title {
  font-size: 36px;
  line-height: 1.18;
  padding-bottom: 14px;
  margin-bottom: 14px;
  color: #C9AF76;
  font-weight: 700;
}

.shop-section .single-product-info .main-title::after,
.shop-section .single-product-info .main-title::before {
  content: "";
  display: none;
}

.shop-section .single-product-info .brand-name {
  color: #8f744b;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 0;
}

.shop-section .single-product-info>hr.mb-5,
.shop-section .single-product-info>hr.mb-4 {
  border-top: 1px dashed #671313;
  border-bottom: none;
  opacity: 1;
}

.shop-section .single-product-info>hr.mb-5 {
  margin-bottom: 20px !important;
}

.shop-section .single-product-info>hr.mb-4 {
  margin-top: 18px;
  margin-bottom: 20px !important;
}

.shop-section .single-product-info>hr.mb-5+span {
  display: inline-block;
  color: #b79a67;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.shop-section .single-product-info>hr.mb-5+span+span {
  display: inline-block;
  margin-left: 6px;
  color: #b79a67;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: line-through;
  text-decoration-color: rgba(183, 154, 103, 0.65);
  text-decoration-thickness: 1px;
}

.shop-section .single-product-info .pro-price {
  color: #6a1d15;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 10px 0 12px;
  padding-bottom: 0;
}

.shop-section .single-product-info .pro-price #productPrice,
.shop-section .single-product-info .pro-price .text-danger {
  color: #cf4337 !important;
  font-size: 40px;
  font-weight: 700;
  line-height: 0.95;
}

.shop-section .single-product-info .badge {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(201, 172, 110, 0.72);
  background: #fffdfa;
  color: #6a1d15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: none;
}

.shop-section .single-product-info .badge.badge-info {
  border-color: rgba(67, 164, 179, 0.28);
  background: #edf8fb;
  color: #2d8d99;
}

.shop-section .single-product-info .badge.badge-purple {
  border-color: rgba(118, 101, 181, 0.24);
  background: #f2effd;
  color: #6a57a4;
}

.shop-section .single-product-info .plus-minus-pro-action {
  margin-bottom: 12px !important;
}

.shop-section .single-product-info .plus-minus-pro-action .sin-plus-minus {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-section .single-product-info .plus-minus-pro-action .f-left {
  float: none !important;
}

.shop-section .single-product-info .color-title {
  width: auto;
  min-width: 48px;
  color: #6a1d15;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: none;
}

.shop-section .single-product-info .spec-button {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.shop-section .single-product-info .spec-button>li {
  margin-right: 0;
}

.shop-section .single-product-info .spec-button>li>a {
  min-width: 58px;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid rgba(201, 172, 110, 0.72);
  border-radius: 10px;
  background: #fffdfa;
  color: #8f744b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.shop-section .single-product-info .spec-button>li:hover>a {
  background: #f8ede2;
  border-color: #c9ac6e;
  color: #6a1d15;
}

.shop-section .single-product-info .spec-button li a.active {
  background: #6a1d15;
  border-color: #6a1d15;
  color: #fff7ef;
  box-shadow: 0 6px 12px rgba(40, 3, 0, 0.12);
}

.shop-section .single-product-info .cart-plus-minus {
  width: 126px;
  height: 42px;
  border: 1.5px solid rgba(201, 172, 110, 0.72);
  border-radius: 10px;
  background: #fffdfa;
  color: #6a1d15;
  display: inline-flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
}

.shop-section .single-product-info .qtybutton {
  width: 36px;
  min-width: 36px;
  background: #f6ece4;
  color: #8f744b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  height: 100%;
  float: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.shop-section .single-product-info .qtybutton:hover {
  background: #e9d9bf;
  color: #6a1d15;
}

.shop-section .single-product-info .dec.qtybutton,
.shop-section .single-product-info .inc.qtybutton {
  float: none;
}

.shop-section .single-product-info input.cart-plus-minus-box {
  width: 54px;
  min-width: 54px;
  min-height: auto !important;
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  border-left: 1px solid rgba(201, 172, 110, 0.35);
  border-right: 1px solid rgba(201, 172, 110, 0.35);
  background: #fffdfa;
  color: #6a1d15;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  margin: 0;
  box-shadow: none;
  text-align: center;
}

.shop-section .single-product-info .action-button-box {
  gap: 10px;
  display: flex;
  align-items: stretch;
}

.shop-section .single-product-info .action-button-box .action-button {
  display: flex;
  align-items: stretch;
  flex-grow: 1;
  margin: 0;
  padding: 0;
  min-height: 50px;
  list-style: none;
}

.shop-section .single-product-info .action-button-box .btnKG-box {
  margin-right: 0;
}

.shop-section .single-product-info .action-button-box .btnKG:not(.btn-soldout) {
  height: 50px;
  min-height: 50px;
  margin: 0;
  box-sizing: border-box;
}

.shop-section .single-product-info .btnKG-gold {
  height: 50px;
  min-height: 50px;
  min-width: 168px;
  padding: 0 24px;
  margin: 0;
  border: 1.5px solid #c9ac6e;
  border-radius: 8px;
  color: #c9ac6e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
  background: #f6ece4;
  /* box-shadow: 0 6px 14px rgba(40, 3, 0, 0.12); */
}

.shop-section .single-product-info .btnKG-gold:hover {
  background: #c9ac6e;
  border-color: #c9ac6e;
  color: #fff7ef;
}

.shop-section .single-product-info form.action-button {
  margin: 0;
}

/* 三福商品內頁：相關商品區塊（僅 CSS） */
.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 {
  margin-top: 24px !important;
  padding: 24px 24px 20px !important;
  /* background: rgba(252, 248, 240, 0.76) !important;
  border: 1px solid rgba(201, 172, 110, 0.32) !important;
  border-radius: 18px !important; */
  box-shadow: none !important;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20>.d-flex {
  margin-bottom: 18px !important;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #C9AF76;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .widget-title {
  color: #6a1d15;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .widget-title-more {
  color: #8f744b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .widget-title-more i {
  color: #c9ac6e;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .owl-img-item {
  height: 100%;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-item {
  --card-arc-size: 60px;
  height: 100%;
  padding: 10px 10px 14px;
  background: #fcf8f0;
  border: 0;
  border-radius: 10px;
  border-top-left-radius: var(--card-arc-size);
  /* box-shadow: 0 4px 14px rgba(40, 3, 0, 0.08); */
  position: relative;
  overflow: hidden;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-img {
  --img-arc-size: 52px;
  float: none;
  width: 100%;
  margin: 0px auto 2px;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  border-top-left-radius: var(--img-arc-size);
  overflow: hidden;
  position: relative;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-img::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-right: 2px solid rgba(201, 172, 110, 0.92);
  border-bottom: 2px solid rgba(201, 172, 110, 0.92);
  pointer-events: none;
  z-index: 2;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-img a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  position: relative;
  z-index: 1;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-img img {
  border-radius: inherit;
  border: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  display: block;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-info {
  width: 100%;
  float: none;
  padding: 14px 10px 0;
  background: transparent;
  text-align: left;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-title {
  margin: 0;
  color: #a2824d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  min-height: calc(1.45em * 2);
  max-height: calc(1.45em * 2);
  margin-top: 0;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  text-transform: none;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-title .product-title-link {
  display: -webkit-box;
  height: calc(1.45em * 2);
  max-height: calc(1.45em * 2);
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  line-height: inherit;
  color: inherit;
  text-decoration: none;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-title .product-title-link:hover {
  color: #8f744b;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .pro-price {
  margin-bottom: 20px;
  color: #480A0A;
  font-size: calc(1.3rem + 0.6vw);
  font-weight: 700;
  line-height: 1;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-img .product-tag {
  right: 10px;
  bottom: 10px;
  width: 76px;
  height: 76px;
  font-size: 18px;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox .carousel-btn {
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1.5px solid rgba(201, 172, 110, 0.8);
  border-radius: 999px;
  background: #fffdfa !important;
  background-image: none !important;
  position: relative;
  float: none;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox>.carousel-btn.left {
  margin-right: 0;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox>.carousel-btn.left::before,
.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox>.carousel-btn.right::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  color: #8f744b;
  font-size: 22px;
  line-height: 1;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox>.carousel-btn.left::before {
  content: "<";
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox>.carousel-btn.right::before {
  content: ">";
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox .carousel-btn:hover {
  border-color: #6a1d15;
  background: #6a1d15 !important;
}

.shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox .carousel-btn:hover::before {
  color: #fff7ef;
}

@media screen and (max-width: 991px) {
  .shop-section .single-product-info .main-title {
    font-size: 30px;
    line-height: 1.22;
  }

  .shop-section .single-product-info .pro-price {
    font-size: 19px;
  }

  .shop-section .single-product-info .pro-price #productPrice,
  .shop-section .single-product-info .pro-price .text-danger {
    font-size: 36px;
  }

  .shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 {
    padding: 20px 18px 18px !important;
  }
}

@media screen and (max-width: 767px) {
  .shop-section .single-product-info .main-title {
    font-size: 28px;
  }

  .shop-section .single-product-info .brand-name {
    font-size: 16px;
    line-height: 1.8;
  }

  .shop-section .single-product-info>hr.mb-5+span+span {
    font-size: 20px;
  }

  .shop-section .single-product-info .pro-price {
    font-size: 18px;
  }

  .shop-section .single-product-info .pro-price #productPrice,
  .shop-section .single-product-info .pro-price .text-danger {
    font-size: 32px;
  }

  .shop-section .single-product-info .action-button-box {
    gap: 10px;
  }

  .shop-section .single-product-info .btnKG-gold {
    width: 100%;
    min-width: 0;
  }

  .shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 {
    padding: 18px 14px 16px !important;
  }

  .shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .widget-title {
    font-size: 20px;
  }

  .shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-item {
    --card-arc-size: 66px;
    padding: 8px 8px 12px;
  }

  .shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-title {
    font-size: 16px;
  }

  .shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-img {
    --img-arc-size: 54px;
    width: 90%;
    margin-top: 6px;
  }

  .shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .product-img::after {
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
  }

  .shop-section .col-lg-10.col-12.order-2.d-block>.widget.widget-product.bg-white.mb-30.mt-20 .pro-price {
    margin-bottom: 14px;
  }
}

/* ============================================================================
 * 三福商品內頁頁簽：.single-product-tab .nav(底線#C9AF76) + tab-pane p/img / .reviews-tab li a(20px active #755100/700)（早期區補抽，覆寫 common 預設頁簽樣式）(3ffood.css 2761-2777 + 5437-5461)
 * ============================================================================ */

.single-product-tab .nav {
  border-bottom: 1.5px solid #C9AF76;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.single-product-tab .tab-content .tab-pane img {
  max-width: min(100%, 1040px) !important;
  height: auto !important;
}

.reviews-tab li a {
  display: block;
  font-weight: 500;
  line-height: 20px;
  font-size: 20px;
  color: #b7b7b7;
  text-transform: uppercase;
  transition: all 0.3s ease 0s;
}

.reviews-tab li a.active {
  color: #755100;
  font-weight: 700;
  border: none;
}
