.gallery-carousel {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.carousel-item img {
  width: 260px;
  height: 260px;
  border-radius: 12px;
  display: block;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.catalog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 20px;
}

.product-card h3 {
  margin: 0 0 10px;
}

.product-card p {
  margin: 0;
}

.categories-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.category-box {
  display: block;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 12px;
  text-decoration: none;
  color: #000;
  transition: 0.2s;
}

.category-box h3 {
  margin-bottom: 10px;
}

.category-box span {
  color: #b30000;
  font-weight: 500;
}

.category-box:hover {
  transform: translateY(-3px);
}

.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 10px;
  padding: 10px 0;
  display: none;
  min-width: 200px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  margin-top: 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #000;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

@media (max-width: 768px) {
  .carousel-item img {
    width: 200px;
    height: 200px;
  }

  .categories-panel {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}
