* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", sans-serif;
  background: #fff;
}
html, body {
  height: 100dvh;
  overflow: hidden;
}
.product-wrapper {
  height: 100vh;
  display: flex;
}
.site-logo {
  position: fixed;
  top: 24px;
  left: 32px;
  z-index: 100;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.item-brand {
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ===== PC ===== */
@media (min-width: 1024px) {
  .product-wrapper {
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    padding-left: 15vw;
  }
  .product-wrapper > .info-area,
  .product-wrapper > .media-area {
    height: 82vh;
  }
  .info-area {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .item-name {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .item-price {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .cta {
    width: 100%;
    padding: 12px;
    text-align: center;
    border: 1px solid #111;
    text-decoration: none;
    color: #111;
    margin-top:0;
  }
  .media-area {
    width: 350px;
    position: relative;
    overflow: visible;
  }
  .photo-swiper {
    width: 100%;
    height: 100%;
  }
  .photo-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .thumb-area {
    position: absolute;
    right: -100px;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .thumb-area::-webkit-scrollbar {
    display: none;
  }
  .thumb {
    width: 70px;
    cursor: pointer;
    border: 1px solid transparent;
    flex-shrink: 0;
  }
  .thumb img {
    width: 100%;
    display: block;
  }
  .thumb.active {
    border-color: #111;
  }
} /* ← PC media query 在這裡關閉 */

/* ===== SP ===== */
@media (max-width: 1023px) {
  .product-wrapper {
    position: relative;
    overflow: hidden;
    height: 100dvh; /* 確保容器高度撐滿 */
  }
  .media-area {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;  /* 強制寬度 */
    height: 100%; /* 強制高度 */
  }
  .photo-swiper {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden; /* 防止 slide 溢出 */
  }
  .photo-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .info-area {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 18px;
    width: calc(100% - 24px);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 16px;
  }
  .item-name {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .item-price {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .cta {
    display: block;
    text-align: center;
    padding: 12px;
    background: #000;
    color: #fff;
    text-decoration: none;
  }
  .thumb-area {
    display: none;
  }

/* 手機版專用：放大 hotspot 觸控區，方便手指點擊 */
  .hotspot-ring {
    width: 16px !important;  /* 手機版白點放大到 16px */
    height: 16px !important;
  }
  
  /* 擴大透明的觸摸範圍，讓手指好按 */
  .hotspot-dot {
    padding: 15px; 
  }

  /* 手機版小卡片專用定位 */
  .hotspot-card {
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    bottom: 24px !important; /* 改在小圓點上方跳出，多留點間距避開下方大卡片 */
    white-space: normal !important;
    min-width: 150px;
    max-width: 200px;
  }

  /* 核心修正：讓手機版在點擊點點（active）或是卡片本身時，持續維持顯示不閃退 */
  .hotspot-dot:active .hotspot-card,
  .hotspot-card:active {
    opacity: 1 !important;
    visibility: visible !important;
  }
} /* ← SP media query 在這裡關閉 */

/* ===== Hotspot ===== */
.media-area {
  position: relative;
}
.hotspot-dot {
  position: absolute;
  z-index: 20;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.hotspot-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
 
  cursor: pointer;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(0,0,0,0); }
}
.hotspot-card {

  position: absolute;
  left: 20px;
  top: -8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.6;

/* 核心修改：預設隱藏並設定消失時的延遲 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  transition-delay: 0.3s; /* 滑鼠移開後，卡片會卡在畫面上 0.4 秒才開始消失 */
}

/* 2. 當滑鼠移上去時，立刻顯現（不要延遲） */
.hotspot-dot:hover .hotspot-card {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s; /* 移入時秒開，不用等 */
}


}
.hotspot-dot:hover .hotspot-card {
  display: block;
}
.hotspot-card a {
  display: block;
  color: #ccc;
  font-size: 11px;
  text-decoration: underline;
  margin-top: 4px;
}

/* ===================================================
   【新增】左右與上下滑動提示標示樣式（極簡純箭頭版）
   =================================================== */

/* 1. 左右切換相簿箭頭（已移除白色圓背景，只留純箭頭） */
.swiper-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15; /* 高於 Swiper，低於 Hotspot */
  
  /* 移除圓形背景與邊框 */
  width: auto;
  height: auto;
  background: none;
  backdrop-filter: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* 放大純箭頭尺寸，並加上細緻的文字陰影確保辨識度 */
  color: #111;
  font-size: 36px; 
  font-family: sans-serif;

  
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  opacity: 0.5; /* 預設半透明，不搶走服飾焦點 */
}

/* 滑鼠移入或手指觸碰時，純箭頭會微微放大並變亮 */
.swiper-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* 核心修改 1：完全隱藏左側箭頭 */
.swiper-arrow.arrow-left {
  display: none !important;
}

.arrow-right { right: 16px; }

/* 2. 右側上下滑動商品提示（整體容器） */
.scroll-hint {
  position: absolute;
  right: -18px; /* 在 PC 版會優雅地懸浮在大圖與縮圖之間 */
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #111;
  font-family: sans-serif;
  user-select: none;
  pointer-events: none; /* 隱形不擋住後面的點擊 */
}

.hint-text {
  font-size: 9px;
  letter-spacing: 0.15em;
  font-weight: 500;
  writing-mode: vertical-lr; /* 讓文字垂直排列，極具日系雜誌感 */
  margin: 8px 0;
  opacity: 0.5;
}

.hint-arrow {
  font-size: 14px;
  opacity: 0.6;
  animation: hintBounce 2s infinite ease-in-out;
}

/* 讓箭頭反向跳動，形成拉伸感 */
.hint-up { animation-delay: 0s; }
.hint-down { animation-delay: 1s; }

/* 上下滑動提示的呼吸動態 */
@keyframes hintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(4px); opacity: 0.9; }
}

/* 3. 手機版 (SP) 專屬微調 */
@media (max-width: 1023px) {
  /* 手機版移除背景，改用稍小的純箭頭，並將陰影優化以適應滿版照片 */
  .swiper-arrow {
    width: auto;
    height: auto;
    background: none;
    font-size: 32px;
    opacity: 0.4;
   
  }
 .swiper-arrow.arrow-left {
    display: none !important;
  }
  .arrow-right { right: 12px; }

  /* 手機版沒有右邊界，所以把上下滑動提示移入大圖內部右側 */
  .scroll-hint {
    left: 12px !important;
	right:auto !important;
    color: #fff; /* 手機版背景多為暗色穿搭照，改用白色文字突顯 */
   
  }
  .hint-arrow { color: #fff; }
}