/**
 * WINE MODAL STYLES
 * Special styles for wine products modal with technical specifications
 */

/* ========================================
   WINE MODAL - LAYOUT LATERAL (DESABILITADO)
   Estes estilos eram para um layout de 3 colunas com specs na lateral.
   Agora specs estão integrados dentro do modal principal.
   ======================================== */

/* Wine Modal - 1600px com Specs ocupando METADE 
.product-modal .modal-content.wine-modal {
  max-width: 1800px;
  width: 100%;
  height: 80vh;
  max-height: 80vh;
}

.product-modal .modal-content.wine-modal .modal-body {
  display: grid;
  grid-template-columns: 320px 1fr 900px;
  gap: 0;
  height: 80vh;
  max-height: 80vh;
  overflow: hidden;
}

.product-modal .modal-content.wine-modal .modal-actions-footer {
  grid-column: 1 / -1;
}

.wine-specs-section {
  background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
  border-left: 3px solid rgba(241, 204, 152, 0.3);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 80vh;
  overflow: hidden;
}
*/

/* Estilos específicos do dark sidebar comentados
.wine-specs-section h3 {
  color: #F1CC98;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(241, 204, 152, 0.2);
}

.wine-specs-section h3 i {
  font-size: 1.3rem;
  color: rgba(241, 204, 152, 0.7);
}
*/

/* Specs Container - Grid já definido em product-modal.css
.specs-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.75rem;
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-content: start;
}
*/

/* Spec Group */
.spec-group {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1rem;
  padding-bottom: 1.25rem;
  border: 1px solid rgba(241, 204, 152, 0.1);
  transition: all 0.3s ease;
  break-inside: avoid;
  display: flex;
  flex-direction: column;
}

.spec-group:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(241, 204, 152, 0.2);
}

.spec-group h4 {
  color: #F1CC98;
  font-size: 0.75rem; /* Reduzido de 0.85rem */
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-group h4 i {
  font-size: 0.85rem; /* Reduzido de 1rem */
  color: rgba(241, 204, 152, 0.6);
}

/* Spec Item */
.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item > i {
  color: rgba(241, 204, 152, 0.6);
  font-size: 0.85rem; /* Reduzido de 1rem */
  width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Layout COMPACTO: 2 colunas lado a lado para campos curtos */
.spec-items-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-items-compact:last-child {
  border-bottom: none;
}

.spec-items-compact .spec-item {
  border-bottom: none;
  padding: 0;
  flex: 1;
}

.spec-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Cores para dark background comentadas - usando de product-modal.css
.spec-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.spec-value {
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 400;
}
*/

/* Empty State */
.empty-specs-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.empty-specs-message i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: rgba(241, 204, 152, 0.2);
}

.empty-specs-message p {
  font-size: 0.9rem;
  font-style: italic;
  font-family: 'Oranienbaum', serif;
}

/* Custom Scrollbar */
.specs-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.specs-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.specs-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(241, 204, 152, 0.3);
  border-radius: 3px;
}

.specs-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(241, 204, 152, 0.5);
}

/* Responsive */
@media (max-width: 1400px) {
  .product-modal .modal-content.wine-modal {
    max-width: 1200px;
  }
  
  .product-modal .modal-content.wine-modal .modal-body {
    grid-template-columns: 280px 1fr 600px;
  }
}

@media (max-width: 1024px) {
  .product-modal .modal-content.wine-modal {
    max-width: 900px;
  }
  
  .product-modal .modal-content.wine-modal .modal-body {
    grid-template-columns: 250px 1fr 400px;
  }
  
  .specs-scroll-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Override Grid Layout for Full Flex Column */
  .product-modal .modal-content.wine-modal .modal-body {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0;
    height: auto;
    max-height: none;
    overflow-y: visible; /* Let the body scroll normally */
  }
  
  /* Remove height restrictions on Wine Modal wrapper */
  .product-modal .modal-content.wine-modal {
    height: 100vh;
    max-height: none;
  }
  
  /* Ensure gallery stays at top (already handled in product-modal.css, but just in case) */
  /* .modal-gallery-section default from product-modal.css applies here */

  /* Wine Specs Section - Flows at the bottom */
  .wine-specs-section {
    border-left: none;
    border-top: 3px solid rgba(241, 204, 152, 0.3);
    height: auto;
    max-height: none; /* Allow full expansion */
    flex: none; /* Don't weirdly flex */
    padding-bottom: 100px; /* Extra padding for fixed footer */
  }
  
  /* Enable scroll on whole page, disable internal scroll of specs */
  .specs-scroll-container {
    grid-template-columns: 1fr;
    overflow-y: visible; /* No internal scroll */
    max-height: none;
    flex: none;
  }
  
  /* Ensure footer is visible and fixed (relies on product-modal.css .modal-controls) */
  .product-modal .modal-content.wine-modal .modal-actions-footer {
     position: fixed;
     bottom: 0;
     left: 0;
     width: 100%;
     z-index: 100;
  }
}
