/*
  Bhadrakali Jewellers - Instant Product Detail Modal Styling
  Designed to strictly match high-end luxury jewelry e-commerce layouts.
*/

.pdm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.pdm-modal.active {
  display: flex;
}

.pdm-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 5, 25, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pdm-dialog {
  position: relative;
  width: 94%;
  max-width: 1180px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  z-index: 2;
  animation: pdmPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 30px;
}

@keyframes pdmPop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Two Column Layout */
.pdm-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: start;
}

@media (max-width: 991px) {
  .pdm-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .pdm-dialog {
    padding: 20px;
  }
  .pdm-top-meta {
    padding-right: 40px;
  }
}

/* Left Image Showcase */
.pdm-media-container {
  position: relative;
  width: 100%;
  background: #f9f6fc;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
  min-height: 420px;
}

.pdm-media-img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.pdm-media-container:hover .pdm-media-img {
  transform: scale(1.04);
}

.pdm-badge-top-left {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #aa7c11, #d4af37);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 10px rgba(170, 124, 17, 0.25);
}

/* Right Content Column */
.pdm-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Top Breadcrumb & Share/Wishlist/Close Row */
.pdm-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdm-breadcrumb {
  font-size: 0.8rem;
  color: #777777;
  font-weight: 500;
}

.pdm-breadcrumb span {
  color: var(--primary-gold-dark, #aa7c11);
}

.pdm-actions-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pdm-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e2e2;
  background: #f8f8f8;
  color: #444444;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
  padding: 0;
}

.pdm-icon-btn:hover {
  background: #4c1d6f;
  color: #ffffff;
  border-color: #4c1d6f;
  transform: translateY(-2px);
}

.pdm-close-btn-inline {
  font-size: 1.35rem;
  font-weight: 300;
  color: #444444;
  background: #eeeeee;
}

.pdm-close-btn-inline:hover {
  background: #4c1d6f;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Title & Pricing */
.pdm-title {
  font-family: var(--heading-font-family, 'Cormorant Garamond', serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #222222;
  line-height: 1.25;
  margin: 0;
}

.pdm-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.pdm-current-price {
  font-size: 2rem;
  font-weight: 800;
  color: #111111;
}

.pdm-mrp-price {
  font-size: 1.1rem;
  color: #888888;
  text-decoration: line-through;
  font-weight: 500;
}

.pdm-savings-banner {
  background: #f5edf9;
  border: 1px dashed #d1b3e8;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #4c1d6f;
  font-weight: 600;
}

.pdm-savings-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2cbf5;
  color: #4c1d6f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Dropdowns & Options */
.pdm-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdm-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}

.pdm-select-purple {
  width: 100%;
  background: #4c1d6f;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.pdm-select-purple option {
  background: #ffffff;
  color: #333333;
}

/* Pincode Input */
.pdm-pincode-wrap {
  display: flex;
  border: 1px solid #cccccc;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.pdm-pincode-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 0.88rem;
  outline: none;
}

.pdm-pincode-btn {
  background: #4c1d6f;
  color: #ffffff;
  border: none;
  padding: 0 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pdm-pincode-btn:hover {
  background: #361450;
}

.pdm-delivery-result {
  font-size: 0.82rem;
  color: #27ae60;
  font-weight: 600;
  display: none;
}

/* Breakup & Offer */
.pdm-accordion-btn {
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 16px;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.pdm-offer-text {
  font-size: 0.83rem;
  font-weight: 700;
  color: #c0392b;
}

/* Action Buttons */
.pdm-btn-cart {
  width: 100%;
  background: #4c1d6f;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(76, 29, 111, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pdm-btn-cart:hover {
  background: #371452;
  box-shadow: 0 10px 25px rgba(76, 29, 111, 0.35);
  transform: translateY(-2px);
}

.pdm-btn-enquire {
  width: 100%;
  background: #ffffff;
  color: #27ae60;
  border: 2px solid #27ae60;
  padding: 12px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.pdm-btn-enquire:hover {
  background: #27ae60;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.25);
}

/* Gold Details Spec Box */
.pdm-specs-box {
  border: 1px solid #d4af37;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 5px;
}

.pdm-specs-header {
  background: linear-gradient(135deg, #aa7c11 0%, #d4af37 100%);
  color: #ffffff;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pdm-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fffdf7;
  padding: 14px 10px;
  text-align: center;
}

.pdm-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdm-spec-item:not(:last-child) {
  border-right: 1px solid #faeecf;
}

.pdm-spec-label {
  font-size: 0.72rem;
  color: #777;
  text-transform: uppercase;
}

.pdm-spec-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #222;
}

/* Description & SKU */
.pdm-desc-box {
  border-top: 1px solid #eeeeee;
  padding-top: 14px;
}

.pdm-sku {
  font-size: 0.8rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 6px;
}

.pdm-desc-text {
  font-size: 0.82rem;
  color: #666666;
  line-height: 1.55;
  margin: 0;
}

/* Trust Badges 4 Column Grid */
.pdm-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 576px) {
  .pdm-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pdm-trust-item {
  background: #361450;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pdm-trust-icon {
  font-size: 1.2rem;
  color: #e5c158;
}

.pdm-trust-title {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}
