/* Products Grid Styles */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 200px;
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image.pink {
  background-color: var(--pink);
}

.product-image.pink-light {
  background-color: var(--pink-light);
}

.product-image.coral {
  background-color: var(--coral);
}

.product-image.blue {
  background-color: var(--blue);
}

.product-image.blue-light {
  background-color: var(--blue-light);
}

.product-image.teal {
  background-color: var(--teal);
}

.product-image.beige {
  background-color: var(--beige);
}

.product-image.cream {
  background-color: var(--cream);
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.favorite-btn:hover {
  background-color: var(--pink);
}

.favorite-btn.active {
  background-color: var(--pink);
}

.favorite-btn.active svg path {
  fill: white;
}

.product-info {
  padding: 16px;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--dark-text);
}

.product-info p {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-text);
}

.product-price span::before {
  content: 'R$';
  font-size: 0.8rem;
  margin-right: 2px;
}

.add-to-cart {
  background-color: var(--teal);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.add-to-cart:hover {
  background-color: var(--blue);
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .product-image {
    height: 150px;
    background-size: cover;
    background-position: center center;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-image {
    height: 140px;
    background-size: cover;
    background-position: center center;
  }
  
  .product-card {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .product-info {
    padding: 10px;
  }
  
  .product-info h3 {
    font-size: 0.9rem;
    line-height: 1.2;
  }
  
  .product-info p {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }
  
  .product-price span {
    font-size: 1.1rem;
  }
  
  .add-to-cart {
    width: 32px;
    height: 32px;
  }
}

/* Estilos específicos para cards da home */
.home-product-card {
  transition: var(--transition);
}

.home-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.home-product-card .product-price {
  justify-content: center;
}

.home-product-card .product-price span {
  font-size: 1.4rem;
  color: var(--teal);
}

/* Animação de destaque */
@keyframes highlight {
  0%, 100% {
    box-shadow: var(--box-shadow);
  }
  50% {
    box-shadow: 0 0 20px rgba(42, 104, 119, 0.5);
    transform: translateY(-5px);
  }
}

/* Proteções de segurança via CSS */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}