/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

#container {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Navigation styling */
.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav ul li {
  margin: 0 1rem;
}

.nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all 0.3s ease;
}

:root {
  --underline-color: black;
}

.nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background-color: var(--underline-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav ul li a:hover::after,
.nav ul li a:focus::after {
  transform: scaleX(1);
}

/* Active class */
.nav ul li a.active::after {
  transform: scaleX(1);
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav ul {
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
  }

  .nav ul li {
    margin: 0.01rem 0;
    /* Add vertical spacing */
  }

  .nav ul li a {
    font-size: 1rem;
    /* Adjust font size for smaller screens */
  }
}

#carousel {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  /* Center horizontally */
  align-items: center;
  /* Center vertically */
}

.slick-carousel {
  width: 60%;
  /* Adjust the width to make it smaller */
  max-width: 800px;
  /* Optional: Set a maximum width */
}

.slick-carousel img {
  width: 100%;
  /* Make images fill the carousel container */
  height: auto;
  /* Maintain aspect ratio */
  border-radius: 10px;
}

#content {
  margin: 20px 0;
  padding: 20px;
  background-color: #f9f9f9;
  /* Light background for the content section */
}

#product {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  /* Space between product cards */
}

.float {
  margin: 10px;
  text-align: center;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  /* Required for absolute positioning of the cart icon */
}

.float:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.float img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
}

.float h3 {
  margin: 10px 0;
  font-size: 18px;
  color: #333;
}

.float p {
  margin: 5px 0;
  font-size: 16px;
  color: #007bff;
}

.float a {
  text-decoration: none;
  color: inherit;
}

/* Cart Icon */
.cart-icon {
  position: absolute;
  top: 10px;
  /* Adjust as needed */
  right: 10px;
  /* Adjust as needed */
  background-color: rgba(255, 255, 255, 0.8);
  /* Semi-transparent background */
  border-radius: 50%;
  /* Circular shape */
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cart-icon:hover {
  background-color: rgba(255, 255, 255, 1);
  /* Solid background on hover */
}

.cart-icon img {
  width: 24px;
  /* Adjust icon size */
  height: 24px;
  /* Adjust icon size */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .float {
    width: calc(50% - 40px);
    /* Two columns on tablets */
  }
}

@media (max-width: 480px) {
  .float {
    width: 100%;
    /* One column on mobile */
  }
}

#footer {
  background-color: #333;
  color: #fff;
  padding: 10px;
  text-align: center;
}

#footer .foot,
#footer #develop {
  margin: 10px 0;
}

#develop ul {
  list-style-type: none;
  padding: 0;
}

#develop ul li {
  margin: 5px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  #header label {
    font-size: 20px;
  }

  .nav ul li {
    display: block;
    margin: 10px 0;
  }

  .float {
    flex: 1 1 100%;
  }
}
