/* ============================================
   VARIANT DETAILS DIALOG
   ============================================ */

.variant-details-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

/* Dialog Sections */
.dialog-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.5rem 0;
  border-bottom: 1px solid #E5E7EB;
}

.dialog-section:first-child {
  padding-top: 0;
}

.dialog-section-last {
  border-bottom: none;
  padding-bottom: 0;
}

/* Section Title */
.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0F0F0F;
  margin: 0;
  line-height: 1.5rem;
  letter-spacing: -0.01em;
}

.section-title-spacing {
  height: 1rem;
}

/* Section Content Spacing */
.section-content-spacing {
  height: 1rem;
}

/* Section Separators */
.dialog-separator {
  width: 100%;
  height: 1px;
  background-color: #E5E7EB;
  margin: 1.5rem 0;
}

.section-separator {
  width: 100%;
  height: 1px;
  background-color: #F1F3F5;
  margin: 1rem 0;
}

.section-spacing {
  height: 1.5rem;
}

/* Variant Tile inside Dialog - No border */
.variant-details-dialog .variant-tile {
  padding-bottom: 1rem;
  border-bottom: 1px solid #E5E7EB;
}

.variant-details-dialog .variant-item {
  border: none;
}

.variant-details-dialog .variant-item-with-border {
  border-bottom: none;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Desktop - Above 1024px */
@media (min-width: 1024px) {
  .dialog-section {
    padding: 1.75rem 0;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-title-spacing {
    height: 1.125rem;
  }
}

/* Tablet - 768px to 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .dialog-section {
    padding: 1.25rem 0;
  }

  .section-title {
    font-size: 1.125rem;
  }

  .section-title-spacing {
    height: 0.875rem;
  }
}

/* Mobile - Below 768px */
@media (max-width: 767px) {
  .dialog-section {
    padding: 1rem 0;
  }

  .section-title {
    font-size: 1rem;
  }

  .section-title-spacing {
    height: 0.75rem;
  }

  .section-content-spacing {
    height: 0.75rem;
  }

  .section-spacing {
    height: 1rem;
  }
}

/* Mobile Small - Below 576px */
@media (max-width: 575px) {
  .dialog-section {
    padding: 0.875rem 0;
  }

  .section-title {
    font-size: 0.9375rem;
  }

  .section-title-spacing {
    height: 0.625rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .section-title {
    color: #000;
    font-weight: 800;
  }

  .dialog-section {
    border-bottom-color: #000;
    border-bottom-width: 2px;
  }

  .dialog-separator,
  .section-separator {
    background-color: #000;
    height: 2px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .variant-details-dialog {
    transition: none;
  }
}

/* Focus States */
.dialog-section:focus-within {
  outline: 2px solid #007bff;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .dialog-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid #000;
  }

  .dialog-separator,
  .section-separator {
    background-color: #000;
    height: 1px;
  }

  .section-title {
    page-break-after: avoid;
  }

  .dialog-section {
    page-break-inside: avoid;
  }
}
