/* ====== FONT GOOGLE ====== */
@import url("https://fonts.googleapis.com/css2?family=Ibarra+Real+Nova:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap");

/* ====== WARNA DAN PENGATURAN GLOBAL ====== */
:root {
  --brand-color: #512810;
  --button-color: #a86a2d;
  --button-hover: #8b5522;
  --background-start: #fef5d7;
  --background-end: #f0dabc;
  --surface: #ffffff;
}

/* ====== RESET STYLE ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  color: var(--brand-color);
  background: linear-gradient(
    90deg,
    var(--background-start) 0%,
    var(--background-end) 100%
  );
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  margin: 0;
}

/* ====== HEADER SECTION ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #ffffff;
}

.site-header .container.header-inner {
  width: 100%;
  max-width: none;
  height: 127px;
  margin: 0;
  padding: 0 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* ====== LOGO KIRI ====== */
.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  width: 120px;
  height: auto;
}

/* ====== NAVIGASI UTAMA ====== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

/* Posisi menu dibuat sama seperti Home GW Gessang */
.nav-list li:nth-child(1) {
  transform: translateX(-125px);
}

.nav-list li:nth-child(2) {
  transform: translateX(-75px);
}

.nav-list li:nth-child(3) {
  transform: translateX(-25px);
}

.nav-list li:nth-child(4) {
  transform: translateX(25px);
}

.nav-list li:nth-child(5) {
  transform: translateX(75px);
}

.nav-list li:nth-child(6) {
  transform: translateX(125px);
}

.nav-list a {
  position: relative;
  color: var(--brand-color);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}

/* Garis bawah saat menu disentuh mouse */
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 1px;
  background: var(--brand-color);
  transition: width 0.3s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--button-color);
}

.nav-list a:hover::after {
  width: 100%;
}

/* Menu Personal Colour dibuat dua baris */
.nav-list li:nth-child(3) a {
  display: block;
  width: 240px;
  text-align: center;
  white-space: normal;
}

.nav-list li:nth-child(3) a::after {
  left: 50%;
  transform: translateX(-50%);
}

.nav-list li:nth-child(3) a:hover::after {
  width: 90%;
}

/* Menu aktif */
.nav-list a.active {
  color: var(--brand-color);
  font-weight: 800;
}

.nav-list a.active::after {
  width: 100%;
}

/* ====== ICON KANAN HEADER ====== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-icons a,
.search-btn,
.home-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  transition: transform 0.2s ease;
}

.header-icons a:hover,
.search-btn:hover,
.home-account-btn:hover {
  transform: translateY(-2px);
}

.header-icons img,
.home-account-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* ====== TOMBOL HAMBURGER ====== */
.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-color);
}

/* ====== KOTAK PENCARIAN ====== */
.search-box {
  position: fixed;
  top: 105px;
  right: 70px;
  z-index: 999;

  display: none;
  align-items: center;
  gap: 12px;

  width: 360px;
  height: 54px;
  padding: 0 18px;

  background: #ffffff;
  border: 2px solid var(--brand-color);
  border-radius: 100px;
}

.search-box.active {
  display: flex;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: var(--brand-color);
}

.search-box button {
  font-size: 28px;
  color: var(--brand-color);
}

/* ====== DROPDOWN AKUN ====== */
.home-account-dropdown {
  position: fixed;
  top: 145px;
  right: 48px;
  z-index: 1100;

  display: none;
  width: 375px;
  padding: 34px 25px 32px;

  background: #ffffff;
  border-radius: 24px;
  box-shadow:
    7px 8px 0 rgba(255, 238, 191, 0.65),
    0 12px 30px rgba(81, 40, 16, 0.08);
}

.home-account-dropdown.active {
  display: block;
}

/* ====== NAMA AKUN ATAU LOGIN / SIGN UP ====== */
.home-account-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  color: var(--brand-color);
}

.home-account-user img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
}

.home-account-user-data {
  min-width: 0;
}

.home-account-user strong {
  color: var(--brand-color);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.home-account-user-data p {
  margin: 2px 0 0;
  color: var(--brand-color);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.home-account-user:hover strong {
  color: var(--button-color);
}

/* ====== MENU DI DALAM DROPDOWN AKUN ====== */
.home-account-menu {
  width: 100%;
  min-height: 56px;

  display: flex;
  align-items: center;
  gap: 18px;

  color: var(--brand-color);
  font-size: 23px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.home-account-menu:hover {
  color: var(--button-color);
}

.home-account-menu img {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  object-fit: contain;
}

button.home-account-menu {
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

/* ====== ISI HALAMAN KOSONG ====== */
.page-content {
  min-height: calc(100vh - 127px);
  background: linear-gradient(
    90deg,
    var(--background-start) 0%,
    var(--background-end) 100%
  );
}

/* ====== RESPONSIVE LAPTOP ====== */
@media (max-width: 1350px) {
  .site-header .container.header-inner {
    position: relative;
    height: 95px;
    padding: 0 48px;
  }

  .brand-logo img {
    width: 90px;
  }

  /* Menu desktop disembunyikan */
  .site-nav {
    display: none;
  }

  /* Menu tampil setelah hamburger diklik */
  .site-nav.is-open {
    position: absolute;
    top: 95px;
    right: 48px;
    left: auto;
    z-index: 999;

    display: flex;
    width: auto;
    padding: 18px 26px;

    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(81, 40, 16, 0.18);
  }

  .site-nav.is-open .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  /* Posisi menu desktop dikembalikan normal */
  .site-nav.is-open .nav-list li:nth-child(1),
  .site-nav.is-open .nav-list li:nth-child(2),
  .site-nav.is-open .nav-list li:nth-child(3),
  .site-nav.is-open .nav-list li:nth-child(4),
  .site-nav.is-open .nav-list li:nth-child(5),
  .site-nav.is-open .nav-list li:nth-child(6) {
    transform: none;
  }

  .site-nav.is-open .nav-list a {
    display: block;
    width: auto;
    padding: 0;
    background: transparent;
    color: var(--brand-color);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
  }

  .site-nav.is-open .nav-list li:nth-child(3) a {
    width: 230px;
    line-height: 1.3;
    white-space: normal;
  }

  .site-nav.is-open .nav-list a.active {
    font-weight: 800;
  }

  .menu-toggle {
    display: flex;
  }

  .header-icons {
    gap: 18px;
  }

  .header-icons img,
  .home-account-btn img {
    width: 28px;
    height: 28px;
  }

  .home-account-dropdown {
    top: 112px;
    right: 48px;
    width: 390px;
    padding: 36px 28px 34px;
  }

  .home-account-user img {
    width: 48px;
    height: 48px;
  }

  .home-account-user strong {
    font-size: 24px;
  }

  .home-account-menu {
    min-height: 60px;
    font-size: 23px;
  }

  .page-content {
    min-height: calc(100vh - 95px);
  }
}

/* ====== RESPONSIVE TABLET ====== */
@media (max-width: 900px) {
  .site-header .container.header-inner {
    height: 92px;
    padding: 0 24px;
    gap: 15px;
  }

  .brand-logo img {
    width: 78px;
  }

  .site-nav.is-open {
    top: 92px;
    left: 20px;
    right: 20px;
    width: auto;
    padding: 20px;
    border-radius: 20px;
  }

  .site-nav.is-open .nav-list {
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

.site-nav.is-open .nav-list a {
  width: 100%;
  padding: 5px 14px;

  background: transparent;
  border-radius: 0;

  color: var(--brand-color);
  font-size: 14px;
  text-align: center;
  white-space: normal;
}
  .site-nav.is-open .nav-list li:nth-child(3) a {
    width: 100%;
  }

  .header-icons {
    gap: 12px;
  }

  .header-icons img,
  .home-account-btn img {
    width: 24px;
    height: 24px;
  }

  .home-account-dropdown {
    top: 108px;
    right: 24px;
    width: min(390px, calc(100% - 48px));
  }

  .page-content {
    min-height: calc(100vh - 92px);
  }
}

/* ====== RESPONSIVE MOBILE ====== */
@media (max-width: 520px) {
  .site-header .container.header-inner {
    height: 82px;
    padding: 0 15px;
    gap: 8px;
  }

  .brand-logo img {
    width: 66px;
  }

  .site-nav.is-open {
    top: 82px;
    left: 12px;
    right: 12px;
    padding: 15px;
  }

  .site-nav.is-open .nav-list {
    gap: 8px;
  }

  .site-nav.is-open .nav-list a {
    padding: 10px 12px;
    font-size: 12px;
  }

  .header-icons {
    gap: 10px;
  }

  .header-icons img,
  .home-account-btn img {
    width: 22px;
    height: 22px;
  }

  .menu-toggle {
    width: 27px;
    height: 20px;
  }

  .search-box {
    top: 92px;
    left: 15px;
    right: 15px;
    width: auto;
  }

  .home-account-dropdown {
    top: 95px;
    right: 15px;
    left: 15px;
    width: auto;
    padding: 28px 22px 26px;
  }

  .home-account-user {
    gap: 12px;
    margin-bottom: 16px;
  }

  .home-account-user img {
    width: 44px;
    height: 44px;
  }

  .home-account-user strong {
    font-size: 21px;
  }

  .home-account-menu {
    min-height: 55px;
    gap: 16px;
    font-size: 20px;
  }

  .home-account-menu img {
    width: 28px;
    height: 28px;
  }

  .page-content {
    min-height: calc(100vh - 82px);
  }
}

/* ====== HALAMAN TESTIMONI ====== */
.testimoni-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 127px);
  padding: 48px 90px 100px;
}

/* ====== JUDUL TESTIMONI ====== */
.testimoni-title {
  margin-bottom: 45px;

  color: var(--brand-color);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

/* ====== GALERI TESTIMONI ====== */
.testimoni-gallery {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 50px;
}

.testimoni-item {
  width: 100%;
  overflow: hidden;
}

.testimoni-item img {
  width: 100%;
  height: auto;

  object-fit: contain;
}

.testimoni-next-btn span {
  display: block;

  font-size: 43px;
  font-weight: 300;
  line-height: 1;

  transform: translateY(-2px);
}

.testimoni-next-btn:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}

/* ====== RESPONSIVE TESTIMONI LAPTOP ====== */
@media (max-width: 1350px) {
  .testimoni-section {
    min-height: calc(100vh - 95px);
    padding: 45px 55px 100px;
  }

  .testimoni-title {
    margin-bottom: 40px;
    font-size: 32px;
  }

  .testimoni-gallery {
    gap: 35px;
  }

  .testimoni-next-btn {
    right: 65px;
    bottom: 45px;
  }
}

/* ====== RESPONSIVE TESTIMONI TABLET ====== */
@media (max-width: 900px) {
  .testimoni-section {
    min-height: calc(100vh - 92px);
    padding: 40px 24px 90px;
  }

  .testimoni-title {
    margin-bottom: 35px;
    font-size: 29px;
  }

  .testimoni-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
  }

  .testimoni-next-btn {
    right: 30px;
    bottom: 30px;

    width: 48px;
    height: 48px;
  }

  .testimoni-next-btn span {
    font-size: 38px;
  }
}

/* ====== RESPONSIVE TESTIMONI MOBILE ====== */
@media (max-width: 520px) {
  .testimoni-section {
    min-height: calc(100vh - 82px);
    padding: 32px 15px 85px;
  }

  .testimoni-title {
    margin-bottom: 28px;
    font-size: 25px;
  }

  .testimoni-gallery {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .testimoni-next-btn {
    right: 20px;
    bottom: 25px;

    width: 45px;
    height: 45px;
  }

  .testimoni-next-btn span {
    font-size: 35px;
  }
}

/* ====== NAVIGASI TESTIMONI 2 ====== */
.testimoni-navigation {
  position: absolute;
  right: 125px;
  bottom: 65px;

  display: flex;
  align-items: center;
  gap: 14px;
}

.testimoni-nav-btn {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--button-color);
  border-radius: 50%;

  color: #ffffff;

  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.testimoni-nav-btn span {
  display: block;

  font-size: 43px;
  font-weight: 300;
  line-height: 1;

  transform: translateY(-2px);
}

.testimoni-nav-btn:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}

/* ====== RESPONSIVE NAVIGASI TESTIMONI LAPTOP ====== */
@media (max-width: 1350px) {
  .testimoni-navigation {
    right: 65px;
    bottom: 45px;
  }
}

/* ====== RESPONSIVE NAVIGASI TESTIMONI TABLET ====== */
@media (max-width: 900px) {
  .testimoni-navigation {
    right: 30px;
    bottom: 30px;
    gap: 12px;
  }

  .testimoni-nav-btn {
    width: 48px;
    height: 48px;
  }

  .testimoni-nav-btn span {
    font-size: 38px;
  }
}

/* ====== RESPONSIVE NAVIGASI TESTIMONI MOBILE ====== */
@media (max-width: 520px) {
  .testimoni-navigation {
    right: 20px;
    bottom: 25px;
    gap: 10px;
  }

  .testimoni-nav-btn {
    width: 45px;
    height: 45px;
  }

  .testimoni-nav-btn span {
    font-size: 35px;
  }
}

/* ====== BADGE WISHLIST DAN CART ====== */
.header-badge-link {
  position: relative;
}

.wishlist-count-badge,
.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -10px;

  min-width: 20px;
  height: 20px;
  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e84c3d;
  border: 2px solid #ffffff;
  border-radius: 999px;

  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.wishlist-count-badge.is-hidden,
.cart-count-badge.is-hidden {
  display: none;
}

/* ==================================================
   EFEK MASUK HALAMAN TESTIMONI
   HANYA BERJALAN SEKALI SAAT HALAMAN DIBUKA
================================================== */

.testimoni-section {
  overflow: hidden;
}

/* Judul masuk dari atas */
.testimoni-title {
  opacity: 0;

  animation: testimoniTitleEnter
    0.7s ease forwards;
}

/* Semua gambar awal disembunyikan dulu */
.testimoni-item {
  opacity: 0;
}

/* Gambar kiri */
.testimoni-item:nth-child(1) {
  animation: testimoniLeftEnter
    0.8s
    cubic-bezier(0.22, 1, 0.36, 1)
    0.2s forwards;
}

/* Gambar tengah */
.testimoni-item:nth-child(2) {
  animation: testimoniCenterEnter
    0.8s
    cubic-bezier(0.22, 1, 0.36, 1)
    0.35s forwards;
}

/* Gambar kanan */
.testimoni-item:nth-child(3) {
  animation: testimoniRightEnter
    0.8s
    cubic-bezier(0.22, 1, 0.36, 1)
    0.5s forwards;
}

/* Tombol navigasi muncul terakhir */
.testimoni-navigation {
  opacity: 0;

  animation: testimoniNavigationEnter
    0.6s ease
    0.75s forwards;
}


/* ====== KEYFRAMES ====== */

@keyframes testimoniTitleEnter {
  from {
    opacity: 0;
    transform: translateY(-20px);
    letter-spacing: 7px;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: normal;
  }
}

@keyframes testimoniLeftEnter {
  from {
    opacity: 0;
    transform: translateX(-45px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes testimoniCenterEnter {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes testimoniRightEnter {
  from {
    opacity: 0;
    transform: translateX(45px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes testimoniNavigationEnter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .testimoni-title,
  .testimoni-item,
  .testimoni-navigation {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ====== GARIS DI BAWAH JUDUL TESTIMONI ====== */

.testimoni-title {
  position: relative;
}

.testimoni-title::after {
  content: "";
  display: block;

  width: 150px;
  height: 3px;
  margin: 12px auto 0;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent,
    #a86a2d,
    transparent
  );

  animation: testimoniTitleLine 0.8s ease
    0.45s both;
}

@keyframes testimoniTitleLine {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 150px;
    opacity: 1;
  }
}