.catalog-dropdown {
  display: none;
  position: relative;
  background: #fff;
  z-index: 99;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.menu-wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  border: 1px solid #ddd;
  font-family: sans-serif;
  box-sizing: border-box;
}

/* Левое меню */
.main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 250px;
  background-color: #f8f8f8;
  border-right: 1px solid #ccc;
}
.main-menu > li > a {
  display: block;
  padding: 14px 20px;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  background-color: #f8f8f8;
  transition: background 0.2s;
  cursor: pointer;
}
.main-menu > li > a:hover {
  background-color: #003366;
  color: white;
}

/* Субменю */
.submenu-panel {
  flex-grow: 1;
  padding: 20px;
  background: #fdfdfd;
  overflow: visible;
  min-height: 100px;
}
.submenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  width: fit-content;
  max-width: 100%;
}
.submenu-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.submenu-item span {
  font-weight: bold;
  color: #003366;
}
.submenu-item:hover {
  background-color: #f0f8ff;
  cursor: pointer;
}

/* Обёртка всего */
#catalog {
  position: absolute;
   z-index: 9999;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  width: 100%;
  min-height: 400px; /* адаптивная минимальная высота */
  box-sizing: border-box;
  margin-bottom: 40px; /* отступ снизу, чтобы не прилипал к ABOUT */
}

/* Контейнер с карточками */
.product-container {
  max-height: 500px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  background: #fff;
}

/* Одна карточка */

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15); /* тень при наведении */
}



#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  background: #fff;
  box-sizing: border-box;
}

.product-card {
     min-height: 220px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}

.product-title {
  margin-top: 10px;
  font-weight: bold;
  font-size: 14px;
}

.product-price {
  margin-top: 5px;
  color: #e60000;
  font-weight: bold;
  font-size: 16px;
}

