.product-details-page {
  padding: 38px 0 80px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
}

/* Breadcrumb */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.pd-breadcrumb a {
  color: #334155;
  text-decoration: none;
}

.pd-breadcrumb a:hover,
.pd-breadcrumb strong {
  color: #0077ff;
}

/* Main Layout */
.pd-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  align-items: start;
}

/* Gallery */
.pd-gallery-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.pd-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-thumb {
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 2px solid #dbeafe;
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.25s ease;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 11px;
}

.pd-thumb.active,
.pd-thumb:hover {
  border-color: #0077ff;
  box-shadow: 0 8px 22px rgba(0, 119, 255, 0.16);
}

.pd-main-image {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 22px;
  background: #f4f9ff;
  overflow: hidden;
}

.pd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pd-main-image {
  cursor: zoom-in;
}

.pd-main-image.zooming img {
  transform: scale(2);
}

.pd-main-image img {
  transition: transform 0.15s ease;
  transform-origin: center center;
}

.pd-discount {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  padding: 8px 15px;
  border-radius: 999px;
  background: #ff4d5a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 77, 90, 0.25);
}

.pd-badge {
  display: none;
}

/* Info + Action Cards */
.pd-info-card,
.pd-action-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.pd-info-card {
  min-height: auto;
}

.pd-info-card h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  color: #071327;
  font-weight: 950;
  text-transform: capitalize;
}

.pd-action-card {
  grid-column: 2;
  margin-top: -205px;
}

/* Stock */
.pd-stock {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 950;
}

.pd-stock.in {
  color: #16a34a;
}

.pd-stock.out {
  color: #ef4444;
}

/* Rating */
.pd-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.pd-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pd-stars svg {
  width: 20px;
  height: 20px;
  transition: 0.2s ease;
}

.pd-stars svg path {
  stroke-width: 1.8;
}

.pd-stars svg.filled {
  fill: #fbbf24;
  stroke: #f59e0b;
}

.pd-stars svg.empty {
  fill: #e2e8f0;
  stroke: #cbd5e1;
}

.pd-rating small {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

/* Price */
.pd-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.pd-new-price {
  color: #071327;
  font-size: 28px;
  font-weight: 950;
}

.pd-old-price {
  color: #94a3b8;
  font-size: 17px;
  font-weight: 800;
  text-decoration: line-through;
}

/* Description + Meta */
.pd-short-desc {
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.65;
  font-size: 15px;
  font-weight: 600;
}

.pd-meta {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid #e5efff;
}

.pd-meta p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 750;
}

.pd-meta strong {
  color: #071327;
}

/* Quantity */
.pd-qty-box {
  width: 180px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  margin-bottom: 14px;
}

.pd-qty-box button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: #eaf3ff;
  color: #071327;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}

.pd-qty-box input {
  width: 70px;
  height: 38px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  text-align: center;
  font-weight: 950;
  outline: none;
}

.pd-min-box {
  margin-bottom: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #eff6e8;
  border: 1px solid #d8edc8;
  color: #5f6f54;
  font-size: 14px;
  font-weight: 900;
}

/* Buttons */
.pd-cart-btn,
.pd-buy-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

.pd-cart-btn {
  background: #0077ff;
  color: #ffffff;
  margin-bottom: 12px;
}

.pd-cart-btn:hover {
  background: #005fe0;
  transform: translateY(-2px);
}

.pd-cart-btn.added {
  background: #16a34a;
}

.pd-cart-btn.disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.pd-buy-btn {
  background: #ff7a00;
  color: #ffffff;
  margin-bottom: 12px;
}

.pd-buy-btn:hover {
  background: #ea580c;
  transform: translateY(-2px);
}
/* Accordion */
.pd-accordion {
  border: 1px solid #dbeafe;
  border-radius: 16px;
  overflow: hidden;
}

.pd-accordion-head {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: none;
  background: #ffffff;
  color: #071327;
  font-weight: 950;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.pd-accordion-body {
  display: none;
  padding: 0 16px 16px;
  color: #475569;
  line-height: 1.65;
  font-size: 14px;
}

.pd-accordion.active .pd-accordion-body {
  display: block;
}

/* Related Products */
.related-section {
  margin-top: 70px;
}

.related-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.related-product-grid .product-card {
  width: 100%;
}

.related-product-grid .product-image-box {
  height: 280px;
}

.related-product-grid .product-name {
  font-size: 18px;
  min-height: 52px;
}

.related-product-grid .new-price {
  font-size: 24px;
}

.related-product-grid .add-cart-btn {
  height: 52px;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
  .related-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }

  .pd-action-card {
    grid-column: auto;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .product-details-page {
    padding: 30px 0 60px;
  }

  .pd-gallery-card {
    grid-template-columns: 1fr;
  }

  .pd-thumbs {
    order: 2;
    flex-direction: row;
    overflow-x: auto;
  }

  .pd-main-image {
    height: 380px;
  }

  .pd-info-card h1 {
    font-size: 26px;
  }

  .related-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .related-product-grid .product-image-box {
    height: 230px;
  }
  
}

@media (max-width: 480px) {
  .product-details-page {
    padding: 28px 0 60px;
  }

  .pd-gallery-card,
  .pd-info-card,
  .pd-action-card {
    border-radius: 22px;
  }

  .pd-main-image {
    height: 310px;
  }

  .pd-thumb {
    width: 66px;
    height: 66px;
  }

  .related-product-grid {
    grid-template-columns: 1fr;
  }

  .related-product-grid .product-image-box {
    height: 210px;
  }
}
/* =========================
   REVIEW SECTION
========================= */

.review-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.product-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.review-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
  transition: 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.review-stars span {
  color: #fbbf24;
  font-size: 22px;
  line-height: 1;
}

.review-text {
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  min-height: 80px;
  line-break: anywhere;
}

.review-user-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

.review-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077ff, #005fe0);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-user {
  margin: 0;
  color: #071327;
  font-size: 16px;
  font-weight: 800;
}

.review-label {
  display: inline-block;
  margin-top: 4px;
  color: #0077ff;
  font-size: 13px;
  font-weight: 700;
}

.no-review {
  text-align: center;
  padding: 40px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  color: #64748b;
  font-weight: 600;
  margin-top: 25px;
}

/* Mobile */

@media (max-width: 768px) {
  .review-section {
    margin-top: 50px;
    padding-bottom: 60px;
  }
  .pd-heart-btn {
    display:none;
  }

  .product-review-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .review-card {
    padding: 20px;
    border-radius: 20px;
  }

  .review-text {
    min-height: auto;
  }

  .review-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 18px;
  }
}



