/* ====== 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");


/* ====== ROOT / WARNA UTAMA ====== */

:root {
  --brand-color: #512810;
  --button-color: #a86a2d;
  --button-hover: #8b5522;
  --background-start: #fef5d7;
  --background-end: #f0dabc;
  --surface: #ffffff;
  --max-width: 1440px;
}


/* ====== 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: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 94px;
}


/* ====== 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 ====== */

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  width: 120px;
  height: auto;
}


/* ====== NAVIGASI ====== */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  list-style: none;
}

.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;
}

.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::after {
  width: 100%;
}

.nav-list a:hover {
  color: var(--button-color);
}

.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%;
}


/* ====== ICON 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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-icons a {
  transition: transform 0.2s ease;
}

.header-icons a:hover {
  transform: translateY(-2px);
}

.header-icons img,
.search-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* ====== BADGE ANGKA WISHLIST ====== */

.wishlist-link {
  position: relative;
}

.wishlist-count-badge {
  position: absolute;
  top: -8px;
  right: -9px;

  min-width: 20px;
  height: 20px;
  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e84c3d;
  border: 2px solid #ffffff;
  border-radius: 100px;

  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  pointer-events: none;
}

.wishlist-count-badge:not(.is-hidden) {
  animation: wishlistBadgePop 0.3s ease;
}

@keyframes wishlistBadgePop {
  0% {
    transform: scale(0.5);
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* ====== BADGE ANGKA KERANJANG ====== */

.cart-link {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -9px;

  min-width: 20px;
  height: 20px;
  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e84c3d;
  border: 2px solid #ffffff;
  border-radius: 100px;

  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  pointer-events: none;
}

.cart-count-badge:not(.is-hidden) {
  animation: wishlistCartBadgePop 0.3s ease;
}

@keyframes wishlistCartBadgePop {
  0% {
    transform: scale(0.5);
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* ====== HAMBURGER ====== */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-color);
}


/* ====== SEARCH BOX ====== */

.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;

  border: 2px solid var(--brand-color);
  border-radius: 100px;

  background: #ffffff;
}

.search-box.active {
  display: flex;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  color: var(--brand-color);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
}

.search-box button {
  color: var(--brand-color);
  font-size: 28px;
}


/* ====== KONTEN HALAMAN POLOS ====== */

.page-main {
  min-height: calc(100vh - 127px);
}

/* ====== HALAMAN WISHLIST ====== */

.wishlist-section {
  width: 100%;
  padding: 45px 0 100px;
}

.wishlist-container {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 0 58px;
}


/* ====== JUDUL WISHLIST ====== */

.wishlist-top {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 80px;
  margin-bottom: 55px;
}

.wishlist-title {
  color: var(--brand-color);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.add-all-btn {
  position: absolute;
  right: 0;

  padding: 6px 12px;

  border-radius: 8px;

  color: #ffffff;
  background: var(--button-color);

  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;

  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.add-all-btn:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}


/* ====== GRID PRODUK WISHLIST ====== */

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 55px 22px;
}


/* ====== CARD PRODUK ====== */

.wishlist-card {
  overflow: hidden;

  min-width: 0;
  padding: 14px 14px 24px;

  border-radius: 24px;

  background: #ffffff;
}


/* ====== FOTO PRODUK ====== */

.product-image-box {
  position: relative;
  overflow: hidden;

  width: 100%;
  aspect-ratio: 1 / 1;

  border-radius: 22px;

  background: #d9dcdf;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ====== STATUS STOK ====== */

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;

  padding: 6px 8px;

  border-radius: 100px;

  color: #ffffff;

  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.ready-stock {
  background: #27c763;
}

.preorder-stock {
  background: #ffc400;
}

.soldout-stock {
  background: #ff0000;
}


/* ====== ICON LOVE WISHLIST ====== */

.wishlist-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.wishlist-heart img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.wishlist-heart:hover {
  transform: scale(1.1);
}

.wishlist-heart.remove-effect {
  transform: scale(0.7);
  opacity: 0;
}


/* ====== INFORMASI PRODUK ====== */

.product-info {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-height: 155px;

  padding-top: 10px;

  text-align: center;
}

.product-name {
  color: var(--brand-color);

  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.product-price {
  margin-top: 4px;

  color: var(--brand-color);

  font-size: 16px;
  font-weight: 400;
}


/* ====== TOMBOL PRODUK ====== */

.product-action {
  min-width: 175px;
  margin-top: auto;
  padding: 7px 16px;

  border-radius: 8px;

  color: #ffffff;

  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;

  transition:
    transform 0.2s ease,
    background 0.3s ease;
}

.product-action:not(:disabled):hover {
  transform: translateY(-2px);
}

.add-cart-btn {
  background: var(--brand-color);
}

.add-cart-btn:hover {
  background: #3f1e0b;
}

.preorder-btn {
  background: var(--button-color);
}

.preorder-btn:hover {
  background: var(--button-hover);
}

.out-stock-btn {
  color: #ffffff;
  background: #b7b7ba;
  cursor: not-allowed;
}

/* ====== RESPONSIVE LAPTOP / TABLET ====== */

@media (max-width: 1350px) {
  .site-header .container.header-inner {
    position: relative;
    height: 95px;
    padding: 0 48px;
  }

  .brand-logo img {
    width: 90px;
  }

  /* Menu utama disembunyikan */
  .site-nav {
    display: none;
  }

  /* Menu tampil saat hamburger diklik */
  .site-nav.is-open {
    position: absolute;
    top: 95px;
    right: 48px;
    left: auto;
    z-index: 999;

    display: flex;
    width: auto;

    padding: 18px 26px;

    border-radius: 16px;
    background: #ffffff;

    box-shadow: 0 12px 30px rgba(81, 40, 16, 0.18);
  }

  .site-nav.is-open .nav-list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  /* Reset posisi navigasi desktop */
  .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;
    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;
  }

  .menu-toggle {
    display: flex;
  }

  .header-icons {
    gap: 18px;
  }

  .header-icons img,
  .search-btn img {
    width: 28px;
    height: 28px;
  }

  .page-main {
    min-height: calc(100vh - 95px);
  }
}


/* ====== RESPONSIVE TABLET DAN HP ====== */

@media (max-width: 900px) {
  .site-header .container.header-inner {
    height: 92px;
    padding: 0 24px;
  }

  .brand-logo img {
    width: 78px;
  }

  .site-nav.is-open {
    top: 92px;
    right: 24px;
  }

  .header-icons {
    gap: 12px;
  }

  .header-icons img,
  .search-btn img {
    width: 24px;
    height: 24px;
  }

  .page-main {
    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;
    right: 15px;
    padding: 15px 20px;
  }

  .site-nav.is-open .nav-list {
    gap: 12px;
  }

  .site-nav.is-open .nav-list a {
    font-size: 12px;
  }

  .site-nav.is-open .nav-list li:nth-child(3) a {
    width: 190px;
  }

  .header-icons {
    gap: 10px;
  }

  .header-icons img,
  .search-btn img {
    width: 22px;
    height: 22px;
  }

  .menu-toggle {
    width: 27px;
    height: 20px;
  }

  .search-box {
    top: 92px;
    left: 15px;
    right: 15px;
    width: auto;
  }

  .page-main {
    min-height: calc(100vh - 82px);
  }
}

/* ====== RESPONSIVE WISHLIST LAPTOP / TABLET ====== */

@media (max-width: 1100px) {
  .wishlist-container {
    padding: 0 40px;
  }

  .wishlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .add-all-btn {
    font-size: 19px;
  }
}


/* ====== RESPONSIVE WISHLIST TABLET ====== */

@media (max-width: 800px) {
  .wishlist-section {
    padding-top: 30px;
  }

  .wishlist-container {
    padding: 0 25px;
  }

  .wishlist-top {
    flex-direction: column;
    gap: 22px;

    margin-bottom: 40px;
  }

  .add-all-btn {
    position: static;

    font-size: 17px;
  }

  .wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 18px;
  }
}


/* ====== RESPONSIVE WISHLIST MOBILE ====== */

@media (max-width: 520px) {
  .wishlist-container {
    padding: 0 18px;
  }

  .wishlist-title {
    font-size: 27px;
  }

  .wishlist-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wishlist-card {
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
  }

  .product-name {
    font-size: 15px;
  }

  .product-price {
    font-size: 15px;
  }

  .product-action {
    font-size: 16px;
  }
}

/* ====== WISHLIST KOSONG ====== */

.wishlist-empty {
  grid-column: 1 / -1;

  padding: 80px 20px;

  text-align: center;
}

.wishlist-empty h2 {
  margin-bottom: 10px;

  font-size: 28px;
}

.wishlist-empty p {
  margin-bottom: 25px;

  font-size: 16px;
}

.wishlist-empty a {
  display: inline-block;

  padding: 10px 24px;

  border-radius: 8px;

  color: #ffffff;
  background: var(--brand-color);

  font-weight: 700;
}

/* ====== TOMBOL AKUN WISHLIST ====== */

.home-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: none;
  background: transparent;

  cursor: pointer;

  transition: transform 0.2s ease;
}

.home-account-btn:hover {
  transform: translateY(-2px);
}

.home-account-btn img {
  width: 38px;
  height: 38px;

  object-fit: contain;
}

/* ====== DROPDOWN AKUN WISHLIST ====== */

.home-account-dropdown {
  position: fixed;
  top: 145px;
  right: 48px;
  z-index: 1100;

  display: none;

  width: 375px;
  padding: 34px 25px 32px;

  border-radius: 24px;

  background: #ffffff;

  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;
}


/* ====== LOGIN ATAU 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 strong {
  color: var(--brand-color);

  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.home-account-user-data {
  min-width: 0;
}

.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 AKUN WISHLIST ====== */

.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;
}


/* ====== STATUS MENU AKUN ====== */

.is-hidden {
  display: none !important;
}

button.home-account-menu {
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

/* ====== RESPONSIVE AKUN WISHLIST ====== */

@media (max-width: 1350px) {
  .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;
  }

  .home-account-menu img {
    width: 31px;
    height: 31px;
  }
}

@media (max-width: 900px) {
  .home-account-btn img {
    width: 24px;
    height: 24px;
  }

  .home-account-dropdown {
    top: 108px;
    right: 24px;

    width: min(390px, calc(100% - 48px));
  }
}

@media (max-width: 520px) {
  .home-account-btn img {
    width: 22px;
    height: 22px;
  }

  .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;
  }
}