/* ============================================================================
 * themes/3ffood/widget.css — 3ffood 主題 widget 層覆寫
 * ============================================================================
 *
 * 用途：
 *   承接舊 3ffood.css 的「三福 Widget 覆寫」段落，作為 3ffood 主題對
 *   common/widget.css（= widgets.css + default widget baseline）的覆寫層。
 *   載入順序在 common/widget.css 之後，重複規則由 3ffood 版本後勝覆寫。
 *
 * 抽取策略（差異覆寫，非完整 baseline）：
 *   widget 基底結構（bannerA~E / imgTextA~D / swiper / 訂閱 / 倒數）由
 *   common/widget.css 承接；本檔只放 3ffood 對這些 widget 的「視覺重設計覆寫」
 *   與 3ffood 專屬元件（imgTextD3ffood）。比照 kgtwbeef widget.css「banner/imgText
 *   baseline 留給 common」原則，但 3ffood 因有大量品牌重設計故覆寫量較大。
 *
 * 抽取來源（public/web/css/3ffood.css，「三福 Widget 覆寫」段）：
 *   - line 8546-8784：BannerA 右下分頁虛線（可點擊）/ 圖文C 缺角與雙線條 +
 *                     左右圖版型 / 圖文C 按鈕風格
 *   - line 8937-9560：圖文B 上下標題風格 / Banner B~E 深紅圓鈕 + 中心聚焦分頁 /
 *                     Banner D 白底浮動箭頭 / 圖文A 外框線 / widget-image 滿版 /
 *                     widget 垂直節奏統一 / widget-bannerA / widget-block-title(菱形 h2) /
 *                     ★ 圖文D imgTextD3ffood（.owl-carousel-imgTextD3ffood 系列，
 *                       widget.js body.dataset.theme==='3ffood' 專屬輪播邏輯所依賴）
 *                       + imgTextD-custom-dots / imgTextD-dot + RWD
 *
 * 跳過範圍：
 *   - line 8785-8935 三福全站標題主題 H1-H4（菱形）已抽至 base.css（task 10.1），
 *     夾在兩段 widget 之間，本檔不重複
 *   - .shop-section 商品頁 widget（widget-search / product-tag 等，9562+ / 9868+）
 *     屬 product-scoped → product.css(task 10.6)
 *   - #page-content 跨元件標題 cascade（.widget-block-title h2 與 blog/product
 *     title 綁同一規則，12968 / 14496）含非 widget selector → 留給 page 檔
 *
 * 載入順序：
 *   common/widget.css -> themes/3ffood/widget.css（本檔）-> 其他
 *
 * 詳細規格：openspec/specs/web-theme-css/spec.md（Requirement R.FUNC.1 / R.FUNC.8）
 * 變更記錄：openspec/changes/issue518-web-theme-css-modularization/（task 10.5）
 * ============================================================================
 */

/* ============================================================================
 * 三福 Widget 覆寫 (一)：BannerA 右下分頁虛線 / 圖文C 缺角雙線條+左右圖版型 / 圖文C 按鈕風格 (3ffood.css 8546-8784)
 * ============================================================================ */

/* 三福 Widget 覆寫：BannerA 右下分頁虛線（可點擊） */
.widget-bannerA .owl-carousel-bannerA {
  position: relative;
}

.widget-bannerA .owl-carousel-bannerA .owl-nav {
  display: none !important;
}

.widget-bannerA .owl-carousel-bannerA .owl-dots {
  position: absolute;
  right: 90px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 10px;
  z-index: 8;
}

.widget-bannerA .owl-carousel-bannerA .owl-dots .owl-dot {
  width: 60px;
  height: 20px;
  margin: 0;
}

.widget-bannerA .owl-carousel-bannerA .owl-dots .owl-dot span {
  display: block;
  width: 56px;
  height: 3px;
  margin: 0;
  border-radius: 0;
  background: #c6c8cb;
  opacity: 1;
  pointer-events: none;
}

.widget-bannerA .owl-carousel-bannerA .owl-dots .owl-dot.active span,
.widget-bannerA .owl-carousel-bannerA .owl-dots .owl-dot:hover span {
  background: #7f332e;
}

.widget-bannerA .owl-carousel-bannerA .owl-dots.disabled {
  display: none !important;
}

@media screen and (max-width: 991px) {
  .widget-bannerA .owl-carousel-bannerA .owl-dots {
    right: 42px;
    bottom: 14px;
    gap: 8px;
    padding: 6px 8px;
  }

  .widget-bannerA .owl-carousel-bannerA .owl-dots .owl-dot {
    width: 44px;
    height: 18px;
  }

  .widget-bannerA .owl-carousel-bannerA .owl-dots .owl-dot span {
    width: 40px;
    height: 3px;
  }
}

/* 三福 Widget 覆寫：圖文 C 缺角與雙線條 */
.widget-imgTextC {
  padding: 120px 0;
}

.widget-imgTextC .imgTextC-imgBox {
  position: relative;
  overflow: visible;
}

.widget-imgTextC .imgTextC-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 圖文 C（右圖版）：文字區改為靠右 */
.widget-imgTextC .imgTextC-Title {
  color: #C9AF76;
}

.widget-imgTextC .imgTextC-Title::after,
.widget-imgTextC .imgTextC-Title::before {
  background: #C9AF76;
}

.imgTextC-textBox .imgTextC-Content {
  font-size: 20px;
  letter-spacing: 1.2px;
  line-height: 35px;
}

@media screen and (min-width: 992px) {
  .widget-imgTextC .row>div:first-child .imgTextC-textBox {
    width: 100%;
    max-width: 72ch;
    margin: 0 auto;
    align-items: center !important;
  }

  .widget-imgTextC .row>div:first-child .imgTextC-textBox .imgTextC-Title {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-left: 0;
  }

  .widget-imgTextC .row>div:first-child .imgTextC-textBox .imgTextC-Content {
    width: 100%;
    /* text-align: right; */
    text-align: left;
    margin-right: 0;
    margin-left: 0;
  }

  .widget-imgTextC .row>div:first-child .imgTextC-textBox .imgTextC-BtnBox {
    width: 100%;
    justify-content: center !important;
  }
}

/* 左圖：左上缺角 + 右/下裝飾線 */
.widget-imgTextC .row>div:first-child .imgTextC-imgBox {
  border-top-left-radius: 96px;
}

.widget-imgTextC .row>div:first-child .imgTextC-img {
  border-top-left-radius: 96px;
}

.widget-imgTextC .row>div:first-child .imgTextC-imgBox::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 10px);
  height: calc(100% + 12px);
  border-right: 2px solid #c9ac6e;
  border-bottom: 2px solid #c9ac6e;
  pointer-events: none;
  z-index: 2;
}

/* 右圖：右下缺角 + 左/上裝飾線 */
.widget-imgTextC .row>div:last-child .imgTextC-imgBox {
  border-bottom-right-radius: 96px;
}

.widget-imgTextC .row>div:last-child .imgTextC-img {
  border-bottom-right-radius: 96px;
}

.widget-imgTextC .row>div:last-child .imgTextC-imgBox::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -12px;
  width: calc(100% + 10px);
  height: calc(100% + 12px);
  border-left: 2px solid #c9ac6e;
  border-top: 2px solid #c9ac6e;
  pointer-events: none;
  z-index: 2;
}

@media screen and (max-width: 991px) {
  .widget-imgTextC .imgTextC-imgBox {
    border-radius: 0;
    overflow: hidden;
  }

  .widget-imgTextC .imgTextC-img {
    border-radius: 0 !important;
  }

  .widget-imgTextC .row>div:first-child .imgTextC-imgBox::after,
  .widget-imgTextC .row>div:last-child .imgTextC-imgBox::before {
    display: none;
  }
}

/* 三福 Widget 覆寫：圖文 C 按鈕風格 */
.widget-imgTextC .imgTextC-textBox .imgTextC-BtnBox .btnC {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 56px 10px 22px;
  border: 1.5px solid #c9ac6e;
  border-radius: 6px;
  background: #6a1d15;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(50, 14, 10, 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.widget-imgTextC .imgTextC-textBox .imgTextC-BtnBox .btnC::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #f0e6d3;
  color: #9a763f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.widget-imgTextC .imgTextC-textBox .imgTextC-BtnBox .btnC:hover {
  background: #5b170f;
  border-color: #d7be87;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(50, 14, 10, 0.24);
}

.widget-imgTextC .imgTextC-textBox .imgTextC-BtnBox .btnC:focus-visible {
  outline: 2px solid #d9be82;
  outline-offset: 2px;
}

/* ============================================================================
 * 三福 Widget 覆寫 (二)：圖文B 上下標題 / Banner B~E / Banner D 白底箭頭 / 圖文A 外框 / widget-image 滿版 / widget 垂直節奏 / widget-bannerA / widget-block-title(菱形) / ★ imgTextD3ffood 輪播(widget.js 3ffood 專屬) (3ffood.css 8937-9560)
 * ============================================================================ */

/* 三福 Widget 覆寫：圖文 B 上下標題風格 */
.widget-imgTextB .imgTextB-BoxTitle {
  width: fit-content;
  min-height: 46px;
  padding: 9px 22px;
  margin-bottom: 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.widget-imgTextB .imgTextB-BoxTitle .imgTextB-Title {
  margin: 0 12px;
  color: #6a1d15;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.widget-imgTextB .imgTextB-BoxTitle .triangle-down {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 9px solid #c9ac6e;
  filter: drop-shadow(0 1px 0 rgba(42, 11, 7, 0.18));
}

.widget-imgTextB .imgTextB2-Box .imgTextB-BoxTitle {
  margin-top: 18px;
  margin-bottom: 0;
}

@media screen and (max-width: 991px) {
  .widget-imgTextB .imgTextB-BoxTitle {
    min-height: 42px;
    padding: 8px 16px;
    margin-bottom: 14px;
  }

  .widget-imgTextB .imgTextB-BoxTitle .imgTextB-Title {
    margin: 0 10px;
    font-size: 16px;
  }

  .widget-imgTextB .imgTextB2-Box .imgTextB-BoxTitle {
    margin-top: 14px;
  }
}

/* 第一批 Widget 覆寫：Banner B/C/D/E */
.widget-bannerB,
.widget-bannerC,
.widget-bannerD,
.widget-bannerE {
  position: relative;
  padding: 12px 0;
}

/* Banner B：深紅圓形按鈕，靠左下 */
.widget-bannerB .owl-stage-outer {
  border-radius: 16px;
  border: 1.5px solid rgba(201, 172, 110, 0.75);
  overflow: hidden;
}

.widget-bannerB .owl-carousel-bannerB .owl-nav {
  bottom: 14px;
  left: 16px;
  z-index: 5;
}

.widget-bannerB .owl-carousel-bannerB .owl-nav button.owl-prev,
.widget-bannerB .owl-carousel-bannerB .owl-nav button.owl-next {
  width: 40px;
  height: 40px;
  margin: 0 8px 0 0;
  border: 1.5px solid #c9ac6e !important;
  border-radius: 50%;
  background: #6a1d15 !important;
  color: #fff7ef !important;
  box-shadow: 0 4px 10px rgba(40, 3, 0, 0.26);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.widget-bannerB .owl-carousel-bannerB .owl-nav button.owl-prev:hover,
.widget-bannerB .owl-carousel-bannerB .owl-nav button.owl-next:hover {
  background: #4f130d !important;
  border-color: #d8bf86 !important;
  transform: translateY(-1px);
}

/* Banner C / E：中心聚焦 + 底部短線分頁 */
.widget-bannerC .owl-item .item,
.widget-bannerE .owl-item .item {
  border-radius: 16px;
  border: 1.5px solid rgba(201, 172, 110, 0.65);
  overflow: hidden;
}

.widget-bannerC .owl-carousel-bannerC .owl-item,
.widget-bannerE .owl-carousel-bannerE .owl-item {
  opacity: 0.42;
  filter: blur(2px);
}

.widget-bannerC .owl-carousel-bannerC .owl-item.center,
.widget-bannerE .owl-carousel-bannerE .owl-item.center {
  opacity: 1;
  filter: blur(0);
}

.widget-bannerC .owl-carousel-bannerC .owl-item.center .item,
.widget-bannerE .owl-carousel-bannerE .owl-item.center .item {
  box-shadow: 0 10px 26px rgba(40, 3, 0, 0.2);
}

.widget-bannerC .owl-carousel-bannerC .owl-dots,
.widget-bannerE .owl-carousel-bannerE .owl-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.widget-bannerC .owl-carousel-bannerC .owl-dots .owl-dot,
.widget-bannerE .owl-carousel-bannerE .owl-dots .owl-dot {
  width: 42px;
  height: 18px;
  margin: 0;
}

.widget-bannerC .owl-carousel-bannerC .owl-dots .owl-dot span,
.widget-bannerE .owl-carousel-bannerE .owl-dots .owl-dot span {
  width: 40px;
  height: 3px;
  margin: 0;
  border-radius: 0;
  background: #c6c8cb;
  opacity: 1;
}

.widget-bannerC .owl-carousel-bannerC .owl-dots .owl-dot.active span,
.widget-bannerC .owl-carousel-bannerC .owl-dots .owl-dot:hover span,
.widget-bannerE .owl-carousel-bannerE .owl-dots .owl-dot.active span,
.widget-bannerE .owl-carousel-bannerE .owl-dots .owl-dot:hover span {
  background: #7f332e;
}

/* Banner D：白底浮動箭頭，置中左右（與 Banner B 明顯區隔） */
.widget-bannerD .owl-stage-outer {
  border-radius: 20px;
  overflow: hidden;
}

.widget-bannerD .owl-carousel-bannerD {
  position: relative;
}

.widget-bannerD .owl-carousel-bannerD .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 18px;
  margin-top: 0;
  z-index: 6;
}

.widget-bannerD .owl-carousel-bannerD .owl-nav button.owl-prev,
.widget-bannerD .owl-carousel-bannerD .owl-nav button.owl-next {
  width: 52px;
  height: 52px;
  margin: 0;
  border: 1.5px solid rgba(106, 29, 21, 0.45) !important;
  border-radius: 50%;
  background: rgba(255, 247, 239, 0.96) !important;
  color: #6a1d15 !important;
  box-shadow: 0 8px 22px rgba(27, 5, 3, 0.26);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.widget-bannerD .owl-carousel-bannerD .owl-nav button.owl-prev:hover,
.widget-bannerD .owl-carousel-bannerD .owl-nav button.owl-next:hover {
  background: #ffffff !important;
  border-color: #6a1d15 !important;
  transform: scale(1.03);
}

@media screen and (max-width: 991px) {
  .widget-bannerB .owl-carousel-bannerB .owl-nav {
    left: 10px;
    bottom: 8px;
  }

  .widget-bannerB .owl-carousel-bannerB .owl-nav button.owl-prev,
  .widget-bannerB .owl-carousel-bannerB .owl-nav button.owl-next {
    width: 34px;
    height: 34px;
  }

  .widget-bannerC .owl-carousel-bannerC .owl-dots,
  .widget-bannerE .owl-carousel-bannerE .owl-dots {
    gap: 6px;
    bottom: 8px;
  }

  .widget-bannerC .owl-carousel-bannerC .owl-dots .owl-dot,
  .widget-bannerE .owl-carousel-bannerE .owl-dots .owl-dot {
    width: 30px;
    height: 16px;
  }

  .widget-bannerC .owl-carousel-bannerC .owl-dots .owl-dot span,
  .widget-bannerE .owl-carousel-bannerE .owl-dots .owl-dot span {
    width: 28px;
    height: 3px;
  }

  .widget-bannerD .owl-carousel-bannerD .owl-nav button.owl-prev,
  .widget-bannerD .owl-carousel-bannerD .owl-nav button.owl-next {
    width: 42px;
    height: 42px;
  }
}

@media screen and (max-width: 768px) {
  .widget-bannerD .owl-carousel-bannerD .owl-nav {
    display: none !important;
  }
}

/* 三福 Widget 覆寫：圖文 A 外框線（保留既有形狀） */

.widget-imgTextA {
  padding: 60px 0 100px;
  /* background: rgba(201, 175, 118, 0.08); */

}

.widget-imgTextA .swiper {
  max-width: 1620px;
  width: 100%;
  margin: 0 auto;
}

.widget-imgTextA .imgTextA-Box {
  position: relative;
  background: transparent;
}

.widget-imgTextA .imgTextA1-Box::after, .widget-imgTextA .imgTextA2-Box::after{
  display: none;
}

.widget-imgTextA .imgTextA-Box:has(.imgTextA-TextBox) {
  background: linear-gradient(180deg, #f9f1ea 0%, #f2e4d7 100%);
}

.widget-imgTextA .imgTextA-TextBox .title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6a1d15;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
}

.widget-imgTextA .imgTextA-TextBox .title::before,
.widget-imgTextA .imgTextA-TextBox .title::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #6a1d15;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.widget-imgTextA .imgTextA1-Box,
.widget-imgTextA .imgTextA2-Box {
  overflow: visible;
}

.widget-imgTextA .imgTextA1-Box::after,
.widget-imgTextA .imgTextA2-Box::after {
  content: "";
  position: absolute;
  inset: -8px;
  pointer-events: none;
  z-index: 2;
  border: 1.5px solid rgba(201, 172, 110, 0.88);
}

.widget-imgTextA .imgTextA1-Box::after {
  border-radius: 99rem;
}

.widget-imgTextA .imgTextA2-Box::after {
  border-radius: 22px;
}

.widget-imgTextA .imgTextA3-Box,
.widget-imgTextA .imgTextA4-Box {
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(201, 172, 110, 0.92);
}

.widget-imgTextA .imgTextA3-Box::after,
.widget-imgTextA .imgTextA4-Box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1.5px solid rgba(201, 172, 110, 0.92);
  clip-path: inherit;
}

@media screen and (max-width: 991px) {

  .widget-imgTextA .imgTextA1-Box::after,
  .widget-imgTextA .imgTextA2-Box::after {
    inset: -5px;
  }

  .widget-imgTextA .imgTextA3-Box,
  .widget-imgTextA .imgTextA4-Box {
    box-shadow: inset 0 0 0 1.5px rgba(201, 172, 110, 0.82);
  }

  .widget-imgTextA .imgTextA3-Box::after,
  .widget-imgTextA .imgTextA4-Box::after {
    border-width: 1px;
  }
}

/* 三福 Widget image 滿版 */

.widget-image .container.container-1600 {
  max-width: none;
  width: 100%;
  overflow: hidden;
}

.widget-image .container.container-1600 .col-md-4.col-12 {
  padding: 0;
}

/* 三福 Widget 垂直節奏統一 */

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

  .widget-bannerA,
  .widget-bannerB,
  .widget-bannerC,
  .widget-bannerD,
  .widget-bannerE,
  .widget-text,
  /* .widget-image, */
  .widget-video,
  /* .widget-imgTextA, */
  .widget-imgTextB,
  /* .widget-imgTextC, */
  .widget-imgTextD,
  .oneImage,
  .productA,
  .productB,
  .productC {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media screen and (max-width: 991px) {

  .widget-bannerA,
  .widget-bannerB,
  .widget-bannerC,
  .widget-bannerD,
  .widget-bannerE,
  .widget-text,
  /* .widget-image, */
  .widget-video,
  .widget-imgTextA,
  .widget-imgTextB,
  .widget-imgTextC,
  .widget-imgTextD,
  .oneImage,
  .productA,
  .productB,
  .productC {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

.widget-bannerA {
  padding-top: 0px;
  padding-bottom: 0px;
}

/* 文字模組標題樣式例外：上 20、下 0（所有斷點固定） */
.widget-block-title {
  padding-top: 20px;
  padding-bottom: 0;
}

/* 三福 最新產品用 */

/* .widget-block-title{
  background: rgba(201, 175, 118, 0.08);
} */

.widget-block-title h2{
  color: #755100;
}

.widget-block-title h2::after,
.widget-block-title h2::before {
  background: #755100;
}

/* 三福 Widget 覆寫：imgTextD */

.widget-imgTextD {
  padding: 60px 0;
}

/* 3ffood 專用圖文D */

/* 靜態模式（<= 3 張） */
.owl-carousel-imgTextD3ffood.imgTextD-static {
  display: flex;
  gap: 20px;
}

.owl-carousel-imgTextD3ffood.imgTextD-static .item {
  flex: 0 0 calc((100% - 2 * 20px) / 3);
}

.owl-carousel-imgTextD3ffood.imgTextD-static .item .imgTextD3ffood-Box {
  width: 100%;
}

/* 輪播模式 */
.owl-carousel-imgTextD3ffood .owl-item .imgTextD3ffood-Box {
  display: block;
  position: relative;
  width: 420px;
  height: 620px;
  overflow: hidden;
  border: 2px solid #C9AF76;
  cursor: pointer;
  text-decoration: none;
}

.owl-carousel-imgTextD3ffood .owl-item .imgTextD3ffood-TextBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: #C9AF76;
  padding: 20px;
  z-index: 1;
}

.owl-carousel-imgTextD3ffood .owl-item:nth-child(odd) .imgTextD3ffood-TextBox {
  background: #ffffff;
}

.owl-carousel-imgTextD3ffood .owl-item .imgTextD3ffood-TextBox .title {
  color: #C9AF76;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.owl-carousel-imgTextD3ffood .owl-item:nth-child(odd) .imgTextD3ffood-TextBox .title,
.owl-carousel-imgTextD3ffood .owl-item:nth-child(odd) .imgTextD3ffood-TextBox .text {
  color: #C9AF76;
}

.owl-carousel-imgTextD3ffood .owl-item:nth-child(even) .imgTextD3ffood-TextBox .title,
.owl-carousel-imgTextD3ffood .owl-item:nth-child(even) .imgTextD3ffood-TextBox .text {
  color: #ffffff;
}

.owl-carousel-imgTextD3ffood .owl-item .imgTextD3ffood-TextBox .text {
  color: #4D4D4D;
  font-size: 16px;
  line-height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.owl-carousel-imgTextD3ffood .owl-item .imgTextD3ffood-TextBox::after {
  content: "";
  position: absolute;
  bottom: -90px;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(0deg, rgba(201, 175, 118, 0) 0%, rgba(201, 175, 118, 1) 80%);
  z-index: 1;
}

.owl-carousel-imgTextD3ffood .owl-item:nth-child(odd) .imgTextD3ffood-TextBox::after {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 80%);
}

.owl-carousel-imgTextD3ffood .owl-item .imgTextD3ffood-ImgBox {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.owl-carousel-imgTextD3ffood .owl-item .imgTextD3ffood-Cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owl-carousel-imgTextD .owl-item:nth-child(odd) .imgTextD-Box .imgTextD-TextBox-Light {
  background: #ffffff;
}

.owl-carousel-imgTextD .owl-item:nth-child(odd) .imgTextD-Box .imgTextD-TextBox-Light::after {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 80%);
}

.widget-imgTextD .imgTextD-Box .imgTextD-TextBox-Light {
  position: relative;
  background: #C9AF76;
  height: 200px;
}

.widget-imgTextD .imgTextD-Box .imgTextD-TextBox-Light::after {
  content: "";
  position: absolute;
  bottom: -90px;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(0deg, rgba(201, 175, 118, 0) 0%, rgba(201, 175, 118, 1) 80%);
}

.widget-imgTextD .imgTextD-Box .imgTextD-TextBox-Light .title {
  color: #C9AF76;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.widget-imgTextD .imgTextD-Box .imgTextD-TextBox-Light .text {
  color: #4D4D4D;
  font-size: 16px;
  line-height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  box-sizing: border-box;
}

.owl-carousel-imgTextD .owl-item:nth-child(even) .imgTextD-Box .imgTextD-TextBox-Light .title,
.owl-carousel-imgTextD .owl-item:nth-child(even) .imgTextD-Box .imgTextD-TextBox-Light .text {
  color: #ffffff;
}

.widget-imgTextD .imgTextD-custom-dots {
  margin-top: 22px;
}

.widget-imgTextD .imgTextD-dot {
  width: 14px;
  height: 14px;
  background: #f6ece4;
  border: 1.5px solid #c9ac6e;
  border-radius: 999px;
  margin: 0 5px;
  outline: none;
}

.widget-imgTextD .imgTextD-dot.active {
  background: #5f3025;
  border-color: #c9ac6e;
  outline: none;
}

@media screen and (max-width: 991px) {
  .widget-imgTextD .imgTextD-custom-dots {
    justify-content: center;
    margin-top: 16px;
  }

  .widget-imgTextD .imgTextD-dot {
    width: 12px;
    height: 12px;
  }
}

/* ============================================================================
 * 跨頁 widget sidebar 基底（.widget/.widget-title/.widget-search/input/button）— 補抽自早期區
 * 必須置於 widget.css（載入晚於 sidebar.css），使 .widget { padding: 20px 8px } 以 source
 * order 後勝 sidebar.css 的 .product-side-menu(0,1,0)，重現 cm12 在 posts.show（無 .shop-section）
 * 側欄 padding 20px 8px 的 cascade（products.show 仍由 .shop-section .product-side-menu 18px 14px 勝出）。
 * .widget-search input { margin-bottom:0 } 與 common 相同（冗餘無害），.widget-title 等由更高 spec 覆寫。 (3ffood.css 5292-5339)
 * ============================================================================ */

.widget-search {
  position: relative;
}

/* ============================================================================
 * 三福 Widget 手機 RWD（@media max-width:480px，自混合 @media 區塊 14452 抽出 widget 部分）
 * widget-bannerA 分頁 / widget-imgTextC 版型（同 @media 的 #header→header.css/#footer→footer.css/#page-content 內容→base.css）(3ffood.css 14464-14494)
 * ============================================================================ */

@media (max-width: 480px) {
  .widget-bannerA .owl-carousel-bannerA .owl-dots {
    right: 20px;
    bottom: 10px;
    gap: 6px;
    padding: 4px 6px;
  }

  .widget-bannerA .owl-carousel-bannerA .owl-dots .owl-dot {
    width: 32px;
  }

  .widget-bannerA .owl-carousel-bannerA .owl-dots .owl-dot span {
    width: 30px;
  }

  .widget-imgTextC {
    padding: 56px 0;
  }

  .imgTextC-textBox .imgTextC-Content {
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0.04em;
  }

  .widget-imgTextC .imgTextC-textBox .imgTextC-BtnBox .btnC {
    width: 100%;
    max-width: 100%;
    padding: 10px 46px 10px 16px;
    font-size: 14px;
  }
}
