/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cormorant Garamond", serif;
}
/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background-image: url("/images/hero.png"); /* replace with your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #4a1a3c;
  padding: 0 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.3)
  );

  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  font-family: "Cormorant Garamond", serif;
}

.hero h1,
.hero p {
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.25);
}
.hero-btn {
  background-color: #914e62;
  color: #fff;
  padding: 15px 35px;
  border-radius: 25px;
  font-size: 1.1em;
  text-decoration: none;
  transition: 0.3s;
}

.hero-btn:hover {
  background-color: #6f3850;
}

/* Product Section */
.products {
  text-align: center;
  padding: 30px 20px; /* smaller side padding */
  background-color: #fff;
  width: 100%; /* full width */
  max-width: 100%; /* remove limiting width */
  margin: 0;
}

.products h2 {
  font-family: "DM Serif Display", serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 1px;

  color: #7b4b63;

  margin-bottom: 12px;

  position: relative;
  display: inline-block;
}

.products h2::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -10px;

  transform: translateX(-50%);

  width: 60px;
  height: 1.5px;

  background: rgba(123, 75, 99, 0.4);

  border-radius: 10px;
}

.section-tag {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;

  color: rgba(123, 75, 99, 0.6);

  margin-bottom: 12px;

  font-weight: 500;
}

/* Product grid layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
  gap: 20px;
  justify-content: center; /* center the grid */
  justify-items: center; /* center items within grid cells */
  justify-self: center; /* center the grid */
  max-width: 1200px; /* keeps grid width balanced */
  margin: 0 auto; /* centers on screen */
  padding: 0 20px;
}

/* Product cards */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes button to bottom */
  height: 100%; /* ensures equal height */
  background-color: #faf7f7;
  border-radius: 15px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
  cursor: pointer;
}

.product-content {
  flex-grow: 1; /* fills space above button */
  margin-bottom: 16px; /* spacing before button */
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Text styling */
.product-card h3 {
  font-size: 18px;
  color: #914e62;
  margin-bottom: 8px;
}

.product-card p {
  color: #555;
  font-size: 16px;
  margin-bottom: 10px;
}

/* Add to cart button */
/* .add-to-cart {
  width: 100%;
  padding: 10px 0;
  border: 2px solid #914e62;
  border-radius: 25px;
  background-color: transparent;
  color: #914e62;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  background-color: #914e62;
  color: #fff;
  transform: translateY(-3px);
} */

/* Hover effect */
.product-card:hover {
  transform: translateY(-10px);
}

.add-to-cart {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: transparent; /* transparent by default */
  border: 2px solid #914e62; /* brand color outline */
  color: #914e62; /* text in brand color */
  border-radius: 25px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  background-color: #914e62; /* solid brand color on hover */
  color: #fff; /* text becomes white */
  transform: translateY(-2px); /* subtle lift effect */
}

.add-to-cart {
  width: 100%;
  padding: 12px 0;
}

/* Shine streak */
.product-card {
  position: relative; /* already added for sparkles */
  overflow: hidden;
}

.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%,
    /* very subtle */ rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

/* Animate shine on hover */
.product-card.active::after,
.product-card:hover::after {
  animation: shine 3s forwards; /* increased from 1s */
}

@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;
  }
}
