.page-banner--product-detail {
  background:
    linear-gradient(105deg, rgba(7, 15, 28, 0.92) 0%, rgba(15, 39, 68, 0.88) 45%, rgba(39, 108, 245, 0.38) 100%),
    url("https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
}

.product-page {
  padding: 40px 6% 76px;
  background: #f8f9fc;
}

.product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: 32px;
  max-width: 1220px;
  margin: 0 auto;
  align-items: start;
}

.product-gallery,
.product-summary,
.product-tabs {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.07);
}

.product-gallery {
  padding: 16px;
}

.product-gallery__viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
  cursor: zoom-in;
}

.product-gallery__main {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.product-gallery__viewport.is-zooming .product-gallery__main {
  transform: scale(1.85);
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.14);
  transform: translateY(-50%);
  cursor: pointer;
}

.product-gallery__arrow:hover {
  background: var(--primary);
  color: #fff;
}

.product-gallery__arrow--prev {
  left: 14px;
}

.product-gallery__arrow--next {
  right: 14px;
}

.product-gallery__hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-gallery__thumb {
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: #eef2f8;
  cursor: pointer;
}

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

.product-gallery__thumb.is-active {
  border-color: var(--primary);
}

.product-summary {
  padding: 30px;
}

.product-summary__category {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.product-summary h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(14px, 3vw, 16px);
  line-height: 1.22;
}

.product-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 20px;
}

.product-summary__meta i {
  color: #f59e0b;
}

.product-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-pricing__sale {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.product-pricing__mrp {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
}

.product-pricing__save {
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

.product-summary__description {
  margin: 20px 0;
  color: var(--text-light);
  font-size: 14px;
  text-align: justify;
  line-height: 1.8;
}

.product-highlights {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  list-style: none;
}

.product-highlights li {
  display: flex;
  gap: 9px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.product-highlights i {
  color: var(--primary);
  margin-top: 2px;
}

.product-buy {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(39, 108, 245, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-buy:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.product-service {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.product-service span {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text-light);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.product-service i {
  color: var(--primary);
  font-size: 20px;
}

.product-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
}

.product-share span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.product-share a,
.product-share button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(39, 108, 245, 0.18);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.product-share a:hover,
.product-share button:hover {
  background: var(--primary);
  color: #fff;
}

.product-tabs {
  max-width: 1220px;
  margin: 30px auto 0;
  overflow: hidden;
}

.product-tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.product-tab {
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.product-tab.is-active {
  background: var(--card);
  color: var(--primary);
}

.product-tabs__panel {
  padding: 28px 30px 32px;
}

.product-tabs__panel h3,
.reviews-head h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 20px;
}

.product-tabs__panel p {
  max-width: 100%;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
}

.product-tabs__panel p + p {
  margin-top: 12px;
}

.product-info-content table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.product-info-content td,
.product-info-content th {
    padding: 14px 16px;
    border: 1px solid var(--border);
    font-size: 14px;
}

.product-info-content strong {
    font-weight: 600;
    color: var(--text);
}

.product-info-content td:first-child,
.product-info-content td:nth-child(3) {
    background: #f8fafc;
    font-weight: 600;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.reviews-head p {
  margin: 0;
}

.reviews-score {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 13px;
  font-weight: 800;
}

.reviews-score.is-rating-high {
  background: #dcfce7;
  color: #065f46;
}

.reviews-score.is-rating-good {
  background: #f0fdf4;
  color: #16a34a;
}

.reviews-score.is-rating-fair {
  background: #fef9c3;
  color: #92400e;
}

.reviews-score.is-rating-low {
  background: #fee2e2;
  color: #dc2626;
}

.reviews-score.is-rating-zero {
  background: #ef4444;
  color: #065f46;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.review-card__user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-card__user-info {
    display: flex;
    flex-direction: column;
}

.review-card__user-info strong {
    font-size: 15px;
    line-height: 1.2;
}

.review-card__user-info span {
    font-size: 13px;
    color: #6b7280;
}
.review-card.is-hidden {
  display: none;
}

.reviews-load-more {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 22px auto 0;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(39, 108, 245, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.reviews-load-more:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.reviews-load-more[hidden] {
  display: none;
}

.review-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-card__top strong {
  color: var(--text);
}

.review-card__top span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.review-card__images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.review-card__images img {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card__images img:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.18);
}

.review-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.review-image-viewer.is-open {
  display: block;
}

.review-image-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.84);
  backdrop-filter: blur(8px);
}

.review-image-viewer__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #07101f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.review-image-viewer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.review-image-viewer__top span {
  color: #9dbbff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.review-image-viewer__top h2 {
  margin: 2px 0 0;
  font-size: 19px;
  line-height: 1.35;
}

.review-image-viewer__close,
.review-image-viewer__nav {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.review-image-viewer__close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
}

.review-image-viewer__stage {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050b15;
}

.review-image-viewer__stage img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  display: block;
  object-fit: contain;
}

.review-image-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
  transform: translateY(-50%);
}

.review-image-viewer__nav--prev {
  left: 18px;
}

.review-image-viewer__nav--next {
  right: 18px;
}

.review-image-viewer__close:hover,
.review-image-viewer__nav:hover {
  background: var(--primary);
}

body.review-viewer-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .product-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .product-page {
    padding: 28px 5% 56px;
  }

  .product-gallery,
  .product-summary,
  .product-tabs {
    border-radius: 14px;
  }

  .product-summary {
    padding: 22px;
  }

  .product-service,
  .review-list {
    grid-template-columns: 1fr;
  }

  .product-tabs__nav {
    overflow-x: auto;
  }

  .product-tab {
    flex: 0 0 auto;
    padding: 0 18px;
  }

  .product-tabs__panel {
    padding: 22px;
  }

  .product-info-grid {
    grid-template-columns: 1fr;
  }

  .product-info-grid span {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .product-info-grid strong {
    padding-top: 4px;
  }

  .reviews-head {
    flex-direction: column;
  }

  .review-image-viewer__dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    margin: 9px auto;
    border-radius: 14px;
  }

  .review-image-viewer__top {
    padding: 14px;
  }

  .review-image-viewer__top h2 {
    font-size: 16px;
  }

  .review-image-viewer__stage {
    min-height: 300px;
  }

  .review-image-viewer__nav {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .review-image-viewer__nav--prev {
    left: 10px;
  }

  .review-image-viewer__nav--next {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery__main,
  .product-buy,
  .product-gallery__arrow,
  .review-card__images img,
  .reviews-load-more {
    transition: none;
  }
}
