/* RS Product Showcase 1.0.1｜已確認的首頁與產品列表樣式整合版 */
/* 區塊共用：字體沿用網站已載入的 Lexend，不向外部字型服務發送請求。 */
.rs_showcase{--rs_gap:24px;font-family:Lexend,sans-serif;width:100%;min-width:0;position:relative;box-sizing:border-box}
.rs_showcase *{box-sizing:border-box}
.rs_showcase [hidden]{display:none!important}
.rs_showcase a{text-decoration:none}
.rs_showcase button{font-family:inherit;cursor:pointer;text-transform:none;letter-spacing:normal}
.rs_showcase a:focus-visible,.rs_showcase button:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.rs_product_filters{display:flex;justify-content:center;overflow-x:auto;gap:0;margin:0 auto 60px;max-width:850px;scrollbar-width:thin}
.rs_product_filters a{flex:0 0 33.333%;text-align:center;padding:20px 12px;color:#777;border-bottom:2px solid #bbb;text-transform:uppercase;font-size:14px;line-height:1.6;display:flex;align-items:center;justify-content:center}
.rs_product_filters a[aria-current=true]{color:#0b0b0b;border-color:#0b0b0b}
.rs_product_carousel{background:#f2f2f2;padding:40px 32px 48px;color:#0b0b0b;overflow:hidden}
.rs_product_cards{display:grid;gap:var(--rs_gap);grid-template-columns:repeat(3,minmax(0,1fr))}
.rs_product_card{min-width:0;background:#fff;border-radius:18px;overflow:hidden;margin:0}
.rs_product_media{position:relative;isolation:isolate;aspect-ratio:1.5;display:flex;align-items:center;justify-content:center;padding:20px}
/* 圖片後方光暈；PNG 圖片仍由精選圖片提供。 */
.rs_product_media:before{content:"";position:absolute;inset:24% 18%;border-radius:50%;background:radial-gradient(ellipse,#a8c8f5a8,transparent 70%);filter:blur(16px);z-index:-1}
.rs_showcase .rs_product_image{width:100%;height:100%;max-height:340px;object-fit:contain;display:block}
.rs_product_placeholder{font-size:14px;color:#888}
.rs_product_copy{padding:22px 28px 30px}
.rs_showcase .rs_product_category{font-size:11px;line-height:1.5;text-transform:uppercase;margin:0 0 12px;color:inherit}
.rs_showcase .rs_product_title{font-family:inherit;font-size:24px;font-weight:500;line-height:1.3;margin:0 0 20px;color:inherit;overflow-wrap:anywhere}
.rs_product_summary{font-size:15px;line-height:1.7;color:#555;margin-bottom:24px;overflow-wrap:anywhere}
.rs_product_summary p{margin:0 0 12px}.rs_product_summary a{color:inherit;text-decoration:underline}
.rs_showcase .rs_product_more{display:flex;align-items:center;justify-content:space-between;gap:28px;background:#090909;color:white;border-radius:6px;padding:16px 20px;width:min(100%,220px);font-size:13px}
.rs_product_carousel.rs_is_ready .rs_product_cards{display:grid;grid-template-columns:1fr;gap:0;max-width:1280px;margin:auto}
.rs_is_ready .rs_product_card{grid-area:1/1;justify-self:center;align-self:center;transition:transform .45s ease,opacity .45s ease;z-index:1}
.rs_is_ready .rs_product_card[data-rs-position=center]{z-index:2;transform:translateX(0)}
.rs_is_ready .rs_product_card[data-rs-position=left]{cursor:pointer}
.rs_is_ready .rs_product_card[data-rs-position=right]{cursor:pointer}
.rs_is_ready .rs_product_card:not([data-rs-position=center]) .rs_product_detail{display:none}
.rs_product_stage{position:relative}
.rs_product_arrows{position:absolute;top:48%;left:0;right:0;display:flex;justify-content:space-between;pointer-events:none;z-index:3}
.rs_showcase .rs_product_arrows button{pointer-events:auto;border:0;border-radius:50%;width:48px;height:48px;background:#fff;color:#111;font-size:26px;padding:0;box-shadow:0 2px 14px #0001}
.rs_product_dots{display:flex;justify-content:center;gap:12px;margin-top:32px}
.rs_showcase .rs_product_dots button{width:11px;height:11px;min-height:0;padding:0;border:0;border-radius:50%;background:#b8b8b8;position:relative}
.rs_product_dots button:before{content:"";position:absolute;inset:-8px}
.rs_showcase .rs_product_dots button[aria-current=true]{background:#111}
.rs_product_empty{text-align:center;padding:60px 20px}
.rs_product_status{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rs_showcase[aria-busy=true]{opacity:.6;pointer-events:none}
/* 商品列表：桌面三欄、平板兩欄、手機一欄。 */
.rs_product_grid{background:#090909;color:white;padding:0 0 32px}
.rs_product_grid .rs_product_filters{max-width:100%;margin-bottom:40px;gap:24px;justify-content:flex-start}
.rs_product_grid .rs_product_filters a{flex:0 0 auto;border:0;padding:14px 4px;color:#aaa}
.rs_product_grid .rs_product_filters a[aria-current=true]{color:white}
.rs_product_grid .rs_product_card{background:#111;border-radius:0;display:flex;flex-direction:column}
.rs_product_grid .rs_product_media{aspect-ratio:1.05;padding:32px}
.rs_product_grid .rs_product_copy{display:flex;flex-direction:column;flex:1;padding:20px 32px 36px}
.rs_product_grid .rs_product_title{font-size:24px;margin-bottom:30px}
.rs_product_grid .rs_product_category{color:#ccc}
.rs_product_plus{margin-top:auto;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#fff;color:#111;font-size:26px;line-height:1}
.rs_product_pages{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:36px}
.rs_product_pages a,.rs_product_pages span{display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;color:white;padding:6px}
.rs_product_pages [aria-current=page]{background:white;color:#111;border-radius:4px}
.rs_product_pages [aria-disabled=true]{opacity:.3}
@media(min-width:768px) and (max-width:1024px){.rs_product_grid .rs_product_cards{grid-template-columns:repeat(2,minmax(0,1fr))}.rs_showcase .rs_product_title{font-size:21px}.rs_product_carousel{padding-inline:20px}.rs_product_copy{padding:18px}}
@media(max-width:767px){.rs_product_carousel{padding:20px 20px 36px}.rs_product_filters{justify-content:flex-start;margin-bottom:40px}.rs_product_filters a{font-size:14px;min-width:33.333%;padding:16px 8px}.rs_product_cards{grid-template-columns:1fr}.rs_is_ready .rs_product_card{width:90%;overflow:visible}.rs_is_ready .rs_product_card[data-rs-position=left]{transform:translateX(-110%) scale(.85)}.rs_is_ready .rs_product_card[data-rs-position=right]{transform:translateX(110%) scale(.85)}.rs_product_copy{padding:20px 22px 28px}.rs_showcase .rs_product_title{font-size:26px}.rs_product_summary{font-size:16px;line-height:1.6}.rs_product_media{aspect-ratio:1.6}.rs_product_arrows{left:-10px;right:-10px}.rs_product_grid .rs_product_cards{grid-template-columns:1fr}.rs_product_grid .rs_product_media{aspect-ratio:1.3}}
@media(prefers-reduced-motion:reduce){.rs_showcase *{transition:none!important;scroll-behavior:auto!important}}

/* 01｜分類維持水平捲動，隱藏桌面／手機捲軸。 */
.rs_showcase.rs_product_carousel .rs_product_filters {
  position: relative;
  z-index: 10;
  justify-content: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}
/* 圖片放大後的透明區域不可攔截分類列；輪播整體位於分類列下層。 */
.rs_showcase.rs_product_carousel .rs_product_stage {
  position: relative;
  z-index: 0;
}
.rs_showcase.rs_product_carousel .rs_product_image {
  pointer-events: none;
}
.rs_showcase.rs_product_carousel .rs_product_filters.rs_is_dragging { cursor: grabbing; }
.rs_showcase.rs_product_carousel .rs_product_filters::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.rs_showcase.rs_product_carousel .rs_product_filters a {
  flex: 0 0 33.333333%;
  min-width: 0;
  white-space: normal;
  touch-action: pan-x pan-y;
  -webkit-user-drag: none;
}

/* 02｜桌面／平板：側卡為中央寬度的 60%，可見邊緣間距固定 43px。 */
@media (min-width: 768px) {
  .rs_showcase.rs_product_carousel .rs_product_stage {
    max-width: 1280px;
    margin-inline: auto;
  }
  .rs_showcase.rs_product_carousel.rs_is_ready .rs_product_card {
    /* 兩側各 0.6 × 中央寬度，加上兩個 43px 間距。 */
    width: calc(45.454545% - 39.090909px);
    transform-origin: center;
    display: flex;
    flex-direction: column;
  }
  .rs_showcase.rs_product_carousel.rs_is_ready .rs_product_card[data-rs-position="center"] {
    transform: translateX(0) scale(1);
  }
  .rs_showcase.rs_product_carousel.rs_is_ready .rs_product_card[data-rs-position="left"] {
    transform: translateX(calc(-133.333333% - 43px));
  }
  .rs_showcase.rs_product_carousel.rs_is_ready .rs_product_card[data-rs-position="right"] {
    transform: translateX(calc(133.333333% + 43px));
  }
  /* 側卡改用真實寬度，不縮放整張卡片，避免字體和高度一起縮小。 */
  .rs_showcase.rs_product_carousel.rs_is_ready .rs_product_card[data-rs-position="left"],
  .rs_showcase.rs_product_carousel.rs_is_ready .rs_product_card[data-rs-position="right"] {
    width: calc(27.272727% - 23.454545px);
    min-height: clamp(340px, 32vw, 440px);
    opacity: 1;
    background: #f9f9f9;
  }
  .rs_showcase.rs_product_carousel .rs_product_media {
    aspect-ratio: auto;
    height: clamp(210px, 23vw, 300px);
    padding: 0;
    flex-shrink: 0;
  }
  .rs_showcase.rs_product_carousel .rs_product_image {
    object-fit: contain;
    transform: scale(1.65);
  }
  .rs_showcase.rs_product_carousel .rs_product_copy { position: relative; }
  .rs_showcase.rs_product_carousel .rs_product_card:not([data-rs-position="center"]) .rs_product_copy {
    padding: 24px 20px 28px;
    margin-top: auto;
  }
  .rs_showcase.rs_product_carousel .rs_product_card:not([data-rs-position="center"]) .rs_product_title {
    font-size: 18px;
    margin-bottom: 0;
  }
  .rs_showcase.rs_product_carousel .rs_product_arrows {
    left: -16px;
    right: -16px;
  }
}

/* 03｜手機：放大 PNG，向上突出卡片；上方保留空間避免被區塊裁切。 */
@media (max-width: 767px) {
  .rs_showcase.rs_product_carousel {
    --rs_mobile_image_scale: 1.7;
    --rs_mobile_image_lift: -64px;
  }
  .rs_showcase.rs_product_carousel .rs_product_filters {
    margin-bottom: 76px;
  }
  .rs_showcase.rs_product_carousel.rs_is_ready .rs_product_card {
    overflow: visible;
  }
  .rs_showcase.rs_product_carousel .rs_product_media {
    aspect-ratio: auto;
    height: clamp(180px, 52vw, 260px);
    padding: 0;
    overflow: visible;
  }
  .rs_showcase.rs_product_carousel .rs_product_image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    transform: translateY(var(--rs_mobile_image_lift)) scale(var(--rs_mobile_image_scale));
    transform-origin: center;
  }
  .rs_showcase.rs_product_carousel .rs_product_media::before {
    inset: 0 8% 18%;
    transform: translateY(-24px);
  }
}

/* 04｜產品列表手機分類：單行、文字間距 20px、原生水平滑動。 */
@media (max-width: 767px) {
  .rs_showcase.rs_product_grid .rs_product_filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .rs_showcase.rs_product_grid .rs_product_filters a {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
    padding-inline: 0;
  }
  .rs_showcase.rs_product_grid .rs_product_filters::-webkit-scrollbar {
    display: none;
  }
}

/* 05｜首頁輪播：置中卡片產品圖破框（2026-10-13 依設計稿加強）
 * 設計稿（1440）：置中卡片 544 寬，產品圖框 463×460 正方形、上緣 -49px，產品明顯超出卡片上緣。
 * 做法：圖片框為正方形，底部對齊圖片區底部；置中卡片的方框放大到圖片區高度的 148%，
 * 現有素材（產品四周約留 19%，如黑色 Vapor-Pad）會往上破框約 40px（手機）～60px（桌機）。
 * 素材規格：1200×1200 去背 PNG，構圖比照黑色 Vapor-Pad，產品置中、四周留約 18–20%。
 * 用 !important 是為了蓋過「自訂 CSS」裡 #rs_showcase_home 的舊設定（transform:none）。 */
.rs_showcase.rs_product_carousel.rs_is_ready {
  --rs_img_side: 100%;
  --rs_img_center: 148%;
  --rs_img_bottom: 0px;
}
.rs_showcase.rs_product_carousel.rs_is_ready .rs_product_card[data-rs-position="center"] {
  overflow: visible;
}
.rs_showcase.rs_product_carousel.rs_is_ready .rs_product_media {
  position: relative;
  overflow: visible;
}
.rs_showcase.rs_product_carousel.rs_is_ready .rs_product_image {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto !important;
  height: var(--rs_img_side);
  max-width: none;
  max-height: none !important;
  aspect-ratio: 1 / 1;
  object-fit: contain !important;
  transform: translateX(-50%) !important;
  transition: height .45s ease, bottom .45s ease;
}
.rs_showcase.rs_product_carousel.rs_is_ready .rs_product_card[data-rs-position="center"] .rs_product_image {
  height: var(--rs_img_center);
  bottom: var(--rs_img_bottom);
}
/* 破框後與上方分類列保留距離 */
.rs_showcase.rs_product_carousel .rs_product_filters {
  margin-bottom: 96px;
}
@media (max-width: 767px) {
  .rs_showcase.rs_product_carousel .rs_product_filters {
    margin-bottom: 72px;
  }
  .rs_showcase.rs_product_carousel .rs_product_media::before {
    transform: none;
  }
}
