/* Ebenhaezer George Renaldi Muljadi - 2702230461 */

.trailer {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

.style-section {
  padding: 50px 20px;
  text-align: center;
}

.style-section h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #2c2c2c;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.style-grid a{
  text-decoration: none;
  color: inherit;
}

.style-card {
  background: linear-gradient(to bottom right, #ffffff, #f0f0f0);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.style-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.img-container {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.style-card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.style-card:hover img {
  transform: scale(1.05);
}

.style-card p {
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  color: #2c2c2c;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.style-card {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.style-card:nth-child(1) {
  animation-delay: 0.1s;
}
.style-card:nth-child(2) {
  animation-delay: 0.2s;
}
.style-card:nth-child(3) {
  animation-delay: 0.3s;
}
.style-card:nth-child(4) {
  animation-delay: 0.4s;
}

.category-section {
  margin-bottom: 60px;
  text-align: center;
}

.category-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2c2c2c;
}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.item-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  width: 200px;
  padding: 16px;
  position: relative;
  transition: transform 0.3s ease;
}

.item-card a {
  text-decoration: none;
  color: inherit;
}

.item-card:hover {
  transform: translateY(-6px);
}

.item-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;    
  background-color: #ffffff; 
  border-radius: 12px;
  margin-bottom: 10px;
}

.info h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.info p {
  font-size: 0.95rem;
  color: #2c2c2c;
}

.stars {
  margin-top: 5px;
  color: #D4AF37;
  font-size: 1rem;
}

.love-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.love-btn:hover {
  transform: scale(1.2);
}

.love-btn.liked {
  color: red;
}

@media (max-width: 768px) {
  .grid-container {
    flex-direction: column;
    align-items: center;
  }

  .item-card {
    width: 90%;
    max-width: 300px;
  }
}
