/* General Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Login Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0 0 0 / 75%);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  max-width: 400px;
  box-shadow: 0px 0px 15px 2px rgba(0 0 0 / 10%), 0px 0px 9px 4px rgba(0 0 0 / 10%);
}

#error-message {
  color: red; /* Replace 'red' with the desired color */
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.register-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.register-close:hover,
.register-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
    }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  margin-bottom: 20px;
}

p {
  margin-bottom: 20px;
}

a {
  color: #333;
  text-decoration: none;
  }

.btn-cart{
    margin-right: 10px;
    width: 36px;
    transition: background-color 0.2s ease;
    border-radius: 10px;
}

.btn-login{
  border: none;
  background-color: #f4f4f4;
  cursor: pointer;
  font-size: 16px;
}
.btn-register{
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.btn-register:hover{
  background-color: #95774d
}

.logo{
  display: flex;
  justify-content: center
}

.btn-account{
  margin-right: 10px
}

.btn-cart:hover{
  background-color: #95774d
}

.btn {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #95774d;
}

/* Header Styles */
header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background-color: #f4f4f4;
  padding: 1vw 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.header-inner {
  display: flex;
  padding: 0 50px;
}

.header-right {
 /* float: right; <- disabled and replaced with 'justify-content: flex-end;' and 'display: flex;' more responsive*/
  display: flex;
  flex: 1 1;
  justify-content:flex-end;
  margin-top: 20px;
  height: 24px;
 /* margin-right: 10px;  disabled this line for testing */
}

.logo img {
  max-width: 125px;
}

nav {
  padding: 0;
}
nav ul li a {
  font-size: 16px;
  padding: 10px 80px;
}
nav ul {
  list-style: none;
  display: flex; /* add this line */
  justify-content: space-between; /* add this line */
  align-items: center; /* add this line */
  flex-wrap: wrap; /* add this line */
  width: 100%; /* add this line */
}

nav li {
  display: inline-block;
  margin-left: 20px;
}

nav li:first-child {
  margin-left: 0;
}

nav a {
  font-size: 18px;
  font-weight: bold;
}

nav a:hover {
  color: #95774d;
}

/* Hero Section Styles */
.hero {
  background-image: url("images/hero.jpg");
  background-position: center;
  background-size: cover;
  color: #333;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 80px;
  padding-top: 125px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 24px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

/* Featured Products Section Styles */
.featured-products {
  background-color: #f4f4f4;
  padding: 40px 0;
}

.featured-products h2 {
  text-align: center;
  margin-bottom: 40px;
}

.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 40px;
}

.product {
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin: 20px;
  width: 300px;
  text-align: center;
  padding: 40px 20px;
  transition: box-shadow 0.3s ease;
}

.product:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.product img {
  margin-bottom: 20px;
}

.product h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.product p {
  margin-bottom: 20px;
}

/* Categories Section Styles */
.categories {
  padding: 80px 0;
  text-align: center;
  background-color: #fff;
}

.categories h2 {
  margin-bottom: 40px;
}

.category {
  margin-bottom: 40px;
}

.category img {
  margin-bottom: 20px;
}

/* About Us Section Styles */
.about-us {
  padding: 80px 0;
  text-align: center;
  background-color: #f4f4f4;
}

.about-us h2 {
  margin-bottom: 40px;
}

/* Testimonials Section Styles */
.testimonials {
  padding: 80px 0;
text-align: center;
}
.testimonials h2 {
  margin-bottom: 40px;
}

.testimonial {
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.testimonial img {
  border-radius: 50%;
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
}

.testimonial p {
  margin-bottom: 20px;
}

.testimonial h3 {
  margin-bottom: 0;
}

/* Contact Us Section Styles */
.contact-us {
  background-color: #f4f4f4;
  padding: 80px 0;
  text-align: center;
}

.contact-us h2 {
  margin-bottom: 40px;
}

label {
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
}

textarea {
  height: 200px;
}

/* Footer Styles */
footer {
  background-color: #000;
  color: #95774d;
  padding: 20px 0;
  text-align: center;
}

footer p {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 767px) {
  .logo img {
    max-width: 150px;
  }

  nav {
    float: none;
  }

  nav ul {
    text-align: center;
  }

  nav li {
    display: block;
    margin: 0;
    margin-bottom: 10px;
  }

  .hero {
    height: 300px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .featured-products .products {
    margin-bottom: 20px;
  }

  .product {
    margin: 20px 0;
  }

  .categories .category {
    margin-bottom: 20px;
  }
}
