/* ==========================================================================
   SESSAIA STUDIO | Product Detail Modal (PDP) Styles
   ========================================================================== */

.pdp-modal {
  background-color: var(--color-chalk);
  width: 95%;
  max-width: 1080px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--color-pebble-grey);
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-atelier), opacity var(--duration-normal);
}

.modal-overlay.active .pdp-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(249, 248, 246, 0.92);
  border: 1px solid var(--color-pebble-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-ink);
  transition: all var(--duration-fast);
}

.modal-close-btn:hover {
  background-color: var(--color-deep-mole);
  color: var(--color-chalk);
  transform: rotate(90deg);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

/* Modal Grid */
.pdp-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(3rem, 4vw, 4rem);
  align-items: start;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

/* Gallery Section */
.pdp-gallery-column {
  background-color: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border: none;
  border-right: none;
}

.pdp-main-image-viewport {
  position: relative;
  width: 100%;
  background-color: transparent;
  border-radius: 0;
  overflow: hidden;
  border: none;
  outline: none;
  box-shadow: none;
  display: block;
  padding: 0;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
}

.pdp-main-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.22s var(--ease-atelier), transform-origin 0.05s ease-out;
  background-color: transparent;
  transform-origin: center center;
  pointer-events: none;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Thumbnail Row */
.pdp-thumbnails {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0 0.75rem;
  background-color: transparent;
  border: none;
  outline: none;
}

.pdp-thumbnails::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pdp-thumb {
  position: relative;
  height: 72px;
  width: auto;
  flex-shrink: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  background-color: transparent;
  cursor: pointer;
  opacity: 0.45;
  padding: 0 0 6px 0;
  margin: 0;
  transition: opacity var(--duration-fast);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  -webkit-tap-highlight-color: transparent;
}

.pdp-thumb:focus,
.pdp-thumb:focus-visible {
  outline: none;
}

.pdp-thumb:hover {
  opacity: 0.75;
}

.pdp-thumb.active {
  opacity: 1;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.pdp-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-aegean-blue);
  display: none;
}

.pdp-thumb.active::after {
  display: block;
}

.pdp-thumb img {
  height: 64px;
  width: auto;
  max-width: none;
  object-fit: contain;
  background-color: transparent;
  display: block;
  border: 0;
  outline: 0;
  box-shadow: none;
}

/* Product Info Column */
.pdp-info-column {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: transparent;
  border: none;
}

.pdp-header {
  margin-bottom: var(--space-lg);
}

.pdp-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem; /* Space equivalent to a line of text below badge */
}

.badge-divider {
  color: #D1CEC7;
  font-weight: 300;
  font-size: 11px;
  user-select: none;
}

.badge-subline {
  font-size: 11px;
  color: var(--color-pebble-grey);
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.pdp-title {
  font-family: var(--font-serif-brand);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--color-slate-ink);
  line-height: 1.25;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.pdp-price {
  font-family: var(--font-serif-editorial);
  font-size: 1.55rem;
  color: var(--color-deep-mole);
  font-weight: 400; /* Cormorant Garamond Regular */
  letter-spacing: 0.02em;
}

.pdp-description {
  color: var(--color-slate-ink-60);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* Material Transparency Section (Borderless Quiet-Luxury List) */
.material-transparency-box {
  background-color: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: none;
}

.transparency-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-slate-ink);
  margin-bottom: 1rem;
  border-bottom: none;
  padding-bottom: 0;
}

.transparency-header svg {
  display: none;
}

.transparency-specs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #E5E3DD;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #E5E3DD;
}

.spec-label {
  color: #626C77;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  flex-shrink: 0;
}

.spec-value {
  color: var(--color-slate-ink);
  font-family: var(--font-serif-editorial);
  font-size: 1.12rem;
  font-weight: 400;
  text-align: right;
  line-height: 1.45;
}

/* Fallback grid if spec-row wrapper is not used */
.transparency-specs:not(:has(.spec-row)) {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 0;
  column-gap: 1.5rem;
  border-top: 1px solid #E5E3DD;
}

.transparency-specs:not(:has(.spec-row)) .spec-label,
.transparency-specs:not(:has(.spec-row)) .spec-value {
  padding: 0.85rem 0;
  border-bottom: 1px solid #E5E3DD;
}

.transparency-specs:not(:has(.spec-row)) .spec-label {
  color: #626C77;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
}

.transparency-specs:not(:has(.spec-row)) .spec-value {
  text-align: right;
  color: var(--color-slate-ink);
  font-family: var(--font-serif-editorial);
  font-size: 1.12rem;
  line-height: 1.45;
}

/* Studio Note Callout */
.inclusions-note {
  background-color: transparent;
  border: none;
  border-left: none;
  padding: 0;
  font-size: 1.02rem;
  font-family: var(--font-serif-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--color-slate-ink);
  margin-top: 1.75rem;
  margin-bottom: var(--space-xl);
  line-height: 1.75;
  border-radius: 0;
}

/* Actions */
.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pdp-add-btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-serif-brand);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-transform: uppercase;
  background-color: var(--color-deep-mole);
  border: 1px solid var(--color-deep-mole);
  color: var(--color-chalk);
  cursor: pointer;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-atelier);
}

.pdp-add-btn .btn-label,
.pdp-add-btn > span {
  display: block;
  width: 100%;
  line-height: 1.35;
  text-align: center;
  transform: translateY(1.5px); /* Optical cap-height alignment */
}

.pdp-add-btn:hover {
  background-color: var(--color-aegean-blue);
  border-color: var(--color-aegean-blue);
  color: var(--color-chalk);
  box-shadow: 0 6px 20px rgba(74, 93, 110, 0.28);
  transform: translateY(-1px);
}

.pdp-shipping-hint {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--color-pebble-grey);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: var(--space-sm);
  line-height: 1.5;
}

.pdp-shipping-hint svg {
  display: none;
}

@media (max-width: 860px) {
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .pdp-gallery-column {
    border-right: none;
    border-bottom: none;
  }
}
