.pd-page { max-width: 1200px; }
.pd-hero { display: grid; grid-template-columns: 55% 45%; gap: 24px; }
.pd-gallery, .pd-summary { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.pd-main-image-wrap { position: relative; }
.pd-main-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pd-zoom-icon { position: absolute; right: 10px; bottom: 10px; background: rgba(15,23,42,.75); color: #fff; border-radius: 999px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.pd-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.pd-thumb { border: 1px solid var(--border); padding: 0; background: transparent; border-radius: 6px; overflow: hidden; }
.pd-thumb.is-active { border-color: var(--primary); }
.pd-thumb img { width: 68px; height: 68px; object-fit: cover; display:block; }

.pd-title { margin: 0 0 10px; font-size: 1.6rem; color: #111827; }
.pd-rating-row { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.pd-stars { color: #d1d5db; }
.pd-stars .is-on { color: #f59e0b; }
.pd-stars-lg { font-size: 1.2rem; }
.pd-price { color: #dc2626; font-size: 1.3rem; font-weight: 700; margin: 6px 0 12px; }
.pd-meta-list { list-style:none; margin:0 0 14px; padding:0; display:grid; gap:8px; }
.pd-meta-list a { color: var(--primary); }

.pd-cart-form { margin-bottom: 10px; }
.product-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}
.product-quantity {
  display: inline-flex;
  align-items: center;
  height: 42px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.product-quantity .qty-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: #fff;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.product-quantity .qty-input {
  width: 54px;
  height: 42px;
  border: none;
  border-left: 1px solid #dfe3e8;
  border-right: 1px solid #dfe3e8;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}
.product-quantity .qty-input::-webkit-outer-spin-button,
.product-quantity .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-quantity .qty-input[type=number] {
  -moz-appearance: textfield;
}
.product-action-row .add-to-cart-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #15733b;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.product-action-row .add-to-cart-btn:hover {
  background: #0f5f30;
}
.contact-price-action {
  margin: 20px 0;
}
.contact-price-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border-radius: 8px;
  background: #15733b;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
.contact-price-btn:hover {
  background: #0f5f30;
  color: #fff;
}
.pd-notice { color: #166534; font-weight: 600; }
.pd-short-desc ul, .pd-short-desc ol { padding-left: 18px; }

.pd-tabs { display:flex; gap:20px; border-bottom:1px solid var(--border); margin:28px 0 18px; overflow:auto; }
.pd-tabs a { padding:10px 4px; font-weight:700; white-space:nowrap; border-bottom:2px solid transparent; }
.pd-tabs a.is-active { border-bottom-color: var(--primary); color: var(--primary); }

.pd-section { margin-bottom: 26px; scroll-margin-top: 110px; }
.pd-toc { border:1px solid var(--border); border-radius:8px; margin-bottom:14px; }
.pd-toc-toggle { width:100%; text-align:left; padding:10px 12px; border:0; background:#f8fafc; font-weight:700; }
.pd-toc-list { margin:0; padding:10px 24px 14px; }
.pd-content { line-height: 1.8; }
.pd-content img { max-width:100%; height:auto; display:block; margin:14px auto; }
.pd-content h2, .pd-content h3 { color:#0f172a; margin-top:1.2em; }

.pd-review-layout .card-body { display:grid; grid-template-columns: 150px 1fr 220px; gap:20px; align-items:center; }
.pd-review-score { font-size:2.2rem; font-weight:800; color:#111827; }
.pd-bar-row { display:grid; grid-template-columns: 34px 1fr; gap:8px; align-items:center; margin-bottom:8px; }
.pd-bar { background:#e5e7eb; height:8px; border-radius:999px; overflow:hidden; }
.pd-bar i { display:block; height:100%; background:#f59e0b; }

.pd-lightbox { position:fixed; inset:0; background:rgba(0,0,0,.85); display:none; align-items:center; justify-content:center; z-index:9999; }
.pd-lightbox.is-open { display:flex; }
.pd-lightbox img { max-width:92vw; max-height:88vh; }

@media (max-width: 992px) {
  .pd-hero { grid-template-columns: 1fr; }
  .pd-review-layout .card-body { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .product-action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .product-quantity {
    width: fit-content;
  }
  .product-action-row .add-to-cart-btn,
  .contact-price-btn {
    width: 100%;
  }
}

.product-comments {
  margin-top: 50px;
  padding-bottom: 50px;
}

.product-comments-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: #1f2933;
  margin-bottom: 36px;
}

.product-comments-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}

.product-comments-title span {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.product-comments-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 140px;
  height: 2px;
  background: #1f2933;
}

.product-comment-input-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.product-comment-input {
  width: 100%;
  min-height: 56px;
  height: 56px;
  resize: vertical;
  border: 1px solid #dcdfe4;
  border-radius: 4px;
  padding: 15px 90px 15px 18px;
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  outline: none;
}

.product-comment-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 1px #0d6efd;
}

.product-comment-icons {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #333;
}

.comment-icon {
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.product-comment-submit {
  background: #11191c;
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.product-comment-submit:hover {
  background: #1f6f3a;
}

.product-comments-list-title {
  margin-top: 70px;
  padding: 0 0 24px 8px;
  border-bottom: 1px solid #ddd;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.product-comment-list {
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.product-comment-item {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.product-comment-author {
  font-weight: 700;
  margin-bottom: 6px;
}

.product-comment-date {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

.product-comment-content {
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .product-comments-title {
    font-size: 20px;
    gap: 12px;
  }

  .product-comment-input {
    font-size: 14px;
    padding-right: 70px;
  }

  .product-comment-submit {
    width: auto;
  }
}

.product-reviews {
  margin-top: 50px;
  padding-bottom: 60px;
}

.product-reviews-title {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.product-reviews-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}

.product-reviews-title span {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.product-reviews-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 140px;
  height: 2px;
  background: #1f2933;
}

.review-summary {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #ddd;
}

.review-average {
  text-align: center;
}

.review-average-score {
  font-size: 56px;
  font-weight: 800;
  color: #1f7a3f;
}

.review-stars {
  color: #f5a400;
  font-size: 22px;
}

.review-distribution-row {
  display: grid;
  grid-template-columns: 40px 1fr 45px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.review-progress {
  height: 12px;
  background: #e5e5e5;
  border-radius: 20px;
  overflow: hidden;
}

.review-progress-fill {
  height: 100%;
  background: #f5a400;
  border-radius: 20px;
}

.review-cta {
  text-align: center;
}

.review-button {
  background: #11191c;
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
}

.review-form-box {
  margin-top: 40px;
  background: #e9e9e9;
  padding: 36px;
  border-radius: 4px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.review-form-box.is-hidden {
  display: none;
}

.review-form-box.is-active {
  display: block;
  animation: reviewFormFadeIn 0.28s ease;
}

.review-form-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}

.review-star-select {
  display: flex;
  gap: 8px;
  font-size: 28px;
  margin: 18px 0 28px;
}

.review-star-select .star {
  cursor: pointer;
  color: #222;
}

.review-star-select .star.active,
.review-star-select .star:hover {
  color: #f5a400;
}

.review-form textarea,
.review-form input {
  width: 100%;
  border: none;
  background: #fff;
  padding: 14px 16px;
  font-size: 15px;
  margin-bottom: 18px;
}

.review-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.review-submit-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.review-camera-btn,
.review-submit-btn {
  background: #11191c;
  color: #fff;
  border: none;
  height: 44px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.review-submit-btn:hover,
.review-button:hover,
.review-camera-btn:hover {
  background: #1f6f3a;
}

@keyframes reviewFormFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .review-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .review-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .review-form-box {
    padding: 24px 16px;
  }
}
