@font-face {
  font-family: "BritannicBold";
  src: url("../assets/fonts/britannic-bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   子頁共用樣式（goods.html / highlight.html）
   依賴 style.css（外殼、變數、底圖）與 index.css（流體根字級、
   .index-container、≤425 縮放）。

   尺寸策略比照 index：一律以「1920px 為基準」用 rem，隨流體根字級
   （html font-size: 100vw/120*1.3）等比縮放；窄螢幕 ≤425 另於 index.css
   覆寫根字級（×1.5）與容器（80vw），本檔僅補 ≤425 的版面調整。
   ============================================================ */

.page-sub main {
  padding-top: var(--navbar-height);
}

/* 子頁整頁背景改用設計稿純色（取代 style.css 的 page-bg.png 漸層底） */
.page-highlight {
  background: #acd6e6; /* P3 設計稿淡藍 */
}

@media (min-width: 441px) {
  .page-highlight {
    zoom: 1.21;
  }
}

.page-goods {
  background: #dbd3ea; /* P2 設計稿淡紫 */
}

.page-goods .back-to-top,
.page-highlight .back-to-top {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sub-section {
  padding: 5rem 0;
}

/* 內容卡：桌機用 ticket-02.png 100%×100% 拉伸；≤425 改三段式 */
.sub-card {
  position: relative;
  padding: 3.5rem 3rem;
  margin-block: 1.25rem;
  border: 0;
  background-image: url("../assets/index/ticket-02.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* goods：三段式白卡（ticket.png 以 Pillow 在扇貝谷點列裁成 top 86px / mid 986px / bot 92px）。
   mid repeat-y 平鋪、top/bot 用偽元素貼上下緣並各重疊 1px 蓋接縫；
   TW(45件)/JP(23件) 切換高度劇變時扇貝完全不變形。
   接縫選在左右扇貝同時內縮的「谷點」列、圖為純白軟邊無描邊，故接縫不可見。 */
@media (min-width: 441px) {
  /* highlight 同款重疊設定：margin-block 讓 top/bot 在卡片外預留空間，
     top/bottom 負值疊 1px 蓋接縫；14vw ≈ 1920 時 270px（= 1560px × 208/1200）。 */
  .page-goods .sub-card {
    margin-block: 14vw;
    background-image: url("../assets/goods/web/ticket-mid.png?v=3");
    background-repeat: repeat-y;
    background-size: 100% auto;
  }

  .page-goods .sub-card::before,
  .page-goods .sub-card::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 14vw;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
  }

  .page-goods .sub-card::before {
    top: calc(-14vw + 1px);
    background-image: url("../assets/goods/web/ticket-top.png?v=3");
  }

  .page-goods .sub-card::after {
    bottom: calc(-14vw + 1px);
    background-image: url("../assets/goods/web/ticket-bot.png?v=3");
    transform: translateX(0.3%);
  }
}

.page-highlight .sub-card {
  background-image: url("../assets/highlight/ticket.png");
}

.sub-card::before,
.sub-card::after {
  display: none;
}

.sub-title {
  margin: 0 0 2.5rem;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1.1;
  text-align: center;
}

/* ============================ GOODS ============================ */
.goods-title {
  font-family: "BritannicBold", sans-serif;
  font-size: 4.55rem;
  color: #8f7fc6;
}

/* 分類篩選膠囊 */
.goods-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.goods-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.4em;
  color: var(--color-sky);
  font-family: var(--font-menu);
  font-size: 1.15rem;
  background: #fff;
  border: 1.5px solid var(--color-sky);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.goods-filter::after {
  content: "\25BE"; /* ▾ */
  font-size: 0.85em;
}

.goods-filter:hover,
.goods-filter[aria-expanded="true"] {
  color: #fff;
  background: var(--color-sky);
}

/* 圖檔式篩選鈕（tw-web／jp-web，已含角色圖示＋文字＋箭頭）：
   去除膠囊外框、底色與 CSS 箭頭 */
.goods-filter--img {
  padding: 0;
  background: none;
  border: 0;
}

.goods-filter--img::after {
  content: none;
}

.goods-filter--img {
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

/* 選取中的分類鈕淡化（作用狀態由 js/goods.js 切換 aria-pressed） */
.goods-filter--img[aria-pressed="true"] {
  opacity: 0.25;
}

.goods-filter--img[aria-pressed="false"] {
  opacity: 1;
}

.goods-filter--img:hover,
.goods-filter--img[aria-expanded="true"] {
  color: var(--color-sky);
  background: none;
}

.goods-filter--img:focus,
.goods-filter--img:focus-visible {
  outline: none;
}

.goods-filter--img[aria-pressed="false"]:hover {
  opacity: 0.75;
}

.goods-filter--img[aria-pressed="true"] {
  cursor: default;
  pointer-events: none;
}

/* 兩圖原始寬度相近（295／300），以等寬顯示使縮放比例與文字大小一致；
   高度交給 auto，列內垂直置中。 */
.goods-filter--img img {
  display: block;
  width: 14.5rem;
  height: auto;
}

.goods-showcase {
  width: min(69.7%, 45.2rem);
  margin: 0 auto 2.5rem;
}

.goods-showcase__viewport {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 127, 198, 0.45);
  border-radius: 0.75rem;
}

.goods-showcase__slide {
  display: none;
  border: 0;
  background: transparent;
  width: 100%;
}

.goods-showcase__slide.is-active {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  padding: 1.25rem 1.5rem;
}

.goods-showcase__img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goods-showcase__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.goods-showcase__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  font-family: var(--font-menu);
  color: #8f7fc6;
}

.goods-showcase__info-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-sky);
}

.goods-showcase__info-price {
  font-size: 0.95rem;
  font-weight: 500;
  color: #8f7fc6;
}

.goods-showcase__info-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--color-muted);
  white-space: pre-line;
}

.goods-showcase__dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.goods-showcase__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(91, 155, 213, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.goods-showcase__dot.is-active {
  background: var(--color-sky);
  transform: scale(1.2);
}

/* 分類標籤列：tw-top / jp-top 標頭圖 */
.goods-cat {
  margin-bottom: 2rem;
}

/* 標頭圖寬度為白卡的 80%、水平置中 */
.goods-cat__img {
  display: block;
  width: 80%;
  height: auto;
  margin-inline: auto;
}

/* 商品格：桌機 4 欄，總寬與標頭一致為白卡的 80%、水平置中 */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  width: 80%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.goods-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.goods-item__img {
  aspect-ratio: 1 / 1;
  background: #f3f5f8;
  border: 1px solid var(--color-line);
  border-radius: 0.75rem;
  overflow: hidden;
}

.goods-item__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.goods-item__name {
  margin: 0;
  color: var(--color-brown);
  font-size: 0.98rem;
  line-height: 1.5;
}

.goods-item__price {
  margin: 0;
  color: var(--color-rose);
  font-family: var(--font-menu);
  font-size: 1rem;
}

/* ============================ GOODS MODAL ============================ */
.goods-item {
  cursor: pointer;
}

/* 全螢幕遮罩：flex 置中 dialog */
.goods-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--navbar-height) 1rem 1rem;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.goods-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.goods-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* X 按鈕：浮於 backdrop 層（absolute 相對 .goods-modal），
   位於 dialog 外部右上角，使用 X.png 白色圖示 */
.goods-modal__close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.34rem;
  height: 2.34rem;
  padding: 0;
  background: transparent;
  border: 0;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.goods-modal__close:hover {
  opacity: 1;
}

.goods-modal__close img {
  display: block;
  width: 100%;
  height: auto;
}

/* frame：包住 dialog 與關閉按鈕，提供 position 基準且不裁切按鈕 */
.goods-modal__frame {
  position: relative;
}

/* dialog：白底、圓角、內容可捲動 */
.goods-modal__dialog {
  display: flex;
  flex-direction: column;
  width: min(88vw, 41.6rem); /* 1920 桌機版整體再縮小 10% (原 46.8rem) */
  max-height: calc(100vh - var(--navbar-height) - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 40px rgba(60, 40, 90, 0.3);
}

.goods-modal__disclaimer {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fff;
  max-width: 88vw;
}

/* 圖片區：方形、無圓角（flush to top of dialog）、灰底佔位 */
.goods-modal__img {
  width: 90%;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  padding: 1.25rem;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.goods-modal__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 文字區 */
.goods-modal__body {
  padding: 1rem 1.25rem 1.5rem;
}

.goods-modal__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.3rem;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

.goods-modal__preorder-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: #d9363e;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.goods-modal__price {
  margin: 0 0 0.4rem;
  color: var(--color-ink);
  font-family: var(--font-menu);
  font-size: 1.045rem;
}

/* 規格：單行合併文字（材質、尺寸內容），小字灰色 */
.goods-modal__spec {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.935rem;
  line-height: 1.6;
  white-space: pre-line;
}


/* Goods Modal 輪播樣式 */
.goods-modal__carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.goods-modal__carousel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.goods-modal__carousel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.goods-modal__carousel-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
}

/* 輪播左右控制按鈕 */
.goods-modal__carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-sky, #78c5d6);
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.goods-modal__carousel-btn:hover {
  color: #55b3c7;
  transform: translateY(-50%) scale(1.2);
}

.goods-modal__carousel-btn:active {
  transform: translateY(-50%) scale(0.9);
}

.goods-modal__carousel-btn--prev {
  left: 0.5rem;
}

.goods-modal__carousel-btn--next {
  right: 0.5rem;
}

/* 指示圓點 */
.goods-modal__carousel-dots {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.4);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(2px);
}

.goods-modal__carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(60, 40, 90, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.goods-modal__carousel-dot.is-active {
  background: var(--color-sky, #78c5d6);
  transform: scale(1.2);
}

body.modal-open {
  overflow: hidden;
}

/* ========================== HIGHLIGHT ========================== */
.hl-title {
  /* 1920 基準字級放大 50%（3.5rem ×1.5） */
  font-size: 4.2525rem;
  color: var(--color-sky);
}

.page-highlight .sub-title {
  margin-bottom: 2.25rem;
  line-height: 0.99;
}

.hl-intro {
  max-width: 43.2rem;
  margin: 0 auto 2.835rem;
  color: var(--color-brown);
  font-size: 0.99rem;
  line-height: 1.71;
  text-align: left;
}

.hl-block {
  margin-bottom: 3.827rem;
  text-align: center;
}

.hl-block:last-child {
  margin-bottom: 0;
}

/* 引言緞帶：採設計稿 highlight.png（僅下緣框：橫線＋兩端上彎＋中央向下小尾），
   文字置於下緣框上方；寬度為白卡的 60%、置中 */
.hl-ribbon {
  display: block;
  width: 54%;
  margin: 0 auto 2.025rem;
  padding: 0.18em 1.6em 1.17em;
  color: var(--color-sky);
  font-size: 0.945rem;
  line-height: 1.53;
  background: url("../assets/highlight/highlight.png") bottom center / 100% auto no-repeat;
}

.hl-kicker {
  margin: 0 0 0.225rem;
  color: var(--color-sky);
  font-family: "OpenHuninn", sans-serif;
  font-size: 1.08rem;
}

.hl-heading {
  margin: 0 0 1.296rem;
  color: var(--color-sky);
  font-family: "OpenHuninn", sans-serif;
  font-weight: 400;
  font-size: 2.52rem;
  line-height: 1.035;
}

.hl-heading span {
  font-size: 0.6em;
}

.hl-desc {
  max-width: 41.4rem;
  margin: 0 auto 1.8225rem;
  color: var(--color-brown);
  font-size: 0.945rem;
  line-height: 1.755;
  text-align: justify;
}

.hl-figure {
  margin: 0 auto;
}

.hl-figure img {
  display: block;
  width: min(100%, 30.6rem);
  height: auto;
  margin: 0 auto;
  border-radius: 1rem;
}

/* ①②③：圖＋圖說左右並排（不換行，隨 1920 基準等比縮放；≤425 另外設計）；
   總寬與 hl-desc 一致（46rem）、置中 */
.hl-figure:has(.hl-caption) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.62rem;
  max-width: 41.4rem;
  margin-inline: auto;
}

.hl-figure:has(.hl-caption) img {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0;
}

/* ④：圖寬與 hl-desc 一致（46rem） */
.hl-figure--wide img {
  width: min(100%, 41.4rem);
}

/* ⑤ 兩張並陳：等高（大小比例一致），兩圖＋間距總寬與 hl-desc 一致（46rem）、置中。
   作法：flex-basis:0 + flex-grow=各自長寬比 → 依長寬比分配寬度，兩圖最終等高。 */
.hl-figure--pair {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.62rem;
  max-width: 41.4rem;
  margin-inline: auto;
}

.hl-figure--pair img {
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
}

/* highlight-5-1.jpg 703×505 → 比例 1.392；highlight-5-2.jpg 885×1259 → 比例 0.703 */
.hl-figure--pair img:first-child {
  flex: 1.392 1 0;
}

.hl-figure--pair img:last-child {
  flex: 0.703 1 0;
}

/* 圖說框：白底、邊框與文字皆用 hl-kicker 字色（--color-sky） */
.hl-caption {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 1.0125rem 1.575rem;
  color: var(--color-sky);
  font-size: 0.882rem;
  line-height: 1.665;
  text-align: justify;
  background: #fff;
  border: 1px solid var(--color-sky);
  border-radius: 1rem;
}

/* highlight：內容整體往下移 */
.page-highlight .sub-card {
  padding-top: 7rem;
}

/* highlight 1920 桌機：section 間距與行距再加 5% */
.page-highlight .hl-block {
  margin-bottom: 4.018rem;
}
.page-highlight .hl-ribbon {
  margin-bottom: 2.126rem;
  line-height: 1.607;
}
.page-highlight .hl-kicker {
  margin-bottom: 0.236rem;
}
.page-highlight .hl-heading {
  margin-bottom: 1.361rem;
  line-height: 1.087;
}
.page-highlight .hl-intro {
  max-width: 45.8rem;
}
.page-highlight .hl-desc {
  max-width: 45.8rem;
  margin-bottom: 1.914rem;
  line-height: 1.843;
}
.page-highlight .hl-figure:has(.hl-caption) {
  max-width: 45.8rem;
}
.page-highlight .hl-figure:has(.hl-caption) {
  gap: 1.701rem;
}

/* ============================ ≤768 另外處理 ============================ */
@media (max-width: 768px) {
  .goods-showcase {
    width: 97%;
  }
}

/* ============================ ≤425 另外處理 ============================ */
@media (max-width: 440px) {
  /* 側邊預約鈕與回頂鈕比照 index.html 手機版設定 */
  .page-goods .side-booking,
  .page-highlight .side-booking {
    top: 65%;
    width: 14.25vw;
  }

  .page-goods .back-to-top{
    width: 14.25vw;
    height: 14.25vw;
    bottom: calc(15vh + env(safe-area-inset-bottom, 0px));
    bottom: calc(15svh + env(safe-area-inset-bottom, 0px));
    right: -1rem;
  }

  .page-highlight .back-to-top {
    width: 14.25vw;
    height: 14.25vw;
    bottom: calc(15vh + env(safe-area-inset-bottom, 0px));
    bottom: calc(15svh + env(safe-area-inset-bottom, 0px));
    right: -1rem;
  }

  .page-goods .back-to-top img,
  .page-highlight .back-to-top img {
    width: 6.58vw;
  }

  /* 商品格改 2 欄 */
  .goods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .goods-showcase {
    width: 92%;
    margin-bottom: 2rem;
  }

  .goods-showcase__slide.is-active {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }

  .goods-showcase__img-wrap {
    flex: none;
    width: 60%;
    aspect-ratio: 1;
  }

  .goods-showcase__info {
    text-align: center;
    align-items: center;
  }

  /* 卡片內距收斂，貼合 80vw 容器 */
  .sub-card {
    padding: 2rem 1.5rem;
  }

  /* highlight & goods：內容寬度設為白卡的 80%（左右各留 10%） */
  .page-highlight .sub-card,
  .page-goods .sub-card {
    padding-inline: 10%;
  }

  /* highlight：主標 HIGHLIGHT 字級放大一倍（3.5rem → 7rem） */
  .page-highlight .sub-title {
    font-size: 5.67rem;
  }

  /* highlight：引言緞帶寬度＝白卡 80%（即填滿已縮為 80% 的內容區） */
  .page-highlight .hl-ribbon {
    width: 100%;
  }

  /* highlight：內容字體放大 50%（各 rem ×1.5） */
  .page-highlight .hl-intro {
    font-size: 1.485rem;
  }

  .page-highlight .hl-ribbon {
    font-size: 1.422rem;
  }

  .page-highlight .hl-kicker {
    font-size: 1.62rem;
  }

  .page-highlight .hl-heading {
    font-size: 3.78rem;
  }

  .page-highlight .hl-desc {
    font-size: 1.422rem;
  }

  .page-highlight .hl-caption {
    font-size: 1.323rem;
  }

  /* ── goods modal ≤425 ── */
  .goods-modal__dialog {
    width: 88vw;
    border-radius: 1rem;
  }

  /* × 浮於 dialog 右上角外側 */
  .goods-modal__close {
    top: -3rem;
    right: 0;
    width: 2.6rem;
    height: 2.6rem;
  }

  /* 圖片改方形 + 拍立得白框，縮小 10% */
  .goods-modal__img {
    aspect-ratio: 1 / 1;
    width: 90%;
    margin: 1.2rem auto 0;
    padding: 1.2rem;
    background: #fff;
    border-radius: 0.5rem;
  }

  .goods-modal__body {
    padding: 0.75rem 1.5rem 1.5rem;
  }

  .goods-modal__name {
    font-size: 1.485rem;
    margin-bottom: 0.4rem;
  }

  .goods-modal__price {
    font-size: 1.32rem;
    margin-bottom: 0.3rem;
  }

  .goods-modal__spec {
    font-size: 1.1rem;
  }

  /* highlight：①②③ 圖文改上下佈局（圖上、圖說下） */
  .hl-figure:has(.hl-caption) {
    flex-direction: column;
    max-width: none;
  }

  .hl-figure:has(.hl-caption) img,
  .hl-figure:has(.hl-caption) .hl-caption {
    flex: none;
    width: 100%;
  }

  /* highlight：⑤ 全新夥伴們圖片改上下佈局 */
  .hl-figure--pair {
    flex-direction: column;
    align-items: center;
    max-width: none;
  }

  .hl-figure--pair img {
    flex: none;
    width: 100%;
    height: auto;
  }

  /* highlight.html & goods.html 的內容容器寬度改為 90vw */
  .page-highlight .index-container,
  .page-goods .index-container {
    width: 90vw;
  }

  /* highlight.html 根字型大小 */
  html:has(.page-highlight) {
    font-size: calc(100vw / 120 * 2.19375);
  }

  /* goods.html 根字型大小：highlight 基準再放大 20% */
  html:has(.page-goods) {
    font-size: calc(100vw / 120 * 2.6325);
  }

  /* goods-cat 與 goods-grid 寬度放大至白底 90% */
  .goods-cat__img,
  .goods-grid {
    width: 90%;
  }

  /* goods-cat 標頭圖再放大 20%（90% × 1.2） */
  .goods-cat__img {
    width: 108%;
  }

  /* goods-grid 內商品文字直接放大 30%（rem 不會吃父層 font-size） */
  .goods-item__name {
    font-size: 1.274rem;
  }

  .goods-item__price {
    font-size: 1.3rem;
  }

  /* ≤425：三段式白卡，top/bot 伸出元素外側透出頁面背景色
     特異度需 ≥ 桌機 .page-* .sub-card（0,2,0）才不會被蓋掉 */
  .page-goods .sub-card,
  .page-highlight .sub-card {
    margin-block: 80px;
    /* 清除桌機 goods 的 border-image，回到三段式背景 */
    border: 0;
    border-image: none;
    background-image: url("../assets/highlight/ticket-02-mid.png");
    background-repeat: repeat-y;
    background-size: 100% auto;
  }

  .sub-card::before,
  .sub-card::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    background-size: 100% 80px;
    background-repeat: no-repeat;
    pointer-events: none;
  }

  .sub-card::before {
    top: -79px;
    background-image: url("../assets/highlight/ticket-02-top.png");
    background-position: center top;
  }

  .sub-card::after {
    bottom: -79px;
    background-image: url("../assets/highlight/ticket-02-bot.png");
    background-position: center top;
  }
}
