/* ============================================================================
 * themes/custom-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 .product-side-menu）/ 手機分類下拉
 *                      （原併含的 .shop-section .widget-search 一組已於 #862 B-1 判死移除）
 *   - 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/custom-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: 40px;
  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;
}

@media (hover: hover) {
  .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 .btnLike:active,
.single-product-info .action-button-box .btnLike:active {
  background: #f8ede2;
  border-color: #6a1d15;
  color: #6a1d15;
}

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

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

/* 內頁三顆操作按鈕高度對齊 common 的 46px（收藏／加入購物車／直接購買；含售完鈕避免切換跳動）。
   btnKG 已遷移為 cart-action__btn，故改指向 cart-action__btn；清單頁卡片按鈕不受此規則影響（issue #622） */
.shop-section .single-product-info .action-button-box .btnLike,
.shop-section .single-product-info .action-button-box .cart-action__btn {
  height: 46px;
  min-height: 46px;
}

@media screen and (min-width: 768px) {
  /* 內頁收藏鈕維持正方形：寬度同步為 46px（對齊高度） */
  .shop-section .single-product-info .action-button-box .btnLike {
    width: 46px;
    min-width: 46px;
  }
}

/* 三福 /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 {
  /* 電腦版最多兩行（原為單行 nowrap），超出以 … 截斷；保留品牌底線分隔 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #C9AF76;
  font-weight: 700;
  line-height: 1.45;
  /* 硬鎖兩行：overflow:hidden 的裁切框是 padding-box，padding-bottom 會讓第三行上緣鑽進該 padding 區
     顯示出來（與手機同根因，即「明明 max-height 已限高、卻仍露出第三行」的成因）。
     數學上「內容容得下 2 行 ＋ 第三行不外露」要求 padding-bottom = 0；故此處 padding／border 歸零，
     min/max-height 設為 2.9em（＝2 × 1.45em，border-box 無 padding/border），裁切框恰為兩行。
     原本的金色分隔線改掛到下方 .pro-price 的 border-top，保留分隔線且維持間距（見下方規則）。 */
  min-height: 2.9em;
  max-height: 2.9em;
  margin-top: 0;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: wrap;
  text-transform: none;
  padding-bottom: 0;
  border-bottom: none;
}

/* 手機版商品名最多一行，超出以 … 截斷 */
@media screen and (max-width: 767.98px) {
  .shop-section .shop-content .product-item .product-info .product-title,
  .shop-section .shop-content .product-item .product-info .product-title a {
    -webkit-line-clamp: 1;
    line-clamp: 1;
    /* 手機恆為一行：覆寫桌機的兩行高度為單行（padding/border 桌機已歸零、分隔線移至 .pro-price，
       故裁切框＝內容框＝單行高 1.45em，第二行被完整裁掉）。max-height 為 clamp 偶發失效時的硬上限。 */
    min-height: 0;
    max-height: 1.45em;
  }
}

.shop-section .shop-content .product-item .product-info .pro-price {
  color: #6a1d15;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  /* 金色分隔線改掛於此（原在標題 border-bottom，因會破壞兩行裁切而移除）：
     掛在價格上緣，維持標題與價格之間的分隔與間距，且不影響標題的 overflow 裁切 */
  border-top: 1px solid rgba(201, 175, 118, 0.38);
  padding-top: 12px;
}

@media screen and (max-width: 767.98px) {
  .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）
   選擇器同步 issue #699：原以 wrapperClass 的佈局 utility 組合
   （.justify-content-center.text-center）作為選擇器 hook，屬脆弱耦合；
   隨商品列表頁骨架語意化改掛 .product-pagination，規則內容不變。 */
.shop-section .shop-content .pagination.product-pagination.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.product-pagination.ptblr-10-30>.page-item,
.shop-section .shop-content .pagination.product-pagination.ptblr-10-30>.page-item.active {
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  background: transparent;
}

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

.shop-section .shop-content .pagination.product-pagination.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.product-pagination.ptblr-10-30>.page-item:not(.page-item-btn)>.page-link {
  min-width: 40px;
  padding: 0 10px;
}

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

.shop-section .shop-content .pagination.product-pagination.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.product-pagination.ptblr-10-30>.page-item.active>.page-link {
  border-color: #6a1d15;
  background: #6a1d15;
  color: #fff7ef;
}

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

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

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

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

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

  .shop-section .shop-content .pagination.product-pagination.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: 60px;
  height: 60px;
  font-size: 14px;
  z-index: 3;
}

/* issue #1460：三福標籤圓章在主圖右下角，促銷活動名稱改放對角的左上角，避免被圓章蓋住
   （common 預設標籤在左上、活動名稱在右下，其他主題標籤皆在左上，不需覆寫） */
.shop-section .shop-content .product-item .product-img .product-card__promotion--overlay {
  top: 10px;
  left: 10px;
  right: auto;
  bottom: auto;
}

/* 4 字標籤：文字限 2 字寬 → 2+2 兩行（≤3 字沿用 common 的 nowrap 一行）。
   letter-spacing 歸零，否則 base 的 0.08em 會讓 2 字超過設定寬度、變成每行 1 字（直排 4 行） */
.shop-section .shop-content .product-item .product-img .product-tag[data-len="4"] .product-tag-text,
.single-product-image-tag[data-len="4"] .product-tag-text {
  white-space: normal;
  width: 2.2em;
  letter-spacing: 0;
  word-break: break-all;
  line-height: 1.15;
}

.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 .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;
}

/* ============================================================================
 * 手機版商品列表控制列 (搜尋 / 分類) — 3ffood 品牌色
 * ============================================================================ */
.mobile-cat-toolbar {
  border-bottom-color: rgba(201, 172, 110, 0.45);
}

.mobile-cat-toolbar-search {
  color: #6a1d15;
}

@media (hover: hover) {
  .mobile-cat-toolbar-search:hover {
    background-color: #f8ede2;
  }
}

.mobile-cat-toolbar-search:active {
  background-color: #f8ede2;
}

.mobile-cat-toolbar-filter {
  color: #6a1d15;
  border-left-color: rgba(201, 172, 110, 0.45);
}

@media (hover: hover) {
  .mobile-cat-toolbar-filter:hover {
    background-color: #f8ede2;
  }
}

.mobile-cat-toolbar-filter:active {
  background-color: #f8ede2;
}

.mobile-cat-toolbar-badge {
  background-color: #C9AF76;
  color: #ffffff;
}

/* ============================================================================
 * 手機版商品分類側邊抽屜 — 3ffood 品牌色
 * ============================================================================ */
.mobile-cat-drawer-header {
  border-bottom-color: rgba(201, 172, 110, 0.45);
}

.mobile-cat-drawer-kicker {
  color: #8f744b;
}

.mobile-cat-drawer-title {
  color: #6a1d15;
}

.mobile-cat-drawer-close {
  border-color: rgba(201, 172, 110, 0.45);
  color: #8f744b;
}

@media (hover: hover) {
  .mobile-cat-drawer-close:hover {
    background-color: #f8ede2;
    color: #6a1d15;
    border-color: #C9AF76;
  }
}

.mobile-cat-drawer-close:active {
  background-color: #f8ede2;
  color: #6a1d15;
  border-color: #C9AF76;
}

.mobile-cat-drawer-current {
  background-color: #fcf8f0;
  border-bottom-color: rgba(201, 172, 110, 0.45);
}

.mobile-cat-drawer-current-label {
  color: #8f744b;
}

.mobile-cat-drawer-current-name {
  background-color: #6a1d15;
  color: #ffffff;
}

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

/* 三福商品內頁主圖區 */
/* #1027：上內距改由 common 的 --cms-product-area-pad-top 承載,左側分類欄讀同一個
   變數往下推,分類卡外框才會與商品主圖切齊(本主題商品區為透明底,落差會直接顯露)。 */
.shop-section {
  --cms-product-area-pad-top: 28px;
  /* 商品區為透明底,看得見的邊界是商品主圖,麵包屑須推到圖片邊緣(左 28px),
     並同步收掉垂直方向多出的 28px 空白。 */
  --cms-breadcrumb-align-inset: 28px;
}

.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: var(--cms-product-area-pad-top) 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: 991.98px) {
  /* #1027：左右內距由 14px 提高到 20px，與其餘主題一致，避免內容貼齊視窗邊緣 */
  .shop-section .single-product-area {
    padding: 18px 20px 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);
}

/* 規格下拉（選項 >5）：3ffood 棗紅／金棕色（結構沿用 common）
   注意：3ffood base.css 的 #page-content select 以 background 簡寫設定底色，
   會連帶清掉 common .spec-select 的箭頭 background-image，且其 specificity（1,0,1）
   高於 .spec-select（0,1,0），連品牌邊框也被蓋掉。故此處提高 specificity 至
   #page-content select.spec-select（1,1,1），重新宣告底色與品牌色箭頭。 */
#page-content select.spec-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 40px;
  min-height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(201, 172, 110, 0.72);
  border-radius: 8px;
  background-color: #fffdfa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236a1d15' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: #6a1d15;
  accent-color: #6a1d15;
}

/* 展開清單選項配色（現代瀏覽器；反白色由上方 accent-color 控制） */
.spec-select option {
  background-color: #fffdfa;
  color: #6a1d15;
}

#page-content select.spec-select:focus-visible {
  outline-color: #6a1d15;
}

@media (hover: hover) {
  #page-content select.spec-select:hover {
    border-color: #c9ac6e;
  }
}

.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 .cart-action-box {
  margin-right: 0;
}

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

/* 三福商品內頁：相關商品區塊（僅 CSS）
   選擇器同步 issue #705：商品內頁骨架語意化，原 .col-lg-9.col-12.order-2.d-block
   改掛 .product-related、標題列 >.d-flex 改掛 >.product-related__header，規則內容不變。 */
.shop-section .product-related>.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 .product-related>.widget.widget-product.bg-white.mb-30.mt-20>.product-related__header {
  margin-bottom: 18px !important;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #C9AF76;
}

.shop-section .product-related>.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 .product-related>.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 .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .widget-title-more i {
  color: #c9ac6e;
}

.shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .owl-img-item {
  height: 100%;
}

.shop-section .product-related>.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 .product-related>.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 .product-related>.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 .product-related>.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 .product-related>.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 .product-related>.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 .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .product-title {
  /* 3ffood 僅覆寫品牌色與字級；兩行截斷／高度／與價格間距等結構由 common 的
     .owl-carousel-suggest .product-info .product-title 托底，
     不再於主題寫巢狀 -webkit-box＋寫死高度（那會把 serif 末行裁掉）。 */
  color: #a2824d;
  font-size: 17px;
  font-weight: 700;
}

.shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .product-title .product-title-link {
  color: inherit;
  text-decoration: none;
}

.shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .product-title .product-title-link:hover {
  color: #8f744b;
}

.shop-section .product-related>.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 .product-related>.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 .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-section .product-related>.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 .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox>.carousel-btn.left {
  margin-right: 0;
}

.shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox>.carousel-btn.left::before,
.shop-section .product-related>.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 .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox>.carousel-btn.left::before {
  content: "<";
}

.shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox>.carousel-btn.right::before {
  content: ">";
}

.shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox .carousel-btn:hover {
  border-color: #6a1d15;
  background: #6a1d15 !important;
}

.shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .owl-carousel-btn-suggestbox .carousel-btn:hover::before {
  color: #fff7ef;
}

@media screen and (max-width: 991.98px) {
  .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 .product-related>.widget.widget-product.bg-white.mb-30.mt-20 {
    padding: 20px 18px 18px !important;
  }
}

@media screen and (max-width: 767.98px) {
  .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 .product-related>.widget.widget-product.bg-white.mb-30.mt-20 {
    padding: 18px 14px 16px !important;
  }

  .shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .widget-title {
    font-size: 20px;
  }

  .shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .product-item {
    --card-arc-size: 66px;
    padding: 8px 8px 12px;
  }

  .shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .product-title {
    /* 手機僅覆寫字級；恆一行截斷由 common 的 .owl-carousel-suggest 手機規則托底 */
    font-size: 16px;
  }

  .shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .product-img {
    --img-arc-size: 54px;
    width: 90%;
    margin-top: 6px;
  }

  .shop-section .product-related>.widget.widget-product.bg-white.mb-30.mt-20 .product-img::after {
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
  }

  .shop-section .product-related>.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;
}

/* 新版手風琴側欄 — 3ffood 主題色：覆寫 common 的 --cat-* 變數，使箭頭鈕 /
   子選單導引線 / 標題裝飾 / active 等新元素套用三福酒紅金色系（連結與 active
   既有色由上方 .shop-section .product-side-menu 既有規則維持）。 */
.shop-section .product-side-menu {
  --cat-accent: #6A1D15;       /* 深酒紅，與 active 連結一致 */
  --cat-accent-text: #FFF7EF;
  --cat-text: #4F130D;         /* 深紅棕字 */
  --cat-sub-text: #7F332E;
  --cat-border: #e3d3b5;       /* 金米邊 */
  --cat-hover: #F6ECE4;        /* 淺底 hover */
  --cat-chevron: #C9AC6E;      /* 金箭頭 */
}

/* 商品清單工具列 — 3ffood 主題色（酒紅/金配色，覆寫 common 中性樣式） */
.product-toolbar {
  border-bottom-color: #e3d3b5;
}

.product-toolbar-label {
  color: #6A1D15;
}

.product-toolbar-select,
.product-toolbar-search input {
  border-color: #d8c4a0;
  color: #4F130D;
}

.product-toolbar-select:hover,
.product-toolbar-search input:hover {
  border-color: #C9AC6E;
}

.product-toolbar-select:focus-visible,
.product-toolbar-search input:focus-visible {
  outline-color: #6A1D15;
}

.product-toolbar-search button {
  color: #C9AC6E;
}

.product-toolbar-search button:hover {
  color: #6A1D15;
}

/* 排序／每頁下拉選項：對齊 common 結構，改用 3ffood 品牌棗紅色（需 select 套用新式 appearance 才會在原生清單生效） */
/* 排序／每頁 Bootstrap dropdown 選項：3ffood 品牌棗紅色 */
.product-toolbar .dropdown-menu .dropdown-item {
  color: #4f130d;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.product-toolbar .dropdown-menu .dropdown-item:hover,
.product-toolbar .dropdown-menu .dropdown-item:focus {
  color: #4f130d;
  background-color: #f8ede2;
}

.product-toolbar .dropdown-menu .dropdown-item:active,
.product-toolbar .dropdown-menu .dropdown-item.active {
  color: #ffffff;
  background-color: #6a1d15;
}

/* ============================================================================
 * 商品清單卡片購物動作（快速加入 / 收藏狀態）— 3ffood 品牌色覆寫
 *   結構沿用 common，僅覆寫品牌色 #6A1D15；行為與 common 一致。
 *   收藏愛心以 .shop-section .product-item 提高權重，覆蓋既有 btnLike 外框樣式。
 * ============================================================================ */

/* 數量 stepper：品牌色框與 hover（圓角對齊 3ffood 8px） */
.cart-stepper {
  border-color: #6A1D15;
  border-radius: 8px;
}

.cart-stepper-btn {
  color: #6A1D15;
}

/* hover 僅套用於滑鼠裝置，避免觸控點擊後變色殘留 */
@media (hover: hover) {
  .cart-stepper-btn:hover {
    background-color: #6A1D15;
    color: #ffffff;
  }
}

.cart-stepper-qty {
  color: #2c2c2c;
  border-left-color: rgba(106, 29, 21, 0.2);
  border-right-color: rgba(106, 29, 21, 0.2);
}

/* 收藏愛心：已收藏填入品牌色 */
.shop-section .product-item .btnLike.is-wished,
.product-item .btnLike.is-wished {
  background: #6A1D15;
  border-color: #6A1D15;
  color: #ffffff;
}

/* 內頁收藏愛心：已收藏填品牌底色（與清單一致；特異度高於內頁愛心基底） */
.single-product-info .action-button-box .btnLike.is-wished {
  background: #6A1D15;
  border-color: #6A1D15;
  color: #ffffff;
}

.single-product-info .action-button-box .btnLike.is-wished i {
  color: #ffffff;
}

.shop-section .product-item .btnLike.is-wished i,
.product-item .btnLike.is-wished i {
  color: #ffffff;
}

@media (hover: hover) {
  .shop-section .product-item .btnLike.is-wished:hover,
  .product-item .btnLike.is-wished:hover {
    background: #4f130d;
    border-color: #4f130d;
    color: #ffffff;
  }
}

.shop-section .product-item .quickAddTrigger.quick-add-selected {
  border-color: rgba(201, 172, 110, 0.6);
  background: #f7f3ed;
  color: #6a1d15;
}

@media (hover: hover) {
  .shop-section .product-item .quickAddTrigger.quick-add-selected:hover {
    border-color: #c9ac6e;
    background: #efe6db;
    color: #6a1d15;
  }
}

.shop-section .product-item .card-action-row > .btnLike:not(.is-wished),
.shop-section .product-item .card-action-row > .btnLike:not(.is-wished):focus,
.shop-section .product-item .card-action-row > .btnLike:not(.is-wished):focus-visible {
  background: #ffffff;
  border-color: #6a1d15;
  color: #6a1d15;
  box-shadow: none;
}

@media (hover: hover) {
  .shop-section .product-item .card-action-row > .btnLike:not(.is-wished):hover {
    background: #6a1d15;
    border-color: #6a1d15;
    color: #ffffff;
  }
  /* 愛心 icon 顏色於 line 65 被明示 pin 為品牌色，hover 反白時須同步覆寫為白，否則暗紅底上暗紅愛心不可見 */
  .shop-section .product-item .card-action-row > .btnLike:not(.is-wished):hover i {
    color: #ffffff;
  }
}

.shop-section .product-item .card-action-row > .btnLike:not(.is-wished):active {
  background: #4f130d;
  border-color: #4f130d;
  color: #ffffff;
}

.shop-section .product-item .card-action-row > .btnLike:not(.is-wished):active i {
  color: #ffffff;
}

@media screen and (max-width: 767.98px) {
  .shop-section .product-item .cart-stepper {
    border-radius: 8px;
    border-color: #6a1d15;
    /* 數量器高度對齊加入購物車鈕(48px)：原 40px 與按鈕不等高（issue #622） */
    height: 48px;
    min-height: 48px;
  }

  .shop-section .product-item .cart-stepper-btn {
    color: #6a1d15;
    /* flex-shrink 1：窄卡 ＋／− 等比對稱收縮，避免 overflow 裁掉右側「＋」（同 common 修正） */
    flex: 0 1 32px;
  }

  .shop-section .product-item .card-action-row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .shop-section .product-item .card-action-row > .btnLike {
    /* 愛心對齊加入購物車鈕(48px)：原 40px 與按鈕不等高（issue #622） */
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0;
  }

  .shop-section .product-item .card-action-row > .card-cart-action {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .shop-section .product-item .card-cart-action .addToCart,
  .shop-section .product-item .card-cart-action .cart-stepper {
    width: 100%;
    margin: 0;
  }
}

/* 手機 2 欄窄卡（愛心補 48px 後膠囊僅 ~88px）：加入購物車鈕改顯示短版「加入」（icon＋加入），桌機仍全文「加入購物車」（比照 kgtwbeef，issue #622） */
@media screen and (max-width: 767.98px) {
  .shop-section .product-item .cart-action__btn-label {
    display: none;
  }
  .shop-section .product-item .cart-action__btn-label--min {
    display: inline;
  }
}

/* 快速加入 modal：3ffood 品牌版 */
.quick-add-modal .modal-content {
  border-color: rgba(201, 172, 110, 0.28);
  box-shadow: 0 24px 60px rgba(40, 3, 0, 0.18);
}

.quick-add-modal .modal-header {
  background: linear-gradient(180deg, #fffdfa 0%, #f8ede2 100%);
  border-bottom-color: rgba(201, 172, 110, 0.22);
}

.quick-add-modal-grip {
  background: rgba(201, 172, 110, 0.72);
}

.quick-add-modal-kicker {
  color: #8f744b;
}

.quick-add-modal .modal-title {
  color: #6a1d15;
}

.quick-add-close {
  border-color: rgba(201, 172, 110, 0.42);
  background-color: #fffdfa;
}

.quick-add-modal .modal-body {
  background: linear-gradient(180deg, #f9f3ec 0%, #f6eee6 100%);
}

.quick-add-panel,
.quick-add-purchase {
  border-color: rgba(201, 172, 110, 0.28);
  box-shadow: 0 10px 30px rgba(40, 3, 0, 0.08);
}

.quick-add .color-title,
.quick-add-label {
  color: #6a1d15;
}

.quick-add .spec-button > li > a {
  border-color: rgba(201, 172, 110, 0.72);
  background: #fffdfa;
  color: #8f744b;
}

.quick-add-thumb {
  border-color: rgba(201, 172, 110, 0.4);
  background: #fffdfa;
}

.quick-add-thumb img {
  background: #fffdfa;
}

.quick-add-thumb:focus,
.quick-add-thumb:focus-visible,
.quick-add-thumb.is-active {
  border-color: #6a1d15;
  box-shadow: 0 0 0 2px rgba(106, 29, 21, 0.12);
}

/* hover 僅在支援 hover 的裝置生效，避免手機點擊後 sticky hover 殘留 */
@media (hover: hover) {
  .quick-add-thumb:hover {
    border-color: #6a1d15;
    box-shadow: 0 0 0 2px rgba(106, 29, 21, 0.12);
  }
}

.quick-add .spec-button > li > a:focus,
.quick-add .spec-button > li > a:focus-visible {
  background: #f8ede2;
  border-color: #c9ac6e;
  color: #6a1d15;
  box-shadow: 0 0 0 3px rgba(201, 172, 110, 0.12);
}

/* hover 僅在支援 hover 的裝置生效，避免手機點擊後 sticky hover 殘留 */
@media (hover: hover) {
  .quick-add .spec-button > li:hover > a {
    background: #f8ede2;
    border-color: #c9ac6e;
    color: #6a1d15;
    box-shadow: 0 0 0 3px rgba(201, 172, 110, 0.12);
  }
}

.quick-add .spec-button li a.active {
  background: #6a1d15;
  border-color: #6a1d15;
  color: #fff7ef;
}

/* 數量控制：結構（單一圓角外框、按鈕與輸入透明無內框）沿用 common，此處僅覆寫 3ffood 品牌色，
   不重設 display/width/height/flex，避免與 common 結構衝突造成版面溢出或多餘線條 */
.quick-add .cart-plus-minus {
  border-color: rgba(201, 172, 110, 0.72);
  background: #fffdfa;
}

.quick-add .qtybutton {
  color: #6a1d15;
}

@media (hover: hover) {
  .quick-add .qtybutton:hover {
    background: #6a1d15;
    color: #ffffff;
  }
}

.quick-add .cart-plus-minus-box {
  color: #6a1d15;
}

.quick-add .cart-plus-minus-box:focus {
  outline: none;
}

.quick-add-actions .quick-add-detail {
  border-color: rgba(201, 172, 110, 0.72);
  background: #fffdfa;
  color: #6a1d15;
}

@media (hover: hover) {
  .quick-add-actions .quick-add-detail:hover {
    background: #f8ede2;
    border-color: #c9ac6e;
    color: #6a1d15;
  }
}
