@charset "UTF-8";

.tpl-scope-product_detail {
  background: #FFFFFF;
  color: #111827;
}

.tpl-scope-product_detail .tpl-grid {
  display: grid;
  gap: 24px;
}

.tpl-scope-product_detail .tpl-pdp-hero {
  padding: 60px 0 80px;
}

.tpl-scope-product_detail .tpl-pdp-hero-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 56px;
  align-items: start;
}

.tpl-scope-product_detail .tpl-pdp-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 600;
  background: #14181F;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
}

.tpl-scope-product_detail .tpl-pdp-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.tpl-scope-product_detail .tpl-pdp-zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.75);
  color: #FFFFFF;
  pointer-events: none;
}

.tpl-scope-product_detail .tpl-pdp-gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.tpl-scope-product_detail .tpl-pdp-thumb {
  width: 84px;
  height: 84px;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #14181F;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.25s ease;
}

.tpl-scope-product_detail .tpl-pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.tpl-scope-product_detail .tpl-pdp-thumb:hover {
  border-color: #FFCC99;
}

.tpl-scope-product_detail .tpl-pdp-thumb.tpl-active {
  border-color: #FF8800;
}

.tpl-scope-product_detail .tpl-pdp-title {
  font-size: 30px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 16px;
  line-height: 1.3;
}

.tpl-scope-product_detail .tpl-pdp-item-no {
  font-size: 14px;
  color: #de8700;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.tpl-scope-product_detail .tpl-pdp-intro {
  font-size: 15px;
  line-height: 1.8;
  color: #5a6270;
  margin: 0 0 24px;
}

.tpl-scope-product_detail .tpl-pdp-spec-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  border-top: 1px solid #EAECEF;
}

.tpl-scope-product_detail .tpl-pdp-spec-item {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #EAECEF;
  font-size: 18px;
  line-height: 1.85;
}

.tpl-scope-product_detail .tpl-pdp-cta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: end;
}

.tpl-scope-product_detail .btn-inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  border-radius: 4px;
  background: #FF8800;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border: 2px solid #FF8800;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tpl-scope-product_detail .btn-inquiry:hover {
  background: #E67A00;
  border-color: #E67A00;
}

.tpl-scope-product_detail .tpl-pdp-content-section {
  padding: 0 0 80px;
  border-top: 1px solid #EAECEF;
}

.tpl-scope-product_detail .tpl-pdp-content {
  margin: 0 auto;
  padding-top: 60px;
  font-size: 18px;
  line-height: 1.85;
  color: #3A4150;
}

.tpl-scope-product_detail .tpl-pdp-content img {
  max-width: 100%;
  height: auto;
}

.tpl-scope-product_detail .tpl-pdp-tabs-section {
  padding: 0 0 90px;
}

.tpl-scope-product_detail .tpl-pdp-panel-block {
  margin-bottom: 60px;
}

.tpl-scope-product_detail .tpl-pdp-panel-block:last-child {
  margin-bottom: 0;
}

.tpl-scope-product_detail .tpl-pdp-panel-title {
  font-size: 24px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 30px;
  position: relative;
  padding-left: 18px;
}

.tpl-scope-product_detail .tpl-pdp-panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 20px;
  background: #FF8800;
  border-radius: 2px;
}

/* ===== 適用刀具 ===== */

.tpl-scope-product_detail .tpl-pdp-tools-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.tpl-scope-product_detail .tpl-pdp-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  border: 1px solid #EAECEF;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.tpl-scope-product_detail .tpl-pdp-tool-item:hover {
  border-color: #FF8800;
  transform: translateY(-4px);
}

.tpl-scope-product_detail .tpl-pdp-tool-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF8800;
}

.tpl-scope-product_detail .tpl-pdp-tool-icon svg {
  width: 100%;
  height: 100%;
}

.tpl-scope-product_detail .tpl-pdp-tool-label {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  line-height: 1.4;
}

/* ===== 特色卡片 ===== */

.tpl-scope-product_detail .tpl-pdp-feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tpl-scope-product_detail .tpl-card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tpl-scope-product_detail .tpl-pdp-feature-card {
  border: 1px solid #EAECEF;
  border-radius: 4px;
  padding: 30px 26px;
}

.tpl-scope-product_detail .tpl-pdp-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 26px rgba(17, 24, 39, 0.08);
}

.tpl-scope-product_detail .tpl-pdp-feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FFF1E0;
  color: #FF8800;
  margin-bottom: 20px;
}

.tpl-scope-product_detail .tpl-pdp-feature-title {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 10px;
}

.tpl-scope-product_detail .tpl-pdp-feature-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #5a6270;
  margin: 0;
}

/* ===== 圖紙客製流程 ===== */

.tpl-scope-product_detail .tpl-pdp-process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.tpl-scope-product_detail .tpl-pdp-process-step {
  border-left: 3px solid #FF8800;
  padding-left: 20px;
}

.tpl-scope-product_detail .tpl-pdp-process-num {
  display: block;
  font-size: 36px;
  font-weight: bold;
  color: #FF8800;
  margin-bottom: 12px;
  line-height: 1;
}

.tpl-scope-product_detail .tpl-pdp-process-title {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 8px;
}

.tpl-scope-product_detail .tpl-pdp-process-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #5a6270;
  margin: 0;
}

/* ===== 詢價區塊 ===== */

.tpl-scope-product_detail .tpl-pdp-inquiry-cta {
  margin-top: 50px;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "text contacts btn";
  align-items: center;
  gap: 40px;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-text {
  grid-area: text;
  position: relative;
  z-index: 1;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-title {
  font-size: 23px;
  font-weight: 900;
  color: #000000;
  margin: 0 0 8px;
  line-height: 1.5;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #9c9992;
  margin: 0;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contacts {
  grid-area: contacts;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 14px 32px;
  padding-left: 40px;
  border-left: 1px solid #DCDCDC;
  position: relative;
  z-index: 1;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #111827;
  text-decoration: none;
  transition: color 0.25s ease;
}

.tpl-scope-product_detail button.tpl-pdp-inquiry-contact {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #111827;
  -webkit-text-fill-color: currentColor;
  opacity: 1;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #FFF1E0;
  color: #FF8800;
  transition: background 0.25s ease, color 0.25s ease;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact:hover {
  color: #FF8800;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact:hover .tpl-pdp-inquiry-contact-icon {
  background: #FF8800;
  color: #FFFFFF;
}

/* 社群品牌色：LINE */
.tpl-scope-product_detail .tpl-pdp-inquiry-contact--line .tpl-pdp-inquiry-contact-icon {
  background: #d6f0e1;
  color: #06C755;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact--line .tpl-ico-cut {
  fill: #E6F9EE;
  transition: fill 0.25s ease;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact--line:hover {
  color: #06C755;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact--line:hover .tpl-pdp-inquiry-contact-icon {
  background: #06C755;
  color: #FFFFFF;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact--line:hover .tpl-ico-cut {
  fill: #06C755;
}

/* 社群品牌色：WeChat */
.tpl-scope-product_detail .tpl-pdp-inquiry-contact--wechat .tpl-pdp-inquiry-contact-icon {
  background: #d6f0e1;
  color: #07C160;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact--wechat .tpl-ico-cut {
  fill: #E6F8EE;
  transition: fill 0.25s ease;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact--wechat:hover {
  color: #07C160;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact--wechat:hover .tpl-pdp-inquiry-contact-icon {
  background: #07C160;
  color: #FFFFFF;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact--wechat:hover .tpl-ico-cut {
  fill: #07C160;
}

/* WeChat 複製提示 */
.tpl-scope-product_detail .tpl-pdp-inquiry-copied {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  padding: 6px 12px;
  border-radius: 4px;
  background: #111827;
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-contact.tpl-copied .tpl-pdp-inquiry-copied {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tpl-scope-product_detail .tpl-pdp-inquiry-btn {
  grid-area: btn;
  justify-self: end;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 16px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-btn svg {
  animation: tplArrowBounce 1.4s ease-in-out infinite;
}

.tpl-scope-product_detail .tpl-pdp-inquiry-btn:hover svg {
  animation-duration: 0.6s;
}

@keyframes tplArrowBounce {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

/* ===== 共用按鈕 ===== */

.tpl-scope-product_detail .tpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.tpl-scope-product_detail .tpl-btn-outline {
  background: transparent;
  color: #111827;
  border-color: #E2E5EA;
}

.tpl-scope-product_detail .tpl-btn-outline:hover {
  background: #111827;
  border-color: #111827;
  color: #FFFFFF;
}

.tpl-scope-product_detail .tpl-btn-primary {
  background: #FF8800;
  color: #FFFFFF;
  border-color: #FF8800;
}

.tpl-scope-product_detail .tpl-btn-primary:hover {
  background: #E67A00;
  border-color: #E67A00;
}

/* ===== 上一個／下一個 ===== */

.tpl-scope-product_detail .tpl-pdp-prevnext-section {
  padding: 0 0 70px;
}

.tpl-scope-product_detail .tpl-pdp-prevnext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #EAECEF;
  padding-top: 30px;
}

.tpl-scope-product_detail .tpl-pdp-prevnext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  transition: color 0.3s ease;
}

.tpl-scope-product_detail .tpl-pdp-prevnext-link:hover {
  color: #FF8800;
}

.tpl-scope-product_detail .tpl-pdp-prevnext-prev {
  justify-self: start;
}

.tpl-scope-product_detail .tpl-pdp-prevnext-next {
  justify-self: end;
  margin-left: 0;
}

.tpl-scope-product_detail .tpl-pdp-back-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border: 2px solid #E2E5EA;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  justify-self: center;
}

.tpl-scope-product_detail .tpl-pdp-back-list-btn:hover {
  background: #111827;
  border-color: #111827;
  color: #FFFFFF;
}

/* ===== 圖片燈箱 ===== */

.tpl-scope-product_detail .tpl-pdp-zoom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.tpl-scope-product_detail .tpl-pdp-zoom-backdrop.tpl-active {
  opacity: 1;
  visibility: visible;
}

.tpl-scope-product_detail .tpl-pdp-zoom-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.tpl-scope-product_detail .tpl-pdp-zoom-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.25s ease;
}

.tpl-scope-product_detail .tpl-pdp-zoom-close:hover {
  background: #FF8800;
}

/* ===== 放大鏡（桌機 hover） ===== */

.tpl-scope-product_detail .tpl-pdp-gallery-main {
  position: relative;
  cursor: crosshair;
  overflow: visible;
}

.tpl-scope-product_detail .tpl-pdp-zoom-lens {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid #FF8800;
  background-color: rgba(255, 136, 0, 0.2);
  pointer-events: none;
  display: none;
  z-index: 10;
}

.tpl-scope-product_detail .tpl-pdp-zoom-window {
  position: absolute;
  top: 0;
  left: 100%;
  width: 80%;
  height: 90%;
  border: 1px solid #EAECEF;
  background-color: #14181F;
  background-repeat: no-repeat;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 99;
  border-radius: 4px;
}

/* ===== RWD ===== */

@media (min-width: 992px) {
  .tpl-scope-product_detail .tpl-pdp-zoom-hint {
    display: none;
  }
}

@media (max-width: 1399px) {
  .tpl-scope-product_detail .tpl-pdp-inquiry-box {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "text text"
      "contacts btn";
    gap: 24px 40px;
  }

  .tpl-scope-product_detail .tpl-pdp-inquiry-text {
    padding-bottom: 24px;
    border-bottom: 1px solid #DCDCDC;
  }

  .tpl-scope-product_detail .tpl-pdp-inquiry-contacts {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 14px 36px;
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 991px) {
  .tpl-scope-product_detail .tpl-pdp-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tpl-scope-product_detail .tpl-pdp-tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tpl-scope-product_detail .tpl-pdp-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tpl-scope-product_detail .tpl-pdp-process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .tpl-scope-product_detail .tpl-pdp-gallery-main {
    cursor: zoom-in;
  }

  .tpl-scope-product_detail .tpl-pdp-zoom-lens,
  .tpl-scope-product_detail .tpl-pdp-zoom-window {
    display: none !important;
  }

  .tpl-scope-product_detail .tpl-pdp-zoom-hint {
    display: flex;
  }

  .tpl-scope-product_detail .tpl-pdp-inquiry-btn {
    width: 100%;
    justify-self: stretch;
    justify-content: center;
  }

  .tpl-scope-product_detail .tpl-pdp-inquiry-contacts {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
  }

  .tpl-scope-product_detail .tpl-pdp-inquiry-box {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "contacts"
      "btn";
    gap: 24px;
    text-align: center;
    padding: 32px 24px;
  }
}

@media (max-width: 767px) {
  .tpl-scope-product_detail .tpl-pdp-hero {
    padding: 36px 0 50px;
  }

  .tpl-scope-product_detail .tpl-pdp-title {
    font-size: 24px;
  }

  .tpl-scope-product_detail .tpl-pdp-content-section,
  .tpl-scope-product_detail .tpl-pdp-tabs-section {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .tpl-scope-product_detail .tpl-pdp-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tpl-scope-product_detail .tpl-pdp-feature-grid,
  .tpl-scope-product_detail .tpl-pdp-process-grid {
    grid-template-columns: 1fr;
  }

  .tpl-scope-product_detail .tpl-pdp-cta-box {
    flex-direction: column;
  }

  .tpl-scope-product_detail .btn-inquiry,
  .tpl-scope-product_detail .tpl-pdp-btn-secondary {
    width: 100%;
  }

  .tpl-scope-product_detail .tpl-pdp-inquiry-text {
    padding-bottom: 0;
    border-bottom: none;
  }

  .tpl-scope-product_detail .tpl-pdp-inquiry-contacts {
    display: grid;
    grid-template-columns: auto;
    justify-content: center;
    justify-items: start;
    gap: 14px;
    padding-left: 0;
    padding-top: 24px;
    border-left: none;
    border-top: 1px solid #DCDCDC;
  }

  .tpl-scope-product_detail .tpl-pdp-prevnext {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
  }

  .tpl-scope-product_detail .tpl-pdp-prevnext-prev,
  .tpl-scope-product_detail .tpl-pdp-prevnext-next {
    justify-self: center;
  }

  .tpl-scope-product_detail .tpl-pdp-back-list-btn {
    order: -1;
  }

  .tpl-scope-product_detail .tpl-pdp-zoom-backdrop {
    padding: 20px;
  }

  .tpl-scope-product_detail .tpl-pdp-zoom-close {
    top: 16px;
    right: 16px;
  }
}