/* =========================================
   MIRRORIAN — Product Details Styles
   ========================================= */

.product-detail-section {
  padding: 30px 0 10px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Gallery ── */
.product-gallery {
  position: sticky;
  top: 90px;
}

.gallery-main {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--light-gray);
  margin-bottom: 12px;
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-main:hover img {
  transform: scale(1.03);
}

/* Mirror reflection on main image */
.gallery-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 100px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
  background: var(--light-gray);
}

.gallery-thumb.active {
  border-color: var(--text-primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Product Info ── */
.product-info {
  padding-top: 10px;
}

.product-info-category {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-info-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.product-info-price {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-family: var(--font-display);
}

.product-info-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.product-info-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ── Variant Selectors ── */
.option-group {
  margin-bottom: 24px;
}

.option-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-label span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-pill {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  transition: var(--transition);
  border-radius: var(--radius);
  font-family: var(--font-body);
}

.option-pill:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.option-pill.selected {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--white);
}

/* ── Add to Cart / Actions ── */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.product-actions .btn {
  width: 100%;
  padding: 16px 32px;
  font-size: 12px;
}

/* ── Stock / Availability ── */
.product-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d6a4f;
  flex-shrink: 0;
}

.stock-dot.out {
  background: #c1121f;
}

/* ── Custom Order Info ── */
.custom-order-banner {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.custom-order-banner p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.custom-order-banner strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 20px 0;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb-sep {
  color: var(--mid-gray);
}

@media (max-width: 650px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-gallery {
    position: static;
  }
}

@media (max-width: 576px) {
  .product-detail-section {
    padding: 30px 0 60px;
  }

  .gallery-thumb {
    width: 64px;
    height: 80px;
  }
}

/* ── Color Circle Selectors ── */
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.color-option-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.color-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  padding: 0;
  box-shadow: 0 0 0 1px var(--border);
}

.color-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 1px var(--text-primary);
}

.color-circle.selected {
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--text-primary);
  transform: scale(1.1);
}

.color-name {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  text-transform: capitalize;
}

/* ── Instance Details Sections ── */
.instance-description-section,
.youtube-video-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.description-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Fullscreen Image Modal & Button ── */
.fullscreen-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--text-primary);
  transition: background 0.3s, transform 0.3s;
}

.fullscreen-btn:hover {
  background: white;
  transform: scale(1.05);
}

.fullscreen-btn svg {
  width: 20px;
  height: 20px;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.image-modal .modal-content {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  animation-name: zoom;
  animation-duration: 0.3s;
}

.image-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.image-modal .close-modal:hover,
.image-modal .close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}
