
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600&display=swap');

body {
  margin: 0;
  font-family: 'Fredoka', sans-serif;

  /* 🌈 Pastel animated background */
  background: linear-gradient(
    135deg,
    #d6f0ff,
    #ead6ff,
    #ecb6db
  );

  background-size: 400% 400%;
  animation: gradientFlow 12s ease infinite;

  color: #555;
  overflow-x: hidden;
}

/* 🌈 BACKGROUND SHIFT */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ✨ HERO */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  animation: fadeUp 1s ease;
}

.hero h1 {
  font-size: 4rem;
  margin: 0;

  color: white;

  text-shadow:
    0 0 15px rgba(255,182,193,0.8),
  animation: floatText 3s ease-in-out infinite;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.7;
}

/* BUTTON */
.hero button {
  margin-top: 20px;
  padding: 12px 20px;

  border: none;
  border-radius: 15px;

  cursor: pointer;

  background: linear-gradient(
    45deg,
    #ffd6ec,
    #d6f0ff,
    #ead6ff
  );

  transition: 0.3s;
}

.hero button:hover {
  transform: scale(1.08);
}

/* FLOAT TITLE */
@keyframes floatText {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* FADE IN */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CART ICON FLOAT */
.cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;

  background: white;
  padding: 10px 15px;

  border-radius: 50px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.1);

  cursor: pointer;

  animation: floatCart 2.5s ease-in-out infinite;
}

@keyframes floatCart {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* FILTER BUTTONS */
.filters {
  display: flex;
  justify-content: center;
  gap: 10px;

  padding: 20px;

  animation: fadeUp 1s ease;
}

.filters button {
  border: none;
  padding: 10px 15px;

  border-radius: 12px;

  background: rgba(255,255,255,0.6);

  cursor: pointer;

  transition: 0.3s;
}

.filters button:hover {
  transform: scale(1.05);
}

/* PRODUCT GRID */
#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 20px;

  padding: 30px;

  animation: fadeUp 1.2s ease;
}

/* PRODUCT CARD */
.product {
  background: rgba(255,255,255,0.55);

  border-radius: 25px;

  padding: 15px;

  text-align: center;

  backdrop-filter: blur(12px);

  border: 2px solid rgba(255,255,255,0.4);

  transition: 0.35s ease;

  animation: popIn 0.6s ease;
}

/* POP IN */
@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.product:hover {
  transform: translateY(-12px) scale(1.03) rotate(-1deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product img {
  width: 100%;
  border-radius: 18px;

  transition: 0.3s;
}

.product img:hover {
  transform: scale(1.05);
}

/* BUTTON */
.product button {
  width: 100%;
  padding: 10px;

  border: none;
  border-radius: 12px;

  cursor: pointer;

  background: linear-gradient(
    45deg,
    #ffd6ec,
    #d6f0ff,
    #ead6ff
  );

  transition: 0.3s;

  font-weight: bold;
  color: #555;
}

.product button:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* CART */
.cart {
  position: fixed;
  right: 0;
  top: 0;

  width: 320px;
  height: 100%;

  background: rgba(255,255,255,0.8);

  backdrop-filter: blur(18px);

  padding: 20px;

  box-shadow: -10px 0 30px rgba(0,0,0,0.1);

  transition: transform 0.4s ease;
}

/* SLIDE CART */
.hidden {
  transform: translateX(100%);
}

/* CHECKOUT BUTTON */
.checkout-btn {
  display: block;
  margin-top: 10px;

  padding: 10px;

  text-align: center;

  background: black;
  color: white;

  border-radius: 12px;

  text-decoration: none;
}