@charset "utf-8";
/* ==========================================================================
 * themes/custom-3ffood/widget.css — 3ffood 主題 widget 層覆寫
 * ==========================================================================
 *
 * 用途：
 *   3ffood 主題對 common/widget/ 的覆寫層，載入順序在 common/widget/ 之後，
 *   重複規則由本檔後勝覆寫。widget 基底結構由 common/widget/ 承接，
 *   本檔只放 3ffood 的品牌重設計與 3ffood 專屬元件（imgTextD3ffood）。
 *
 * 元件索引（issue #877 依元件重排，段名不再以舊 3ffood.css 行號命名）
 * ── 每節標題已於 2026-08-10 掛上其覆寫的 common/widget/ 模組編號，
 *    要改某個 widget 時可直接對照 common/widget/ 的同編號檔案；
 *    以 §N 搜尋定位（行號會隨編輯位移，故不再列 L 行號）：
 *
 *   §1  02-banner      Banner A（右下分頁虛線，可點擊）
 *   §2  02-banner      Banner B／C／D／E
 *   §3  06-imgTextA    圖文 A（外框線）
 *   §4  07-imgTextB    圖文 B（上下標題風格）
 *   §5  08-imgTextC    圖文 C（缺角雙線條／左右圖版型／按鈕）
 *   §6  09-imgTextD    圖文 D（含 3ffood 專屬輪播）
 *   §7  11-image       圖片 widget（滿版）
 *   §8  04-title       區塊標題（菱形 h2 例外）
 *   §9  跨模組         垂直節奏統一（無單一對應模組）
 *
 * 本檔未出現的 common/widget/ 編號（01/03/05/10/12~17/20/21）＝ 3ffood 無覆寫，
 * 完全沿用 common 基底。
 *
 * [issue #877] 本檔原本依「來源批次」分成三大段（3ffood.css 8546-8784／8937-9560／
 * 14464-14494），同一個元件的規則散落在不同段——Banner A 散在三處、圖文 C 散在兩處。
 * 已改為依元件分段，每個元件的規則收在同一節，並解除與源碼順序的耦合：
 * 原「垂直節奏統一」區塊與 Banner A／B～E、圖文 A／C／D 的 padding 為同特異性、
 * 靠宣告先後決定勝負，任一區段搬動就會改版面；現六者已改在各自區段顯性宣告，
 * 各節之間的先後順序不再影響任何生效值。換算前後值見 docs/oldData/ChangeLog.md 與 issue #877。
 *
 * 未改動：任何樣式值（解耦造成的 padding 顯性化除外，生效值相同）、Blade、class 名稱、
 * 載入鏈與 config/webThemeCss.php。
 *
 * 抽取來源（public/web/css/3ffood.css，「三福 Widget 覆寫」段）：8546-8784、8937-9560、
 * 14464-14494；跳過範圍（全站標題 H1-H4 菱形 → base.css、.shop-section 商品頁 widget →
 * product.css、#page-content 跨元件標題 cascade → page 檔）沿用 issue #518 task 10.5 的判定。
 *
 * 詳細規格：openspec/specs/web-theme-css/spec.md（Requirement R.FUNC.1 / R.FUNC.8）
 * 變更記錄：openspec/changes/issue518-web-theme-css-modularization/（task 10.5）、issue #877
 * ==========================================================================
 */

/* ==========================================================================
 * §1｜02-banner — Banner A：右下分頁虛線（可點擊）
 * 原分散於三處：3ffood.css 8546 段的分頁樣式、9560 段的 padding 歸零、14464 段的 ≤480 微調。
 * [垂直節奏解耦，issue #877] padding 原本靠「宣告在節奏區塊之後」才蓋得掉節奏的 20／12px；
 * 已自節奏清單移除本元件，改由下方自身規則直接決定（生效值不變：所有斷點 0）。
 * ========================================================================== */

/* 三福 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: 991.98px) {
  .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;
  }
}

/* 區塊上下留白：所有斷點皆為 0（原倚賴宣告順序壓過垂直節奏，現已解耦） */
.widget-bannerA {
  padding-top: 0px;
  padding-bottom: 0px;
}

/* ≤480：分頁列與圓點縮小（原位於檔尾的混合 @media 區塊） */
@media (max-width: 479.98px) {
  .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;
  }
}

/* ==========================================================================
 * §2｜02-banner — Banner B／C／D／E：深紅圓鈕、中心聚焦分頁、白底浮動箭頭
 * B、C／E、D 三組共用同一段 padding 基準，故合為一節；C 與 E 的中心聚焦樣式本就共用選擇器。
 * [垂直節奏解耦，issue #877] 四者原本 padding: 12px 0 宣告在節奏區塊之前、被節奏覆寫為
 * ≥992 20px／≤991.98 12px；已自節奏清單移除，改由本節自身的 ≥992 規則直接決定（生效值不變）。
 * ========================================================================== */

/* 第一批 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: 991.98px) {
  .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: 767.98px) {
  .widget-bannerD .owl-carousel-bannerD .owl-nav {
    display: none !important;
  }
}

/* ≥992：區塊上下留白放寬（原由垂直節奏區塊提供，現已解耦） */
@media screen and (min-width: 992px) {

  .widget-bannerB,
  .widget-bannerC,
  .widget-bannerD,
  .widget-bannerE {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ==========================================================================
 * §3｜06-imgTextA — 圖文 A：外框線（保留 A1~A4 既有形狀）
 * [垂直節奏解耦，issue #877] ≥992 原本就刻意不吃節奏（節奏清單內該項為註解狀態），
 * ≤991.98 則吃節奏的 12px；已自節奏清單移除，改由本節自身的 ≤991.98 規則直接決定
 * （生效值不變：≥992 上 60／下 100，≤991.98 上下皆 12）。
 * 同時刪除區塊內已註解掉的廢棄宣告 background: rgba(201, 175, 118, 0.08)。
 * ========================================================================== */

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

.widget-imgTextA {
  padding: 60px 0 100px;
}

.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: 991.98px) {

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

/* ≤991.98：區塊上下留白收斂（原由垂直節奏區塊提供，現已解耦） */
@media screen and (max-width: 991.98px) {

  .widget-imgTextA {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* ==========================================================================
 * §4｜07-imgTextB — 圖文 B：上下標題風格
 * 本元件無自身 padding 宣告，上下留白仍由 §9 垂直節奏區塊統一提供。
 * ========================================================================== */

/* 三福 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: 991.98px) {
  .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;
  }
}

/* ==========================================================================
 * §5｜08-imgTextC — 圖文 C：缺角與雙線條、左右圖版型、按鈕風格
 * 原分散於兩處：3ffood.css 8546 段的主體、14464 段的 ≤480 微調。
 * [垂直節奏解耦，issue #877] ≥992 原本就刻意不吃節奏（節奏清單內該項為註解狀態），
 * ≤991.98 吃節奏的 12px，≤480 再由檔尾規則覆寫為 56px；已自節奏清單移除，
 * 改由本節自身的兩條 @media 直接決定（生效值不變：≥992 為 120、480~991.98 為 12、≤480 為 56）。
 * ========================================================================== */

/* 三福 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 .imgTextC-row>div:first-child .imgTextC-textBox {
    width: 100%;
    max-width: 72ch;
    margin: 0 auto;
    align-items: center !important;
  }

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

  .widget-imgTextC .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 .imgTextC-row>div:first-child .imgTextC-textBox .imgTextC-BtnBox {
    width: 100%;
    justify-content: center !important;
  }
}

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

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

.widget-imgTextC .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 .imgTextC-row>div:last-child .imgTextC-imgBox {
  border-bottom-right-radius: 96px;
}

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

.widget-imgTextC .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: 991.98px) {
  .widget-imgTextC .imgTextC-imgBox {
    border-radius: 0;
    overflow: hidden;
  }

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

  .widget-imgTextC .imgTextC-row>div:first-child .imgTextC-imgBox::after,
  .widget-imgTextC .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;
}

/* ≤991.98：區塊上下留白收斂（原由垂直節奏區塊提供，現已解耦） */
@media screen and (max-width: 991.98px) {

  .widget-imgTextC {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* ≤480：版型與按鈕改為窄螢幕樣式（原位於檔尾的混合 @media 區塊） */
@media (max-width: 479.98px) {
  .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;
  }
}

/* ==========================================================================
 * §6｜09-imgTextD — 圖文 D：含 3ffood 專屬輪播 imgTextD3ffood
 * ★ .owl-carousel-imgTextD3ffood 系列為 widget.js 於 body.dataset.theme === "3ffood" 時
 *   走的專屬輪播邏輯所依賴，改動前務必同步確認 public/web/js/widget.js。
 * [垂直節奏解耦，issue #877] padding 原本靠「宣告在節奏區塊之後」才蓋得掉節奏；
 * 已自節奏清單移除，改由下方自身規則直接決定（生效值不變：所有斷點 60px 0）。
 * ========================================================================== */

/* 三福 Widget 覆寫：imgTextD */

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

/* 3ffood 專用圖文D */

/* 輪播模式 */
.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: 991.98px) {
  .widget-imgTextD .imgTextD-custom-dots {
    justify-content: center;
    margin-top: 16px;
  }

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

/* ==========================================================================
 * §7｜11-image — 圖片 widget：滿版
 * 本元件在 §9 垂直節奏清單中原為註解狀態（刻意不吃節奏），現改以文字載明，
 * 上下留白沿用 common/widget/11-image.css 的 --widget-image-pad（≥768 30px、≤767.98 15px）。
 * ========================================================================== */

/* 三福 Widget image 滿版 */

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

/* 選擇器同步 issue #706：原 .col-md-4.col-12 改掛 widget-media-grid 三欄項，規則內容不變 */
.widget-image .container.container-1600 .widget-media-grid--3 .widget-media-grid__item {
  padding: 0;
}

/* ==========================================================================
 * §8｜04-title — 區塊標題：上 20／下 0 的留白例外與最新產品配色
 * .widget-block-title 不在垂直節奏清單內，上下留白由本節自行決定（所有斷點固定）。
 * 已刪除區塊內註解掉的廢棄規則 .widget-block-title { background: rgba(201,175,118,.08) }。
 * ========================================================================== */

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

/* 三福 最新產品用 */

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

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

/* ==========================================================================
 * §9｜跨模組（無單一對應）— 垂直節奏：widget 垂直節奏統一（本檔唯一的跨元件區塊）
 * 為沒有自身 padding 宣告的 widget 提供統一的區塊上下留白：≥992 為 20px、≤991.98 為 12px。
 *
 * [issue #877 解耦] 原清單另含 Banner A／B～E、圖文 A／C／D 六項，它們各自另有 padding 規則，
 * 生效值完全靠「宣告在本區塊之前或之後」決定——同特異性、@media 不加權，順序一變版面就變。
 * 現已將那六項自清單移除、改在各自的元件區段顯性宣告，本區塊與各元件區段的先後順序
 * 不再影響任何生效值（重排前後實測零差異）。
 *
 * [原註解項改寫為文字說明] 清單原以註解狀態保留三個「刻意不吃節奏」的選擇器：
 *   .widget-image  — 上下留白沿用 common 的 --widget-image-pad，見 §7
 *   .widget-imgTextA、.widget-imgTextC — 僅 ≥992 不吃節奏，≤991.98 仍為 12px，
 *                                        解耦後已於 §3／§5 顯性宣告
 * 這三者現已不在清單內，語意改由本註解與各元件區段的說明承載。
 * ========================================================================== */

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

  .widget-text,
  .widget-video,
  .widget-imgTextB,
  .oneImage,
  .productA,
  .productB,
  .productC {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

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

  .widget-text,
  .widget-video,
  .widget-imgTextB,
  .oneImage,
  .productA,
  .productB,
  .productC {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
