/* Gallery */
.gallery-filter {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-filter .gallery-filter-btn {
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 6px 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}
.gallery-filter .gallery-filter-btn.active {
  background: #000;
  color: #fff;
}
/* Topbar layout fix for mobile */
.products-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.products-topbar .products-topbar-left,
.products-topbar .products-topbar-right {
  float: none;
}
.gallery-card .product-image img {
  transition: transform .3s ease;
  width: 100%;
  display: block;
  object-fit: cover;
}
.gallery-card:hover .product-image img {
  transform: scale(1.06);
}
.gallery-card .product-image {
  position: relative;
  overflow: hidden;
}
.gallery-card .product-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.6) 100%);
  color: #fff;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.gallery-card:hover .product-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.7) 100%);
}
.gallery-card .product-overlay .product-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.gallery-card .product-overlay .button {
  padding: 6px 12px;
  line-height: 1.2;
  color: #fff;
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.gallery-card .product-overlay .button:hover {
  background: rgba(0,0,0,.6);
  border-color: #000;
}
/* Mobile adjustments */
@media (max-width: 575.98px) {
  .gallery-filter {
    justify-content: center;
  }
  .gallery-card .product-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
  }
  .gallery-card .product-overlay .product-title {
    font-size: 14px;
  }
  .gallery-card .product-overlay .button {
    align-self: flex-start;
    padding: 8px 12px;
  }
}
