@font-face {
  font-family: "House of Cards";
  src: url("../img/font/House-of-cards-W03-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
html {
  background-color: #da9c30;
}

body {
  margin: 0;
  background-color: #da9c30;
  background-image: none;
  font-family: "Noto Serif HK", serif;
}

body > a[href="#"] {
  display: none;
}

#myBtn {
  width: 48px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#myBtn img {
  display: block;
  width: 48px;
  height: auto;
}
h5{
  font-size: 1rem;
}
.mobile {
  display: none;
}

.desktop {
  display: block;
}

.banner_group_mobile {
  display: none;
}

.banner_mobile {
  display: none;
}

.banner_group {
  position: relative;
  width: 100%;
  aspect-ratio: 1140 / 385;
  overflow: hidden;
  margin-bottom: 40px;
}

.banner_layer {
  position: absolute;
}

.banner_layer--color {
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: #a54934;
  clip-path: polygon(0 0, 25% 0, 30.5% 100%, 0 100%);
}

@media (min-width: 769px) {
  .banner_layer--color {
    background-image: url(../img/banner/banner_1.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 106.5% 119%;
  }
}

.banner_layer--photo {
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 30% 100%);
}

.banner_layer--title {
    top: 52%;
    left: 4.6%;
    z-index: 3;
    width: 20.5%;
    height: auto;
}

.banner_layer--logo {
    left: 3.6%;
    top: 10%;
    z-index: 3;
    width: 9.8%;
    height: auto;
}

.product-name {
  font-weight: 600;
  line-height: 1.4;
}

.product-price {
  font-weight: 400;
  padding: 10px 8px;
}

.titletext {
  color: #545454;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-align: center;
  margin: 0 auto 40px auto;
  width: 100%;
  max-width: 1200px;
}

.photo_group {
  position: relative;
}

.photo_group .photo--main {
  display: block;
  width: 100%;
  height: auto;
}

.photo_group .photo--hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

.photo_group .photo.is-visible {
  opacity: 1;
}

.photo_group.is-scrubbing .photo--main:not(.is-visible) {
  opacity: 0;
}

.photo-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.photo-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.photo-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  padding: 0;
}

.photo-dot.is-active {
  width: 20px;
  border-radius: 10px;
  background: #000;
}

.clothing_category {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.cloth_type {
  padding: 0 10px;
}

.socialmedia {
  margin-top: 40px;
  width: 100%;
  height: 100px;
}

.socialmedia ul {
  display: flex;
  justify-content: center;
}

.socialmedia li {
  width: 40px;
  list-style: none;
  margin: 0 30px;
  transition: 0.3s;
}

.socialmedia li:hover {
  transform: translateY(-3px);
}

.series-1 {
  width: 100%;
  margin: 0 auto 40px;
  text-align: center;
}

.series-1 img {
  width: 280px;
  height: auto;
  padding-bottom: 20px;
}

.series-1 h4.titletext_sub {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 2px;
}

.container {
  margin-bottom: 80px;
}

.fact-item {
  transition: 0.3s;
}

.fact-item:hover {
  margin-top: -10px;
  background: #ffffff !important;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.07);
}

@media (max-width: 768px) {
  .mobile {
    display: block;
  }

  .desktop {
    display: none;
  }

  .banner_group_mobile {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
  }

  .banner_mobile {
    width: 100%;
    height: auto;
    display: block;
  }

  .titletext {
    font-size: 16px;
    padding: 0 20px;
  }
}

@media (max-width: 425px) {
  .titletext {
    font-size: 16px;
    padding: 0 20px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 一個 banner：容器多出 80vh 嘅 scroll 距離，hero 釘住，前言隨進度升上嚟 */
.hero-scroll {
  position: relative;
  height: 180vh;
  height: 180dvh;
}

/* 唔用 sticky（懷疑係 iPhone 上龍／段落／徽章位移嘅原因）：
   前 = absolute 貼頂，中間 = fixed 釘住，後 = absolute 貼底，由 banner.js 切換 */
.hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, #bfb787 0%, #cda95b 48%, #da9c30 100%);
}

/* iPhone (iOS 17.4) 上龍／段落字／徽章／向下滑動會憑空多 translate 0 -108px，
   呢度強制取消，位置只由 top/left 同 GSAP 嘅 transform 決定 */
.hero .piece,
.hero .scroll-hint {
  translate: none !important;
}

.hero.is-pinned {
  position: fixed;
  top: 0;
}

.hero.is-after {
  top: auto;
  bottom: 0;
}

.hero-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 1024px;
  margin-left: -720px;
  margin-top: -512px;
  transform: scale(var(--hero-scale, 1));
  transform-origin: center center;
  overflow: hidden;
}

.bg-color {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bg-color img {
  position: absolute;
  height: 100%;
  left: -53.76%;
  top: 0;
  width: 207.51%;
  max-width: none;
}

.photo {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
}

.photo img {
  position: absolute;
  max-width: none;
}

.photo-left {
  left: 0;
  width: 50.1389%;
  -webkit-mask-image: url("../img/banner/mask-left.svg");
  mask-image: url("../img/banner/mask-left.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-size: 103.7396% 100%;
  mask-size: 103.7396% 100%;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

.photo-left img {
  height: 108.69%;
  left: -23.3%;
  top: -7.13%;
  width: 123.32%;
}

.photo-right {
  left: 59.7222%;
  width: 42.2917%;
  -webkit-mask-image: url("../img/banner/mask-right.svg");
  mask-image: url("../img/banner/mask-right.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-size: 110.0164% 100%;
  mask-size: 110.0164% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}

.photo-right img {
  height: 103.71%;
  left: -0.04%;
  top: -0.29%;
  width: 130.79%;
}

.blur-con,
.blur-mid,
.piece {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.blur-con {
  left: 0;
  top: 0;
  width: 15.9028%;
  height: 42.5781%;
  object-fit: fill;
}

.blur-mid {
  left: 2.9167%;
  top: 0;
  width: 92.4306%;
  height: 100%;
  object-fit: fill;
}

.blur-mid-mobile {
  display: none;
}

.piece {
  object-fit: contain;
  object-position: center;
}

.piece-monster { left: 27.6873%; top: 36.4508%; width: 44.6253%; height: 13.0738%; }
.piece-hunter { left: 31.3216%; top: 51.0707%; width: 37.3568%; height: 12.7173%; }
.piece-dragon { left: 31.7442%; top: 45.0082%; width: 33.1310%; height: 33.2788%; }
.piece-tagline { left: 35.0630%; top: 69.4114%; width: 29.9080%; height: 5.5332%; }
.piece-mark { left: 50.4854%; top: 51.0414%; width: 4.2929%; height: 12.6403%; }
.piece-critter { left: 49.6619%; top: 19.3359%; width: 8.1137%; height: 13.7870%; }
.piece-badge { left: 46.9574%; top: 76.8608%; width: 6.1698%; height: 3.8033%; }
.piece-palico { left: 43.2386%; top: 32.6475%; width: 11.5789%; height: 14.5001%; }
.piece-crew { left: 53.2117%; top: 29.4384%; width: 16.2274%; height: 19.2542%; }
.piece-line { left: 39.1817%; top: 65.0943%; width: 21.8056%; height: 2.0205%; }
.piece-accent { left: 37.7449%; top: 28.6065%; width: 4.6485%; height: 8.2009%; }
/* piece-tag-side / piece-rule-low / piece-rule-top — REMOVED 2026-12-02 (duplicate SVG assets) */

.scroll-hint {
  position: absolute;
  /* 置中唔用 translate（會同 GSAP 嘅 transform 疊加，iPhone 上偏左 30px） */
  left: 0;
  right: 0;
  width: max-content;
  margin: 0 auto;
  bottom: 18px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  color: #111;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}

.scroll-hint img {
  width: 40px;
  height: auto;
}

.scroll-hint span {
  font-family: "Noto Serif HK", serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.8px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.sound-toggle {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.45));
}

.sound-toggle svg {
  width: 28px;
  height: 28px;
}

.sound-toggle .sound-icon-off {
  display: none;
}

.sound-toggle.is-off .sound-icon-on {
  display: none;
}

.sound-toggle.is-off .sound-icon-off {
  display: block;
}

.hero-preface {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: calc(500px * var(--hero-scale, 1));
  /* 透明度同升起位移由 banner.js 逐個元素直接設定（唔用 var()/translate 屬性，
     iPhone iOS 17.4 會令主視覺件件跟住前言升） */
  transform: translate(-50%, -50%) translateY(80px);
  color: #000;
  text-align: center;
  pointer-events: none;
  opacity: 0;
}

.hero-preface p {
  margin: calc(30px * var(--hero-scale, 1)) 0 0;
  font-family: "Noto Serif HK", serif;
  font-weight: 400;
  font-size: calc(14px * var(--hero-scale, 1));
  line-height: calc(30px * var(--hero-scale, 1));
  letter-spacing: calc(0.48px * var(--hero-scale, 1));
}
.hero-preface p.hero-preface-first {
  font-weight: 800;
  font-size: calc(24px * var(--hero-scale, 1));
}

.hero-preface-title {
  margin-top: 0;
  font-weight: 700;
  font-size: calc(24px * var(--hero-scale, 1));
  line-height: calc(30px * var(--hero-scale, 1));
}

@media (prefers-reduced-motion: reduce) {
  .blur-mid {
    opacity: 0.68;
  }

}

@media (max-width: 768px) {
  .hero {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    aspect-ratio: auto;
    margin: 0;
  }

  .hero-stage {
    width: 402px;
    height: 874px;
    margin-left: -201px;
    margin-top: -437px;
  }

  .photo-left,
  .photo-right {
    overflow: hidden;
  }

  .photo-left {
    left: -179px;
    top: -171px;
    width: 695.694px;
    height: 760.284px;
    -webkit-mask-image: url("../img/banner/mask-top-vector.svg");
    mask-image: url("../img/banner/mask-top-vector.svg");
    -webkit-mask-size: 834.007px 834.217px;
    mask-size: 834.007px 834.217px;
    -webkit-mask-position: -250px 154.77px;
    mask-position: -250px 154.77px;
    /* 沿 Figma 撕邊裁走下面多出嚟嘅草地（原本落到 y≈588 然後平切）。
       座標 = stage 座標 + (179, 171)（.photo-left 原點係 -179,-171） */
    -webkit-clip-path: polygon(0 0, 979px 0, 979px 443px, 394px 443px, 314px 451px, 301px 461px,
      306px 471px, 306px 491px, 256px 501px, 247px 511px, 237px 521px, 232px 531px, 239px 541px,
      240px 551px, 208px 561px, 190px 571px, 184px 581px, 179px 591px, 0 596px);
    clip-path: polygon(0 0, 979px 0, 979px 443px, 394px 443px, 314px 451px, 301px 461px,
      306px 471px, 306px 491px, 256px 501px, 247px 511px, 237px 521px, 232px 531px, 239px 541px,
      240px 551px, 208px 561px, 190px 571px, 184px 581px, 179px 591px, 0 596px);
  }

  .photo-left img {
    width: 545.112px;
    height: 680.406px;
    left: 60.209px;
    top: 94.851px;
  }

  .photo-right {
    left: 0;
    top: 374px;
    width: 402px;
    height: 500px;
    -webkit-mask-image: url("../img/banner/mask-bottom-mobile.png?v=3");
    mask-image: url("../img/banner/mask-bottom-mobile.png?v=3");
    -webkit-mask-mode: alpha;
    mask-mode: alpha;
    -webkit-mask-size: 402px 500px;
    mask-size: 402px 500px;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }

  .photo-right img {
    width: 532.007px;
    height: 648.125px;
    left: 0.161px;
    top: 65.82px;
  }

  .blur-con,
  .blur-mid:not(.blur-mid-mobile) {
    display: none;
  }

  .blur-mid-mobile {
    display: block;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .piece-monster { left: 8.7065%; top: 41.8099%; width: 82.4714%; height: 7.9027%; }
  .piece-hunter { left: 15.4229%; top: 50.6466%; width: 69.0385%; height: 7.6872%; }
  .piece-dragon { left: 16.2039%; top: 46.9837%; width: 61.2287%; height: 20.116%; }
  .piece-tagline { left: 22.3367%; top: 61.7336%; width: 55.2717%; height: 3.3447%; }
  .piece-mark { left: 50.8387%; top: 50.6289%; width: 7.9332%; height: 7.6407%; }
  .piece-critter { left: 49.3174%; top: 31.4645%; width: 14.9948%; height: 8.3338%; }
  .piece-badge { left: 44.3191%; top: 66.2365%; width: 11.4023%; height: 2.299%; }
  .piece-palico { left: 37.446%; top: 39.511%; width: 21.3993%; height: 8.7648%; }
  .piece-crew { left: 55.8776%; top: 37.5712%; width: 29.9896%; height: 11.6385%; }
  .piece-line { left: 29.9491%; top: 59.1241%; width: 40.2985%; height: 1.2213%; }
  .piece-accent { left: 27.2938%; top: 37.0683%; width: 8.5908%; height: 4.9572%; }

  .scroll-hint {
    top: calc(50% + 210px * var(--hero-scale, 1));
    bottom: auto;
    gap: 2px;
    color: #101820;
  }

  .scroll-hint img {
    width: 23px;
    height: 18px;
  }

  .scroll-hint span {
    font-size: 9px;
    letter-spacing: 1.4px;
  }

  .sound-toggle {
    left: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 36px;
    height: 36px;
  }

  .sound-toggle svg {
    width: 24px;
    height: 24px;
  }

  .hero-preface {
    width: min(270px, calc(100% - 96px));
    top: 52%;
  }

  .hero-preface p {
    margin-top: 12px;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.2px;
  }

  .hero-preface p.hero-preface-first {
    margin-top: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
  }
}

.product-list {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #ffffff;
  overflow: hidden;
}

.product-details {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #ffffff;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
  container-type: size;
}

.product-details.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0s linear 0s;
}

.product-list-bg {
  position: absolute;
  left: 0;
  top: 28%;
  width: 100%;
  height: 72%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1.06);
  transform-origin: center center;
}

.product-list-bg,
.product-title,
.product-float,
.product-still {
  filter: blur(0);
  transition: filter 0.7s ease, opacity 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-list:has(.product-rail:hover) > :is(.product-list-bg, .product-title, .product-float, .product-still) {
    filter: blur(6px);
  }

  .product-list:has(.product-rail:hover) .product-hover-title {
    opacity: 1;
  }
}

.product-hover-title {
  position: absolute;
  left: 50%;
  top: 24%;
  z-index: 4;
  translate: -50% -50%;
  margin: 0;
  color: #101820;
  font-family: "House of Cards", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 64px);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  text-transform: uppercase;
}

.product-title {
  position: absolute;
  left: 29%;
  top: 15%;
  width: 42%;
  margin: 0;
  color: #1b2430;
  font-family: "House of Cards", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 52px);
  text-transform: uppercase;
  line-height: 1.05;
  text-align: center;
  z-index: 4;
}

.product-title-break {
  display: none;
}

.product-float,
.product-still {
  position: absolute;
  height: auto;
  pointer-events: none;
  z-index: 3;
}

.product-float-top {
  left: 3.5%;
  top: 4.9%;
  width: 22.2%;
}

.product-float-cat {
  left: 82.2%;
  top: 13.7%;
  width: 13.9%;
}

.product-list:has(.product-details.is-open) > .product-float-cat {
  opacity: 0;
}

.product-details .product-float-cat {
  transition: top 0.6s ease, left 0.6s ease;
}

.product-details.is-open .product-float-cat {
  left: 72.5%;
  top: 11.23%;
}

.product-still {
  left: 22.1%;
  top: 76.9%;
  width: 16.2%;
  z-index: 2;
}

.product-rail {
  position: absolute;
  left: 3.9%;
  top: 32%;
  width: 86.9%;
  height: auto;
  padding-top: 2.4vh;
  padding-bottom: calc(2.4vh + 16px);
  z-index: 2;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  /* 左右未完全入畫面嘅產品淡出，避免被邊線硬切 */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
}

.product-rail.is-dragging {
  cursor: grabbing;
}

.product-hint {
  position: absolute;
  top: calc(32% + 2.4vh + min(300px, 34vh) / 2);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #101820;
  cursor: pointer;
  translate: 0 -50%;
  transition: opacity 0.3s ease;
}

.product-hint svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff);
}

.product-hint-prev {
  left: 1.4%;
  animation: product-hint-prev 1.6s ease-in-out infinite;
}

.product-hint-next {
  right: 1.4%;
  animation: product-hint-next 1.6s ease-in-out infinite;
}

.product-hint.is-off {
  opacity: 0;
  pointer-events: none;
}

@keyframes product-hint-prev {
  0%, 100% { translate: 0 -50%; }
  50% { translate: -6px -50%; }
}

@keyframes product-hint-next {
  0%, 100% { translate: 0 -50%; }
  50% { translate: 6px -50%; }
}

.product-track {
  display: flex;
  align-items: center;
  height: auto;
  gap: 48px;
  width: max-content;
  will-change: transform;
}

.product-card {
  --card-size: min(300px, 34vh);
  position: relative;
  flex: 0 0 var(--card-size);
  width: var(--card-size);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: scale(var(--card-scale, 0.55));
  transform-origin: center center;
  transition: transform 0.28s ease;
  cursor: pointer;
}

.product-rail.is-dragging .product-card {
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .product-card.is-ready:hover {
    transform: scale(calc(var(--card-scale, 1) * 1.06));
  }

  .product-card.is-ready:hover .product-card-name {
    opacity: 1;
  }
}

.product-card-name {
  margin: 8px 0 0;
  color: #101820;
  font-family: "House of Cards", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.product-card img {
  width: var(--card-size);
  height: var(--card-size);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 768px) {
  .product-title {
    left: 0;
    top: 29px;
    width: 100%;
    color: #101820;
    font-size: min(56px, 13.93vw);
    line-height: 1.05;
    text-transform: uppercase;
  }

  .product-title-break {
    display: block;
  }

  .product-hover-title {
    font-size: min(34px, 7.5vw);
  }

  .product-float-top {
    left: -34%;
    top: 12.6%;
    width: 80%;
  }

  .product-float-cat {
    left: 63%;
    top: 20.6%;
    width: 32%;
  }

  .product-details .product-float-cat,
  .product-details.is-open .product-float-cat {
    display: none;
  }

  .product-still {
    left: 13%;
    top: 77.5%;
    width: 50%;
  }

  .product-rail {
    left: 0;
    top: 33%;
    width: 100%;
    height: auto;
  }

  .product-track {
    gap: 28px;
    padding-left: 8vw;
  }

  .product-card {
    --card-size: min(74vw, 36vh);
  }

  .product-hint {
    top: calc(33% + 2.4vh + min(74vw, 36vh) / 2);
    width: 40px;
    height: 40px;
  }

  .product-hint-prev {
    left: 8px;
  }

  .product-hint-next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card-name,
  .product-hover-title,
  .product-list-bg,
  .product-title,
  .product-float,
  .product-still {
    transition: none;
  }

  .product-list:has(.product-rail:hover) > :is(.product-list-bg, .product-title, .product-float, .product-still) {
    filter: none;
  }

  .product-hint {
    animation: none;
  }

  .product-details {
    transition: none;
  }
}

.detail-scene {
  position: absolute;
  left: 0;
  top: 28%;
  width: 100%;
  height: 72%;
  object-fit: cover;
  pointer-events: none;
}

.detail-glass {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  aspect-ratio: 2438 / 1482;
  width: min(81.6cqw, calc(69.73cqh * 2438 / 1482));
  height: auto;
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
}

.detail-glass img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.detail-scroll {
  display: contents;
}

.detail-sheet {
  display: contents;
}

.detail-panel {
  position: absolute;
  left: 12%;
  top: 27%;
  width: 76%;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(240px, 500px) minmax(240px, 500px);
  /* 右邊文字只同左邊相片嗰行對齊，垂直置中（唔再貼頂） */
  grid-template-areas: "name ." "photo copy";
  justify-content: center;
  column-gap: 6vw;
  row-gap: 12px;
}

.detail-name {
  grid-area: name;
  align-self: end;
  margin: 0;
  color: #575153;
  font-family: "House of Cards", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.8px;
}

.detail-photo {
  grid-area: photo;
  position: relative;
  width: min(500px, 42vh, 100%);
  aspect-ratio: 1;
  justify-self: center;
  align-self: center;
}

.detail-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.35s ease;
}

.detail-photo-alt {
  opacity: 0;
}

.detail-photo.is-swapped .detail-photo-base {
  opacity: 0;
}

.detail-photo.is-swapped .detail-photo-alt {
  opacity: 1;
}

.detail-photo.has-alt {
  cursor: pointer;
}

.detail-copy {
  grid-area: copy;
  align-self: center;
  padding-top: 0;
  text-align: left;
  color: #000;
}

.detail-text p {
  margin: 0 0 22px;
  font-family: "Noto Serif HK", serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 1.4px;
}

.detail-colors {
  display: grid;
  justify-items: left;
  gap: 6px;
  margin-bottom: 18px;
}

.detail-colors[hidden] {
  display: none;
}

.detail-swatches {
  display: flex;
  gap: 15px;
}

.detail-swatch {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #101820;
  background: #101820;
  cursor: pointer;
}

.detail-swatch-light {
  background: #fff;
}

.detail-swatch.is-active {
  outline: 1px solid #101820;
  outline-offset: 3px;
}

.detail-color-label,
.detail-buy span:last-child,
.detail-close span:last-child {
  margin: 0;
  font-family: "Noto Serif HK", serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 2.8px;
}

.detail-price {
  margin: 0 0 16px;
  font-family: "Noto Serif HK", serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 22px;
  letter-spacing: 2.4px;
}

.detail-buy,
.detail-close {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  cursor: pointer;
}

.detail-buy-mark {
  display: block;
  width: 50px;
  height: 50px;
  transition: transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .detail-buy:hover .detail-buy-mark,
  .detail-buy:focus-visible .detail-buy-mark {
    transform: translateY(2px) scale(0.94);
  }

  .detail-buy:active .detail-buy-mark {
    transform: translateY(3px) scale(0.9);
  }
}

.detail-close {
  position: absolute;
  left: 83.89%;
  top: 24.41%;
  z-index: 5;
  width: 100px;
}

.detail-close img {
  width: 35px;
  height: 40px;
  justify-self: center;
}

@media (max-width: 768px) {
  .product-details .detail-scene,
  .product-details .detail-glass,
  .product-details .product-float,
  .product-details .product-still {
    display: none;
  }

  .detail-scroll {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: #fff;
    padding-top: 8px;
  }

  .product-details .product-title {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin: 18px 0 28px;
    padding: 14px 12px 0;
    font-size: 56px;
    line-height: 1.2;
    color: #101820;
  }

  .detail-panel {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    margin: 0 31px;
    grid-template-columns: 1fr;
    grid-template-areas: "name" "photo" "copy";
    row-gap: 0;
  }

  .detail-name {
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: 0.6px;
    text-align: center;
  }

  .detail-photo {
    width: min(340px, 100%);
  }

  .detail-sheet {
    display: block;
    position: relative;
    min-height: 100%;
  }

  .detail-sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../img/detail-bg.jpg") center / cover no-repeat;
    pointer-events: none;
  }

  .detail-sheet > * {
    position: relative;
    z-index: 1;
  }

  .detail-copy {
    align-self: center;
    padding-top: 8px;
    padding-bottom: 0;
  }

  .detail-colors {
    margin-top: 18px;
    margin-bottom: 40px;
    justify-content: center;
  }

  .detail-price {
    margin-bottom: 29px;
    text-align: center;
  }

  .detail-close {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    display: grid;
    margin: 22px auto 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-photo img,
  .detail-buy-mark,
  .dealer-list,
  .dealer-card,
  .dealer-coin {
    transition: none;
  }

  .dealer-card:hover,
  .dealer-card:hover .dealer-coin {
    transform: none;
  }
}

.dealer-open {
  width: 380px;
  position: absolute;
  left: 50%;
  right: auto;
  /* 垂直置中：產品圖底（rail 32% + 2.4vh + 卡片）同右下 logo 頂（84.47%）之間 */
  top: calc((32% + 2.4vh + min(300px, 34vh) + 84.47%) / 2);
  translate: -50% -50%;
  z-index: 6;
  margin: 0;
  padding: 10px 30px;
  background: #ffffff;
  color: #000;
  cursor: pointer;
  font-family: "Noto Serif HK", serif;
  font-weight: 700;
  font-size: min(22px, 1.9vw);
  line-height: 1;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
  border: 1px solid #ffffff;
  transition: background 0.3s ease, color 0.3s ease;
}
.dealer-open:hover {
  background: #ffffffbe;
  color: #000;
  -ms-transform-origin-y: 1px;
}
.dealer-list {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: #fff;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.dealer-list.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0s linear 0s;
}

.dealer-title {
  top: 15.3%;
  font-family: "Noto Serif HK", serif;
  font-size: 32px;
  letter-spacing: 2px;
  font-weight: 700;
}

.dealer-list .detail-scene {
  filter: blur(12px);
  transform: scale(1.08);
}

.dealer-list .product-float-cat {
  left: 72.5%;
  top: 3.61%;
}

.dealer-list .product-still {
  left: 13.1%;
  top: 76.9%;
}

.product-list:has(.dealer-list.is-open) > .product-float-top,
.product-list:has(.dealer-list.is-open) > .product-float-cat,
.product-list:has(.dealer-list.is-open) > .product-still,
.product-list:has(.dealer-list.is-open) > .dealer-social,
.product-list:has(.product-details.is-open) > .dealer-social {
  opacity: 0;
  pointer-events: none;
}

.dealer-close {
  position: absolute;
  left: 83.89%;
  top: 15.2%;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  cursor: pointer;
}

.dealer-close img {
  width: 35px;
  height: 40px;
}

.dealer-close span {
  font-family: "Noto Serif HK", serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 2.8px;
}

.dealer-scroll {
  position: absolute;
  left: 12.85%;
  top: 24.8%;
  width: 76%;
  bottom: 4%;
  z-index: 4;
  overflow: auto;
  overscroll-behavior: contain;
}

.dealer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dealer-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  column-gap: 9px;
  align-items: center;
  min-height: 77px;
  padding: 8px 10px;
  background: #fff;
  color: #000;
  transition: background-color 0.28s ease, transform 0.28s ease;
}

.dealer-coin {
  width: 50px;
  height: 50px;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.35s ease, transform 0.35s ease;
}

@media (hover: hover) {
  .dealer-card:hover {
    background: #f6f1e6;
    transform: translateY(-2px);
  }

  .dealer-card:hover .dealer-coin {
    filter: grayscale(0);
    transform: rotate(-8deg) scale(1.06);
  }
}

.dealer-name {
  margin: 0 0 2px;
  font-family: "Noto Serif HK", serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0.28px;
}

.dealer-branch {
  font-size: 12px;
  letter-spacing: 0.24px;
}

.dealer-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 5px;
  align-items: start;
  margin: 0;
  color: #000;
  font-family: "Noto Serif HK", serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.6px;
  text-decoration: none;
}

.dealer-address-text {
  text-decoration: none;
  text-underline-offset: 2px;
}

.dealer-row img {
  width: 10px;
  height: 10px;
  margin-top: 1px;
}

.dealer-pin {
  width: 7px;
  justify-self: center;
}
.dealer-open:hover{
  color: #000;
  transition: color 0.18s ease;
}

/* Figma product_dealers_list 右下角：CHUMS logo + Facebook + Instagram
   （logo 100×45 @1071,865；fb 8×15.4 @1200,880；ig 20×20 @1235,878，frame 1440×1024） */
.dealer-social {
  position: absolute;
  left: 74.375%;
  top: 84.47%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 15px;
}

.dealer-social a {
  display: grid;
  place-items: center;
}

.dealer-social-logo img {
  width: 100px;
  height: 45px;
}

.dealer-social-icon {
  width: 36px;
  height: 36px;
}

.dealer-social-icon + .dealer-social-icon {
  margin-left: -10px;
}

.dealer-social-fb img {
  width: 8px;
  height: 15.4px;
}

.dealer-social-ig img {
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .dealer-social a {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .dealer-social a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
  }
}

@media (max-width: 768px) {
  .dealer-open {
    left: 50%;
    right: auto;
    top: auto;
    /* 32 底距 + 45 logo + 32 行距 + 36 icon + 64 同銷售點嘅空隙 */
    bottom: calc(124px + env(safe-area-inset-bottom, 0px));
    translate: -50% 0;
    margin: 0;
    text-align: center;
    z-index: 7;
    font-size: 22px;
    background: none;
  color: #ffffff;
  }
.dealer-open:hover {
  background: #ffffff;
  color: #000;
}
  .dealer-title {
    top: 78px;
  }

  .dealer-close {
    left: auto;
    right: 8px;
    top: 16px;
  }

  .dealer-scroll {
    left: 16px;
    right: 16px;
    width: auto;
    top: 150px;
    /* 留位俾底部 social bar：icon 行 + logo 行 + 80px bottom */
    bottom: calc(110px + env(safe-area-inset-bottom));
  }

  /* 手機版底部漸層：隔開 dealer scroll 內容同 social icons */
  .dealer-list::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    background: linear-gradient(to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.5) 40%,
      rgba(0, 0, 0, 0.82) 100%);
    pointer-events: none;
    z-index: 5; /* 低過 dealer-social (z-index:6) */
  }

  /* 手機版：紅色 logo 保持置中，fb、ig 放喺佢右手邊 */
  .dealer-social {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
.dealer-social-fb img {
    width: 8px;
    height: auto;
}
.dealer-social-ig img {
    width: 18px;
    height: auto;
}

  .dealer-social .dealer-social-logo {
    order: 0;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
  }

  .dealer-social .dealer-social-fb,
  .dealer-social .dealer-social-ig {
    position: absolute;
    top: 4.5px;
    margin: 0;
  }

  .dealer-social .dealer-social-fb {
    left: calc(50% + 66px);
  }

  .dealer-social .dealer-social-ig {
    left: calc(50% + 110px);
  }

  /* 手機版：取消桌面版負 margin，改用 gap 控制間距 */
  .dealer-social-icon + .dealer-social-icon {
    margin-left: 0;
  }

  .dealer-grid {
    grid-template-columns: 1fr;
  }

  .dealer-list .product-float-cat {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dealer-card,
  .dealer-coin {
    transition: none;
  }

  .dealer-card:hover,
  .dealer-card:hover .dealer-coin {
    transform: none;
  }
}
