/* 11/17～11/30「雙11 熱銷加碼延長」活動點綴（第 2 版，51 11/16 15:30：唯粉官網維持藍底，大面積變紅會很亂）
 * 全站底色、頁首、頁尾、按鈕、商品卡、購物車都照唯粉原本的海軍藍系（themes.css 的 B2 色票），這支檔案「不改」任何全站變數。
 * 活動的紅／金只留在小地方：首圖本身、活動膠囊／標籤、優惠說明卡、折價券、頁首下方活動條、方案卡贈品膠囊。
 *   紅色＝唯粉原本的櫻桃紅（#c8203a，跟「首頁」分頁、HOT 同一個紅）；金色只給活動膠囊。藍底上的字一律白色或淺藍，不放紅字。
 * 全部規則都掛在 html[data-cmp="1117"] 底下：只有 campaign-1117.js 判斷在活動期間（或本機／預覽網址的 ?preview1117=1）時才會套用。
 *   唯一例外：最後一段 html[data-cmp="off"]（分頁開著跨過 11/30 23:59:59 時，把 js 插入的元素藏起來）。
 * 還原：各頁刪掉這支 css 的 <link> 即可。
 */

/* ===== 活動色（只給活動元件用，不覆蓋全站變數）===== */
html[data-cmp="1117"] {
  --cmp-red: #c8203a;
  --cmp-red-ink: #a0172d;
  --cmp-cap-ink: #7a0a1f;
  --cmp-red-grad: linear-gradient(180deg, #d9344f 0%, #c8203a 55%, #a8182f 100%);
  --cmp-gold: #f6c453;
  --cmp-gold-deep: #c98a12;
  --cmp-gold-grad: linear-gradient(180deg, #fff1c2 0%, #ffd56b 45%, #eeac2e 100%);
  --cmp-navy: var(--dark, #13254a);
  --cmp-navy-2: var(--dark-2, #1d3566);
  --cmp-on-navy: #d7e3ff;
}

/* ===== 金色膠囊、白底紅框日期（共用）===== */
html[data-cmp="1117"] .cmp-cap {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 2px 11px; border-radius: 999px; background: var(--cmp-gold-grad); color: var(--cmp-cap-ink);
  font-weight: 900; font-size: 15px; line-height: 1.35; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(160, 95, 0, .35), 0 1px 3px rgba(120, 70, 0, .2);
}
html[data-cmp="1117"] .cmp-cap-sm { font-size: 13px; padding: 1px 9px; }
html[data-cmp="1117"] .cmp-pill {
  display: inline-flex; align-items: center; white-space: nowrap; margin: 0;
  padding: 1px 10px; border-radius: 999px; background: #fff; color: var(--cmp-red-ink);
  border: 1.5px solid var(--cmp-red); font-weight: 900; font-size: 13px; line-height: 1.5; letter-spacing: .02em;
}
html[data-cmp="1117"] .cmp-gift { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.22em; }
html[data-cmp="1117"] .cmp-ticket { width: 38px; height: 38px; flex: none; }
html[data-cmp="1117"] .cmp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== 頁首下方活動條（首頁、閃購頁以外）：一條細細的紅條＋金色日期膠囊 ===== */
html[data-cmp="1117"] .cmp-strip { display: block; position: relative; color: #fff; background: var(--cmp-red-grad); }
html[data-cmp="1117"] .cmp-strip-in { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px; min-height: 44px; display: flex; align-items: center; gap: 10px; }
html[data-cmp="1117"] .cmp-strip .cmp-pill { background: var(--cmp-gold-grad); color: var(--cmp-cap-ink); border: 0; }
html[data-cmp="1117"] .cmp-strip b { font-size: 16px; font-weight: 900; letter-spacing: .02em; white-space: nowrap; }
html[data-cmp="1117"] .cmp-strip-more { display: none; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html[data-cmp="1117"] .cmp-strip i { margin-left: auto; font-style: normal; font-weight: 900; font-size: 15px; color: #fff; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(255, 213, 107, .95); text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (min-width: 640px) { html[data-cmp="1117"] .cmp-strip-more { display: block; } }
@media (max-width: 359px) { html[data-cmp="1117"] .cmp-strip b { font-size: 14.5px; } html[data-cmp="1117"] .cmp-strip-in { gap: 6px; padding-left: 12px; padding-right: 12px; } }

/* ===== 活動首圖：底色照唯粉原本首圖的海軍藍，圖本身是 51 的紅金活動圖 ===== */
html[data-cmp="1117"] .b-hero, html[data-cmp="1117"] .a-hero, html[data-cmp="1117"] .c-hero { display: none; }
html[data-cmp="1117"] .cmp-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(90% 55% at 100% 0%, rgba(120, 160, 255, .16) 0%, rgba(120, 160, 255, 0) 60%),
    linear-gradient(160deg, var(--cmp-navy) 0%, var(--cmp-navy-2) 100%);
}
html[data-cmp="1117"] .cmp-hero-in { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }
html[data-cmp="1117"] .cmp-hero-fig { position: relative; margin: 0; }
html[data-cmp="1117"] .cmp-hero-img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
html[data-cmp="1117"] .cmp-hot { position: absolute; left: 2.2%; width: 95.6%; border-radius: 3.4% / 13%; -webkit-tap-highlight-color: rgba(255, 255, 255, .25); }
html[data-cmp="1117"] .cmp-hot-cpn { border-radius: 2.4% / 30%; }
html[data-cmp="1117"] .cmp-hot:focus-visible { outline: 3px solid var(--cmp-gold); outline-offset: -2px; }
html[data-cmp="1117"] .cmp-hot:active { background: rgba(255, 255, 255, .16); }
@media (hover: hover) { html[data-cmp="1117"] .cmp-hot:hover { box-shadow: inset 0 0 0 3px rgba(246, 196, 83, .95); } }
html[data-cmp="1117"] .cmp-hero-side { padding: 16px 16px 18px; }
html[data-cmp="1117"] .cmp-wide { display: none; }
/* 手機版標題只給讀屏／搜尋引擎（圖上已有大字）*/
html[data-cmp="1117"] .cmp-hero-title { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-cmp="1117"] .cmp-offers-h { margin: 0 0 14px; text-align: center; font-size: 14px; font-weight: 700; color: var(--cmp-on-navy); }
html[data-cmp="1117"] .cmp-offers-h span { display: inline-flex; align-items: center; gap: 8px; }
html[data-cmp="1117"] .cmp-offers-h span::before, html[data-cmp="1117"] .cmp-offers-h span::after { content: ""; width: 22px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--cmp-gold)); }
html[data-cmp="1117"] .cmp-offers-h span::after { transform: scaleX(-1); }

/* ===== 三個活動商品卡（手機：三欄白色小卡）===== */
html[data-cmp="1117"] .cmp-offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html[data-cmp="1117"] .cmp-offer {
  position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px;
  padding: 16px 5px 10px; text-align: center; color: var(--ink); background: #fff; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
html[data-cmp="1117"] .cmp-hero .cmp-offer { border-color: transparent; box-shadow: 0 6px 16px rgba(5, 14, 36, .28); }
html[data-cmp="1117"] .cmp-offer:active { transform: translateY(1px); }
html[data-cmp="1117"] .cmp-offer-img { display: none; }
html[data-cmp="1117"] .cmp-offer-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
html[data-cmp="1117"] .cmp-offer-no {
  position: absolute; z-index: 1; top: -9px; left: 50%; transform: translateX(-50%);
  padding: 0 8px; border-radius: 999px; background: var(--cmp-red-grad); color: #fff; font: 900 12px/18px "Archivo Black", var(--sans); letter-spacing: .04em;
  box-shadow: 0 0 0 2px #fff;
}
html[data-cmp="1117"] .cmp-offer-name b { display: block; font-size: 15px; font-weight: 900; line-height: 1.25; color: var(--ink); word-break: keep-all; }
html[data-cmp="1117"] .cmp-offer-full { display: none; }
html[data-cmp="1117"] .cmp-offer-r { display: flex; flex-direction: column; align-items: center; gap: 4px; }
html[data-cmp="1117"] .cmp-offer-price { font-size: 12.5px; line-height: 1.3; font-weight: 700; color: var(--ink-2); }
html[data-cmp="1117"] .cmp-offer-price b { font-size: 14px; font-weight: 900; color: var(--price); white-space: nowrap; }
html[data-cmp="1117"] .cmp-offer-note { font-size: 12px; line-height: 1.35; color: var(--muted); font-weight: 700; }
html[data-cmp="1117"] .cmp-offer-note span { display: block; }
html[data-cmp="1117"] .cmp-cap-l { display: none; }
html[data-cmp="1117"] .cmp-offer-go { display: none; }
@media (max-width: 359px) {
  html[data-cmp="1117"] .cmp-offers { gap: 6px; }
  html[data-cmp="1117"] .cmp-offer-name b { font-size: 13.5px; }
  html[data-cmp="1117"] .cmp-offer .cmp-cap { font-size: 13.5px; padding: 1px 8px; }
  html[data-cmp="1117"] .cmp-offer-price b { font-size: 13px; }
}

/* 有商品圖的版本（所有商品頁、空購物車）*/
html[data-cmp="1117"] .cmp-imgs .cmp-offer { padding: 8px 6px 10px; }
html[data-cmp="1117"] .cmp-imgs .cmp-offer-img { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--bg); margin-bottom: 2px; }
html[data-cmp="1117"] .cmp-imgs .cmp-offer-img img { padding: 6px; }

/* 51 11/18：首圖下方「點商品直接選好優惠件數」三張卡補商品圖（手機：圖在上、字在下；圖是 51 給的方形宣傳圖，整張顯示不裁）*/
html[data-cmp="1117"] .cmp-offers-hero .cmp-offer { padding: 14px 5px 10px; }
html[data-cmp="1117"] .cmp-offers-hero .cmp-offer-img { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--bg); margin-bottom: 2px; }
html[data-cmp="1117"] .cmp-offers-hero .cmp-offer-img img { object-fit: cover; padding: 0; }

/* 單欄大卡（閃購頁；電腦版首圖右側也用這個排法，見下方 media）*/
html[data-cmp="1117"] .cmp-rows { grid-template-columns: minmax(0, 1fr); gap: 14px; }
html[data-cmp="1117"] .cmp-rows .cmp-offer {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) 14px; grid-template-areas: "img name go" "img r go";
  align-items: center; column-gap: 12px; row-gap: 4px; padding: 12px; text-align: left;
}
html[data-cmp="1117"] .cmp-rows .cmp-offer-img { display: block; grid-area: img; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--bg); }
html[data-cmp="1117"] .cmp-rows .cmp-offer-img img { padding: 4px; }
html[data-cmp="1117"] .cmp-rows .cmp-offer-no { left: 12px; transform: none; }
html[data-cmp="1117"] .cmp-rows .cmp-offer-name { grid-area: name; align-self: end; min-width: 0; }
html[data-cmp="1117"] .cmp-rows .cmp-offer-name b { font-size: 17px; }
html[data-cmp="1117"] .cmp-rows .cmp-offer-full { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.35; font-weight: 500; color: var(--muted); }
html[data-cmp="1117"] .cmp-rows .cmp-offer-r { grid-area: r; align-self: start; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 8px; }
html[data-cmp="1117"] .cmp-rows .cmp-cap-s { display: none; }
html[data-cmp="1117"] .cmp-rows .cmp-cap-l { display: inline; }
html[data-cmp="1117"] .cmp-rows .cmp-offer-price { font-size: 13.5px; }
html[data-cmp="1117"] .cmp-rows .cmp-offer-price b { font-size: 15px; }
html[data-cmp="1117"] .cmp-rows .cmp-offer-note { flex-basis: 100%; }
html[data-cmp="1117"] .cmp-rows .cmp-offer-note span { display: inline; }
html[data-cmp="1117"] .cmp-rows .cmp-offer-note span + span::before { content: "・"; }
html[data-cmp="1117"] .cmp-rows .cmp-offer-go { display: block; grid-area: go; font-style: normal; font-size: 24px; line-height: 1; color: var(--accent-ink); }

/* ===== 折價券（首頁首圖下方、商品頁說明卡、空購物車、電腦版首圖右側）：米白底＋金色虛線 ===== */
html[data-cmp="1117"] .cmp-nw { display: inline-block; white-space: nowrap; }
html[data-cmp="1117"] .cmp-cpn {
  display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(90deg, #fff8e6 0%, #fff 70%); border: 1.5px dashed var(--cmp-gold-deep);
}
html[data-cmp="1117"] .cmp-cpn p { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--ink); }
html[data-cmp="1117"] .cmp-cpn-amt { color: var(--cmp-red-ink); font-weight: 900; }
html[data-cmp="1117"] .cmp-cpn-k { display: inline-block; margin-right: 6px; padding: 0 9px; border-radius: 999px; background: var(--cmp-red-grad); color: #fff; font-size: 13px; line-height: 1.6; vertical-align: 1px; }
html[data-cmp="1117"] .cmp-cpn small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; line-height: 1.5; color: var(--muted); }
html[data-cmp="1117"] .cmp-cpn small .cmp-nw { display: block; white-space: normal; }
html[data-cmp="1117"] .cmp-cpn small .cmp-ck { display: inline-block; white-space: nowrap; }
html[data-cmp="1117"] .cmp-cpn small i { display: none; font-style: normal; margin: 0 2px; color: #c3cbdb; }
@media (min-width: 900px) {
  html[data-cmp="1117"] .cmp-cpn small .cmp-nw { display: inline-block; white-space: nowrap; }
  html[data-cmp="1117"] .cmp-cpn small i { display: inline; }
}

@media (min-width: 640px) and (max-width: 899px) {
  /* 平板：圖不要撐滿（768 寬時會變 960px 高、而且放大變糊）*/
  html[data-cmp="1117"] .cmp-hero { padding-top: 18px; }
  html[data-cmp="1117"] .cmp-hero-fig { max-width: 560px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 34px rgba(5, 14, 36, .35), 0 0 0 5px #fff; }
  html[data-cmp="1117"] .cmp-hero-side { max-width: 560px; margin: 0 auto; padding: 20px 0 18px; }
}

@media (min-width: 900px) {
  html[data-cmp="1117"] .cmp-hero { padding: 32px 0 36px; }
  html[data-cmp="1117"] .cmp-hero-in { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 36px; align-items: start; padding: 0 16px; }
  html[data-cmp="1117"] .cmp-hero-fig { border-radius: 22px; overflow: hidden; box-shadow: 0 18px 44px rgba(5, 14, 36, .4), 0 0 0 6px #fff; }
  html[data-cmp="1117"] .cmp-hero-side { padding: 0; max-width: 580px; }
  html[data-cmp="1117"] .cmp-wide { display: block; }
  html[data-cmp="1117"] .cmp-pill.cmp-wide { display: inline-flex; font-size: 16px; padding: 3px 14px; background: var(--cmp-gold-grad); color: var(--cmp-cap-ink); border: 0; }
  html[data-cmp="1117"] .cmp-hero-title {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    margin: 12px 0 6px; font-weight: 900; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.12; color: #fff; letter-spacing: .01em; word-break: keep-all;
  }
  html[data-cmp="1117"] .cmp-hero-sub { margin: 0 0 20px; font-size: 19px; font-weight: 700; color: var(--cmp-on-navy); }
  html[data-cmp="1117"] .cmp-offers-h { text-align: left; margin-bottom: 14px; }
  /* 首圖右側的三個商品、所有商品頁／空購物車的三個商品：跟閃購頁同一個大卡排法 */
  html[data-cmp="1117"] .cmp-offers-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  html[data-cmp="1117"] .cmp-imgs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer {
    display: grid; grid-template-columns: 72px minmax(0, 1fr) 14px; grid-template-areas: "img name go" "img r go";
    align-items: center; column-gap: 14px; row-gap: 4px; padding: 12px 14px 12px 12px; text-align: left;
  }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-img { display: block; grid-area: img; width: 72px; height: 72px; max-width: none; aspect-ratio: auto; margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg); }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-img img { padding: 4px; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-no { left: 12px; transform: none; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-name { grid-area: name; align-self: end; min-width: 0; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-name b { font-size: 17px; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-full { display: block; margin-top: 1px; font-size: 13px; font-weight: 500; color: var(--muted); }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-r { grid-area: r; align-self: start; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 10px; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-cap-s { display: none; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-cap-l { display: inline; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-price { font-size: 14px; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-price b { font-size: 15px; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-note span { display: inline; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-note span + span::before { content: "・"; }
  html[data-cmp="1117"] :is(.cmp-offers-hero, .cmp-imgs) .cmp-offer-go { display: block; grid-area: go; font-style: normal; font-size: 24px; line-height: 1; color: var(--accent-ink); }
  html[data-cmp="1117"] .cmp-offer:hover { border-color: var(--cmp-red); }
  html[data-cmp="1117"] .cmp-cpn { margin-top: 16px; }
  html[data-cmp="1117"] .cmp-ticket { width: 40px; height: 40px; }
  /* 電腦版按鈕：照唯粉原本首圖的兩顆（淺藍實心＋白框），home.css 的 .b-cta／.b-cta2 */
  html[data-cmp="1117"] .cmp-hero-cta { display: flex; gap: 12px; margin-top: 18px; }
  html[data-cmp="1117"] .cmp-hero-cta .btn { padding: 14px 28px; font-size: 17px; }
  /* 閃購頁大卡：電腦版排三欄 */
  html[data-cmp="1117"] .cmp-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1200px) {
  html[data-cmp="1117"] .cmp-hero { padding: 36px 0 40px; }
  html[data-cmp="1117"] .cmp-hero-in { grid-template-columns: 440px minmax(0, 1fr); gap: 56px; }
}

/* ===== 所有商品頁最上面、空購物車：三個活動商品（白卡，照唯粉原本的卡片框線與陰影）===== */
html[data-cmp="1117"] .cmp-promo { margin: 6px 0 16px; padding: 14px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
html[data-cmp="1117"] .cmp-promo-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 16px; font-size: 15px; line-height: 1.4; }
html[data-cmp="1117"] .cmp-promo-h b { font-weight: 900; color: var(--ink); }
html[data-cmp="1117"] .cmp-promo-h a { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
html[data-cmp="1117"] .cmp-promo .cmp-offer { box-shadow: none; }
html[data-cmp="1117"] .cmp-promo-cart { margin-top: 18px; text-align: left; }
html[data-cmp="1117"] .cmp-cpn-cart { margin-bottom: 8px; }

/* ===== 首頁「限時搶購價」橫列、TOP 3：js 插入的金色膠囊排版 ===== */
html[data-cmp="1117"] .b-deal .cmp-cap, html[data-cmp="1117"] .b-top .cmp-cap { align-self: flex-start; justify-self: start; margin: 2px 0; max-width: 100%; white-space: normal; text-align: left; }

/* ===== 商品卡「雙11延長」標籤（既有的 .tag-d11，原本粉紫色）→ 金色活動膠囊 ===== */
html[data-cmp="1117"] .tag-d11 {
  background: var(--cmp-gold-grad); color: var(--cmp-cap-ink); font-weight: 900;
  box-shadow: inset 0 -1px 0 rgba(160, 95, 0, .35), 0 1px 3px rgba(120, 70, 0, .22);
}
html[data-cmp="1117"] .cmp-hidden { display: none !important; }

/* ===== 商品頁：分類旁金色膠囊、活動說明卡（白卡＋左邊紅條）、方案卡贈品膠囊 ===== */
html[data-cmp="1117"] .pd-promo.pd-cmp { gap: 4px; background: var(--cmp-gold-grad); color: var(--cmp-cap-ink); font-weight: 900; box-shadow: inset 0 -1px 0 rgba(160, 95, 0, .35); }
html[data-cmp="1117"] .cmp-note {
  position: relative; margin: 12px 0; padding: 12px 14px 12px 17px; border-radius: 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
html[data-cmp="1117"] .cmp-note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cmp-red-grad); }
html[data-cmp="1117"] .cmp-note-k { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 900; color: var(--ink); }
html[data-cmp="1117"] .cmp-note-deal { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 8px; }
html[data-cmp="1117"] .cmp-note-deal .cmp-gift { width: 28px; height: 28px; }
html[data-cmp="1117"] .cmp-note-deal b { font-size: 22px; font-weight: 900; line-height: 1.2; color: var(--cmp-red-ink); }
html[data-cmp="1117"] .cmp-note-deal small { padding: 0 9px; border-radius: 999px; background: var(--cmp-gold-grad); color: var(--cmp-cap-ink); font-size: 13px; font-weight: 900; line-height: 1.6; white-space: nowrap; }
html[data-cmp="1117"] .cmp-note-rule { margin: -2px 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
html[data-cmp="1117"] .cmp-note-picked {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; padding: 6px 6px 6px 10px;
  border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--cmp-gold);
}
html[data-cmp="1117"] .cmp-note-picked span { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 900; color: var(--ink); }
html[data-cmp="1117"] .cmp-note-picked span i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--cmp-gold-grad); color: var(--cmp-cap-ink); font-style: normal; font-size: 12px; font-weight: 900; }
html[data-cmp="1117"] .cmp-note-picked button { flex: none; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; }
html[data-cmp="1117"] .cmp-cpn-in .cmp-ticket { width: 34px; height: 34px; }
html[data-cmp="1117"] .cmp-cpn-in p { font-size: 14.5px; }
/* 方案卡：符合買送的件數加金色膠囊「＋送1盒」*/
html[data-cmp="1117"] .cmp-tgift {
  display: block; width: fit-content; margin: 4px 0 2px; padding: 0 9px; border-radius: 999px; background: var(--cmp-gold-grad); color: var(--cmp-cap-ink);
  font-size: 13px; font-weight: 900; line-height: 1.65; letter-spacing: .01em; white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(160, 95, 0, .35);
}

/* ===== 購物車：既有的雙11延長面板（.d11-cart，原本深紫霓虹）＝優惠說明卡，跟商品頁說明卡同一個樣子；贈品行標籤、專屬加購 ===== */
html[data-cmp="1117"] .d11-cart {
  position: relative; overflow: hidden; color: var(--ink); padding-left: 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
html[data-cmp="1117"] .d11-cart::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cmp-red-grad); }
html[data-cmp="1117"] .d11-cart .d11n-pill { background: var(--cmp-gold-grad); color: var(--cmp-cap-ink); box-shadow: none; text-shadow: none; }
html[data-cmp="1117"] .d11-cart-h b { color: var(--ink); text-shadow: none; }
html[data-cmp="1117"] .d11-cart-h small { color: var(--muted); }
html[data-cmp="1117"] .d11-cart-msg { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
/* 已達成的那行：白底＋金色勾勾 */
html[data-cmp="1117"] .d11-cart-msg.ok { position: relative; padding-left: 38px; background: #fff; color: var(--ink); border: 1.5px solid var(--cmp-gold); }
html[data-cmp="1117"] .d11-cart-msg.ok::before {
  content: "✓"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--cmp-gold-grad); color: var(--cmp-cap-ink); font-size: 12px; font-weight: 900;
}
html[data-cmp="1117"] .d11-cart-excl { color: var(--muted); }
html[data-cmp="1117"] .d11-addon { background: #fffaf0; border-color: var(--cmp-gold); color: var(--ink); }
html[data-cmp="1117"] .d11-addon p, html[data-cmp="1117"] .d11-addon-t small { color: var(--ink-2); }
html[data-cmp="1117"] .d11-addon-row { border-top-color: #f0e2bf; }
html[data-cmp="1117"] .d11-addon-lock { background: transparent; border-color: var(--cmp-gold-deep); }
html[data-cmp="1117"] .cl-d11 { background: var(--cmp-red-grad); }
html[data-cmp="1117"] .notice-d11 { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
html[data-cmp="1117"] .notice-d11 b { color: var(--cmp-red-ink); }
html[data-cmp="1117"] .notice-d11 a { color: var(--accent-ink); }

/* ===== 閃購頁：活動商品大卡＋分隔說明 ===== */
html[data-cmp="1117"] .cmp-picks { padding-bottom: 4px; }
html[data-cmp="1117"] .cmp-picks .cmp-rows { margin-top: 14px; }
html[data-cmp="1117"] .cmp-divider {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; margin: 22px 0 0; padding: 12px 8px 0;
  border-top: 1.5px dashed var(--line); font-size: 14px; line-height: 1.5; font-weight: 700; color: var(--ink-2); text-align: center;
}
html[data-cmp="1117"] .cmp-divider span { white-space: nowrap; }

/* ===== 分頁開著跨過 11/30 23:59:59：js 把 data-cmp 改成 off → 插入的活動元素全部藏起來 ===== */
html[data-cmp="off"] .cmp-x { display: none !important; }
