/* ================= NEW COLLECTION PAGE ================= */


/* Page background */
body {
  background: #f6fbfd;
}

/* ================= HERO ================= */
.collection-hero{
  position: relative;
  min-height: 42vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 20px 70px;

  background:
    linear-gradient(120deg, rgba(11,63,84,0.22), rgba(79,163,184,0.18)),
    url("../images/banner-collection.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* kalau HTML ada <div class="overlay"></div>, jangan block click */
.collection-hero .overlay{
  display: none; /* ✅ paling selamat */
}

/* gradient decorations */
.collection-hero::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(circle at 20% 20%, rgba(79,163,184,0.22), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(11,63,84,0.18), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(79,163,184,0.16), transparent 60%);
  filter: blur(2px);
  pointer-events:none;
}

.collection-hero h1{
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.collection-hero p{
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  line-height: 1.8;
}

/* glass pill bawah text */
.collection-hero p::after{
  content:"";
  display:block;
  width: 110px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
}

/* ================= SECTION WRAPPER ================= */
.collection-section{
  padding: 70px 80px;
}

/* ================= GRID ================= */
.collection-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

/* ================= CARD ================= */
.product-card{
  position: relative;
  background: linear-gradient(135deg, #ffffff, var(--soft-bg));
  border-radius: 22px;
  padding: 18px 18px 22px;
  text-align: center;
  box-shadow: 0 14px 35px var(--shadow-light);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.product-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(circle at 20% 10%, rgba(79,163,184,0.22), transparent 55%);
  opacity: 0.7;
  pointer-events:none;
}

.product-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 24px 55px var(--shadow-medium);
}

.badge{
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;

  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.product-card img{
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 16px;

  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(11,63,84,0.08);
  padding: 10px;
  transition: transform 0.35s ease;
}

.product-card:hover img{
  transform: scale(1.03);
}

.product-card h3{
  position: relative;
  z-index: 2;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.product-card .price{
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
}

.product-card .price::after{
  content:"";
  display:block;
  width: 56px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: rgba(79,163,184,0.35);
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float{
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 10010; /* ✅ atas overlay/menu */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float img{ width: 28px; height: 28px; }
.whatsapp-float:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px){
  .collection-section{ padding: 60px 40px; }
  .collection-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card img{ height: 300px; }
}

/* ================= MOBILE POLISH ================= */
@media (max-width: 768px){
  .collection-hero{
    min-height: 30vh;
    padding: 70px 16px 46px;
  }
  .collection-hero h1{
    font-size: 30px;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }
  .collection-hero p{
    font-size: 13px;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
  }
  .collection-hero p::after{
    width: 80px;
    margin: 14px auto 0;
    opacity: 0.85;
  }

  .collection-section{
    padding: 34px 16px 70px; /* bagi ruang untuk whatsapp */
  }
  .collection-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card{
    border-radius: 18px;
    padding: 14px 14px 18px;
    box-shadow: 0 10px 28px var(--shadow-light);
  }
  .product-card:hover{
    transform: translateY(-6px);
  }

  .badge{
    top: 12px;
    left: 12px;
    font-size: 10px;
    padding: 6px 12px;
  }

  .product-card img{
    height: 240px;
    border-radius: 14px;
    padding: 10px;
  }

  .product-card h3{
    font-size: 14px;
    margin-top: 12px;
  }

  .product-card .price{
    font-size: 14px;
    margin-top: 6px;
  }

  .product-card .price::after{
    width: 48px;
    margin: 12px auto 0;
  }

  .whatsapp-float{
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
  }
  .whatsapp-float img{
    width: 24px;
    height: 24px;
  }
}

/* extra kecil */
@media (max-width: 480px){
  .collection-hero{
    min-height: 28vh;
    padding: 64px 14px 40px;
  }
  .collection-hero h1{
    font-size: 26px;
  }
  .collection-hero p{
    font-size: 12.5px;
  }
  .product-card img{
    height: 220px;
  }

  /* optional: sembunyi text untuk jimat space
  .whatsapp-float span{ display:none; }
  */
}