/* Reset some default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header & Navigation */
header {
  background-color:  white;
  color: black; /* Change text color to black */
  padding: 10px 0;
}

nav {
  display: flex;
  justify-content: space-between; /* Ensures content is spread between left and right */
  align-items: center; /* Vertically center the nav items */
}

.main-nav {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0; /* Remove any extra padding */
  list-style: none; /* Remove bullet points */
}

.main-nav li a {
  display: inline-block;
  text-decoration: none;
  color: #333; /* Adjust color as needed */
  transition: transform 0.3s ease, color 0.3s ease;
}

.main-nav li a:hover {
  transform: scale(1.2); /* Enlarge by 20% */
  color: #007BFF; /* Change color on hover if needed */
}

.nav-icon {
  width: 40px; /* Adjust logo size */
  transition: transform 0.3s ease;
}

.nav-icon:hover {
  transform: scale(1.2); /* Enlarge logo on hover */
}

.nav-left {
  display: flex;
  flex-grow: 1; /* Ensures left items stay in the center */
  justify-content: flex-start; /* Left-align the items */
  align-items: center; /* Vertically align items */
}

.nav-left li {
  margin: 0 20px;
}

.nav-left .nav-icon {
  width: 60px; /* Adjust size as needed */
  height: auto; /* Maintain aspect ratio */
  margin-right: 15px; /* Space between the logo and the first link */
}

.nav-right {
  display: flex;
  align-items: center;
  
}

/* Dropdown styling */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content li {
  padding: 8px 16px;
}

.dropdown-content li a {
  color: black;
  text-decoration: none;
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li:hover {
  background-color: #ddd;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  color: black; /* Change text color to black */
  text-decoration: none;
  font-size: 1.2rem;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Cart Icon Styling */
.cart {
  display: flex;
  align-items: center;
  z-index: 1000; /* Ensure the cart is on top of other elements */
}

.cart-icon {
  margin-right: 8px; /* Space between icon and text */
  font-size: 1.5rem; /* Icon size */
}

/* When the window width is less than or equal to 768px (example for mobile view) */
@media (max-width: 768px) {
  .cart {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #fff; /* Background color for the box */
    padding: 10px 20px; /* Padding for the box */
    border: 1px solid #ccc; /* Border around the box */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
    border-radius: 8px; /* Optional rounded corners */
    z-index: 1000; /* Ensure it's on top of other elements */
  }

  .cart a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333; /* Text color */
  }

  .cart-icon {
    margin-right: 8px; /* Space between icon and text */
  }
}


/* Intro Section */
.intro {
  background: #ccc;
  padding: 0; /* Remove extra padding */
  text-align: center;
  color: black;
  position: relative;
  overflow: hidden;
  height: 90vh; /* Full height of the viewport */
  
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%; /* Ensure the slideshow container fills the full height */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the images cover the space without distortion */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1; /* Make active slides visible */
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 2;
  font-size: 1rem;
}

/*Slide show button- next and back  */
#prev-slide {
  left: 10px; /* Position to the left of the slideshow */
}

#next-slide {
  right: 10px; /* Position to the right of the slideshow */
}

.slide-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Slide indicators on slideshow*/
.slide-indicators {
  position: absolute;
  bottom: 20px; /* Position it at the bottom of the slideshow */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slide-indicators .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent dots */
  border-radius: 50%; /* Circular dots */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slide-indicators .dot.active {
  background-color: white; /* Highlight active slide */
}

/* Heading and Paragraph Styling */
.intro h1, .intro p {
  position: absolute;
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Center using transform */
  color: whitesmoke; /* White text to contrast with images */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Add shadow for better readability */
  z-index: 2;
}

.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  top: 40%; /* Adjust to place heading in the upper part */
  text-shadow: 2px 2px 8px #000; /* Added horizontal and vertical offsets, and blur */
}

.intro p {
  font-size: 1.3rem;
  top: 65%; /* Position paragraph under the heading */
  font-weight: bold;
  text-shadow: 2px 2px 8px #000; /* Added horizontal and vertical offsets, and blur */
}

/*end */

/* About Section */
#about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px; /* Reduced padding */
  background-color: #f4f4f4;
  text-align: center;
  position: relative;
  min-height: 80vh; /* Reduced height to 80% of the viewport */
  overflow: hidden;
}

#about h2 {
  margin-bottom: 5px;
  color: #000;
  z-index: 2;
  font-size: 2.5em;
}


#about .text-container {
  position: relative;
  z-index: 1;
  text-align: justify;
  padding: 30px;
  max-width: 80%;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 1.2em;
}

#about .text-container p {
  margin-bottom: 20px;
}

#about img {
  width: 100%;
  height: 100%;
  opacity: 0.6;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}
/*end */

/* Product Section */
#products {
  padding: 50px 20px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-item {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-item img {
  width: 100%;
  height: auto;
}

/*end */

/* Home products displayed */
#home-products {
  padding: 25px;
  height: 600px; /* Set a fixed height for the section */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center the content */
  align-items: center; /* Horizontally center the content */
}

/* Increased font size for Featured Products heading */
#home-products h2 {
  font-size: 2.5em;
  font-weight: bold;
  text-shadow: 2px 2px 8px #aca4a4;
}

/* Home product grid */
.home-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* Horizontally center the product items */
  align-items: center;
}

.home-product-item {
  flex: 1 1 calc(25% - 20px);
  text-align: center;
  margin-bottom: 70px;
  margin-top: 50px;
}

.home-product-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.home-product-item a {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #007BFF;
  text-decoration: none;
  font-size: large;
}

.home-product-item a:hover {
  text-decoration: underline;
  transform: scale(1.1);
  color: #0056b3;
}

/* Discover more */
.discover-more {
  width: 100%; /* Ensure it takes full width */
  text-align: right;
  margin-top: 20px; /* Adjust top margin to move it down */
}

.discover-more a {
  font-weight: bold;
  color: #007BFF;
  text-decoration: none;
  display: inline-block;
}

.discover-more a:hover {
  text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #home-products {
    height: auto; /* Allow the section to grow on smaller screens */
    padding: 50px 25px; /* Increase padding for more space */
  }

  .home-product-item {
    flex: 1 1 calc(50% - 20px); /* Adjust to 50% width for better mobile layout */
    margin-bottom: 40px; /* Adjust margin for better spacing */
    margin-top: 20px; /* Adjust top margin */
  }

  .home-product-item img {
    height: 200px; /* Adjust image height for mobile */
  }

  .home-product-grid {
    justify-content: center; /* Center the items */
  }

  /* Keep "Discover More" at the right on small screens */
  .discover-more {
    text-align: right; /* Align to the right */
    margin-top: 40px; /* Adjust the position */
  }
}

/*end */




/* Need help*/
#need-help {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  padding: 40px 20px;
  height: 100vh; /* Make the section take the full height of the viewport */
  box-sizing: border-box; 
}

.need-help-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* Stack the text and image vertically */
  text-align: center; /* Center the text content */
  gap: 20px;
}

.help-text h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  
}

.help-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: bolder;
}

.help-container {
  position: relative; /* Make the container positioned for the button placement */
}

.help-image img {
  width: 40%; /* Make the image fill its container */
  opacity: 0.5; /* Make the image transparent */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.help-button {
  position: absolute; /* Position the button absolutely inside the container */
  top: 50%; /* Center the button vertically */
  left: 50%; /* Center the button horizontally */
  transform: translate(-50%, -50%); /* Ensure perfect centering */
  background-color: #007BFF;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
}

.help-button:hover {
  background-color: #0056b3; /* Darker shade on hover */
}


/*end */

/*footer*/
.footer-section {
  background-color: #333;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-column h3 {
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

/* Footer bottom */
#footer_bottom-section {
  background-color: #fff;
  color: #000; /* Adjusted text color to black for better contrast */
  padding: 40px 20px;
}

.footer.flex-footer {
  background-color: white; /* Set background to white */
  color: black; /* Set text color to black */
  padding: 20px; /* Add some padding for better spacing */
  text-align: center; /* Center-align the text */
  font-size: 1.2rem; /* Adjust font size if needed */
}

.footer.flex-footer a {
  color: blue; /* Ensure links in the footer are also blue */
  text-decoration: none; /* Remove underline from links */
}

.footer.flex-footer a:hover {
  text-decoration: underline; /* Add underline on hover for links */
}

.footer.flex-footer p {
  margin-bottom: 10px; /* Adjust this value to create space between paragraphs */
}

/*end */

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input,
.newsletter-form button {
  padding: 10px;
  border: none;
}

.newsletter-form button {
  background-color: #007BFF;
  color: #fff;
  cursor: pointer;
}

/*Cart section*/
h2 {
  text-align: center;
  margin-bottom: 0;
  font-size: 2em;
  color: #333;
}

#cart {
  margin-top: 40px;
}

#cart-items {
  list-style-type: none;
  padding-left: 0;
}

button {
  margin-top: 10px;
  padding: 8px 16px;
  cursor: pointer;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}

#total-price {
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
}

/*end */

/* Footer using Flexbox for non-fixed positioning 
.flex-footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-top: auto;  /* Pushes footer to the bottom in a flex container 
}
*/

