/* ===== CSS Variables for Consistency ===== */
:root {
  --primary-color: #1d2f3f;
  --secondary-color: #e91e63;
  --text-dark: #222;
  --text-medium: #333;
  --text-light: #888;
  --background-light: #fff;
  --spacing-small: 10px;
  --spacing-medium: 15px;
  --spacing-large: 20px;
  --spacing-xl: 30px;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
  --border-radius-card: 16px;
  --border-radius-button: 8px;
}

/* ===== General Product Section Styles ===== */
.product-section {
  padding: var(--spacing-xl) var(--spacing-large);
  background-color: var(--background-light);
  text-align: center;
}

.product-section h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: var(--spacing-xl);
  color: var(--text-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--spacing-large);
  justify-items: center;
}

/* ===== Product Card Styles ===== */
.product-card {
  background: var(--background-light);
  border-radius: var(--border-radius-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow to transition */
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.01); /* Lifts and slightly scales */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* More pronounced shadow */
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-info {
  padding: var(--spacing-medium);
  text-align: center;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--text-medium);
}

.product-info p {
  font-size: 14px;
  color: var(--text-light);
}

.product-price {
  font-weight: bold;
  margin: var(--spacing-small) 0;
  color: var(--secondary-color);
}

.add-to-cart {
  background-color: var(--primary-color);
  color: var(--background-light);
  padding: var(--spacing-small) var(--spacing-medium);
  margin: var(--spacing-small);
  border: none;
  border-radius: var(--border-radius-button);
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart:hover {
  background-color: var(--text-medium);
}

.add-to-cart:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== Section Heading Customizations ===== */
#latest-products-section h2,
#perfume-section h2,
#perfume-gifts-section h2 { /* Added new section */
  color: var(--text-dark);
  font-weight: bold;
}

/* ===== New Banner Styles ===== */
.new-perfume-banner {
  width: 100%;
  height: 300px; /* Target height */
  background-image: url("assets/images/perfume-banner.jpg"); /* UPDATE THIS PATH */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  position: relative;
  margin-top: 40px; /* Add some space above the banner if needed */
  margin-bottom: 40px; /* Add some space below the banner if needed */
}

.new-perfume-banner .banner-content {
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.new-perfume-banner .banner-content h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

.new-perfume-banner .banner-content p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.new-perfume-banner .banner-button {
  background-color: var(--secondary-color);
  color: var(--background-light);
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.new-perfume-banner .banner-button:hover {
  background-color: #c2185b;
}

/* Optional: Style for the view all button if you add one */
.view-all-button {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--background-light);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.view-all-button:hover {
  background-color: var(--text-medium);
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .product-image {
    height: 160px;
  }

  .new-perfume-banner {
    height: 200px;
  }
  .new-perfume-banner .banner-content h1 {
    font-size: 2em;
  }
  .new-perfume-banner .banner-content p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr; /* Stack cards on very small screens */
  }
  .product-image {
    height: 200px; /* Adjust image height for smaller screens */
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Larger cards on larger screens */
  }
}