body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
  color: #4a1a3c;
}

* {
  box-sizing: border-box;
}

/* Filter Bar */
.filter-bar {
  text-align: center;
  margin: 30px 0 10px 0;
}

.filter-bar button {
  background-color: #fff0f5;
  border: 1px solid #914e62;
  color: #914e62;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  transition: 0.2s;
}

.filter-bar button:hover,
.filter-bar button.active {
  background-color: #914e62;
  color: #fff;
}

/* Shop Section */
.shop-container {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  overflow: hidden;
  background-color: #faf7f7;
  border: 1px solid #e0cfe0;
  border-radius: 15px;
  text-align: center;
  padding: 15px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}

.product-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.product-card h2 {
  font-size: 1.2em;
  margin: 10px 0 5px 0;
}

.product-card p {
  font-size: 1em;
  margin: 5px 0 10px 0;
}

.product-card .controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.product-card a.buy {
  display: inline-block;
  background-color: #914e62;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  text-decoration: none;
  transition: background-color 0.2s;
}

.product-card a.buy:hover {
  background-color: #6f3850;
}

.product-card a.details {
  /* display: inline-block;
  padding: 10px 14px;
  border-radius: 25px;
  border: 2px solid #e8cbd8;
  background: transparent;
  color: #6f3850;
  text-decoration: none; */
  font-size: 0.95em;
}

footer {
  background-color: #914e62;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.empty {
  text-align: center;
  padding: 40px;
  color: #7a606f;
}

/* Animate shine on hover */
.product-card.active::after,
.product-card:hover::after {
  animation: shine 3s forwards;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.sparkle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.15; /* very subtle */
  pointer-events: none;
  box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.2);
  animation: sparkle 2.5s linear forwards; /* slower and linear */
}

@keyframes sparkle {
  0% {
    transform: scale(0);
    opacity: 0.15;
  }
  50% {
    transform: scale(1);
    opacity: 0.2;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* Scroll reveal for product cards (and any element with .reveal) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 600ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: opacity, transform;
}

/* visible state */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* optional: small scale, slightly prettier */
.reveal.scale {
  transform: translateY(20px) scale(0.98);
}
.reveal.scale.is-visible {
  transform: translateY(0) scale(1);
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    transition: none !important;
    /* transform: none !important; */
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
  body {
    background-color: #ffffff;
  }
  .shop-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
  }

  .product-card {
    padding: 8px;
    border-radius: 12px;
    background-color: #faf7f7;
  }

  .product-card img {
    height: 170px;
  }

  .product-card.active::after,
  .product-card:hover::after {
    animation: shine 3s forwards;
  }

  .product-card h2 {
    font-size: 14px;
    margin: 8px 0 4px;
  }

  .product-card p {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .product-card .controls {
    flex-direction: column;
    gap: 6px;
  }

  .product-card a.buy,
  .product-card a.details {
    width: 100%;
    text-align: center;
    font-size: 13px;
    padding: 8px 10px;
  }
}
