/* Guritos - Produtos Estilizado */

:root {
  --primary: #e4c600;
  --secondary: #ba1d1d;
  --accent: #003087;
  --bg: #f0efef;
  --text: #333;
  --muted: #777;
  --border: #e0e0e0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

.products-catalog {
  padding: 60px 20px;
  text-align: center;
}

.products-catalog h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: rgb(18, 18, 18);
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
}

.product-item {
  background: #fff;
  width: 300px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.product-item:hover {
  transform: scale(1.05);
}

.product-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 16px;
}

.product-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.product-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Modal */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  overflow-y: auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.modal-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  margin: auto;
  position: relative;
}

.modal-left {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 10px;
  background-color: #fafafa;
  padding: 10px;
}

.modal-image:hover {
  transform: scale(1.05);
}

.modal-right {
  flex: 2 1 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.modal-title {
  font-size: 1.8rem;
  color: var(--text);
  margin: 0;
}

.modal-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0;
}

.modal-weight {
  display: inline-block;
  margin: 8px auto;
  background: var(--primary);
  color: #fff;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  margin: 12px;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.nutrition-table thead {
  background-color: #ffd447;
}

.nutrition-table th,
.nutrition-table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.nutrition-table tbody tr:nth-child(even) {
  background-color: #fdfade;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
}

.close-modal:hover {
  color: var(--text);
}

/* Responsivo */
@media (max-width: 768px) {
  .product-item {
    width: 90%;
    max-width: 320px;
  }

  .modal-content {
    flex-direction: column;
    align-items: center;
    padding: 24px;
  }

  .modal-left,
  .modal-right {
    width: 100%;
  }

  .modal-weight {
    margin: 8px auto;
  }

  .nutrition-table th,
  .nutrition-table td {
    font-size: 0.9rem;
  }
}