/* General Styles */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: hsl(0, 0%, 100%);
}

/*//////////////////////////////////////////////////////////////////////

/* Header Styling */
header {
  background-color: white;
  padding: 15px;
  text-align: center;
  border-bottom: 2px solid #ddd;
}

/* Flexbox for Header Layout */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1500px;
  margin: auto;
}

/* Logo Styling */
.header-logo {
  width: 200px;
  max-width:100%;
  height: 100%;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
.header-logo {
  width: 500px; 
}
}


/* Logo Styling */
.header-logoright {
width: 200px;
  height: auto;
  object-fit: contain;}

/*Hide the right logo on mobile*/
@media screen and (max-width: 768px) {
.header-logoright {
  display: none;
}
}
/* Navigation Bar */
nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #001f7f;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.3s;
}

nav ul li a:hover, 
nav ul li a.active {
  background-color: #001f7f;
  color: white;
}

/* Search Bar */
.search-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

#search-bar {
  width: 500px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  border-color: #ff0000;
}

#search-btn {
  background-color: #001f7f;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-left: 5px;
  border-radius: 5px;
  cursor: pointer;
}

#search-btn:hover {
  background-color: #000b5e;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
      flex-direction: column;
  }

  nav ul {
      flex-direction: column;
      text-align: center;
  }

  nav ul li {
      margin: 10px 0;
  }

  .search-container {
      flex-direction: column;
  }

  #search-bar {
      width: 90%;
  }
}
/* Default styles (desktop) */
.desktop-nav {
  display: flex;
}

.hamburger,
#mobile-nav {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    color: #001f7f;
    cursor: pointer;
  }

  #mobile-nav {
    display: none;
    flex-direction: column;
    background-color: white;
    padding: 15px;
    border-top: 1px solid #ccc;
  }

  #mobile-nav.active {
    display: flex;
  }

  #mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #mobile-nav ul li {
    margin: 10px 0;
  }

  #mobile-nav ul li a {
    text-decoration: none;
    color: #001f7f;
    font-weight: bold;
  }
}


/*//////////////////////////////////////////////////////////////////////

/* Banner Section */
#banner {
  background-image: url('photos/MAWI-05.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px;
  color: white;
}

#banner img {
  width: 80%;
  max-width: 1000px;
  height: 400px;
  border-radius: 10px;
}

.slideshow-container {
position: relative;
max-width: 100%;
margin: auto;
overflow: hidden;
}

.mySlides {
display: none;
animation: fade 1s;
}

.mySlides img {
width: 100%;
border-radius: 10px;
}

/* Arrows */
.prev, .next {
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
padding: 16px;
color: white;
font-weight: bold;
font-size: 28px;
border-radius: 0 3px 3px 0;
background-color: rgba(0, 0, 0, 0.3);
z-index: 10;
transition: background-color 0.3s;
}

.next {
right: 0;
border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
background-color: rgba(0, 0, 0, 0.6);
}

@keyframes fade {
from { opacity: 0.4; }
to { opacity: 1; }
}


/* Positioning for slideshow container */
.slideshow-container {
position: relative;
max-width: 100%;
margin: auto;
}

.mySlides {
display: none;
}

.mySlides img {
width: 100%;
border-radius: 10px;
}


/* Hide all slides by default */
.mySlides {
  display: none;
}

.mySlides img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* Ensures the image stays centered */
}

/* Animation for fading */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: 0.4;} 
  to {opacity: 1;}
}

/*//////////////////////////////////////////////////////////////////////
/*/
/* Featured Products */

/* This affects all section text on MAWI.html only */
.home-page section {
color: #222222; /* Change this to your desired color (e.g., black, white, blue) */
}

/* Or target specific sections */
.home-page #products {
color: #001f7f; /* Deep blue text just for this section 004080 */
}

.home-page #banner {
color: #ffffff; /* White text over the banner, if needed */
}


#products {
  text-align: center;
  padding: 30px;
}

.product {
  display: inline-block;
  background-color: #ffffff;
  color: rgb(255, 255, 255);
  width: 500px;
  padding: 20px;
  margin: 20px;
  border-radius: 15px;
  text-align: center;
  vertical-align: top;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  border: 1px solid #ccc;
  border-radius: 5px;
  border-color: #ff0000;
}

.product:hover {
  transform: scale(1.05);
}

.product img {
  width: 100%;
  height: 500px; /* Fixed height to make them equal */
  object-fit: cover; /* Ensures the entire image fits without distortion */
  border-radius: 10px;
}

.product h3 {
  color: #001f73;
  margin: 15px 0;
  font-size: 22px;
}

.product p {
  font-size: 20px;
  margin: 10px 0;
}

.add-to-cart {
  background-color: #001f73;
  color: white;
  border: none;
  padding: 12px 25px;
  margin-top: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart:hover {
  background-color: #003399;
}

/* Footer Section */
footer {
  background-color: #333;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  flex: 1;
  text-align: left;
}

.footer-logo-container {
  flex: 0;
  text-align: center;
}

.footer-logo {
  max-width: 300px;
  height: auto;
  color: white;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.footer-right a {
  color: white;
  margin: 0 60px;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}


/*//////////////////////////////////////////////////////////////////////
/*/
/*//////////////////////////////////////////////////////////////////////

/* Contact and About Page Styling */
#contact, #about, #cart {
  text-align: center;
  padding: 50px;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

textarea {
  height: 100px;
}

button {
  padding: 10px 20px;
  background-color: #ff0000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #000b5e;
}

/* Cart Styling */
#cart-items {
  margin-top: 20px;
}

/*//////////////////////////////////////////////////////////////////////
/*/
/*//////////////////////////////////////////////////////////////////////*/

/*product details page */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
}

header a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.product-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 50px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#main-image {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.thumbnail-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.thumbnail:hover {
  border: 2px solid #001f73;
}

.product-info {
  max-width: 400px;
  color: #001f73;
}

h2 {
  font-size: 28px;
}

.price {
  font-size: 24px;
  color: #f10505;
  font-weight: bold;
}

.description {
  margin-top: 10px;
  font-size: 16px;

}

.add-to-cart, .buy-now {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

.add-to-cart {
  background-color: #001f73;
  color: white;
}

.add-to-cart:hover {
  background-color: #003399;
}

.buy-now {
  background-color: #ff0000;
  color: white;
}

.buy-now:hover {
  background-color: #003399;
}

.reviews {
  margin-top: 20px;
  font-size: 16px;
}
/* General Background Styling for Specific Pages */
body.about-page, body.contact-page, body.cart-page, body.products-page, body.mawi3b-page, body.mawi3w-page {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Photos/MAWI-05.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh; /* Make sure the background covers the full viewport height */
  margin: 0; /* Remove default margin */
}

/* Ensuring Content Remains Visible */
main, .product-container, .content-container {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-color: #f10505;
}

/*links lines*/
a {
text-decoration: none; /* Removes the underline */
}




/*/////////////////////////////////////////////////////
/* ✅ MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  /* Header */
  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .header-logo {
    width: 140px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .search-container {
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }

  #search-bar {
    width: 90%;
    max-width: 300px;
  }

  /* Banner / Slideshow */
  .slideshow-container {
    max-width: 95%;
  }

  #banner img {
    width: 100%;
    height: auto;
  }

  /* Products */
  .product {
    width: 90%;
    margin: 20px auto;
  }

  .product img {
    height: auto;
  }

  /* Product Details Page */
  .product-container {
    flex-direction: column;
    align-items: center;
    margin: 20px;
  }

  .thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    font-size: 0; /* Removes whitespace between inline images */
    padding: 10px;
  }

  .thumbnail {
    width: 22vw;
    height: 22vw;
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }

  .product-gallery {
    text-align: center;
    padding: 10px;
  }

  #main-image {
    width: 90%;
    height: auto;
    max-width: 400px;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .product-info {
    max-width: 90%;
    text-align: center;
  }

  .add-to-cart, .buy-now {
    width: 90%;
    margin: 10px auto;
  }

  /* Forms (Contact, etc.) */
  form {
    width: 90%;
  }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 10px;
  }

  .footer-right a {
    margin: 5px 0;
  }

  .footer-logo {
    width: 120px;
  }
}

/* General Box Sizing */
* {
  box-sizing: border-box;
}

/* Add this at the end of your CSS file */
@media (min-width: 320px) and (max-width: 1080px) {
  .header-container,
  .footer-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .product {
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
  }

  .product-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 20px;
  }

  .product img {
    height: auto;
  }

  .search-container {
    flex-direction: column;
    align-items: center;
  }

  #search-bar {
    width: 90%;
    max-width: 400px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-right {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-right a {
    margin: 5px 0;
  }
}



