/* shop.css */

/* ========== General Styling ========== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #8c2a57 0%, #ffd800 100%);
  color: #333;
  overflow-x: hidden;
}

/* ========== Hero Section ========== */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  color: #fff;
  background: linear-gradient(120deg, #8c2a57, #a63c70);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.3rem;
  font-weight: 300;
  color: #ffd800;
  line-height: 1.6;
}

/* ========== Features Section ========== */
.features {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  margin: 2rem auto;
  border-radius: 20px;
  width: 80%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.features h2 {
  color: #8c2a57;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.5;
}

/* ========== Shop Container ========== */
.shop-container {
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========== Product Grid ========== */
.product-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* ========== Product Card ========== */
.product-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 2.5rem;
  text-align: center;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Product Image */
.product-card img {
  width: 65%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 1.2rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

/* Text Content */
.product-card h3 {
  font-size: 1.4rem;
  color: #8c2a57;
  margin-bottom: 0.5rem;
}

.purchase-hint {
  font-size: 0.95rem;
  color: #555;
  margin: 0.5rem 0 1rem;
  font-style: italic;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.hint-icon {
  color: #8c2a57;
  font-size: 1.1rem;
  vertical-align: middle;
}

.price {
  font-size: 1.2rem;
  color: #ffd800;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* ========== Forms ========== */
form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

select,
input[type="number"] {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
}

select:focus,
input[type="number"]:focus {
  border-color: #8c2a57;
  box-shadow: 0 0 4px rgba(140, 42, 87, 0.3);
}

/* Add-to-Cart Button */
.btn-add {
  background: #8c2a57;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-add:hover {
  background: #ffd800;
  color: #8c2a57;
  transform: scale(1.05);
}

/* ========== Cart Popup ========== */
#cart-popup {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffd800;
  color: #8c2a57;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .features {
    width: 85%;
    padding: 2.5rem 1.5rem;
  }

  .product-card {
    width: 350px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .features {
    width: 90%;
    padding: 2rem 1rem;
  }

  .product-card {
    width: 90%;
    padding: 1.5rem;
  }

  .product-card img {
    width: 60%;
    max-width: 180px;
  }

  .product-card h3 {
    font-size: 1.2rem;
  }

  .price {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .features {
    width: 95%;
    padding: 1.5rem;
  }

  .product-card {
    padding: 1.2rem;
  }

  .product-card img {
    width: 75%;
    max-width: 160px;
  }

  .purchase-hint {
    font-size: 0.9rem;
  }

  .btn-add {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }
}
