* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, skyblue, lightgreen);
  overflow-x: hidden;
}

header {
  background: linear-gradient(to right, #667eea, #43cea2);
  color: white;
  padding: 15px 30px;
  position: relative;
  z-index: 1000;
}

.top-header {
  display: flex;
  align-items: center;
}

.top-header h1 {
  margin: 0;
}

.search-box {
  margin-left: 40px;
}

.search-box input {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  width: 250px;
}

.auth {
  margin-left: auto;
}

.auth a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}

.auth a:hover {
  color: red;
}

nav {
  margin-top: 10px;
  position: relative;
  z-index: 1000;
}

.menu {
  display: flex;
  gap: 25px;
}

.menu a {
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.dropdown {
  position: relative;
  z-index: 2000;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  color: black;
  padding: 10px;
  top: 100%;
  left: 0;
  min-width: 150px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 2000;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: black;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.slider {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.slide.active {
  display: block;
}


.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.card {
  background: white;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  transition: 0.3s;
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
}

.price {
  color: red;
  font-weight: bold;
}

.card button {
  width: 100%;
  padding: 10px;
  border: none;
  background: black;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.card:hover button {
  background: orange;
}

.section-title {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0;
  font-size: 22px;
  font-weight: bold;
  grid-column: 1 / -1;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #ccc;
}

.section-title::before { margin-right: 15px; }
.section-title::after { margin-left: 15px; }

#cart-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  display: none;
  width: 300px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  border-radius: 10px;
  z-index: 3000;
}

#cart-box ul { padding: 0; list-style: none; }
#cart-box li { margin: 10px 0; border-bottom: 1px solid #ccc; padding-bottom: 5px; }
#cart-box button { margin-top: 10px; width: 100%; background: red; color: white; }

footer {
  background: White;
  text-align: center;
  padding: 20px 10px;
  margin-top: 30px;
}

.footer {
  padding: 30px 50px;
  color: black;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px; 
  padding-left: 100px;
}

.footer-col { flex: 1; text-align: left; }
.footer-col h3 { font-size: 18px; margin-bottom: 15px; }
.footer-col p { margin-bottom: 8px; font-size: 14px; cursor: pointer; transition: 0.3s; }
.footer-col p:hover { color: red; }
.footer-bottom { text-align: center; margin-top: 20px; font-size: 14px; }

.chat-bot {
  display: flex;
  flex-direction: column;
  gap: 10px; 
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-bot img {
  width: 50px;
  height: 50px;
  border-radius: 50%; 
  display: block;
}

@media (max-width: 1024px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .top-header {
    flex-direction: column;
    gap: 10px;
  }

  .search-box {
    margin-left: 0;
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .auth {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .auth a {
    margin: 0 10px;
  }

  .menu {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-container {
    flex-direction: column;
    padding-left: 0;
    gap: 20px;
    text-align: center;
  }

  .footer-col {
    text-align: center;
  }
}