/* Ensure the body and HTML take full height */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Main content should expand to take the remaining space */
main {
  flex: 1;
}

header {
  background-color: #fff;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo img {
  height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  font-size: 1.2em;
}

nav ul li a:hover {
  color: #c71585;
}

nav input[type="text"] {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f5e3fc;
  color: #333;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 0;
  background-image: url('banner.jpg'); /* Replace with your actual image path */
  background-size: cover; /* Makes the image cover the entire section */
  background-repeat: no-repeat; /* Prevents tiling */
  background-position: center; /* Centers the image */
  height: 60vh; /* Sets the section height to the full viewport height */
  width: 100%; /* Ensures full width of the page */
  display: flex; /* Centers content */
  justify-content: center;
  align-items: center;
}



.hero h2 {
  font-size: 3.5em;
  margin: 20px 0;
  font-family: "Georgia", serif;
  color: #ffffff; /* Black text */
}

/* Featured Products Section */
.featured-products {
  text-align: center;
  padding: 30px 20px;
}

.featured-products h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-family: "Georgia", serif;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 items per row */
  gap: 20px; /* Space between items */
  justify-items: center; /* Center items */
}

.product-card {
  background-color: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  width: 300px; /* Card width */
  transition: transform 0.3s;
}

.product-card:hover {
  transform: scale(1.05);
}

.product-card img {
  width: 150px; /* Smaller image */
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 10px;
}

.product-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.9em;
  color: #555;
}

.details-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #c71585;
  color: #fff;
  text-decoration: none;
  font-size: 0.9em;
  border-radius: 5px;
}

.details-btn:hover {
  background-color: #a0136f;
}

/* Reviews Section */
.reviews {
  background-color: #fff;
  padding: 30px 20px;
  text-align: center;
}

.reviews h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.review-slider {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.review {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Categories Section */
.categories {
  text-align: center;
  padding: 30px 20px;
  background-color: #fff;
}

.categories h2 {
  font-size: 2.5em;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-family: "Georgia", serif;
  color: #333;
}

.category-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.category {
  text-align: center;
  position: relative;
}

.image-wrapper {
  overflow: hidden;
  border-radius: 10px;
}

.image-wrapper img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  border-radius: 10px;
}

.image-wrapper:hover img {
  transform: scale(1.2);
}

.category p {
  margin-top: 10px;
  font-size: 1.5em;
  text-transform: uppercase;
  font-family: "Georgia", serif;
  color: #333;
}

.category a {
  text-decoration: none;
  color: inherit;
}

.category a:hover p {
  text-decoration: underline;
}

/* Product Details Section */
.product-details {
  padding: 40px 20px;
  background-color: #fff;
}

.details-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: flex-start; /* Aligns all content to the left */
}

.product-image {
  width: 200px;
  height: auto;
  border-radius: 10px;
}

.product-info {
  text-align: left;
}

.section-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #c71585;
  text-align: left; /* Align title to the left */
}

.description {
  font-size: 1.2em;
  margin-bottom: 15px;
  text-align: left; /* Align description to the left */
}

.add-to-cart-btn {
  display: inline-block;
  background-color: #c71585;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s, transform 0.2s;
}

.add-to-cart-btn:hover {
  background-color: #a0136f;
  transform: scale(1.05);
}

/* Contact Section */
.contact-section {
  padding: 30px 20px;
  text-align: center;
  background-color: #fff;
}

.contact-section h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #c71585;
}

.contact-section p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #555;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.contact-item {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-item h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333;
}

.contact-item p {
  font-size: 1em;
  color: #555;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.contact-form h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

.contact-form button {
  width: 100%;
  padding: 10px;
  background-color: #c71585;
  color: #fff;
  font-size: 1.2em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #a0136f;
}

/* Footer styling */
footer {
  background-color: #e9cef8;
  text-align: center;
  padding: 30px 20px;
  color: #333;
  border-top: 2px solid #ddd;
  margin-top: auto; /* Pushes the footer to the bottom */
}

footer .newsletter-footer {
  margin-top: 20px;
  font-size: 0.9em;
}

footer a {
  color: #333;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
