/* store.css */

body {
  margin: 0;
  padding: 40px 20px;
  font-family: 'Fredoka One', cursive;
  background: linear-gradient(135deg, #fcd3e1, #ffa3c4);
  color: #333;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.store-container {
  max-width: 1100px;
  width: 100%;
  background: #fff0f6;
  border-radius: 25px;
  padding: 40px 30px;
  box-shadow: 0 15px 30px rgba(255, 150, 200, 0.3);
}

.page-title {
  font-size: 3rem;
  text-align: center;
  color: #e91e63;
  margin-bottom: 10px;
}

.note {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.product-card {
  background: #ffe0ec;
  border: 2px solid #ffc0cb;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(255, 105, 180, 0.2);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  max-width: 160px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.product-card h2 {
  font-size: 1.5rem;
  color: #e91e63;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

select {
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: 'Fredoka One', cursive;
}

.add-to-cart {
  background-color: #e91e63;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-to-cart:hover {
  background-color: #c2185b;
}

.view-cart, .back-button {
  text-align: center;
  margin-top: 40px;
}

.view-cart a, .back-button a {
  font-size: 1.1rem;
  text-decoration: none;
  color: #fff;
  background: #ff69b4;
  padding: 12px 25px;
  border-radius: 25px;
  display: inline-block;
  transition: background 0.3s ease;
}

.view-cart a:hover, .back-button a:hover {
  background: #d81b60;
}

@media (max-width: 600px) {
  .page-title {
    font-size: 2.3rem;
  }

  .note {
    font-size: 1rem;
  }

  .product-card h2 {
    font-size: 1.3rem;
  }

  .product-card p {
    font-size: 1rem;
  }
}
.product-card img {
  width: 100%;
  height: 180px; /* Enforce consistent height */
  object-fit: cover; /* Crops images to fill the frame */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


/* Ensure consistent image display */
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Mobile Responsiveness */
@media only screen and (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 16px;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .note {
    font-size: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    width: 100%;
    margin: 0 auto;
  }

  .product-card h2 {
    font-size: 1.4rem;
  }

  .product-card p {
    font-size: 1rem;
  }

  .add-to-cart {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }

  .view-cart a, .back-button a {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .product-card img {
    height: 180px;
  }
}
