/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 21px;
  color: #4e4632;
  margin-bottom: 0;
}

.breadcrumb a {
  color: #4e4632;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #e31d1a;
}

.breadcrumb span {
  color: #4e4632;
}

.breadcrumb__sep {
  width: 5px;
  height: 8px;
  opacity: 0.5;
}

/* Page CTA */
.page-cta {
  background: #ffc411;
  padding: 48px 0;
}

.page-cta__inner {
  max-width: 1522px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-cta__label {
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: #1a1a1a;
  opacity: 0.9;
}

.page-cta__num {
  font-size: 60px;
  font-weight: 900;
  line-height: 60px;
  letter-spacing: -1.5px;
  color: #1a1a1a;
  margin-top: 4px;
}

.page-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background: #1a1a1a;
  color: #fcc800;
  font-size: 32px;
  font-weight: 700;
  line-height: 28px;
  border-radius: 2px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: opacity 0.25s, transform 0.25s;
}

.page-cta__btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Product detail main */
.pd-main {
  background: #fff;
  padding: 40px 0 80px;
}

.pd-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.pd-top {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
}

/* Gallery */
.pd-gallery {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f9f9f9;
  overflow: hidden;
  margin-bottom: 0;
}

.pd-gallery__main .swiper-wrapper {
  height: 100%;
}

.pd-gallery__main .swiper-slide {
  height: 100%;
  background: #f9f9f9;
}

.pd-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-gallery__thumbs {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.pd-gallery__thumbs .swiper-wrapper {
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
}

.pd-gallery__thumbs .swiper-slide {
  position: relative;
  box-sizing: border-box;
  height: auto !important;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 2px solid #d2c5ab;
  opacity: 1;
  transition: border-color 0.2s ease;
}

.pd-gallery__thumbs .swiper-slide::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 100%;
}

.pd-gallery__thumbs .swiper-slide-thumb-active {
  border-color: #755b00;
}

.pd-gallery__thumbs img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Info */
.pd-info {
  padding-top: 16px;
}

.pd-info__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -1px;
  color: #1a1c1c;
  margin-bottom: 23px;
}

.pd-info__desc {
  font-size: 18px;
  line-height: 29.25px;
  color: #4e4632;
  max-width: 576px;
  margin-bottom: 40px;
}

.pd-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 0;
  border-bottom: none;
}

.pd-features__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pd-features__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(252, 200, 0, 0.1);
}

.pd-features__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.pd-features__item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #000;
  margin-bottom: 0;
}

.pd-features__item p {
  font-size: 14px;
  line-height: 21px;
  color: #4e4632;
}

.pd-price {
  background: #f9f9f9;
  padding: 32px 24px;
  margin-bottom: 40px;
}

.pd-price__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 16px;
  min-height: 63px;
}

.pd-price__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  color: #4e4632;
  flex-shrink: 0;
}

.pd-price__current {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2.1px;
  color: #1a1c1c;
}

.pd-price__old {
  font-size: 16px;
  line-height: 24px;
  color: rgba(78, 70, 50, 0.6);
  text-decoration: line-through;
}

.pd-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 64px;
  padding: 18px 0 19px;
  background: #fcc800;
  color: #241a00;
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s;
}

.pd-order-btn img {
  width: 20px;
  height: 20px;
}

.pd-order-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Order QR modal */
.pd-order-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pd-order-modal[hidden] {
  display: none;
}

.pd-order-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(26, 28, 28, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.pd-order-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 448px;
  background: #fff;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.pd-order-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.pd-order-modal__close:hover {
  opacity: 1;
}

.pd-order-modal__close img {
  display: block;
  width: 16px;
  height: 16px;
}

.pd-order-modal__title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 42px;
  letter-spacing: -0.7px;
  color: #1a1c1c;
}

.pd-order-modal__desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 22.75px;
  color: #4e4632;
}

.pd-order-modal__qr {
  width: 200px;
  height: 200px;
  margin: 28px auto;
  padding: 9px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d2c5ab;
}

.pd-order-modal__qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-order-modal__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 0;
  border: none;
  background: #1a1c1c;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pd-order-modal__back:hover {
  opacity: 0.9;
}

body.pd-order-modal-open {
  overflow: hidden;
}

/* Detail sections */
.pd-detail {
  padding-top: 16px;
}

.pd-detail__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 27px;
  color: #1a1c1c;
  text-align: left;
  margin-bottom: 0;
  padding-bottom: 28px;
  border-bottom: 4px solid #755b00;
  display: inline-block;
  position: relative;
}

.pd-detail__title-wrap {
  border-bottom: 1px solid rgba(210, 197, 171, 0.2);
  margin-bottom: 48px;
}

.pd-detail__sections {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.pd-detail__section {
  margin-bottom: 0;
}

.pd-detail__heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 42px;
  color: #000;
  margin-bottom: 32px;
  padding-left: 0;
  border-left: none;
}

.pd-detail__section p,
.pd-detail__html {
  font-size: 18px;
  line-height: 32.4px;
  color: #4e4632;
}

.pd-detail__html p {
  margin: 0 0 0;
}

.pd-detail__html p + p {
  margin-top: 0;
}

.pd-detail__html img {
  max-width: 100%;
  height: auto;
}

.pd-detail__html [style*="text-align: center"] img,
.pd-detail__html [style*="text-align:center"] img {
  margin-left: auto;
  margin-right: auto;
}

.pd-detail__html img.note-float-left {
  float: left;
  margin: 0 1.25em 1em 0;
}

.pd-detail__html img.note-float-right {
  float: right;
  margin: 0 0 1em 1.25em;
}

.pd-detail__html ul,
.pd-detail__html ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

.pd-detail__html table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.pd-detail__html table td,
.pd-detail__html table th {
  border: 1px solid #e5e5e5;
  padding: 8px 12px;
}

@media (max-width: 1200px) {
  .pd-wrap {
    padding: 0 24px;
  }
}

@media (max-width: 1024px) {
  .pd-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pd-info {
    padding-top: 0;
  }

  .pd-info__title {
    font-size: 32px;
    line-height: 38px;
  }

  .pd-info__desc {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .page-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

  .page-cta__num {
    font-size: 36px;
    line-height: 40px;
  }

  .page-cta__btn {
    width: 100%;
    font-size: 20px;
  }

  .pd-wrap {
    gap: 32px;
    padding: 0 16px;
  }

  .pd-info__title {
    font-size: 28px;
    line-height: 34px;
  }

  .pd-info__desc {
    font-size: 16px;
    line-height: 26px;
  }

  .pd-price__current {
    font-size: 28px;
    line-height: 40px;
  }

  .pd-detail__heading {
    font-size: 22px;
    line-height: 32px;
    margin-bottom: 20px;
  }

  .pd-detail__section p,
  .pd-detail__html {
    font-size: 16px;
    line-height: 28px;
  }

  .pd-detail__sections {
    gap: 40px;
  }

  .pd-order-modal__dialog {
    padding: 32px 20px 24px;
  }

  .pd-order-modal__title {
    font-size: 22px;
    line-height: 32px;
  }

  .pd-order-modal__qr {
    width: 180px;
    height: 180px;
    margin: 20px auto;
  }
}
