/* ===== CATÁLOGO DE PRODUTOS ===== */
/* Este CSS complementa o style.css principal e adiciona estilos específicos do catálogo */

/* SEÇÃO HERO DO CATÁLOGO */
.catalogo-main {
  background-color: #F3F3F3;
}

.catalogo-hero {
  background: linear-gradient(135deg, #00101F 0%, #052A4F 100%);
  color: #f3f3f3;
  padding: 60px 24px;
  text-align: center;
}

.catalogo-hero-container {
  max-width: 1280px;
  margin: 0 auto;
}

.catalogo-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
}

.catalogo-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-family: 'DM Sans', sans-serif;
}

/* CONTAINER PRINCIPAL */
.catalogo-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

/* BARRA DE FILTROS */
.filters-sidebar {
  background: white;
  padding: 24px;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: 'DM Sans', sans-serif;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #F3F3F3;
}

.filters-header h2 {
  font-size: 1.25rem;
  color: #00101F;
  font-weight: 700;
}

.btn-clear-filters {
  background: none;
  border: none;
  color: #DF4600;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 8px 12px;
  transition: color 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

.btn-clear-filters:hover {
  color: #FF6008;
  text-decoration: underline;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #00101F;
  margin-bottom: 12px;
}

/* INPUT DE BUSCA */
.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

.search-input:focus {
  outline: none;
  border-color: #DF4600;
}

/* FILTROS (CHECKBOXES) */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.filter-option:hover {
  background-color: #F3F3F3;
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #DF4600;
}

.filter-option span {
  font-size: 0.9rem;
  color: #1a1a1a;
}

/* SELECT DE ORDENAÇÃO */
.sort-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  background-color: white;
  transition: border-color 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

.sort-select:focus {
  outline: none;
  border-color: #DF4600;
}

/* SEÇÃO DE PRODUTOS */
.products-section {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.products-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #F3F3F3;
}

#resultsCount {
  font-size: 1rem;
  color: #052A4F;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

/* GRID DE PRODUTOS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* CARD DE PRODUTO */
.product-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #DF4600;
}

/* IMAGEM DO PRODUTO */
.product-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  background-color: #F3F3F3;
  margin-bottom: 12px;
}

/* BADGE DE MARCA */
.product-brand {
  display: inline-block;
  padding: 4px 12px;
  background-color: #DF4600;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 8px;
  width: fit-content;
}

/* NOME DO PRODUTO */
.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #00101F;
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 40px;
}

/* VOLUME/TAMANHO */
.product-size {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

/* DETALHES DO PRODUTO (CATEGORIA, CAIXA) */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.product-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.product-detail-label {
  color: #666;
}

.product-detail-value {
  font-weight: 600;
  color: #00101F;
}

/* LOADING E ERROS */
.loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  font-size: 1.1rem;
  color: #052A4F;
  font-family: 'DM Sans', sans-serif;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  font-family: 'DM Sans', sans-serif;
}

.no-results h3 {
  font-size: 1.25rem;
  color: #00101F;
  margin-bottom: 8px;
  font-weight: 700;
}

.no-results p {
  font-size: 1rem;
  color: #666;
}

/* FOOTER AJUSTES */
.footer {
  background-color: #f3f3f3;
  color: #00101F;
  padding: 48px 24px 24px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3,
.footer-section h4 {
  color: #00101F;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-section p {
  opacity: 0.9;
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-section p a {
  color: #DF4600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section p a:hover {
  color: #FF6008;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #00101F;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  opacity: 1;
  color: #DF4600;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

.social-links {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.social-links li {
  margin-bottom: 6px;
}

.social-links a {
  color: #00101F;
  text-decoration: none;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #DF4600;
  opacity: 1;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
  .catalogo-container {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
    top: auto;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .catalogo-hero {
    padding: 40px 16px;
    margin-top: 80px;
  }

  .catalogo-title {
    font-size: 1.75rem;
  }

  .catalogo-subtitle {
    font-size: 0.95rem;
  }

  .catalogo-container {
    padding: 24px 16px;
    gap: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card {
    padding: 12px;
  }

  .product-image {
    height: 140px;
  }

  .product-name {
    font-size: 0.9rem;
    min-height: 36px;
  }
}

@media (max-width: 480px) {
  .catalogo-hero {
    padding: 32px 12px;
  }

  .catalogo-title {
    font-size: 1.5rem;
  }

  .catalogo-container {
    grid-template-columns: 1fr;
    padding: 16px 12px;
  }

  .filters-sidebar {
    padding: 16px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    padding: 10px;
  }

  .product-image {
    height: 120px;
    margin-bottom: 8px;
  }

  .product-name {
    font-size: 0.85rem;
  }

  .product-detail-item {
    font-size: 0.8rem;
  }
}

/* ===== MODAL DE PRODUTO ===== */
.product-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 16, 31, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-modal-overlay.active {
  display: flex;
}

.product-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.25s ease;
  font-family: 'DM Sans', sans-serif;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #F3F3F3;
  color: #00101F;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1;
}

.modal-close:hover {
  background: #e0e0e0;
}

.modal-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
}

.modal-image-wrapper {
  background: #F3F3F3;
  border-radius: 16px 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  min-height: 320px;
}

.modal-image {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
}

.modal-info {
  padding: 32px 40px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-brand-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #DF4600;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  width: fit-content;
  letter-spacing: 0.5px;
}

.modal-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #00101F;
  line-height: 1.3;
  margin: 0;
}

.modal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-field--full {
  grid-column: 1 / -1;
}

.modal-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #888;
}

.modal-field-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #00101F;
  line-height: 1.4;
}

/* Modal responsivo */
@media (max-width: 640px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image-wrapper {
    border-radius: 16px 16px 0 0;
    min-height: 200px;
    padding: 24px;
  }

  .modal-image {
    max-height: 180px;
  }

  .modal-info {
    padding: 24px 20px;
  }

  .modal-fields {
    grid-template-columns: 1fr;
  }

  .modal-field--full {
    grid-column: 1;
  }
}