/* ==============================================
   CROWN GEM — PRODUCT DETAILS CSS
   Matches Luxury Crown Gems UI Design
   ============================================== */

.pd-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* Breadcrumb */
.pd-breadcrumb {
  padding: 24px 0 12px;
  background: #ffffff;
}

.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: all var(--transition);
}

.pd-back:hover {
  color: var(--gold-dark);
  transform: translateX(-3px);
}

/* Product Detail Section */
.pd-detail {
  padding: 20px 0 60px;
  background: #ffffff;
}

.pd-detail__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

/* Left Gallery */
.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pd-gallery__main {
  background: #FAF8F5;
  border: 1px solid rgba(228, 220, 206, 0.8);
  border-radius: var(--radius-lg);
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03);
}

.pd-gallery__main img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.pd-gallery__main:hover img {
  transform: scale(1.04);
}

.pd-gallery__thumbs {
  display: flex;
  gap: 14px;
}

.pd-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(228, 220, 206, 0.8);
  background: #FAF8F5;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.pd-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.pd-thumb:hover,
.pd-thumb--active {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(198, 154, 89, 0.2);
}

/* Description */
.pd-description {
  margin-top: 14px;
  padding: 24px;
  background: #FAF8F5;
  border-radius: var(--radius-md);
  border: 1px solid rgba(228, 220, 206, 0.6);
}

.pd-description__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 10px;
}

.pd-description__text {
  font-size: 13.5px;
  line-height: 1.68;
  color: #444444;
}

/* Action Links */
.pd-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.pd-action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
  padding: 12px 16px;
  background: #FAF8F5;
  border: 1px solid rgba(228, 220, 206, 0.8);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.pd-action-link:hover {
  background: #ffffff;
  border-color: var(--gold);
  color: var(--gold);
}

.pd-action-link svg {
  color: var(--gold);
}

/* Share Icons */
.pd-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #FAF8F5;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(228, 220, 206, 0.6);
}

.pd-share__label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.pd-share__icons {
  display: flex;
  gap: 10px;
}

.pd-share__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(228, 220, 206, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  text-decoration: none;
  font-size: 12px;
  transition: all var(--transition);
}

.pd-share__icon:hover {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

/* Right Info */
.pd-info {
  display: flex;
  flex-direction: column;
}

.pd-info__type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.pd-info__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 16px;
}

.pd-info__name {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.15;
}

.pd-info__price {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.pd-info__short-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 24px;
}

/* Specs */
.pd-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  background: #FAF8F5;
  border-radius: var(--radius-md);
  border: 1px solid rgba(228, 220, 206, 0.8);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.pd-spec {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(228, 220, 206, 0.4);
}

.pd-spec__label {
  color: #666666;
  font-weight: 500;
}

.pd-spec__value {
  color: #1A1A1A;
  font-weight: 600;
}

/* Purchase section */
.pd-purchase {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.pd-qty {
  display: flex;
  align-items: center;
  border: 1px solid rgba(228, 220, 206, 0.9);
  border-radius: var(--radius-sm);
  background: #FAF8F5;
  height: 48px;
}

.pd-qty__btn {
  width: 40px;
  height: 100%;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #333333;
  cursor: pointer;
  transition: color var(--transition);
}

.pd-qty__btn:hover { color: var(--gold); }

.pd-qty__input {
  width: 44px;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  outline: none;
}

.pd-add-cart {
  flex-grow: 1;
  height: 48px;
  background: var(--gold);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.pd-add-cart:hover {
  background: var(--gold-dark);
}

.pd-wish-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #FAF8F5;
  border: 1px solid rgba(228, 220, 206, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  cursor: pointer;
  transition: all var(--transition);
}

.pd-wish-btn:hover,
.pd-wish-btn--active {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

.pd-buy-now {
  width: 100%;
  height: 48px;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 28px;
}

.pd-buy-now:hover {
  background: var(--gold);
  color: #ffffff;
}

/* Installments */
.pd-installment {
  background: #FAF8F5;
  border-radius: var(--radius-md);
  border: 1px solid rgba(228, 220, 206, 0.8);
  padding: 20px;
}

.pd-installment__title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 14px;
}

.pd-banks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pd-bank {
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(228, 220, 206, 0.6);
  height: 32px;
  display: flex;
  align-items: center;
}

.pd-bank img {
  max-height: 20px;
  max-width: 60px;
  object-fit: contain;
}

.pd-gateways img {
  max-height: 28px;
}

/* Related Stones Section */
.pd-related {
  padding: 60px 0 80px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.pd-related__title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 28px;
}

.pd-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.pd-rel-card {
  background: #FAF8F5;
  border-radius: var(--radius-md);
  border: 1px solid rgba(228, 220, 206, 0.8);
  padding: 20px;
  transition: all var(--transition);
}

.pd-rel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: var(--gold);
}

.pd-rel-card__img-wrap {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
}

.pd-rel-card__img-wrap img {
  max-height: 170px;
  max-width: 100%;
  object-fit: contain;
}

.pd-rel-card__wish {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  cursor: pointer;
}

.pd-rel-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.pd-rel-card__name a {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: #1A1A1A;
  text-decoration: none;
}

.pd-rel-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}

.pd-rel-card__sub {
  font-size: 12.5px;
  color: #555555;
  margin-bottom: 4px;
}

.pd-rel-card__detail {
  font-size: 11.5px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 992px) {
  .pd-detail__inner { grid-template-columns: 1fr; gap: 36px; }
  .pd-related__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pd-actions { grid-template-columns: 1fr; }
  .pd-gallery__main { height: 320px; }
  .pd-container { padding: 0 20px; }
}