:root {
  /* Fonts */
  --font-primary: 'Manrope', sans-serif;
  --font-2:'Manrope', sans-serif;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  justify-content: center;
  width: 98%;
  margin: 60px auto;
}

.card {
  position: relative;
  border-radius: 10px;
  /* gap: 10; */
  width: 100%;              /* take full width of grid cell */
  aspect-ratio: 249/ 249;        /* keeps square shape (responsive) */
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
  margin: auto;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* ensures image fills card without distortion */
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.overlayy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.435);
  color: #fff;
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  transition: transform 0.4s ease, background 0.4s ease;
  font-size: 15px;
  font-weight: 200;
  font-family: var(--font-primary) ;
  letter-spacing: 0.5PX;
  z-index: 99999999;
}

.dropdown {
  position: relative;
}

.dropdown-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff; /* or transparent */
  padding: 20px;
  z-index: 1000;
}

.dropdown:hover .dropdown-container {
  display: block;
}

.card:hover img {
  transform: scale(1.08);
}

.card:hover .overlay {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(0);
  transition: 0.7s;
}

/* Extra responsive tweaks */
@media (max-width: 1024px) {
  .collection-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 600px) {
  .collection-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    /*margin-top: -50px;*/
  }
.collection-grid {
    width:-webkit-fill-available;}
}

@media (max-width: 400px) {
  .collection-grid {
    grid-template-columns: 1fr; /* 1 per row */
  }
}
