/* ========================================
   Product Detail – 迋斯生技 Figma 產品內頁
   ======================================== */

.pd-main {
  margin-top: var(--header-height);
  background: #f6f0dc;
}

#product-detail-main {
  padding-bottom: 0;
}

/* ---------- Breadcrumb ---------- */
.pd-breadcrumb {
  min-height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #eeb65a 0%, #efbf82 48%, #f2c8a6 100%);
}

.pd-breadcrumb__inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 52px;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100% !important;
}

.pd-breadcrumb__text {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #fff;
  margin: 0;
  text-align: left;
}

.pd-breadcrumb__text a {
  color: #fff;
}

.pd-breadcrumb__current {
  color: #fff;
}

/* ---------- Body ---------- */
.pd-body {
  background: #fff;
  padding: 0;
}

.pd-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Primary (Gallery + Info) ---------- */
.pd-primary {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(320px, 360px);
  justify-content: center;
  gap: 28px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 0 48px;
}

.pd-gallery {
  width: 100%;
  max-width: 500px;
}

.pd-gallery__main {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
}

.pd-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.pd-gallery__main-img.is-switching {
  opacity: 0.6;
}

.pd-gallery__main-img:hover {
  transform: scale(1.02);
}

.pd-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.pd-gallery__thumb {
  width: 80px;
  height: 80px;
  padding: 0;
  border: 1px solid #e2d8cd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-gallery__thumb.is-active,
.pd-gallery__thumb:hover {
  border-color: var(--color-wants-accent);
  box-shadow: 0 0 0 1px rgba(90, 138, 148, 0.12);
}

.pd-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

/* ---------- Product Info ---------- */
.pd-info {
  max-width: 360px;
  padding-top: 0;
}

.pd-info__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 28px;
  padding: 0 15px;
  background: var(--color-wants-accent);
  color: #fff;
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 6px;
}

.pd-info__title {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: normal;
  color: #595757;
  margin: 0 0 8px;
}

.pd-info__rating {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.pd-info__stars {
  width: 106px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  background-color: #FBC02D;
  -webkit-mask-image: url('../images/product-detail/stars.svg');
  mask-image: url('../images/product-detail/stars.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.pd-info__rating-count {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  font-weight: 400;
  color: #888;
  line-height: normal;
}

.pd-info__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-brand-orange);
  margin: 0 0 16px;
}

.pd-info__price .woocommerce-Price-amount {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.pd-info__price ins {
  text-decoration: none;
  color: var(--color-brand-orange);
  font-size: inherit;
  font-weight: inherit;
}

.pd-info__price ins .woocommerce-Price-amount {
  color: inherit;
}

.pd-info__price del {
  text-decoration: line-through;
  color: #e8a898;
  opacity: 1;
  font-size: 22px;
  font-weight: 700;
  margin-right: 0;
}

.pd-info__price del .woocommerce-Price-amount {
  color: inherit;
  text-decoration: line-through;
}

.pd-info__desc {
  margin-bottom: 22px;
}

.pd-info__desc p {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #595757;
  margin: 0 0 4px;
}

.pd-info__desc p:last-child {
  margin-bottom: 0;
}

.pd-info__label {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  color: #595757;
  margin: 0 0 8px;
}

.pd-info__options,
.pd-info__quantity {
  margin-bottom: 18px;
}

.pd-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-option {
  cursor: pointer;
}

.pd-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pd-option__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--color-brand-orange);
  border-radius: 999px;
  background: #FFF;
  color: var(--color-brand-orange);
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  transition: all 0.2s ease;
}

.pd-option.is-active .pd-option__btn,
.pd-option input:checked + .pd-option__btn {
  background: var(--color-brand-orange);
  color: #fff;
  border-color: var(--color-brand-orange);
}

.pd-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pd-qty__btn {
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid #D7CCC8;
  border-radius: 4px;
  background: #fff;
  color: #595757;
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.pd-qty__btn:hover {
  background-color: rgba(215, 204, 200, 0.16);
}

.pd-qty__input {
  width: 60px;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid #D7CCC8;
  border-radius: 4px;
  background: #fff;
  color: #595757;
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.pd-qty__btn:focus-visible,
.pd-qty__input:focus-visible {
  outline: 2px solid rgba(85, 85, 85, 0.35);
  outline-offset: 2px;
}

.pd-qty__input::-webkit-outer-spin-button,
.pd-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pd-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 32px;
  border: none;
  border-radius: 999px;
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pd-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.pd-btn--cart {
  min-width: 188px;
  background: var(--color-wants-accent);
  color: #fff;
  font-size: 17px;
}

.pd-btn--wishlist {
  min-width: 148px;
  background: #fff;
  border: 1px solid var(--color-wants-accent);
  color: var(--color-wants-accent);
  font-weight: 400;
  font-size: 16px;
  gap: 6px;
}

.pd-btn__icon {
  display: inline-flex;
  line-height: 1;
}

.pd-info__actions--secondary {
  margin-top: -8px;
}

.pd-cart-form {
  margin: 0;
}

.pd-wc-cart {
  margin-bottom: 20px;
}

.pd-wc-cart .variations {
  width: 100%;
  margin-bottom: 16px;
  border-collapse: collapse;
}

.pd-wc-cart .variations th,
.pd-wc-cart .variations td {
  padding: 0 0 12px;
  border: none;
  vertical-align: middle;
}

.pd-wc-cart .variations label {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  font-weight: 700;
  color: #595757;
}

.pd-wc-cart .variations select {
  min-width: 180px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #D7CCC8;
  border-radius: 4px;
  background: #fff;
  color: #595757;
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 13px;
}

.pd-wc-cart .quantity {
  display: none;
}

.pd-wc-cart .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  height: 44px;
  padding: 0 32px;
  border: none;
  border-radius: 999px;
  background: var(--color-wants-accent);
  color: #fff;
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 17px;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pd-wc-cart .single_add_to_cart_button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.pd-wc-cart .reset_variations {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #888;
}

.pd-tab-panel__rich {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-wants-dark);
  margin-bottom: 8px;
}

.pd-tab-panel__rich p {
  margin: 0 0 8px;
}

.pd-review-card--empty {
  justify-content: center;
}

.pd-info__shipping {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: #888;
  margin: 0;
}

/* ---------- Tabs ---------- */
.pd-details {
  margin-top: 8px;
}

/* ---------- Content section (tabs + reviews) ---------- */
.pd-content-section {
  position: relative;
  overflow: hidden;
  background-color: #f6f0dc;
  background-image: url('../images/product-detail/detail-info-reviews-bg.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  min-height: 63.5417vw;
}

.pd-content-section__bg {
  display: none;
}

.pd-content-section__inner {
  position: relative;
  z-index: 1;
}

@media (min-width: 769px) {
  .pd-content-section .pd-container {
    padding-top: 48px;
  }

  .pd-details {
    margin-top: 0;
  }

  .pd-content-section .pd-reviews {
    background: transparent;
    padding-top: 56px;
    padding-bottom: 96px;
  }
}

@media (max-width: 768px) {
  .pd-content-section {
    background-color: #f9f4e8;
    background-image: none;
    min-height: 0;
  }

  .pd-content-section .pd-container {
    padding-top: clamp(8px, 2.7vw, 12px);
    padding-bottom: 40px;
  }
}

.pd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.pd-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--color-brand-orange);
  border-radius: 8px;
  background: #fff;
  color: #3f3f3f;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.pd-tab + .pd-tab {
  margin-left: -1px;
}

.pd-tab.is-active {
  background: var(--color-brand-orange);
  color: #fff;
  border-color: var(--color-brand-orange);
}

.pd-tab-panels {
  margin-top: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  padding: 32px 36px 40px;
  min-height: 280px;
  overflow: hidden;
}

.pd-tab-panel {
  display: none;
}

.pd-tab-panel.is-active {
  display: block;
}

.pd-tab-panel__heading {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-wants-dark);
  margin: 0 0 12px;
}

.pd-tab-panel__heading + .pd-tab-panel__heading,
.pd-feature-list + .pd-tab-panel__heading {
  margin-top: 28px;
}

.pd-feature-list,
.pd-spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-feature-list li,
.pd-spec-list li,
.pd-tab-panel__text {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-wants-dark);
  margin: 0 0 8px;
}

.pd-feature-list li:last-child,
.pd-spec-list li:last-child {
  margin-bottom: 0;
}

/* ---------- Reviews ---------- */
.pd-reviews {
  position: relative;
  background: transparent;
  padding: 72px 20px 96px;
  overflow: hidden;
}

.pd-reviews__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.pd-reviews__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.pd-reviews__title {
  color: var(--0003, #D77350);
  text-align: center;
  font-family: Georgia, serif;
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.pd-reviews__underline {
  display: block;
  width: 40px;
  height: 5px;
}

.pd-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pd-review-card {
  display: flex;
  flex-direction: column;
  gap: 21px;
  min-height: 150px;
  padding: 21px 30px;
  background: #fff;
  border: 1px solid #eee;
}

.pd-review-card__stars {
  width: 106px;
  height: 18px;
  display: block;
}

.pd-review-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 520px;
}

.pd-review-card__title {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-wants-dark);
  margin: 0;
}

.pd-review-card__text {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-wants-dark);
  margin: 0;
}

.pd-review-card__meta {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: #999;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pd-primary {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 500px;
  }

  .pd-gallery {
    max-width: 500px;
  }

  .pd-gallery__main {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .pd-info {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .pd-breadcrumb {
    min-height: 52px;
    padding: 0;
  }

  .pd-breadcrumb__inner {
    min-height: 52px;
    padding: 0 45px;
  }

  .pd-breadcrumb__text {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 13px;
  }

  .pd-body {
    background: #fdf9f2;
  }

  .pd-body > .pd-container {
    padding-left: clamp(24px, 8.2vw, 32px);
    padding-right: clamp(24px, 8.2vw, 32px);
  }

  .pd-content-section .pd-container,
  .pd-reviews__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pd-primary {
    max-width: none;
    gap: clamp(20px, 6.4vw, 24px);
    padding: clamp(20px, 6.4vw, 24px) 0 clamp(28px, 8.2vw, 32px);
  }

  .pd-gallery,
  .pd-info {
    max-width: none;
    width: 100%;
  }

  .pd-info {
    padding: 0;
  }

  .pd-info__badge {
    min-width: clamp(72px, 20.5vw, 80px);
    height: clamp(22px, 6.4vw, 24px);
    padding: 0 clamp(10px, 3.2vw, 12px);
    margin-bottom: clamp(6px, 2.1vw, 8px);
    background: #5a8a94;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(10px, 2.8vw, 11px);
    font-weight: 600;
    line-height: 1;
  }

  .pd-info__title {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(18px, 5.1vw, 20px);
    font-weight: 700;
    line-height: 1.3;
    color: #3a3f3b;
    margin-bottom: clamp(6px, 2.1vw, 8px);
  }

  .pd-info__rating {
    align-items: center;
    gap: clamp(5px, 1.6vw, 6px);
    margin-bottom: clamp(8px, 2.7vw, 10px);
  }

  .pd-info__stars {
    width: clamp(88px, 27.2vw, 106px);
    height: clamp(15px, 4.6vw, 18px);
  }

  .pd-info__rating-count {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(11px, 3.2vw, 12px);
    line-height: 1;
    color: #888;
  }

  .pd-info__price {
    font-family: Georgia, 'Noto Sans TC', serif;
    font-size: clamp(24px, 7.2vw, 28px);
    font-weight: 700;
    line-height: 1.1;
    color: #d77350;
    margin-bottom: clamp(10px, 3.2vw, 12px);
    gap: clamp(6px, 2.1vw, 8px);
  }

  .pd-info__price del {
    font-size: clamp(18px, 5.1vw, 20px);
    font-weight: 700;
    color: #e8a898;
    text-decoration: line-through;
  }

  .pd-info__price del .woocommerce-Price-amount {
    text-decoration: line-through;
  }

  .pd-info__price ins {
    color: #d77350;
    font-size: clamp(24px, 7.2vw, 28px);
    font-weight: 700;
  }

  .pd-info__desc {
    margin-bottom: clamp(16px, 4.8vw, 18px);
  }

  .pd-info__desc p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(12px, 3.5vw, 13px);
    font-weight: 400;
    line-height: 1.5;
    color: #595757;
  }

  .pd-info__label {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(12px, 3.5vw, 13px);
    font-weight: 700;
    line-height: 1.2;
    color: #3a3f3b;
    margin-bottom: clamp(6px, 2.1vw, 8px);
  }

  .pd-info__options,
  .pd-info__quantity {
    margin-bottom: clamp(14px, 4.3vw, 16px);
  }

  .pd-options {
    gap: clamp(6px, 2.1vw, 8px);
  }

  .pd-option__btn {
    min-width: clamp(78px, 22.9vw, 86px);
    height: clamp(34px, 9.6vw, 36px);
    padding: 0 clamp(14px, 4.3vw, 16px);
    border: 1px solid #d77350;
    border-radius: 999px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(12px, 3.5vw, 13px);
    font-weight: 400;
    line-height: 1;
    color: #d77350;
  }

  .pd-option.is-active .pd-option__btn,
  .pd-option input:checked + .pd-option__btn {
    background: #d77350;
    border-color: #d77350;
    color: #fff;
  }

  .pd-qty {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2.4vw, 10px);
    width: min(100%, clamp(220px, 64vw, 280px));
    margin-left: auto;
    margin-right: auto;
  }

  .pd-qty__btn {
    flex: 0 0 clamp(38px, 10.8vw, 42px);
    width: clamp(38px, 10.8vw, 42px);
    height: clamp(36px, 10.2vw, 38px);
    border: 1px solid #d7ccc8;
    border-radius: 0;
    background: #fff;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(18px, 5.1vw, 20px);
    font-weight: 400;
    line-height: 1;
    color: #595757;
  }

  .pd-qty__input {
    flex: 1 1 auto;
    width: clamp(128px, 40vw, 168px);
    min-width: clamp(128px, 40vw, 168px);
    height: clamp(36px, 10.2vw, 38px);
    border: 1px solid #d7ccc8;
    border-radius: 0;
    background: #fff;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(14px, 4.1vw, 15px);
    font-weight: 400;
    color: #595757;
  }

  .pd-info__actions {
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2.7vw, 10px);
    padding: 0 clamp(18px, 5.6vw, 24px);
    margin-bottom: clamp(12px, 3.7vw, 14px);
  }

  .pd-info__actions--secondary {
    padding: 0 clamp(18px, 5.6vw, 24px);
  }

  .pd-btn {
    box-sizing: border-box;
    width: 100%;
    max-width: clamp(280px, 82vw, 320px);
    min-width: 0;
    height: clamp(40px, 11.2vw, 42px);
    padding: 0 clamp(18px, 5.6vw, 22px);
    border-radius: 999px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(13px, 3.7vw, 14px);
    font-weight: 700;
    line-height: 1;
  }

  .pd-btn:hover {
    transform: none;
    opacity: 0.92;
  }

  .pd-btn--cart {
    background: #5a8a94;
    border: none;
    color: #fff;
    font-size: clamp(13px, 3.7vw, 14px);
    font-weight: 700;
  }

  .pd-btn--wishlist {
    background: #fff;
    border: 1px solid #5a8a94;
    color: #5a8a94;
    font-size: clamp(12px, 3.5vw, 13px);
    font-weight: 400;
    gap: clamp(4px, 1.6vw, 6px);
  }

  .pd-btn__icon {
    font-size: clamp(13px, 3.7vw, 14px);
    line-height: 1;
  }

  .pd-wc-cart .single_add_to_cart_button {
    box-sizing: border-box;
    width: 100%;
    max-width: clamp(280px, 82vw, 320px);
    min-width: 0;
    height: clamp(40px, 11.2vw, 42px);
    padding: 0 clamp(18px, 5.6vw, 22px);
    border-radius: 999px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(13px, 3.7vw, 14px);
    font-weight: 700;
  }

  .pd-cart-form .pd-info__actions,
  .pd-info__actions--secondary {
    align-items: center;
  }

  .pd-wc-cart {
    display: flex;
    justify-content: center;
    padding: 0 clamp(18px, 5.6vw, 24px);
    margin-bottom: clamp(8px, 2.7vw, 10px);
  }

  .pd-info__shipping {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(10px, 2.9vw, 11px);
    font-weight: 400;
    line-height: 1.5;
    color: #888;
    text-align: center;
    width: 100%;
  }

  .pd-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: clamp(16px, 5.3vw, 20px);
  }

  .pd-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    width: min(100%, clamp(250px, 73.3vw, 286px));
    border: 1px solid #d77350;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
  }

  .pd-tab {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: clamp(30px, 8.5vw, 32px);
    padding: 0 clamp(4px, 1.3vw, 6px);
    border: none;
    border-radius: 0;
    background: #fff;
    color: #3a3f3b;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(11px, 3.2vw, 12px);
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
  }

  .pd-tab.is-active {
    background: #d77350;
    color: #fff;
    border-color: transparent;
    font-weight: 400;
    z-index: 1;
  }

  .pd-tab + .pd-tab {
    margin-left: 0;
    margin-top: 0;
    box-shadow: inset 1px 0 0 #d77350;
  }

  .pd-tab.is-active + .pd-tab,
  .pd-tab + .pd-tab.is-active {
    box-shadow: none;
  }

  .pd-tab-panels {
    width: min(100%, clamp(268px, 78.7vw, 308px));
    margin-top: clamp(10px, 3.2vw, 12px);
    margin-left: auto;
    margin-right: auto;
    border: none;
    border-radius: clamp(14px, 4.8vw, 16px);
    background: #fff;
    padding: clamp(18px, 5.6vw, 22px) clamp(16px, 4.8vw, 18px) clamp(22px, 6.9vw, 26px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    min-height: 0;
  }

  .pd-tab-panel__heading {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(14px, 4.1vw, 15px);
    font-weight: 700;
    line-height: 1.3;
    color: #3a3f3b;
    margin: 0 0 clamp(10px, 3.2vw, 12px);
  }

  .pd-tab-panel__heading + .pd-tab-panel__heading,
  .pd-feature-list + .pd-tab-panel__heading {
    margin-top: clamp(20px, 6.4vw, 24px);
  }

  .pd-feature-list li,
  .pd-spec-list li,
  .pd-tab-panel__text {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: clamp(12px, 3.5vw, 13px);
    font-weight: 400;
    line-height: 1.6;
    color: #595757;
    margin: 0 0 clamp(6px, 2.1vw, 8px);
  }

  .pd-feature-list li:last-child,
  .pd-spec-list li:last-child,
  .pd-tab-panel__text:last-child {
    margin-bottom: 0;
  }
}

/* ---------- Lightbox ---------- */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pd-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pd-lightbox__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.pd-lightbox.is-open .pd-lightbox__content {
  transform: scale(1);
}

.pd-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.pd-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.pd-lightbox__close:hover {
  opacity: 1;
}
