/* ===========NAVBAR============ */
/* Base style */
.navbar-pf {
  font-weight: 600 !important;
  padding: 0.8rem 2rem !important;
}

.navbar-pf .nav-link {
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  margin: 0 1.2rem !important;
  transition: color 0.3s ease !important;
}

/* Cream version */
.navbar-pf--cream {
  background-color: #FFF1E1 !important;
}

.navbar-pf--cream .nav-link {
  color: #006788 !important; /* biru gelap */
}

.navbar-pf--cream .nav-link:hover {
  color: #F8A631 !important; /* aksen orange */
  background-color: transparent !important;
}

/* Blue version */
.navbar-pf--blue {
  background-color: #008cbc !important;
}

.navbar-pf--blue .nav-link {
  color: white !important;
}

.navbar-pf--blue .nav-link:hover {
  color: #FFD199 !important; /* kuning/emas */
  background-color: transparent !important;
}

/* Burger toggler */
.navbar-pf--cream .navbar-toggler-bar {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  margin: 4px auto !important;
  background-color: #000; /* bisa diubah sesuai tema */
}

.navbar-pf--blue .navbar-toggler-bar {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  margin: 4px auto !important;
  background-color: #fff; /* bisa diubah sesuai tema */
}

/* ============ Wrapper =============== */
/* Wrapper untuk setiap konten, agar ada space dari nav */
.wrapper{
  margin-top: 10vh;
}

/* =========== Common ============== */
.extra-bold{
  font-weight: 1200 !important;
}

.bg-orange{
  background-color: #F8A631 !important;
  color: #fff !important;
  padding: 0 1rem 0 1rem;
  font-weight: 1200 !important;
}

.bg-blue{
  background-color: #008CB9 !important;
}

.underline-orange{
  text-decoration: underline;
  text-decoration-color: #F8A631 !important;
  text-underline-offset: 10px;
}

.bg-gradient-orange{
  background: hsla(35, 93%, 58%, 1);
  background: linear-gradient(270deg, hsla(35, 93%, 58%, 1) 0%, hsla(33, 95%, 42%, 1) 100%);
  background: -moz-linear-gradient(270deg, hsla(35, 93%, 58%, 1) 0%, hsla(33, 95%, 42%, 1) 100%);
  background: -webkit-linear-gradient(270deg, hsla(35, 93%, 58%, 1) 0%, hsla(33, 95%, 42%, 1) 100%);
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#F8A631", endColorstr="#D37505", GradientType=1 );
}

.vl{
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}

hr{
  width: 100%;
  border-top: 2px solid #F8A631;
}

.text-blue{
  color: #008CB9 !important;
  font-weight: 1000 !important;
}

.text-orange{
  color: #F8A631 !important;
}

button:focus{
  outline: 5px auto #008CB9 !important;
}

.w-90{
  width: 90% !important;
}


/* ====== Ribbon PureFoam ====== */
.pf-ribbon {
  --main: #007499;     /* warna utama */
  --shadow: #008CB9;   /* warna shadow */

  position: relative;
  display: inline-block;
  padding: 10px; /* Padding lebih kecil */
  background: var(--main);
  color: #fff;
  font-weight: bold;
  transform: skewY(-2deg); /* Miringkan lebih sedikit */
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
  text-align: center;
  scale: 0.8;
}

.pf-ribbon > span {
  display: inline-block;
  transform: skewY(2deg); /* Sesuaikan dengan transform ribbon */
  padding: 0 5px;
}

.pf-ribbon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: var(--shadow);
  transform: translate(0px, 3px) skewY(2deg); /* Shadow lebih kecil */
  z-index: -1;
  scale: 1.05;
}

/* ====== Product ========= */
.pf-product{
  position: relative;
  width: min(350px, 55vw);
  aspect-ratio: 1 / 0.78;       /* kanvas komposisi */
}

/* Segi enam + gradasi */
.pf-hex {
  position: absolute;
  inset: 16% 8% 0%;

  background:
    linear-gradient(
      to bottom,
      rgba(235, 161, 53, 0) 0%,   /* #EBA135, opacity 0% */
      rgba(235, 161, 53, 0.9) 100% /* #EBA135, opacity 90% */
    );

  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.18));
}

.pf-hex:hover {
  position: absolute;
  inset: 16% 8% 0%;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 140, 185, 0) 0%,    /* #008CB9 dengan opacity 0% */
      rgba(0, 140, 185, 0.9) 100% /* #008CB9 dengan opacity 90% */
    );

  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.18));
}

.pf-hex.active {
  background: linear-gradient(
    to bottom,
    rgba(0, 140, 185, 0) 0%,
    rgba(0, 140, 185, 0.9) 100%
  );
}

.pf-hex.disabled{
  pointer-events: none;
}

/* Gambar matras di atas hex */
.pf-mattress{
  position: absolute;
  inset: 10% 0% 0%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(10px 14px 16px rgba(0,0,0,.25));
  pointer-events: none;
}

.pf-badge {
  position: absolute;
  top: 6%;
  left: 15%;
  font-size: 0.1rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;                /* di atas hex & gambar */
  white-space: nowrap;
}

.pf-photo{
  height: 40vh;
}

/* Tablet dan di bawahnya */

@media ( max-width: 1024px ) {   
.pf-photo{
    height: 20vh;
   }
}

/* Ponsel */
@media ( max-width: 767px ) {  
   .pf-photo{
    height: 15vh;
   }
}
/* ========== Instagram ========== */
  .instagram-section{
    z-index: 0;
    height: 100vh;
  }

  @media ( max-width: 1024px ) {  
   .instagram-section{
      height: 70vh;
   }
  } 

  @media ( max-width: 767px ) {  
   .instagram-section{
      height: 100vh;
   }
  } 


  .ig-scroll-x {
    --ig-pad: 8px;                 /* satu sumber kebenaran untuk padding */
    position: relative;            /* aman untuk hitung offset */
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding: 8px var(--ig-pad);    /* atas-bawah 8px, kiri-kanan pakai var */
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--ig-pad);
    scroll-padding-right: var(--ig-pad);
    z-index: 1;
  }

  @media ( max-width: 992px ) {  
   .ig-scroll-x{
      justify-content: start;
   }
  } 

  .ig-scroll-x::-webkit-scrollbar { height: 6px; }
  .ig-scroll-x::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.3);
    border-radius: 3px;
  }

  .ig-item {
    flex: 0 0 auto;           /* biar item tetap satu baris */
    width: 280px;             /* atur lebar kartu */
    scroll-snap-align: start; /* snap ke awal kartu */
    scroll-snap-stop: always;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
  }

  .ig-item img,
  .ig-item video {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
  }

  @media ( max-width: 1024px ) {  
    .ig-item img,
    .ig-item video {
      height: 35vh;
    }
  } 

  @media ( max-width: 767px ) {  
    .ig-item img,
    .ig-item video {
      height: 50vh;
    }
  } 

  .ig-item video { display: none; }
  .ig-item.is-playing img { display: none; }
  .ig-item.is-playing video { display: block; }

  .ig-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
  }
  .ig-play img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
  }

  /* ========== Nav tombol (tambahan baru, aman dipadukan) ========== */
  .ig-wrapper { position: relative; width: 100%; }
  .ig-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(17,17,17,0.6);
    color: #fff;
    display: grid;
    place-items: center;
    pointer-events: auto;
    cursor: pointer;
    backdrop-filter: blur(2px);
  }
  .ig-nav-btn svg { width: 20px; height: 20px; }
  .ig-prev { left: 6px; font-size: 24px; }
  .ig-next { right: 6px; font-size: 24px; }

  .title{
    font-family: 'forma-djr-display', sans-serif !important;
    padding-top: 0 !important;
    letter-spacing: 3px !important;
    font-weight: 800 !important;
  }

  .title-2{
    font-family: 'forma-djr-display', sans-serif !important;
    padding-top: 0 !important;
    letter-spacing: 1px !important;
    font-weight: 800 !important;
  }

  .product-title{
    font-family: 'brandon-grotesque', sans-serif !important;
    font-weight: 800 !important; 
  }

/* rounded border */
.rounded-pill{
  border: 2px solid #D37505 !important;
  padding: 0.5rem 0.5rem !important;
  border-radius: 50rem !important;
}

.btn-round{
  height: 5px;
  width: 5px;
  border-radius: 50% !important;
}

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

.btn-indicator {
  position: relative;
  overflow: hidden;
}

.btn-indicator::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: #006788; /* warna progress (ubah sesuai brand) */
  transition: none;
}

.btn-indicator.active::before {
  animation: progress-fill 5s linear forwards;
}

@keyframes progress-fill {
  from { width: 0%; }
  to { width: 100%; }
}

.btn-indicator .active{
  background-color: #006788 !important;
}
