body {
  margin: 0;
  font-family: sans-serif;
}

.top-menu {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
  border-bottom: 1px solid #ccc;
}

.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-list {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu-list li {
  cursor: pointer;

  color: #2c2c2c;
font-size: 12.8px;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
font-weight: 600;
padding: 1px 0px 0px;
}

/* Tablet and smaller */
@media (max-width: 1060px) {
  .menu-list li {
    font-size: 10px !important;
    padding: 0;
  }
}

/* Small tablets and large phones */
@media (max-width: 868px) {
  .menu-list li {
    font-size: 9px !important;
    padding: 0;
  }
}

/* Phones */
@media (max-width: 800px) {
  .menu-list li {
    font-size: 8px !important;
    padding: 0;
  }
}


.overlay {
  position: fixed;
  top: 40px; /* below menu */
  left: 0;
  height: 90vh;
  width: 100vw;
  background: #f1f1f1;
  display: none;
  z-index: 999;
  padding: 40px 20px;
  box-sizing: border-box;
  overflow-y: auto;
}
/*
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}*/
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* âœ… Exactly 4 per row */
  gap: 20px;
  animation: fadeIn 0.5s ease forwards;
}

/*
.menu-grid div {
  background: white;
  padding: 20px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}
.menu-grid div {
  background: white;
  padding: 40px 30px;
  font-size: 18px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.menu-grid div {
  background: white;
  padding: 30px 20px;
  font-size: 16px;
  text-align: left;
  font-weight: normal;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 12px;
}*/
.menu-grid div {
  display: flex;
  flex-direction: column;        /* For title + description */
  justify-content: center;       /* Vertical centering */
  align-items: center;           /* Horizontal centering */
  text-align: center;            /* Text alignment inside */
  padding: 30px 20px;
  height: 120px;

  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/*Backgrounds in menu*/
.menu-grid div.bg1 {
  background-image: url('pattern.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: black;

}

/*
.menu-grid div:hover {
  transform: scale(1.05);
}*/
.menu-grid div:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Responsive for mobile */
@media (max-width: 768px) {
  .menu-list {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    padding: 10px 10px;
    border-top: 1px solid #ddd;
  }


  .menu-list.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    /*background:black;*/
  }

  .overlay {
    top: 110px;
    height: 80vh;
  }
}

@media (max-width: 768px) {
.menu-list.show li 
        {
        font-size:16px !important;
        }
    }

/*Promo*/
/* ðŸ”§ PROMO BANNER inside overlays */
.promo-banner {
  background: linear-gradient(to right, #4a289c, #167ac6);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: left;
}

.promo-banner h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.promo-banner button {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

/* ðŸ”§ Bigger Grid Items */
.menu-grid div {
  background: white;
  padding: 40px 30px; /* increased padding */
  font-size: 18px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

/*CSS ADDITIONS*/
.menu-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-container {
  position: relative;
}

.search-container input {
  padding: 8px 30px 8px 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #888;
  font-size: 16px;
}

.login-btn {
  padding: 8px 16px;
  background: #4a289c;
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-btn:hover {
  background: #341e6d;
}

/* Responsive stacking */
@media (max-width: 768px) {
  .menu-container {
    flex-wrap: wrap;
  }

  .menu-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
  }

  .search-container input {
    width: 100%;
  }

  .login-btn {
    flex-shrink: 0;
  }
}
/* Buttons */
.menu-grid button.menu-box {
  all: unset; /* resets button styles */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 30px 20px;
  height: 120px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.menu-grid button.menu-box:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
/* a href buttons*/
.menu-box {
  all: unset; /* resets button styles */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  height: 120px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.menu-box:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


/*Затвори меню*/
.close-overlay {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  z-index: 1001;
}

@media (max-width: 768px) {
    .top-menu
    {
        display:none;
    }
}