.product-detail-page .products-page__panel {
  padding: 40px 48px 64px;
  border-radius: 56px 56px 0 0;
}

/* ---------------- product-detail__intro---------------- */
.product-detail__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}

.product-gallery__main {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background-color: #dcdae2;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity .2s ease;
}

.product-gallery__dots {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 18px;
  margin: 14px 0;
  height: 100%;
  padding-bottom: 1.5rem;
}

.product-gallery__dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: #d9d9d9;
  padding: 0;
  cursor: pointer;
}

.product-gallery__dots button.is-active {
  background: #4d4a49;
  border-radius: 50%;
  transition: width .2s ease;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 5px;
}

.product-gallery__thumbs button {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 1px solid transparent;
  background-color: #ececef;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  padding: 0;
  transition: border-color .2s ease;
}

.product-gallery__thumbs button.is-active {
  border-color: #eee;
}

.product-gallery__thumb--placeholder {
  position: relative;
}


.product-detail__name {
  font-size: 30px;
  font-weight: 500;
  color: #4d4a49;
  line-height: 1.4;
  margin: 0 0 24px;
}

.product-detail__name span {
  display: block;
  font-weight: 300;
}

.product-detail__info p {
  font-size: 16px;
  line-height: 1.9;
  color: #6b6b6b;
  margin: 0;
}

/* ---------------- 灰底特色區塊 ---------------- */
.product-detail__feature-block {
  background: #e3e4ea;
  border-radius: 56px 56px 0 0;
  padding: 100px 48px 150px;
  z-index: 32;
  position: relative;
  margin-top: -3rem;
}

.product-detail__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.product-detail__two-col:last-of-type {
  margin-bottom: 32px;
}

.product-detail__two-col--reverse .product-detail__text {
  order: 1;
}

.product-detail__two-col--reverse .product-detail__media {
  order: 2;
}

.product-detail__two-col h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.product-detail__two-col p,
.product-detail__paragraph {
  font-size: 16px;
  line-height: 1.9;
  color: #6b6b6b;
  margin: 0;
}

.product-detail__paragraph {
  padding-top: 32px;
  border-top: 1px solid #e2e2e2;
}

.product-detail__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}


/* ---------------- 規格區塊 ---------------- */
.product-detail__spec-block {
  background-color: #fff;
  padding: 100px 48px 0;
  border-radius: 56px 56px 0 0;
  margin-top: -5rem;
  z-index: 32;
  position: relative;
}

.product-detail__spec-block .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

.product-detail__diagram-img img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}


.product-detail__overview h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.product-detail__spec-list {
  margin: 0;
}

.product-detail__spec-list>div {
  display: grid;
  grid-template-columns: 208px 1fr;
  gap: 5px;
  padding: 14px 0;
}

.product-detail__spec-list dt {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
}

.product-detail__spec-list dd {
  font-size: 16px;
  line-height: 1.8;
  color: #6b6b6b;
  margin: 0;
}

@media (max-width: 991.98px) {
  .product-detail__intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-detail__spec-block {
    margin-top: -3rem;
    padding: 56px 0.5rem 90px;
  }

  .product-detail__spec-block .container {
    grid-template-columns: 1fr;
  }

  .product-detail__diagram-img {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .product-detail-page .products-page__panel {
    padding: 28px 0.5rem 48px;
    border-radius: 30px 30px 0 0;
  }

    .product-detail__spec-block {
   border-radius: 30px 30px 0 0;
  }

  .product-detail__feature-block {
    padding: 56px 0.5rem 90px;
    border-radius: 30px 30px 0 0;
  }

  .product-detail__two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-detail__two-col--reverse .product-detail__text{
    order: 2;
  }
  .product-detail__two-col--reverse .product-detail__media {
    order: 1;
  }

  .product-detail__spec-list>div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 575px) {
  .products-page__photo {
    min-height: 210px;
  }
}
/* ==========================================================
   所屬類別標示（沿用列表頁的 .product-filter 樣式）
========================================================== */
.product-detail__breadcrumb {
  margin-bottom: 24px;
}

/* ==========================================================
   Recommend 推薦商品輪播
========================================================== */

/* ---------------- Recommend ---------------- */
.recommend {
  padding: 40px 0 0;
  background-color: #fff;
  position: relative;
  z-index: 32;
  border-radius: 0 0 56px 56px;
}

.recommend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.recommend-head h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-soft);
  margin: 0;
}

.recommend-nav {
  display: flex;
  gap: 0;
  border-radius: 11px;
  border: 1.5px solid #4d4a49;
}

.recommend-nav button {
  position: relative;
  width: 45px;
  height: 34px;
  border: none;
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: #4d4a49;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.recommend-nav button:first-child:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0, -50%);
  display: block;
  width: 1px;
  height: 20px;
  background-color: #4d4a49;
}

.recommend-nav button.recommend-next {
  border-radius: 0 10px 10px 0;
}

.recommend-nav button:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: #fff;
}

.recommend-swiper {
  padding: 1rem 0 2rem;
  margin: -1rem 0;
}

.recommend-card {
  display: block;
  text-decoration: none;
  background: #E3E4EA;
  border-radius: 16px;
  overflow: hidden;
  padding: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}

.recommend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
}

.recommend-card__img {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #e3e4ea;
  width: 70%;
  margin: 0 auto;
}

.recommend-card__body {
  padding-top: .8rem;
  text-align: center;
}

.recommend-card__cat {
  font-size: 16px;
  color: #9a9a9a;
  margin: 0 0 4px;
}

.recommend-card__body h4 {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

@media (max-width:991px) {
  .recommend {
    padding: 40px 0.5rem;
    border-radius: 0 0 30px 30px;
  }
}


/* ==========================================================
   產品資訊手風琴：+ / － 切換
   icon 由兩條線組成，展開時直線轉 90 度與橫線重疊 → 變成減號
========================================================== */
.product-info-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  padding: 18px 0;
  margin: 0;
  border-bottom: 1px solid #e3e4ea;
}

.product-info-toggle__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

/* 橫線：固定不動 */
.product-info-toggle__icon::before,
.product-info-toggle__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

/* 直線：預設直立 → 與橫線組成 + */
.product-info-toggle__icon::after {
  transform: rotate(90deg);
}

/* 展開時 Bootstrap 會移除 .collapsed，直線轉平與橫線重疊 → 變成 － */
.product-info-toggle:not(.collapsed) .product-info-toggle__icon::after {
  transform: rotate(0deg);
}

/* 展開中的標題加重顏色，讓狀態更明顯 */
.product-info-toggle:not(.collapsed) {
  color: var(--ink);
}
