/* =======================================================
   KamalaTreats Products Stylesheet: Product Cards and Grid
   ======================================================= */

/* =======================================================
   Product Cards - LUXURY DESIRE CREATION (From components.css)
   ======================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  border: 2px solid rgba(212, 175, 55, 0.2);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--ivory) 100%);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 25px rgba(26, 29, 58, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover {
  box-shadow: 0 15px 40px rgba(26, 29, 58, 0.2);
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.4);
}

.card:hover::before {
  transform: scaleX(1);
}

.card img {
  width: 100%;
  object-fit: contain;
  border-radius: 20px;
  margin-bottom: 20px;
  padding: 0px;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  font-size: 22px;
  color: var(--deep-emerald);
  margin-bottom: 12px;
  font-weight: 700;
  flex-grow: 1;
  letter-spacing: 0.5px;
}

.card .price {
  font-size: 32px;
  color: var(--premium-gold);
  font-weight: bold;
  margin-bottom: 10px;
  background: var(--premium-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Playfair Display', serif;
}

.card .btn {
  background: linear-gradient(90deg, #d4af37 0%, #ffea70 50%, #d4af37 100%);
  color: var(--deep-emerald);
  padding: 14px 28px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.4s ease;
  display: inline-block;
  font-weight: bold;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 16px;
  margin-top: auto;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  background-size: 200% auto; /* smooth gradient scaling */
  background-position: center;
}


.card .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.card .btn:hover {
  background: var(--deep-emerald);
  color: var(--premium-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.card .btn:hover::before {
  left: 100%;
}

.card:hover .btn {
  animation: luxuryPulse 2s ease-in-out infinite;
}
@media (max-width: 768px) {
	.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}
  .card img{
      border-radius: 5px;

  }
}

@media (max-width: 768px) {
  h1, h2, h3 {
    font-size: clamp(8px, 4vw, 26px);
  }

  .card h3 {
    font-size: clamp(8px, 4vw, 22px);
  }

  .card .price {
    font-size: clamp(12px, 5vw, 30px);
  }

  .nav a {
    font-size: clamp(10px, 5vw, 20px);
  }
}



