/* Combo Lentes Standalone - CSS */

.combo-lentes-standalone {
  margin: 20px 0;
}

/* ======================
   TOPO ESTILIZADO
====================== */
.header-section {
  background: linear-gradient(135deg, #5050fb 0%, #3d3df5 100%);
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(80, 80, 251, 0.3);
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
  opacity: 0.3;
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.header-icon {
  font-size: 2.5em;
  color: #fff;
  animation: pulse 2s infinite;
}

.header-text h1 {
  color: #fff;
  font-size: 2.2em;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Arial', sans-serif;
}

.header-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
  font-weight: 500;
  margin-top: 5px;
  display: block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Responsivo para o header */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
  }
  
  .header-text h1 {
    font-size: 1.8em;
  }
  
  .header-subtitle {
    font-size: 1em;
  }
  
  .header-icon {
    font-size: 2em;
  }
}

/* ======================
   SEÇÃO DE BUSCA
====================== */
.search-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.search-header h3 {
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 1.4em;
  text-align: center;
}

.search-header h3 i {
  color: #5050fb;
  margin-right: 8px;
}

.search-header p {
  color: #6c757d;
  margin-bottom: 15px;
  font-size: 0.95em;
  text-align: center;
}

.search-input-group {
  position: relative;
  width: 100%;
  max-width: none;
}

.search-input-group input {
  width: 100%;
  font-size: 16px !important;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.3s;
  box-sizing: border-box;
  text-align: center;
  height: 45px  ;
}

.search-input-group input:focus {
  border-color: #5050fb;
  box-shadow: 0 0 0 3px rgba(80, 80, 251, 0.1);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}

.search-result-info {
  flex: 1;
}

.search-result-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
}

.search-result-model {
  font-size: 0.85em;
  color: #6c757d;
  margin-bottom: 2px;
}

.search-result-price {
  font-weight: bold;
  color: #5050fb;
  font-size: 0.95em;
}

/* ======================
   LAYOUT PRINCIPAL
====================== */
.main-layout {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

/* Coluna Esquerda - Seleção */
.selection-column {
  flex: 2;
  min-width: 0;
}

/* Coluna Direita - Resumo */
.summary-column {
  flex: 1;
  min-width: 320px;
}

/* ======================
   ETAPAS DE SELEÇÃO
====================== */
.selection-step {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.selection-step.active {
  border-color: #5050fb;
  box-shadow: 0 0 0 2px rgba(80, 80, 251, 0.1);
}

.step-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
}

.selection-step.active .step-header {
  background: linear-gradient(135deg, #5050fb, #4040e6);
  color: white;
  border-bottom-color: #5050fb;
}

.step-number {
  background: #5050fb;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 12px;
  font-size: 0.9em;
}

.selection-step.active .step-number {
  background: white;
  color: #5050fb;
}

.step-header h4 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
}

.step-content {
  padding: 20px;
}

/* ======================
   CARDS DE OPÇÃO
====================== */
.option-card {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.option-card:hover {
  border-color: #5050fb;
  box-shadow: 0 2px 8px rgba(80, 80, 251, 0.1);
}

.option-card.selected {
  border-color: #5050fb;
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(80, 80, 251, 0.1);
}

.option-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.option-icon {
  margin-right: 15px;
  flex-shrink: 0;
}

.option-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.option-info {
  flex: 1;
}

.option-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  font-size: 1em;
}

.option-desc {
  color: #6c757d;
  font-size: 0.9em;
  line-height: 1.4;
}

.option-price {
  font-weight: bold;
  color: #5050fb;
  font-size: 1.1em;
  margin-left: 15px;
}

.recommendation-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #e2ffe3;
  color: #01573c;
  font-size: 0.7em;
  font-weight: bold;
  padding: 4px 10px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ======================
   RESUMO DO PEDIDO
====================== */
.summary-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  position: sticky;
  top: 20px;
  overflow: hidden;
}

.summary-section {
  padding: 20px;
  border-bottom: 1px solid #f1f1f1;
}

.summary-section:last-child {
  border-bottom: none;
}

.summary-section h5 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1em;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.summary-section h5 i {
  color: #5050fb;
  margin-right: 8px;
  width: 16px;
}

/* Produto Selecionado */
.selected-product {
  border: 2px dashed #dee2e6;
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-placeholder {
  color: #6c757d;
}

.product-placeholder i {
  font-size: 1.5em;
  margin-bottom: 8px;
  display: block;
}

.selected-product.has-product {
  border-style: solid;
  border-color: #5050fb;
  background: #f0f7ff;
  text-align: left;
  justify-content: flex-start;
}

.product-info {
  display: flex;
  align-items: center;
  width: 100%;
}

.product-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 12px;
}

.product-details {
  flex: 1;
}

.product-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
  font-size: 0.9em;
  line-height: 1.2;
}

.product-model {
  color: #6c757d;
  font-size: 0.8em;
  margin-bottom: 2px;
}

.product-price {
  color: #5050fb;
  font-weight: bold;
  font-size: 0.9em;
}

/* Resumo das Lentes */

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.summary-label {
  color: #6c757d;
  font-size: 0.9em;
}

.summary-value {
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.9em;
}

/* Breakdown de Preços */

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.price-item.total {
  border-top: 2px solid #e9ecef;
  padding-top: 15px;
  margin-top: 15px;
  font-size: 1.1em;
  font-weight: 600;
}

.price-label {
  color: #6c757d;
}

.price-item.total .price-label {
  color: #2c3e50;
  font-weight: 600;
}

.price-value {
  color: #5050fb;
  font-weight: bold;
}

/* Botões de Ação */
.action-buttons {
  text-align: center;
}

.btn-add-combo {
  background: #5050fb;
  border-color: #5050fb;
  font-weight: 600;
  padding: 12px 20px;
  font-size: 1em;
  transition: all 0.2s;
}

.btn-add-combo:hover:not(:disabled) {
  background: #4040e6;
  border-color: #4040e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(80, 80, 251, 0.3);
}

.btn-add-combo:disabled {
  background: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
}

.btn-add-alternative {
  background: white;
  border: 2px solid #6c757d;
  color: #6c757d;
  font-weight: 600;
  padding: 12px 20px;
  font-size: 0.9em;
  transition: all 0.2s;
}

.btn-add-alternative:hover:not(:disabled) {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
}

.btn-add-alternative:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-debug {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 8px;
  font-family: monospace;
}

.action-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 10px;
  margin-top: 10px;
}

.action-error .text-danger {
  color: #721c24 !important;
}

.action-error i {
  color: #dc3545;
  margin-right: 5px;
}

.action-info {
  margin-top: 10px;
  padding: 8px;
  background: #fff3cd;
  border-radius: 4px;
  border: 1px solid #ffeaa7;
}

.action-info small {
  color: #856404;
  font-size: 0.8em;
}

/* ======================
   RESPONSIVIDADE
====================== */
@media (max-width: 992px) {
  .main-layout {
    flex-direction: column;
    gap: 20px;
  }
  
  .summary-column {
    min-width: auto;
  }
  
  .summary-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .combo-lentes-standalone {
    margin: 10px 0;
  }
  
  .search-section {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .option-card {
    padding: 12px;
  }
  
  .option-icon img {
    width: 40px;
    height: 40px;
  }
  
  .step-content {
    padding: 15px;
  }
  
  .summary-section {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .search-input-group {
    max-width: 100%;
  }
  
  .option-card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  
  .option-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .option-price {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .product-info {
    flex-direction: column;
    text-align: center;
  }
  
  .product-image {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* ======================
   ANIMAÇÕES
====================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-layout {
  animation: fadeIn 0.3s ease-out;
}

.option-card {
  transition: all 0.2s ease;
}

.option-card:hover {
  transform: translateY(-1px);
}

/* ======================
   ESTADOS DE LOADING
====================== */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #5050fb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ======================
   MODAL DE ZOOM DA IMAGEM
====================== */
.image-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.zoom-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.image-info {
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.image-info h4 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 1.2em;
}

.image-info p {
  margin: 0;
  color: #6c757d;
  font-size: 0.95em;
}

/* Cursor pointer para imagens clicáveis */
.product-image {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ======================
   BOTÕES DE DETALHES
====================== */
.btn-details {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #5050fb;
  color: white;
  border: none;
  padding: 2px 10px;
  font-size: 0.7em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 6px;
}

.btn-details:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-details i {
  font-size: 11px;
}

/* ======================
   MODAL DE DETALHES
====================== */
.details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.details-modal .modal-content {
  position: relative;
  max-width: 800px;
  width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.3em;
}

.modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.details-image {
  text-align: center;
  margin-bottom: 20px;
}

.details-image img {
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  padding: 10px;
}

.details-info h5 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.2em;
  text-align: center;
}

.details-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.spec-label {
  font-size: 0.85em;
  color: #6c757d;
  margin-bottom: 4px;
  font-weight: 500;
}

.spec-value {
  font-weight: bold;
  color: #2c3e50;
}

.details-description {
  margin-bottom: 20px;
}

.details-description h6 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1em;
}

.details-description ul {
  margin: 0;
  padding-left: 20px;
}

.details-description li {
  margin-bottom: 6px;
  color: #495057;
  font-size: 0.95em;
}

.details-comparison {
  margin-top: 20px;
}

.details-comparison h6 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1em;
}

.thickness-comparison {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.thickness-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.thickness-visual {
  background: #007bff;
  border-radius: 4px 4px 0 0;
  width: 40px;
  transition: all 0.3s;
}

.thickness-visual.current {
  background: #28a745;
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.thickness-label {
  font-size: 0.8em;
  color: #6c757d;
  text-align: center;
  font-weight: 500;
}

/* Responsivo para modal de detalhes */
@media (max-width: 768px) {
  .details-modal .modal-content {
    width: 95vw;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .details-specs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .thickness-comparison {
    padding: 15px;
  }
  
  .thickness-visual {
    width: 30px;
  }
  
  .btn-details {
    padding: 4px 8px;
    font-size: 11px;
    bottom: 8px;
    right: 8px;
  }
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ======================
   BOTÃO DETALHES DA LENTE
====================== */
.btn-detalhes-lente {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #5050fb;
  color: white;
  border: none;
  padding: 2px 10px;
  font-size: 0.7em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 6px;
}

.btn-detalhes-lente:hover {
  background: #3d3df5;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(80, 80, 251, 0.3);
}

.btn-detalhes-lente i {
  font-size: 10px;
}

/* ======================
   MODAL DETALHES DA CATEGORIA
====================== */
.modal-detalhes-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.modal-detalhes-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  animation: scaleIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.modal-detalhes-header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-details-title {
  margin: 0;
  color: #2c3e50;
  font-size: 1.4em;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}

.modal-close-btn:hover {
  color: #333;
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.modal-detalhes-body {
  padding: 15px 20px 60px 20px; /* Espaço para barra superior e footer */
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.modal-detalhes-image-container {
  text-align: center;
  margin-bottom: 20px;
}

.category-details-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-detalhes-info {
  text-align: center;
}

.modal-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px 12px 0 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-details-price-container {
  background: rgba(80, 80, 251, 0.95);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(80, 80, 251, 0.3);
  animation: slideUp 0.3s ease-out;
  margin: 0;
}

.category-details-price {
  color: white;
  font-size: 1.4em;
  font-weight: bold;
  margin: 0;
}

.category-details-description {
  color: #555;
  font-size: 1em;
  line-height: 1.5;
  margin: 0;
  padding: 0 20px 20px;
}

.modal-detalhes-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10001;
  border-radius: 0 0 12px 12px;
}

.btn-close-modal {
  background: #5050fb;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.btn-close-modal:hover {
  background: #3d3df5;
}

/* Responsivo */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .zoom-image {
    max-height: 60vh;
  }
  
  .image-info {
    padding: 15px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  
  .modal-detalhes-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .modal-close-btn {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  
  .modal-top-bar {
    height: 50px;
    padding: 0 15px;
  }
  
  .category-details-price-container {
    padding: 6px 15px;
    font-size: 0.9em;
  }
  
  .modal-detalhes-body {
    padding: 5px 15px 50px 15px;
  }
  
  .category-details-price {
    font-size: 1.2em;
  }
  
  .modal-detalhes-footer {
    padding: 12px 15px;
  }
  
  .btn-close-modal {
    padding: 8px 20px;
    font-size: 13px;
  }
  
  .btn-detalhes-lente {
    font-size: 10px;
    padding: 4px 6px;
  }
}

/* ======================
   PREÇOS PROMOCIONAIS
====================== */

/* Preços Especiais nos Resultados da Busca */
.search-result-price .price-special {
  color: #e74c3c;
  font-weight: bold;
  font-size: 1.1em;
  display: inline;
  margin-left: 10px;
}

.search-result-price .price-original {
  color: #95a5a6;
  font-size: 0.9em;
  text-decoration: line-through;
  display: inline;
  position: relative;
}

.search-result-price .price-original::after {
  content: ' →';
  color: #bdc3c7;
  margin: 0 4px;
}

/* Preços Especiais no Produto Selecionado */
.product-price .price-special {
  color: #e74c3c;
  font-weight: bold;
  font-size: 1.2em;
  display: inline;
  margin-left: 10px;
}

.product-price .price-original {
  color: #95a5a6;
  font-size: 1em;
  text-decoration: line-through;
  display: inline;
  position: relative;
}

.product-price .price-original::after {
  content: ' →';
  color: #bdc3c7;
  margin: 0 4px;
}

/* Preços Especiais no Breakdown (resumo de preços) */
.price-value .price-special {
  color: #e74c3c;
  font-weight: bold;
  margin-left: 10px;
}

.price-value .price-original {
  color: #95a5a6;
  font-size: 0.9em;
  text-decoration: line-through;
  position: relative;
}

.price-value .price-original::after {
  content: ' →';
  color: #bdc3c7;
  margin: 0 4px;
}

/* Animação sutil para destacar preços especiais */
.price-special {
  animation: priceHighlight 2s ease-in-out;
}

@keyframes priceHighlight {
  0% { 
    background-color: rgba(231, 76, 60, 0.1);
    transform: scale(1);
  }
  50% { 
    background-color: rgba(231, 76, 60, 0.15);
    transform: scale(1.02);
  }
  100% { 
    background-color: transparent;
    transform: scale(1);
  }
}

/* Mensagens de Status na Busca */
.search-no-results {
  padding: 20px;
  text-align: center;
  color: #7f8c8d;
  font-style: italic;
}

.search-error {
  padding: 20px;
  text-align: center;
  color: #e74c3c;
  background-color: #fdf2f2;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin: 10px 0;
}

.search-loading {
  padding: 20px;
  text-align: center;
  color: #5050fb;
  font-style: italic;
}

/* Responsivo */
@media (max-width: 768px) {
  .search-result-price .price-special,
  .product-price .price-special {
    font-size: 1em;
  }
  
  .search-result-price .price-original,
  .product-price .price-original {
    font-size: 0.85em;
  }
}
