
/* Estilos do Modal de Detalhes do Produto */
.site-catalog-placeholder {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(145deg, #eef2f7, #dce4ec);
  color: #526579;
  text-align: center;
}

.site-catalog-placeholder.hidden {
  display: none;
}

.site-catalog-placeholder i {
  font-size: 2.5rem;
  color: #718399;
}

.site-catalog-placeholder span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(8px);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 193, 7, 0.1);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 0;
  z-index: 60;
  animation: slideUp 0.5s ease forwards;
}

.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  position: relative;
  padding: 1.5rem;
  padding-right: 4.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: var(--text-light);
  z-index: 2;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-gallery-item.active {
  border-color: var(--accent-color);
}

.modal-gallery-item:hover {
  transform: scale(1.05);
}

.product-feature {
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.product-feature:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.product-feature i {
  margin-right: 0.75rem;
  color: var(--accent-color);
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Abas dentro do modal */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.modal-tab {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.modal-tab:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.modal-tab.active {
  font-weight: 600;
  color: var(--accent-color);
}

.modal-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 3px 3px 0 0;
  animation: fadeIn 0.3s ease;
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Botões */
.btn-modal-action {
  background-color: var(--custom-green);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(43, 163, 4, 0.3);
  border: none;
  cursor: pointer;
}

.btn-modal-action:hover {
  background-color: #239003;
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(43, 163, 4, 0.4);
}

.btn-modal-action i {
  margin-right: 0.5rem;
}

.btn-modal-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.btn-modal-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.btn-modal-secondary i {
  margin-right: 0.5rem;
}

/* Contador de quantidade */
.quantity-selector {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  color: var(--text-light);
}

.quantity-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.quantity-input {
  width: 40px;
  background: transparent;
  border: none;
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem 0;
}

.quantity-input:focus {
  outline: none;
}

/* Destaques e efeitos de texto */
#modal-product-price {
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
  animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 1rem;
  }
  
  .modal-footer .btn-modal-action,
  .modal-footer .btn-modal-secondary {
    width: 100%;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .modal-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
  }
  
  .modal-header h2 {
    padding-right: 2.5rem;
    font-size: 1.25rem;
  }
  
  .sm\:flex-row {
    flex-direction: column;
  }
}





/* Estilos para o botão de busca */
    .btn-search {
      background-color: #0F4C81;
      color: white;
      border: none;
      border-radius: 6px;
      padding: 0.5rem 0.75rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .btn-search:hover {
      background-color: #0A3A62;
    }
    
    /* Estilos para o resumo do carrinho */
    .cart-summary {
      background-color: #F8FAFC;
      border-radius: 8px;
      padding: 1rem;
    }
    
    .cart-summary-item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.5rem;
    }
    
    .cart-summary-item.total {
      font-weight: 700;
      font-size: 1.1rem;
      border-top: 1px solid #CBD5E1;
      padding-top: 0.5rem;
      margin-top: 0.5rem;
    }
    
    /* Estilos para o campo de busca */
    .search-container {
      position: relative;
    }
    
    .search-container input {
      padding-left: 2.5rem;
    }
    
    .search-icon {
      position: absolute;
      left: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      color: #94A3B8;
    }


    /* Faixa rolável de categorias do catálogo */
    .site-category-list {
      display: flex;
      gap: 0.75rem;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 0.125rem 0.125rem 0.65rem;
      scroll-behavior: smooth;
      scroll-snap-type: x proximity;
      overscroll-behavior-x: contain;
      -webkit-overflow-scrolling: touch;
    }

    .category-pill {
      position: relative;
      flex: 0 0 8rem;
      width: 8rem;
      transition: all 0.3s ease;
      cursor: pointer;
      min-width: 8rem;
      max-width: 8rem;
      overflow: hidden;
      scroll-snap-align: start;
      white-space: normal;
    }

    .category-pill:hover {
      transform: translateY(-2px);
    }

    .category-pill.active {
      background-color: #0F4C81;
      color: white;
    }

    .category-pill.active .w-12 {
      background-color: rgba(255, 255, 255, 0.2);
    }

    .category-pill.active i {
      color: white;
    }

    .category-pill__icon {
      flex: 0 0 auto;
    }

    .category-pill__label {
      display: -webkit-box;
      width: 100%;
      min-height: 2.25rem;
      overflow: hidden;
      font-size: 0.75rem;
      font-weight: 600;
      line-height: 1.125rem;
      overflow-wrap: anywhere;
      text-align: center;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .category-pill__status {
      display: none;
      position: absolute;
      right: 0.5rem;
      top: 0.5rem;
      align-items: center;
      justify-content: center;
      color: #0F4C81;
    }

    .category-pill.is-loading {
      cursor: progress;
    }

    .category-pill.is-loading .category-pill__status {
      display: inline-flex;
    }

    .category-pill.is-loading .category-pill__icon {
      opacity: 0.45;
    }

    .product-list-loader,
    .product-list-error {
      grid-column: 1 / -1;
      min-height: 9rem;
      border-radius: 0.75rem;
      background: rgba(255, 255, 255, 0.94);
      color: #0F4C81;
    }

    .product-list-loader {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      font-weight: 600;
    }

    .product-list-loader i {
      font-size: 1.4rem;
    }

    .product-list-error {
      display: grid;
      place-items: center;
      padding: 1rem;
      text-align: center;
    }

    /* Responsividade para categorias */
    @media (max-width: 640px) {
      .category-pill {
        flex-basis: 6.75rem;
        width: 6.75rem;
        min-width: 6.75rem;
        max-width: 6.75rem;
      }
      
      .category-pill .w-12 {
        width: 2.5rem;
        height: 2.5rem;
      }

      .category-pill__label {
        font-size: 0.7rem;
        line-height: 1rem;
        min-height: 2rem;
      }
    }

    /* Esconder a barra de rolagem mas manter a funcionalidade */
    .hide-scrollbar {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
    }

    .hide-scrollbar::-webkit-scrollbar {
      display: none;  /* Chrome, Safari, Opera */
    }
    
    /* Produto publicado permanece consultável durante a reposição. */
    .site-stock-badge.site-stock-badge--esgotado {
      background: #9a3412;
      color: #fff;
    }

    .product-card--sem-estoque .site-product-actions {
      opacity: 1;
    }

    .product-card--sem-estoque .site-product-actions button {
      transform: none;
    }

    .site-reposicao {
      background: #374151;
      color: #fef3c7;
      cursor: not-allowed;
    }

    .site-stock-warning {
      padding: 0.75rem;
      border: 1px solid #d97706;
      border-radius: 0.5rem;
      color: #fef3c7;
      background: #78350f;
    }

    /* Estilos para o carrinho */
    .cart-item {
      transition: all 0.3s ease;
    }
    
    .cart-item:hover {
      background-color: rgba(203, 213, 225, 0.3);
    }
    
    /* Estilos para botões de ação */
    .action-button {
      transition: all 0.3s ease;
    }
    
    .action-button:hover {
      transform: translateY(-2px);
    }
    
    /* Estilos para inputs */
    .form-input {
      width: 100%;
      padding: 0.5rem 0.75rem;
      border-radius: 0.375rem;
      border: 1px solid #CBD5E1;
      outline: none;
      transition: all 0.2s ease;
    }
    
    .form-input:focus {
      border-color: #0F4C81;
      box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
    }
