@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Rubik+Wet+Paint&family=Tomorrow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins', sans-serif;
}

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 40px;
  width: 100px;
}

.logo{ 
  width:100px;
  margin-right: 40px;
  animation: logo 1s ease-out forwards;
}

@keyframes logo {
  0% {
    transform: translateY(-500px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

body {
  overflow: hidden;
  height: 100%;
  background: var(--mainColor);
  transition: .5s;
}

.hero{
  position:relative;
  padding:60px;
  display:flex;
  justify-content:center;
  align-items:center;
  height:80vh;
  transition:0.5s;
}

.bg-text {
  position: absolute;
  font-family: "Rubik Wet Paint", system-ui;
  letter-spacing: 20px;
  color: black;
  z-index: 1;   
  user-select: none;
  margin-bottom: 100px;
  transform: rotate(-20deg);
  animation: bgFadeIn 1.5s ease-out forwards;
  opacity: 0;
}

.bg-text {
  font-size: 400px !important;
}

.bg-text.puma {
  font-size: 320px;
}

.bg-text.adidas {
  font-size: 280px;
}

@keyframes bgFadeIn {
  to {
    opacity: 1;
    transform: translateY(-20);
  }
}

.shoe-box{
  z-index: 3;
}

.shoe-box img {
  width: 35vw;
  animation: sepatu 1s ease-out forwards;
}

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

.left-info{
  position:absolute;
  left:60px;
  top: 140px;
  margin-right: 20px;
}

.left-info h1 {
  font-family: "Tomorrow", sans-serif;
  font-size: 25px;
  max-width: 260px;    
  white-space: normal;  
  word-wrap: break-word;
  overflow-wrap: break-word;
  animation: namasepatu 1s ease-out forwards;
}

@keyframes namasepatu {
  0% {
    transform: translateX(-500px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.right-info{
  position:fixed;
  left: 1550px;
  top: 150px;
  max-width: 260px;
  font-size: 20px;
}

.desc {
  font-family: "Chakra Petch", sans-serif;
  margin-top: 380px;
  background-color: #e6e6e6;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid #bdbdbd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  line-height: 1.6;
  color: #222;
  animation: desc 1s ease-out forwards;
}

@keyframes desc {
  0% {
    transform: translateX(500px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }

}

.product-release {
  position:absolute;
  left:60px;
  top:150px;
  max-width:260px;
  margin-top: 60px;
  margin-right: 20px;
  animation: tanggal 1s ease-out forwards;
}

@keyframes tanggal {
  0% {
    transform: translateX(-500px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.product-release .label {
  font-family: "Chakra Petch", sans-serif;
}

#releaseDate {
  font-family: "Chakra Petch", sans-serif;
}

#sizeList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 180px;
}

.size-btn {
  padding:10px 14px;
  margin:5px;
  background: white;
  border: 1.5px solid black;
  border-radius: 10px;
  color: black;
}

.size-btn:hover {
  background: black;
  color: white;
}

.size-btn.active {
  background: black;
  color: white;
  border-color: black;
}

.sizeList button:hover{
  background:white;
  color:black;
}

.option {
  position: absolute;
  left: 60px; 
  top: 270px;
  margin-right: 20px;
  animation: namasepatu 1s ease-out forwards;
}

@keyframes namasepatu {
  0% {
    transform: translateX(-500px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.option h4 {
  font-size: 17px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: rgb(0, 0, 0);
  font-family: "Chakra Petch", sans-serif;
}

.option-wrapper {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 30px; /* jarak size & warna */
}

#colorList {
  display: flex;
  gap: 14px;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}

.color-dot.active {
  border: 2px solid #000;
}

.color-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: white;   /* default putih */
  border: 2px solid black;   /* stroke hitam */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.check-icon {
  display: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.color-circle.active {
  transform: scale(1.1);
}

.color-circle.active .check-icon {
  display: block;
}
.warna {
  position: absolute;
  left: 60px;          /* posisi kiri */
  bottom: 20px;            /* tengah secara vertikal */
  transform: translateY(-50%);
  margin-right: 20px;
  color: rgb(0, 0, 0);
  animation: warna 1s ease-out forwards;
}

@keyframes warna {
  0% {
    transform: translateX(-500px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.warna h5 {
  font-size: 17px;
  margin-bottom: 6px;
  font-family: "Chakra Petch", sans-serif;
}

.arrow-btn {
  width: 90px;
  height: 90px;
  border: 4px solid rgb(0, 0, 0);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  cursor: pointer;
  transition: 0.3s;
}

.arrow-btn img {
  width: 40px;
}

.arrow-btn:hover {
  transform: scale(1.1);
}

.left-arrow {
  left: 300px;
  top: 45%;
  animation: panahkiri 0.5s ease-out forwards;
}

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

.right-arrow {
  right: 300px;
  top: 45%;
  animation: panahkanan 0.5s ease-out forwards;
}

@keyframes panahkanan {
  0% {
    transform: translateY(-500px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.color-btn.active {
  border: 3px solid #000000;
  transform: scale(1.2);
}

/* TOMBOL KEMBALI */
.back-btn {
  position: fixed;
  left: 40px;
  bottom: 40px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 16px 26px;
  background: #ffffff;
  color: #000;
  text-decoration: none;

  font-family: "Chakra Petch", sans-serif;
  font-size: 16px;
  font-weight: 600;

  border-radius: 20px;

  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.22),   /* bayangan utama */
    0 10px 18px rgba(0, 0, 0, 0.16),   /* bayangan tengah */
    0 4px 6px rgba(0, 0, 0, 0.12);     /* bayangan dekat */

  animation: kembali 1s ease-out forwards;
}

@keyframes kembali {
  0% {
    transform: translateX(-500px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.22),
    0 6px 12px rgba(0, 0, 0, 0.14);
}

.back-btn .back-icon {
  width: 24px;
  height: 24px;
  filter: brightness(1.2);
}

/* TOMBOL BELI */
.buy-btn {
  position: fixed;
  cursor: pointer;
  right: 100px;
  font-family: "Chakra Petch", sans-serif;
  padding: 15px 26px;
  background: linear-gradient(135deg, #ff3b3b, #b30000);
  color: white;
  font-size: 19px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: 0.25s ease;
}

.buy-btn:hover {
  transform: translateY(-5px) scale(1.04);
  background: linear-gradient(135deg, #ff5252, #cc0000);
}

.h2 {
  position: fixed;
  bottom: 110px;
  right: 100px;
  font-family: "Tomorrow", sans-serif;

  font-size: 24px;
  font-weight: 800;

  color: #ffffff;

  padding: 6px 0;
  border-radius: 10px;

  text-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

.price-box {
  position: absolute;
  right: 100px;
  top: 780px;
  text-align: right;
  font-family: "Tomorrow", sans-serif;
}

.price-box * {
  font-family: "Tomorrow", sans-serif;
}

#productPrice {
  font-family: "Tomorrow", sans-serif;
  font-size: 28px;
  font-weight: 800px;
  margin-bottom: 124px;
  color: black;
  animation: harga 1s ease-out forwards;
}

@keyframes harga {
  0% {
    transform: translateX(500px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.buy-btn {
  position: fixed;
  bottom: 40px;
  right: 100px;
  font-family: "Chakra Petch", sans-serif;
  padding: 15px 26px;
  background: linear-gradient(135deg, #ff3b3b, #b30000);
  color: white;
  font-size: 19px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  animation: beli 1s ease-out forwards;
}

@keyframes beli {
  0% {
    transform: translateX(500px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.buy-btn:hover {
  transform: translateY(-5px) scale(1.04);
  background: linear-gradient(135deg, #ff5252, #cc0000);
}

.price-tag {
  position: fixed;
  bottom: 110px;
  right: 100px;
  font-family: "Tomorrow", sans-serif;

  font-size: 24px;
  font-weight: 800;

  color: #ffffff;

  padding: 6px 0;
  border-radius: 10px;

  text-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

/* ===============================
   RESPONSIVE LAPTOP 1366px
================================ */
@media (max-width: 1366px) {

  body {
    overflow: hidden;
    height: 100%;
  }

  /* HERO */
.hero {
  height: 80vh;
}

  /* BACKGROUND TEXT */
  .bg-text.nike {
    font-size: 260px;
    letter-spacing: 14px;
  }

  .bg-text.puma {
    font-size: 240px;
  }

  .bg-text.adidas {
    font-size: 220px;
  }

  /* SEPATU */
  .shoe-box img {
    width: 32vw;
  }

  /* NAMA PRODUK */
  .left-info {
    top: 50px;
    left: 50px;
  }

  .left-info h1 {
    font-size: 22px;
    max-width: 240px;
  }

  /* DESKRIPSI */
  .right-info {
    left: auto;
    right: 80px;
    top: 140px;
    max-width: 280px;
  }

  .desc {
  position: absolute;
  bottom: 10px;
  right: 50px;
  }

  /* TANGGAL RILIS */
  .product-release {
    top: 40px;
    left: 50px;
  }

  /* SIZE */
  .option {
    top: 160px;
    left: 50px;
  }

  #sizeList {
    grid-template-columns: repeat(3, 1fr);
  }

  /* WARNA */
  .warna {
    top: 400px;
    left: 50px;
  }

  /* PANAH */
  .left-arrow {
    left: 230px;
    width: 60px;
    height: 60px;
  }

  .right-arrow {
    right: 230px;
    width: 60px;
    height: 60px;
  }

  /* HARGA */
  .price-box {
    top: auto;
    bottom: 0px;
}

  #productPrice {
    font-size: 26px;
  }

  /* TOMBOL */
.buy-btn {
  position: fixed;
  bottom: 40px;
}

  .back-btn {
    left: 40px;
  }
}


/* ===============================
   RESPONSIVE iPad 1024px
================================ */
@media (max-width: 1024px) {

  html, body {
    height: 100vh;
    overflow: hidden;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 40px 20px;
    position: relative;
  }

  /* BACKGROUND TEXT */
  .bg-text {
    font-size: 300px !important;
    letter-spacing: 12px;
    position: absolute;
    top: 250px;
    transform: translateY(-50%) rotate(-20deg);
  }

  /* SEPATU */
  .shoe-box img {
    position: absolute;
    top: 50px;
    left: 250px;
    width: 45vw;
    z-index: 2;
  }

  /* NAMA PRODUK */
  .left-info {
    position: relative;
    top: 150px;
    left: 10px;
    text-align: center;
  }

  .left-info h1 {
    font-size: 40px;
    max-width: 600px;
    margin: auto;
  }

  /* DESKRIPSI */
  .right-info {
    position: relative;
    top: 520px;
    right: 300px;
    text-align: center;
    
  }

  .desc {
  font-size: 16px;  
  line-height: 1.6;
  }

  /* TANGGAL */
  .product-release {
    position: relative;
    margin-top: 20px;
    text-align: center;
    top: 150px;
    right: 0px;
    font-size: 25px;
  }

  /* SIZE */
  .option {
    position: absolute;
    top: 750px;
    left: 750px;
    margin-top: 20px;
    text-align: center;
  }

  .option h4{
    font-size: 30px;
  }

#sizeList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.size-btn {
  padding: 25px 25px;
  font-size: 18px;
}


  /* WARNA */
.warna {
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 1100px;
  left: 750px;
}

.warna h5 {
  font-size: 30px;
  margin: 0;
  text-align: center;
}

  .color-dot {
  width: 40px;
  height: 40px;
  background: black;
  border-radius: 50%;
}

  /* PANAH */
  .arrow-btn {
    width: 90px;
    height: 90px;
    top: 50%;
  }

  .left-arrow {
    left: 30px;
  }

  .right-arrow {
    right: 30px;
  }

  /* HARGA */
  .price-box {
    position: absolute;
    top: 1150px;
    left: 100px;
    text-align: center;
    font-size: 10px;
  }

  .price-box * {
  font-size: 30px !important;
}

  .buy-btn {
    position: relative;
    bottom: 80px;
    left: 0;
  }

  .back-btn {
  position: fixed;
  z-index: 99999;  /* ⬅️ paling atas */
  pointer-events: auto;
}
}

/* ===============================
   RESPONSIVE iPad 768px
================================ */
@media (max-width: 768px) {

  
  html, body {
    height: 100vh;
    overflow: hidden;
  }

  /* HERO JADI COLUMN */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    height: auto;
    position: relative;
  }

  /* BACKGROUND TEXT */
  .bg-text {
    position: absolute;
    font-size: 220px !important;
    letter-spacing: 8px;
    transform: rotate(-20deg);
    top: 80px;
  }

  /* SEPATU */
  .shoe-box img {
  position: absolute;
  top: 30px;
  left: 200px;
  width: 350px;
  }

  /* NAMA PRODUK */
  .left-info {
    position: relative;
    top: 400px;
    left: auto;
    transform: none;
    text-align: center;
    margin-top: 16px;
  }

  .left-info h1 {
    font-size: 30px;
    max-width: 90%;
    margin: auto;
  }

  /* DESKRIPSI */

.right-info {
  position: relative;
  left: 50px;
  top: 580px;
  max-width: 80vw;
  width: 95vw;
}

.desc {
  width: 100%;
  font-size: 20px;
}

  /* TANGGAL RILIS */
  .product-release {
    position: absolute;
    top: 650px;
    left: 10px;
    text-align: center;
  }

.product-release * {
  font-size: 20px !important;
}

#releaseDate {
  font-size: 20px;
}

  /* SIZE */
.option {
  position: relative;
  top: 580px;
  left: 250px;
}

.option h4{
  font-size: 20px;
}

  #sizeList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 260px;
    margin: auto;
  }

  .size-btn {
  padding: 5px 5px;
  font-size: 14px;
}

  /* WARNA */
.warna {
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 680px;
  left: 320px;
}

.warna h5 {
  font-size: 20px;
  margin: 0;
  text-align: center;
}

  .color-dot {
  width: 30px;
  height: 30px;
  background: black;
  border-radius: 50%;
}

  /* PANAH */
  .arrow-btn {
    width: 60px;
    height: 60px;
    top: 45%;
  }

  .left-arrow {
    left: 20px;
  }

  .right-arrow {
    right: 20px;
  }

  /* PRICE */
  .price-box {
    position: relative;
    top: 550px;
    left: 0;
    text-align: center;
  }

  .price-box * {
  font-size: 15px !important;
}

  .buy-btn {
    position: relative;
    z-index: 9999;
  }

  /* BACK */
  .back-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    left: auto;
    bottom: auto;
    z-index: 9999;
  }
}


@media (max-width: 600px) {

html {
  overflow-y: auto;
}

  body {
    overflow-y: auto;
  }

  /* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

  /* BACKGROUND TEXT */
  .bg-text {
    font-size: 140px !important;
    letter-spacing: 6px;
    left: 10px;
    margin: 40px 0;
    position: relative;
    transform: rotate(-20deg);
  }

  /* SEPATU */
  .shoe-box img {
  position: absolute;
  top: 100px;
  left: 50px;
    width: 70%;
    margin: 20px 0;
  }

  /* NAMA PRODUK */
  .left-info {
    position: relative;
    top: 150px;
    right: 0px;
    transform: none;
    text-align: center;
  }

  .left-info h1 {
    font-size: 18px;
    max-width: 90%;
    margin: 0 auto;
  }

  /* DESKRIPSI */

.right-info {
  position: relative;
  left: 50px;
  top: 350px;
  max-width: 80vw;
  width: 95vw;
}

.desc {
  width: 100%;
  font-size: 15px;
}

  /* TANGGAL RILIS */
  .product-release {
    margin-top: 220px;
    position: relative;
    top: 130px;
    left: 40px;
    text-align: center;
  }

  /* SIZE */
  .option {
    position: relative;
    margin: 20px 0;
    text-align: center;
    top: 130px;
    left: 0px;
  }

  #sizeList {
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
  }

  /* WARNA */
  .warna {
    position: relative;
    margin: 20px 0;
    text-align: center;
    top: 130px;
    left: 0px;
  }

  #colorList {
    justify-content: center;
  }

  /* PANAH */
  .arrow-btn {
    width: 50px;
    height: 50px;
  }

  .left-arrow {
    left: 10px;
    top: 50%;
  }

  .right-arrow {
    right: 10px;
    top: 50%;
  }

    /* PRICE */
.price-box {
  position: relative !important;
  top: 130px;
  left: 0;
  transform: none !important;
  display: block;
}

#productPrice {
  display: block;
  visibility: visible;
  opacity: 1;
}

.back-btn {
  position: fixed !important;
  top: 16px;
  right: 16px;
  left: auto;
  bottom: auto;
  z-index: 99999;
}
}
