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

 /* ====== PERSONAL COLOUR & MAKEUP CONSULTANT ====== */
.consultant-section {
  width: 100%;
  padding: 20px 40px 80px;
  text-align: center;
}

/* ====== JUDUL HALAMAN ====== */
.consultant-title {
  margin-bottom: 26px;
  color: var(--brand-color);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

/* ====== KUMPULAN PAKET ====== */
.consultant-packages {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 70px;
}

/* ====== SATU BARIS PAKET ====== */
.package-row {
  width: 100%;

  display: grid;
  grid-template-columns: 245px 410px 245px;
  align-items: center;
  justify-content: center;
  column-gap: 80px;
}

/* ====== FOTO KIRI DAN KANAN ====== */
.package-photo {
  width: 245px;
  height: 275px;
  overflow: hidden;
  border-radius: 24px;
}

.package-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== BAGIAN TENGAH ====== */
.package-middle {
  width: 410px;

  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ====== CARD PAKET ====== */
.package-card {
  position: relative;
  width: 410px;
  min-height: 215px;
  padding: 70px 30px 28px;

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

  background: #ffffff;
  border-radius: 25px;
  box-shadow: 0 15px 25px rgba(81, 40, 16, 0.12);
}

/* ====== NAMA PAKET ====== */
.package-name {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);

  width: 300px;
  min-height: 48px;

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

  background: #8b4718;
  border-radius: 100px;

  color: #ffffff;
  font-family: "Ibarra Real Nova", serif;
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
}

/* ====== HARGA PAKET ====== */
.package-price {
  margin: 0 0 5px;

  color: var(--brand-color);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
}

/* ====== DESKRIPSI PAKET ====== */
.package-description {
  color: var(--brand-color);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

/* ====== TOMBOL ADD TO CART ====== */
.add-cart-btn {
  margin-top: 18px;
  padding: 8px 14px;

  background: var(--button-color);
  border-radius: 8px;

  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;

  transition:
    background 0.3s ease,
    transform 0.2s ease;
}
/* ====== BADGE MERAH PAKET ====== */
.package-badge {
  position: absolute;
  top: -30px;
  right: -65px;

  width: 105px;
  height: 105px;

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

  background: #d90000;
  color: #ffffff;

  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  text-align: center;

  clip-path: polygon(
    50% 0%,
    58% 8%,
    68% 3%,
    73% 14%,
    85% 11%,
    87% 23%,
    100% 25%,
    94% 37%,
    100% 46%,
    90% 54%,
    97% 65%,
    84% 69%,
    85% 82%,
    72% 81%,
    66% 94%,
    56% 87%,
    48% 100%,
    39% 89%,
    28% 96%,
    23% 83%,
    10% 85%,
    12% 72%,
    0% 66%,
    8% 56%,
    0% 47%,
    10% 39%,
    4% 27%,
    17% 24%,
    17% 11%,
    30% 15%,
    36% 3%,
    45% 9%
  );
}

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

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

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

  .site-nav {
    display: none;
  }

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

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

/* ====== BADGE WISHLIST DAN CART PERSONAL ====== */

.wishlist-link,
.cart-link {
  position: relative;
}

.wishlist-count-badge,
.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;
}

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

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

  70% {
    transform: scale(1.2);
  }

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

/* ==================================================
   COLOUR CONSULTATION JOURNEY
================================================== */

/* ====== BACKGROUND DEKORASI HALUS ====== */

.consultant-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.consultant-section::before,
.consultant-section::after {
  content: "";
  position: absolute;
  z-index: -1;

  width: 430px;
  height: 430px;

  border-radius: 50%;
  pointer-events: none;
  filter: blur(22px);
}

.consultant-section::before {
  top: -210px;
  left: -180px;

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0)
  );

  animation: consultantGlowLeft 9s
    ease-in-out infinite alternate;
}

.consultant-section::after {
  right: -200px;
  bottom: -230px;

  background: radial-gradient(
    circle,
    rgba(168, 106, 45, 0.2),
    rgba(168, 106, 45, 0)
  );

  animation: consultantGlowRight 10s
    ease-in-out infinite alternate;
}


/* ====== JUDUL HALAMAN ====== */

.consultant-title {
  position: relative;
  opacity: 0;

  animation: consultantTitleEnter 0.8s ease
    forwards;
}

.consultant-title::after {
  content: "";
  display: block;

  width: 0;
  height: 3px;
  margin: 12px auto 0;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent,
    #a86a2d,
    transparent
  );

  animation: consultantTitleLine 0.8s ease
    0.45s forwards;
}


/* ====== BARIS PAKET ====== */

.package-row {
  position: relative;
}

.package-row::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -35px;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(81, 40, 16, 0.18),
    transparent
  );
}

.package-row:last-child::after {
  display: none;
}


/* ====== FOTO KIRI DAN KANAN ====== */

.package-photo {
  position: relative;
  isolation: isolate;

  opacity: 0;

  border: 1px solid rgba(81, 40, 16, 0.07);

  box-shadow:
    0 17px 38px rgba(81, 40, 16, 0.12);

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.package-photo-left {
  animation: consultantPhotoLeftEnter 0.85s
    cubic-bezier(0.22, 1, 0.36, 1)
    forwards;
}

.package-photo-right {
  animation: consultantPhotoRightEnter 0.85s
    cubic-bezier(0.22, 1, 0.36, 1)
    forwards;
}


/* Delay setiap paket */

.package-row:nth-child(1) .package-photo {
  animation-delay: 0.25s;
}

.package-row:nth-child(2) .package-photo {
  animation-delay: 0.42s;
}

.package-row:nth-child(3) .package-photo {
  animation-delay: 0.59s;
}

.package-row:nth-child(4) .package-photo {
  animation-delay: 0.76s;
}


/* Kilau foto */

.package-photo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  z-index: 2;

  width: 65%;
  height: 100%;

  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.36),
    transparent
  );

  transform: skewX(-18deg);
  pointer-events: none;

  transition: left 0.8s ease;
}

.package-photo:hover {
  transform: translateY(-8px);

  border-color: rgba(168, 106, 45, 0.24);

  box-shadow:
    0 27px 54px rgba(81, 40, 16, 0.19);
}

.package-photo:hover::after {
  left: 145%;
}

.package-photo img {
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s ease;
}

.package-photo:hover img {
  transform: scale(1.06);

  filter:
    contrast(1.02)
    saturate(1.04);
}


/* ====== BAGIAN TENGAH ====== */

.package-middle {
  opacity: 0;
  transform: translateY(30px) scale(0.98);

  animation: consultantMiddleEnter 0.75s
    cubic-bezier(0.22, 1, 0.36, 1)
    forwards;
}

.package-row:nth-child(1) .package-middle {
  animation-delay: 0.32s;
}

.package-row:nth-child(2) .package-middle {
  animation-delay: 0.49s;
}

.package-row:nth-child(3) .package-middle {
  animation-delay: 0.66s;
}

.package-row:nth-child(4) .package-middle {
  animation-delay: 0.83s;
}


/* ====== CARD PAKET ====== */

.package-card {
  overflow: visible;

  border: 1px solid rgba(81, 40, 16, 0.06);

  box-shadow:
    0 18px 42px rgba(81, 40, 16, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.package-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;

  width: 72%;
  height: 4px;

  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 106, 45, 0.85),
    transparent
  );
}

.package-middle:hover .package-card {
  transform: translateY(-7px);

  border-color: rgba(168, 106, 45, 0.22);

  box-shadow:
    0 27px 56px rgba(81, 40, 16, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


/* ====== NAMA PAKET ====== */

.package-name {
  overflow: hidden;

  box-shadow:
    0 8px 18px rgba(81, 40, 16, 0.2);
}

.package-name::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;

  width: 65%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );

  transform: skewX(-20deg);

  transition: left 0.65s ease;
}

.package-middle:hover .package-name::after {
  left: 145%;
}


/* ====== HARGA DAN DESKRIPSI ====== */

.package-price,
.package-description {
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.package-middle:hover .package-price {
  color: var(--button-hover);
  transform: translateY(-2px) scale(1.015);
}

.package-middle:hover .package-description {
  transform: translateY(-2px);
}


/* ====== BADGE MERAH ====== */

.package-badge {
  filter: drop-shadow(
    0 8px 11px rgba(120, 0, 0, 0.22)
  );

  animation: consultantBadgeFloat 3s
    ease-in-out infinite;

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.package-middle:hover .package-badge {
  transform: rotate(5deg) scale(1.06);

  filter: drop-shadow(
    0 11px 16px rgba(120, 0, 0, 0.3)
  );
}


/* ====== TOMBOL BOOKING PREMIUM ====== */

.add-cart-btn {
  position: relative;
  overflow: hidden;

  min-width: 165px;

  box-shadow:
    0 10px 22px rgba(139, 85, 34, 0.27);

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.add-cart-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;

  width: 65%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.48),
    transparent
  );

  transform: skewX(-20deg);

  transition: left 0.65s ease;
}

.add-cart-btn:hover {
  transform: translateY(-4px) scale(1.02);

  box-shadow:
    0 16px 30px rgba(139, 85, 34, 0.35);
}

.add-cart-btn:hover::before {
  left: 145%;
}

.add-cart-btn:active {
  transform: translateY(-1px) scale(0.97);
}


/* ====== DROPDOWN DAN SEARCH ====== */

.home-account-dropdown.active {
  transform-origin: top right;

  animation: consultantDropdownEnter 0.35s
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

.search-box.active {
  animation: consultantSearchEnter 0.3s
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}


/* ====== KEYFRAMES ====== */

@keyframes consultantTitleEnter {
  from {
    opacity: 0;
    transform: translateY(-18px);
    letter-spacing: 6px;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: normal;
  }
}

@keyframes consultantTitleLine {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 165px;
    opacity: 1;
  }
}

@keyframes consultantPhotoLeftEnter {
  from {
    opacity: 0;
    transform: translateX(-40px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes consultantPhotoRightEnter {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes consultantMiddleEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }

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

@keyframes consultantBadgeFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

@keyframes consultantDropdownEnter {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }

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

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

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

@keyframes consultantGlowLeft {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(55px, 42px);
  }
}

@keyframes consultantGlowRight {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(-52px, -42px);
  }
}


/* ====== RESPONSIVE ====== */

@media (max-width: 900px) {
  .package-photo:hover,
  .package-middle:hover .package-card {
    transform: translateY(-4px);
  }
}

@media (max-width: 520px) {
  .package-photo:hover,
  .package-middle:hover .package-card {
    transform: none;
  }

  .package-photo:hover img {
    transform: scale(1.025);
  }

  .add-cart-btn {
    width: 100%;
  }

  .package-badge {
    animation-duration: 4s;
  }
}


/* ====== AKSESIBILITAS ANIMASI ====== */

@media (prefers-reduced-motion: reduce) {
  .consultant-section::before,
  .consultant-section::after,
  .consultant-title,
  .consultant-title::after,
  .package-photo,
  .package-middle,
  .package-badge,
  .home-account-dropdown.active,
  .search-box.active {
    animation: none;
    opacity: 1;
    transform: none;
    translate: none;
  }

  .package-photo::after,
  .package-name::after,
  .add-cart-btn::before {
    display: none;
  }
}

/* ==================================================
   RESPONSIVE PERSONAL COLOUR & MAKEUP CONSULTANT
================================================== */

/* ====== TABLET ====== */
@media (max-width: 900px) {
  .consultant-section {
    padding: 30px 24px 70px;
  }

  .consultant-title {
    margin-bottom: 38px;
    font-size: 24px;
  }

  .consultant-packages {
    max-width: 760px;
    gap: 60px;
  }

  .package-row {
    width: 100%;

    grid-template-columns:
      minmax(0, 1fr)
      minmax(280px, 1.4fr)
      minmax(0, 1fr);

    column-gap: 22px;
  }

  .package-photo {
    width: 100%;
    height: 220px;
    border-radius: 20px;
  }

  .package-middle {
    width: 100%;
    min-width: 0;
  }

  .package-card {
    width: 100%;
    min-height: 205px;
    padding: 66px 20px 25px;
  }

  .package-name {
    width: calc(100% - 40px);
    max-width: 280px;
    font-size: 26px;
  }

  .package-price {
    font-size: 31px;
  }

  .package-description {
    font-size: 18px;
  }

  .package-badge {
    top: -25px;
    right: -18px;

    width: 88px;
    height: 88px;

    font-size: 14px;
  }

  .add-cart-btn {
    min-width: 150px;
    font-size: 19px;
  }
}


/* ====== HANDPHONE UMUM ====== */
@media (max-width: 520px) {
  .consultant-section {
    width: 100%;
    padding: 30px 14px 65px;
  }

  .consultant-title {
    margin-bottom: 34px;

    font-size: 22px;
    line-height: 1.35;
  }

  .consultant-packages {
    width: 100%;
    gap: 58px;
  }

  /*
    Setiap paket:
    foto kiri + foto kanan
    lalu card paket di bawahnya
  */
  .package-row {
    width: 100%;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    grid-template-rows: auto auto;
    align-items: start;

    column-gap: 12px;
    row-gap: 20px;
  }

  .package-photo-left {
    grid-column: 1;
    grid-row: 1;
  }

  .package-photo-right {
    grid-column: 2;
    grid-row: 1;
  }

  .package-photo {
    width: 100%;
    height: 190px;

    border-radius: 18px;
  }

  .package-middle {
    grid-column: 1 / -1;
    grid-row: 2;

    width: 100%;
    min-width: 0;
  }

  .package-card {
    width: 100%;
    min-height: 210px;
    padding: 65px 18px 26px;

    border-radius: 22px;
  }

  .package-name {
    top: 8px;

    width: calc(100% - 44px);
    min-height: 44px;

    padding: 6px 12px;

    font-size: 25px;
  }

  .package-price {
    margin-bottom: 7px;

    font-size: 30px;
    line-height: 1.15;
  }

  .package-description {
    font-size: 18px;
    line-height: 1.3;
  }

  /* Badge masuk ke dalam layar */
  .package-badge {
    top: -22px;
    right: 5px;

    width: 82px;
    height: 82px;

    font-size: 12px;
    line-height: 1.15;
  }

  /* Tombol tidak memenuhi seluruh layar */
  .add-cart-btn {
    width: min(100%, 190px);
    min-width: 0;
    margin-top: 17px;
    padding: 9px 16px;

    font-size: 18px;
  }

  .package-row::after {
    left: 5%;
    right: 5%;
    bottom: -30px;
  }
}


/* ====== HANDPHONE KECIL ====== */
@media (max-width: 390px) {
  .consultant-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .package-row {
    column-gap: 10px;
  }

  .package-photo {
    height: 175px;
  }

  .package-card {
    padding-right: 15px;
    padding-left: 15px;
  }

  .package-name {
    font-size: 23px;
  }

  .package-price {
    font-size: 28px;
  }

  .package-description {
    font-size: 17px;
  }

  .package-badge {
    right: 3px;
    width: 76px;
    height: 76px;
    font-size: 11px;
  }
}
/* ============================================================
   REVISI NOMOR 7 - HARGA, PROMO, DAN FOTO PERSONAL DINAMIS
   ============================================================ */

.package-pricing {
  width: 100%;

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

  margin: 0 0 5px;
}

.package-pricing .package-price {
  margin-bottom: 0;
}

.package-regular-price {
  margin-bottom: 2px;

  color: #8b7467;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration-line: line-through;
  text-decoration-color: #d90000;
  text-decoration-thickness: 2px;
}

/*
 * Saat promo aktif, JavaScript hanya menyembunyikan teks asli
 * dan menampilkan teks Promo pada badge merah yang sama.
 * Tidak ada perubahan warna, bentuk, ukuran, atau posisi.
 */

/* Teks badge asli dan Promo dipisah, tetapi tetap memakai badge merah yang sama. */
.package-badge-default {
  display: block;
  font-size: 16px;
}

.package-badge-promo {
  display: block;
  font-size: 17px;
}


@media (max-width: 900px) {
  .package-regular-price {
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .package-regular-price {
    font-size: 17px;
  }
}
