* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

nav {
  display: flex;
  align-items: center;
  padding: 16px 32px;
  gap: 32px;
  position: relative;
}

.dropdown-wrapper-game {
  position: relative;
}

.nav-item {
  cursor: pointer;
  font-weight: 600;
  color: white;
  font-size: 18px;
}

.dropdown-area {
  position: absolute;
  top: 90%;
  left: 0;
  display: none;
  background-color: #1e293b;
  padding: 24px;
  border-radius: 16px;
  width: 900px;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  z-index: 99;
  animation: fadeDown 0.2s ease-in-out;
}

.dropdown-wrapper-game:hover .dropdown-area {
  display: grid;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.game-box:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Ảnh nền (full-cover) */
.game-box-bg {
  width: 100%;
  height: 100%;        /* hoặc height: 100%; object-fit: cover nếu muốn căng full */
  display: block;
}

/* Ảnh logo (vừa khung, giữ tỉ lệ và nằm trên nền) */
.game-box-logo {
  position: absolute;
  top: 1rem;           /* điều chỉnh vị trí */
  left: 1rem;
  max-width: 70%;      /* hoặc width: 80px; tùy bạn */
  height: auto;
  object-fit: contain;
  z-index: 2;
}

/* Phần content luôn nằm trên cùng */
.game-box-content {
  position: relative;
  z-index: 3;
  /* ... existing styles ... */
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-info span:first-child {
  font-weight: bold;
  font-size: 18px;
}

.game-info span:last-child {
  font-size: 16px;
  color: #94a3b8;
}

.gift-button {
  background: linear-gradient(to right, #7f5af0, #ff5c8a);
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  color: white;
  font-weight: bold;
  margin-left: auto;
  cursor: pointer;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: none;
}

.content-top {
  padding-block: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.new {
  padding-block: 2px;
  padding-inline: 8px;
  background: #3384ff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
}
p {
  margin-bottom: 0 !important;
}
.title12 {
  font-weight: 600;
  font-size: 16px;
  color: #9fa6c1;
  margin-bottom: 0 !important;
}

.title2 {
  font-weight: 600;
  font-size: 16px;
  color: #3384ff;
}

.title2:hover {
  text-decoration: underline;
}

.action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

li {
  list-style: none;
}

a {
  padding-block: 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  color: #9fa6c1;
}

.main {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  height: 600px;
  z-index: 10;
}

/* Swiper dưới nền */
#background-swiper {
position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  z-index: 0;
}
.swiper-slide {
  background-size: cover;
  background-position: center;
}

.swiper {
  width: 100%;
  height: 100%;
  position: relative;
}
.title-slide {
  position: absolute;
  top: 50%;
  left: 0;
}
.swiper-wrapper {
  position: relative;
}

.swiper-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 
  inset 0 -140px 80px -20px #111520,
  inset 0 80px 60px -40px #111520,
  inset 0 0 10px 0 #111520;
  background-size: cover !important;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.slide-buttons-wrap {
  display: flex;
  flex-wrap: wrap; /* Cho phép xuống dòng khi không đủ chỗ */
  justify-content: center; /* Căn giữa các phần tử */
  width: 100%;
  max-width: 1270px;
  margin-left: auto;
  margin-right: auto;
  gap: 24px;
}

/* Banner nằm phía trên */
#top-banner {
  position: relative;
  z-index: 10;
  padding: 30px;
  color: white;
  font-size: 2rem;
  text-align: center;
}

.slide-buttons {
  bottom: -120px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;

  z-index: 10;
  background: #111520;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),

}

.slide-btn {
  background: #1f2333;
  padding: 15px 20px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s;
}
.slide-btn.active {
  background-color: #1c1f37;
  color: #fff;
}
.slide-btn:hover {
  background: #2c3145;
}
.slide-btn {
  padding: 16px;
  height: 80px;
  cursor: pointer;
  flex: 1;
}
.slide-btn img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}
.main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
  /* màu đen mờ */
  z-index: -6;
}

.logo svg {
  width: 146px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 20px;
}

.nav-item-game,
.menu-link {
  width: fit-content;
  color: white;
  z-index: 1000;
}

.menu-link-gift {
  color: white;
  padding: 10px;
  border-radius: 6px;
  background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: 3s linear;
  outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-link-gift:hover {
  box-shadow: 0 0 20px rgba(246, 79, 89, 0.6), 0 0 40px rgba(196, 113, 237, 0.4),
    0 0 60px rgba(18, 194, 233, 0.2);
  transform: translateY(-2px);
}

.wraper-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.language-box {
  width: 23%;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 20px;
}

.language {
  width: fit-content;
  background: #35394e;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
  border-radius: 8px;
}

.language:hover {
  cursor: pointer;
  background: #3e4259;
}

.cart svg,
.language svg {
  width: 20px;
  height: 20px;
}

.language p {
  font-weight: 600;
  font-size: 18px;
  line-height: 20px;
}

.language .money {
  font-size: 16px;
  color: #9fa6c1;
}

.cart {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #35394e;
  border-radius: 8px;
  padding: 12px 16px;
}

.cart:hover {
  cursor: pointer;
  background: #3e4259;
}

.action a:hover {
  color: #3384ff;
  transition: all 0.3s ease-in-out;
}

.dropdown-wrapper-more {
  position: relative;
}

.dropdown-more {
  width: max-content;
  padding-block: 20px;
  position: absolute;
  top: 90%;
  left: 0;
  right: 0;
  display: none;
  background-color: #1e293b;
  border-radius: 16px;
  gap: 16px;
  z-index: 99;
  animation: fadeDown 0.2s ease-in-out;
}

.dropdown-wrapper-more:hover .dropdown-more {
  display: grid;
}

ion-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.more-box {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  gap: 10px;
}

.more-box ion-icon {
  width: 20px;
  height: 20px;
}

.more-box:hover {
  color: #3384ff;
  background-color: rgba(255, 255, 255, 0.1);
}
.swiper-slide {
  position: relative;
}
.slide-content {
  position: absolute;
  top: 32%;
  left: 50%;
 
  transform: translate(-50%, -200px);
  opacity: 0;


  transition:
    transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1)  
  , opacity   1.4s ease 0.4s;                       

  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 1320px;
  padding: 0 30px;
  width: 100%;
  box-sizing: border-box;
}

.swiper-slide-active .slide-content {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Điều chỉnh trên màn hình nhỏ hơn 1024px (Tablet) */
@media (max-width: 1024px) {
  .slide-content {
    top: 10%;
    padding: 0 20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .slide-title {
    font-size: 36px;
  }
}

/* Điều chỉnh trên màn hình nhỏ hơn 768px (Điện thoại) */
@media (max-width: 768px) {
  .slide-content {
    top: 6%;
    padding: 0 15px;
    left: 50%;
    transform: translateX(-50%);
  }

  .slide-title {
    font-size: 28px;
    text-align: center;
  }

  .slide-text {
    font-size: 14px;
    text-align: center;
  }

  .slide-btn-more {
    font-size: 14px;
    padding: 8px 16px;
    display: block;
    margin: 0 auto;
  }

  .wrap-star {
    text-align: center;
  }

  .price-wrap {
    justify-content: center;
  }
}

.slide-title {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 50px;
  font-family: "Poppins", sans-serif;
  text-shadow: unset;
}

.slide-text {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 4px;
  color: #afb3c8;
  font-family: "Poppins", sans-serif;
  text-shadow: unset;
}
.slide-btn-more {
  padding: 10px 42px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  background-color: #0195f4;
  border: 1px solid #0195f4;
  color: #fff;
  z-index: 3;
  position: relative;
  border-radius: 8px;
  line-height: 24px;
  font-family: "Poppins", sans-serif;
}
.slide-text-wrap {
  margin-bottom: 24px;
}
.wrap-star {
  margin-bottom: 24px;
}
.star-title {
  font-weight: 600;
  color: #fff;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  text-shadow: unset;
}
.price-wrap {
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  font-family: "Poppins", sans-serif;
  text-shadow: unset;
}
.unit {
  font-weight: 500;
  color: #cdcfe3;
  font-size: 20px;
  text-shadow: unset;
}

.products {
  margin-top: 10px;
}
.slide-buttons {
  width: 100%;
  max-width: 1310px;
  margin: 0 auto;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  padding-left: 0;
}

.slide-buttons.grabbing {
  cursor: grabbing;
}

.slide-buttons-wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 1310px;
  margin: 0 auto;
  transition: transform 0.5s ease;
}

.slide-btn {
  flex: 0 0 calc((100% - 5 * 24px) / 6);
  box-sizing: border-box;
  min-width: 120px;
}

@media (max-width: 768px) {
  .slide-buttons-wrap {
    gap: 16px;
  }
  .slide-btn {
    flex: 0 0 calc((100% - 2 * 16px) / 3);
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .slide-buttons-wrap {
    gap: 12px;
  }
  .slide-btn {
    flex: 0 0 calc((100% - 1 * 12px) / 2);
    min-width: 90px;
  }
}
/* ===== Bắt đầu style nút nổi bật (btn-highlight) ===== */
.btn-highlight {
  background-color: rgb(53, 57, 78) !important;
  color: rgb(159, 166, 193) !important;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-highlight:hover {
  background-color: rgb(40, 44, 65) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(53, 57, 78, 0.6);
}

.btn-highlight svg {
  display: inline-block; /* để transform hoạt động */
  transition: transform 0.3s ease, fill 0.3s ease;
  fill: rgb(159, 166, 193);
}

.btn-highlight:hover svg {
  fill: #fff; /* đổi màu mũi tên khi hover */
  transform: translateX(4px); /* mũi tên dịch sang phải */
}
p.desc-text {
  margin-bottom: 10px !important;
}
