@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body {
  font-family: "Inter", sans-serif;
  background-color: #f7f7f7;
  color: #333;
  overflow-x: hidden;
  margin: 0;
  padding-top: 80px;
}

.topbar {
  background-color: #2e4d7a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  box-sizing: border-box;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  margin-left: 19px;
  font-family: Georgia;
}

.search-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

.search-container #search-input {
  width: 100%;
  max-width: 350px;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: none;
  outline: none;
  color: #333;
}

#search-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 0.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .topbar {
    flex-wrap: nowrap;
  }

  .search-container {
    width: auto;
    margin-top: 0;
  }
}

.carousel-section {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-image {
  flex: 0 0 100%;
  height: auto;
  object-fit: cover;
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
  border-radius: 50%;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.categories-list,
.offers-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  padding: 1rem;
}

@media (min-width: 768px) {
  .categories-list,
  .offers-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-list,
  .offers-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

.category-item,
.offer-item {
  text-align: center;
}

.category-item img,
.offer-item img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background-color: #2e4d7a;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 50;
  padding: 1.5rem;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.side-menu::-webkit-scrollbar {
  display: none;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.side-menu a {
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.side-menu a:hover {
  color: #c7d2fe;
}

.side-menu h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.side-menu ul {
  list-style: none;
  padding: 0;
}

.side-menu li {
  padding: 0.5rem 0;
}

.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;
}

.menu-backdrop.open {
  visibility: visible;
  opacity: 1;
}

footer {
  background-color: #2e4d7a;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

#login-form button[type="submit"] {
  background-color: #274c77;
  opacity: 1;
  transition: background-color 0.3s;
}

#login-form button[type="submit"]:hover {
  background-color: #1f3a5a;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease;
}

.modal-overlay.open {
  visibility: visible;
  opacity: 1;
}

#profile-modal {
  background-color: rgba(255, 255, 255, 0.5);
}

.login-modal {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.login-modal h2 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  box-sizing: border-box;
}

.login-modal button {
  width: 100%;
  padding: 0.75rem;
  background-color: #2e4d7a;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-modal button:hover {
  background-color: #1e3a5a;
}

.login-modal .signup-link {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.login-modal .signup-link a {
  color: #2e4d7a;
  text-decoration: none;
  font-weight: 600;
}

.login-modal .signup-link a:hover {
  text-decoration: underline;
}
#togglePassword {
  background: none;
  border: none;
  cursor: pointer;
 
}
#togglePassword.password-hidden svg path:first-child {
  display: none;
}

#togglePassword.password-hidden svg path:last-child {
  display: block;
}
