* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  width: 100%;
  box-shadow: 0px 0px 52px 28px rgba(0,0,0,0.22);
  z-index: 1;
}

.button#adminButton {
  display: none; /* скрыта полностью */
}

.button {
  z-index: 2;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: #3b5dcc;
  box-shadow: 0 0 5px rgba(30, 49, 98, 0.5);
  transform: scale(0.98);
}

.logo { height: 4rem; cursor: pointer;}
.prof { height: 2.4rem; }

.nav-buttons {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  padding: 0.8rem;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #4d7dff;
  color: white;
  border-radius: 1rem;
  padding: 0.2rem;
}

/* ===== Модальные окна ===== */
.modal {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.show {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 1rem;
  width: 320px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  transform: translateY(-30px);
  transition: transform 0.4s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #4d7dff;
  font-size: 1.4rem;
}

.modal-content input {
  width: 90%;
  padding: 0.6rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input:focus {
  border: 1px solid #4d7dff;
  box-shadow: 0 0 5px rgba(77,125,255,0.5);
  outline: none;
}

.modal-btn {
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 1rem;
  background-color: #4d7dff;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-btn:hover {
  background-color: #3b5dcc;
}

.close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4d7dff;
}

/* ===== Основной контент ===== */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.banner-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.banner-text {
  background-color: #4d7dff;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

@keyframes slideCycle {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { transform: translateX(0); opacity: 1; }
  80% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

input#searchInput {
  background-color: rgba(0,0,0,0.049);
  width: 95%;
  padding: 0.5rem;
  margin: 1rem 0;
  font-size: 1rem;
  border-radius: 1rem;
  border: none;
  transition: all 0.3s ease;
}

input:hover {
  transform: scale(0.98);
  box-shadow: 0 0 5px rgba(81,203,238,0.5);
  border: 1px solid rgba(81,203,238,0.5);
}

input#searchInput:focus {
  transform: scale(1.02);
  outline: none;
  box-shadow: 0 0 5px rgba(0,0,0,0.654);
}

/* ===== Товары ===== */
.product-list {
  display: flex;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.product-item {
  position: relative;
  overflow: hidden;
  background-color: #4d7dff;
  border-radius: 0.5rem;
  width: 17rem;
  height: 25rem;
  box-shadow: 0 0 5px rgba(81,203,238,0.5);
  transition: all 0.3s ease;
}

.product-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(81,203,238,0.8);
}

.panel {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(29,91,158,0.8);
  color: white;
  padding: 1rem;
  transition: top 0.3s ease;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  z-index: 2;
  backdrop-filter: blur(5px);
}

 button {
  margin-top: auto;
  padding: 0.5rem;
  border: none;
  border-radius: 1rem;
  background-color: #4d7dff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-item h3, .product-item p {
  margin: 0.2rem 0.5rem;
}

.product-item:hover .panel {
  top: 0;
}

.product-item img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.product-info {
  padding: 0 1rem;
  color: white;
}

/* ===== Footer ===== */
footer {
  box-shadow: 0px 0px 52px 28px rgba(0,0,0,0.22);
  padding-bottom: 1rem;
  text-align: center;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem;
}