/* PDP - Product Detail Page */
.pdp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

.pdp-breadcrumb {
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: #757575;
}

.pdp-breadcrumb a {
  color: #757575;
  text-decoration: none;
}
#comment-content {
    padding: .625rem;
    border: .0625rem solid #e2e2e2;
    border-radius: .1875rem;
    line-height: 1.25rem;
    background-color: #f5f5f5;
    display: block;
    width: 100%;font-size:14px;
    height: 100px;
}

.wrap-form-binhluan {
    
}
.binhluan-button {
    margin-top: 10px;
    display: flex;
    width: 100px;
    gap: 10px;
}
.pdp-breadcrumb a:hover {
    color: var(--primary-color);
}

.pdp-main {
  display: flex;
  gap: 20px;
  background: var(--white-color);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

/* Gallery */
.pdp-gallery {
  flex: 0 0 400px;
}

.gallery-main {
  width: 100%;
  height: 400px;
  background: #fff;
  border: 1px solid #eee;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 10px;
  position: relative;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.thumb-item {
  width: 60px;
  height: 60px;
  border: 1px solid #eee;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}

.thumb-item.active {
  border: 2px solid var(--primary-color);
}

/* Info */
.pdp-info {
  flex: 1;
}

.product-favorite {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.product-title {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 12px;
  color: #333;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.rating-score {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.rating-stars i {
  color: #ffe400;
  font-size: 1.3rem;
}

.rating-count,
.sold-count {
  color: #757575;
}

.sold-count {
  border-left: 1px solid #eee;
  padding-left: 16px;
}
#lst_comment{
    padding-left:10px;
}
.report-link {
    color: #757575;
    font-size: 1.3rem;
    text-decoration: underline;
    margin-left: auto;
}

/* Price */
.price-box {
  background: #fafafa;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-old {
  font-size: 1.4rem;
  color: #999;
  text-decoration: line-through;
}

.price-current {
  font-size: 2.8rem;
  color: var(--primary-color);
  font-weight: 500;
}

.price-discount {
  background: var(--primary-color);
  color: white;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 1.2rem;
}

.flash-sale {
  background: #fff0f0;
  color: #ee4d2d;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 1.3rem;
  margin-top: 12px;
}

/* Voucher */
.voucher-section {
  margin: 20px 0;
}

.voucher-title {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 8px;
}

.voucher-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.voucher-item {
  background: #fff;
  border: 1px dashed var(--primary-color);
  color: var(--primary-color);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 1.3rem;
  white-space: nowrap;
}

.voucher-more {
  color: var(--primary-color);
  font-size: 1.3rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Shipping */
.shipping-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 1.4rem;
  color: #333;
}

.shipping-free {
  color: var(--primary-color);
}

.shipping-note {
  font-size: 1.2rem;
  color: #757575;
}

/* Insurance */
.insurance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  font-size: 1.4rem;
}

.insurance-select {
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 1.3rem;
}

/* Quantity & Actions */
.quantity-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 1.4rem;
}

.quantity-label {
  min-width: 80px;
}

.quantity-control {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  background: #f9f9f9;
  border: none;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quantity-input {
  width: 50px;
  height: 32px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.stock-note {
  color: #757575;
  font-size: 1.3rem;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-add-cart {
  flex: 1;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-add-cart:hover {
  background-color: #fffbf8;
}

.btn-buy-now {
  flex: 1;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  font-size: 1.6rem;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
/* Popup xác nhận */
.add-cart-popup {
  display: none; /* ẩn mặc định */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 50px 70px;
  border-radius: 16px;
  text-align: center;
  animation: scaleIn 0.25s ease;
  font-size: 2rem;
}

.popup-icon {
  width: 120px;
  height: 120px;
  background-color: #2dd36f;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
}

.popup-icon i {
  font-size: 60px;
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.btn-voucher {
  background: #ee4d2d;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .pdp-main {
    flex-direction: column;
  }
  .gallery-main {
    height: 300px;
  }
}
/* Section Box Style */
.pdp-section {
  background-color: #fff;
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
  text-transform: uppercase;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 8px;
}

/* Giữ lại các phần con */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(1, 2fr);
  gap: 30px 30px;
  font-size: 1.4rem;
}
.detail-item span {
  color: #777;
  display: inline-block;
  min-width: 160px;
  margin-right: 30px;
}

.description-content {
  font-size: 1.5rem;
  line-height: 2.2rem;
  color: #333;
}
.description-content h3 {
  margin-top: 12px;
  font-size: 1.6rem;
  font-weight: 600;
}
.description-content ul {
  margin-left: 18px;
  list-style: disc;
}

/* Tổng quan */
.review-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #f9ede5;
  background-color: #fffbf8;
}
.review-score {
  margin: 20px;
}
.review-score span {
  font-size: 3rem;
  color: #ee4d2d;
  font-weight: 700;
}
.review-score small {
  font-size: 1.4rem;
  color: #666;
}
.review-score .stars i {
  color: #ee4d2d;
  font-size: 1.4rem;
}
.review-filters {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  gap: 8px;
}
.filter-btn {
  background: #f6f6f6;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 1.3rem;
  cursor: pointer;
  margin: 4px;
}
.filter-btn.active,
.filter-btn:hover {
  background: #ee4d2d;
  color: #fff;
  border-color: #ee4d2d;
}

/* Review chi tiết */
.review-item {
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 10px;
}
.review-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border: 0.5px solid #ddd;
  border-radius: 50%;
  object-fit: cover;
}
.review-info {
  flex: 1;
}
.review-name {
  font-weight: 600;
  font-size: 1.4rem;
}
.review-stars {
  color: #ee4d2d;
  font-size: 1.3rem;
  margin: 2px 0;
}
.review-meta {
  font-size: 1.3rem;
  color: #777;
}
.review-meta span {
  color: #555;
  font-weight: 500;
}
.review-details {
  font-size: 1.4rem;
  color: #444;
  margin-top: 8px;
}
.review-details p {
  margin: 2px 0;
}
.review-details .highlight {
  color: #0055ff;
  font-weight: 500;
}

.review-text {
  font-size: 1.4rem;
  color: #333;
  margin-top: 10px;
  line-height: 1.6;
}

.review-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.review-media img {
  width: 110px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: transform 0.2s;
}
.review-media img:hover {
  transform: scale(1.03);
}
/* thumbnail nhỏ */
.video-thumb {
  position: relative;
  width: 110px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.video-overlay i {
  font-size: 18px;
  margin-bottom: 4px;
}

.video-thumb:hover .video-overlay {
  opacity: 0.7;
}

/* popup video phóng to */
.video-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-popup.active {
  display: flex;
}

.video-popup-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-popup video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 2;
}

.review-actions {
  margin-top: 10px;
  color: #999;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-actions i {
  font-size: 1.2rem;
}
