.container {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  padding: 60px 0;
  margin: 0 auto;
  line-height: 1.5;
  box-sizing: border-box;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0 15px;
  box-sizing: border-box;
}

.carousel-container h1 {
  text-align: center;
  margin-bottom: 50px;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: 1px;
  color: #333;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  touch-action: pan-y;
}

.carousel-track.dragging {
  transition: none;
  cursor: grabbing;
}

/* Product Cards */
.product-card {
  flex: 0 0 calc(33.333% - 20px);
  margin: 0 10px;
  min-width: 0;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  opacity: 1;
}

.product-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.quick-view-btn {
  padding: 12px 24px;
  background-color: white;
  color: var(--marrom, #8B4513);
  border: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-view-btn:hover {
  background-color: #333;
  color: white;
}

.product-info {
  padding: 20px 0;
  text-align: center;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #333;
}

.product-price {
  font-size: 16px;
  color: #777;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  color: var(--marrom, #8B4513);
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  opacity: 1;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.indicator {
  width: 30px;
  height: .5rem;
  background-color: #ddd;
  margin: 0 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: #333;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #333;
  z-index: 10;
  transition: transform 0.3s ease;
  font-size: 24px;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-product {
  display: flex;
  flex-direction: row;
}

.modal-product-image {
  flex: 0 0 50%;
  background-color: #f5f5f5;
}

.modal-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-product-info {
  flex: 0 0 50%;
  padding: 40px;
}

.modal-product-info h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
  color: #333;
}

.modal-product-price {
  font-size: 20px;
  color: #777;
  margin-bottom: 20px;
}

.modal-product-description {
  margin-bottom: 30px;
  line-height: 1.6;
  color: #555;
}

.modal-product-details {
  margin-bottom: 30px;
}

.modal-product-details h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #333;
}

.modal-product-details ul {
  list-style-type: none;
}

.modal-product-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #555;
}

.modal-product-details li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: #333;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px;
  background-color: #25D366;
  color: white;
  border: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  gap: 10px;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
}

.whatsapp-icon {
  margin-right: 5px;
}

/* Media Queries */
@media (min-width: 1200px) {
  .product-card {
    flex: 0 0 calc(25% - 30px); /* 4 cards on larger screens */
  }
}

@media (max-width: 768px) {
  .product-card {
    flex: 0 0 calc(50% - 20px); /* 2 cards com margem menor */
    margin: 0 10px;
  }

  .product-carousel-container {
    padding: 0 10px;
  }

  h1 {
    margin-bottom: 30px;
    font-size: 28px;
  }

  .modal-product {
    flex-direction: column;
  }

  .modal-product-image,
  .modal-product-info {
    flex: 0 0 100%;
  }

  .modal-product-image {
    height: 300px;
  }

  .modal-product-info {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .product-card {
    flex: 0 0 calc(100% - 20px);
    margin: 0 10px;
  }

  .product-image {
    height: 350px;
  }

  .product-carousel-container {
    padding: 40px 10px;
  }

  h1 {
    font-size: 24px;
  }

  .modal-product-info {
    padding: 20px;
  }

  .modal-product-info h2 {
    font-size: 20px;
  }
}