* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin:0;
}

body {
  position: relative;
  background: #ceffe8;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 🔥 Background blur */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(0.6);
  transform: scale(1.1);
  z-index: -1;
}

/* layout */
.container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 📱 KHUNG 9:16 */
.image-wrapper {
  /* 🔥 chiếm phần còn lại */
  flex: 1;

  /* giới hạn max */
  max-height: calc(100vh - 120px); /* trừ chỗ button */

  aspect-ratio: 9 / 16;

  /* 🔥 fit cả ngang lẫn dọc */
  width: auto;

  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

/* image */
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-wrapper img.loaded {
  opacity: 1;
}

/* 📱 Mobile */
@media (max-width: 768px) {
  .image-wrapper {
    height: 92vh;
    border-radius: 12px;
  }
}

/* 💻 Desktop lớn */
@media (min-width: 1200px) {
  .image-wrapper {
    height: 80vh;
  }
}



/* bọc cả ảnh + button */
.content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* 🔥 quan trọng */
  justify-content: space-between;

  padding: 20px 0;
}

/* CTA button */
.cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #ee4d2d; /* màu Shopee */
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(0,0,0,0.3);

  transition: all 0.2s ease;
}

/* hover */
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* click */
.cta-btn:active {
  transform: scale(0.97);
}

/* 📱 mobile */
@media (max-width: 768px) {
  .cta-btn {
    width: 90%;
    text-align: center;
    padding: 16px;
    font-size: 15px;
  }
}