* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lora:wght@400;700&display=swap");

html {
  scroll-behavior: smooth;
}
body {
  font-family: "poppins", sans-serif;
  background-color: #ffffff;
  color: #fff;
}
/* NAVBAR  */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid #94937b;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

button:active {
  transform: scale(0.98);
}

.product-icons a {
  transition: all 0.3s ease;
}

.product-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(98, 0, 100, 0.2);
}

/* Loading indicator */
.checkout-button.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-left: 8px;
  vertical-align: middle;
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #620064;
  font-family: "Merriweather", serif;
  /* font-style: lora; */
}
.navbar .navbar-logo span {
  color: #000000;
}
.navbar .navbar-nav a {
  color: #620064;
  display: inline-block;
  font-size: 1.3rem;
  margin: 0 1rem;
}
.navbar .navbar-nav a:hover {
  color: #62006467;
}
.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid #94937b;
  transform: scaleX(0);
  transition: 0.2s linear;
}
.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}
.navbar .navbar-extra a {
  color: #620064;
  margin: 0 0.5rem;
}
.navbar .navbar-extra a:hover {
  color: #620064;
}
#hamburger-menu {
  display: none;
}
/* navbar search form */
.navbar .search-form {
  position: absolute;
  top: 100%;
  right: 7%;
  background-color: #fbfbfb;
  width: 50rem;
  height: 3rem;
  display: flex;
  align-items: center;
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.3s;
}

.navbar .search-form.active {
  transform: scaleY(1);
}

.navbar .search-form input {
  height: 100%;
  width: 100%;
  font-size: 1rem;
  color: #620064;
  padding: 1rem;
}

.navbar .search-form label {
  cursor: pointer;
  font-size: 0.5rem;
  margin-right: 1.5rem;
  color: #620064;
}

/* shopping-cart */
#shopping-cart-button {
  position: relative;
}
#shopping-cart-button .quantity-badge {
  display: inline-block;
  padding: 1px 5px;
  background-color: red;
  border-radius: 6px;
  font-size: 0.8rem;
  position: absolute;
  top: 0;
  right: -10px;
}
.shopping-cart {
  position: absolute;
  top: 100%;
  right: -100%;
  height: 100vh;
  width: 35rem;
  padding: 0 1.5rem;
  color: #94937b;
  background-color: white;
  transition: 0.3s;
}
.shopping-cart.active {
  right: 0;
}

.shopping-cart .cart-item {
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: dashed #94937b;
  position: relative;
}

.shopping-cart img {
  height: 4rem;
  border-radius: 50%;
}

.shopping-cart h3 {
  font-size: 1.4rem;
}

.shopping-cart .item-price {
  font-size: 1.2rem;
}

.shopping-cart .cart-item #add,
.shopping-cart .cart-item #remove {
  display: inline-block;
  padding: 2px 5px;
  cursor: pointer;
  margin: 0 8px;
  background-color: #620064;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
}

/* checkot form */
.form-container {
  width: 100%;
  display: flex;
  justify-content: center;
  border-top: 1px dashed black;
  margin-top: 1rem;
  padding: 1rem;
}

.form-container h5 {
  text-align: center;
  font-size: 1rem;
}

.form-container form {
  width: 100%;
  text-align: center;
}
.form-container label {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 1rem 0;
}

.form-container span {
  text-align: right;
}

.form-container input {
  background-color: rgb(230, 228, 228);
  padding: 5px;
  font-size: 1rem;
  width: 70%;
}

.form-container .checkout-button {
  padding: 6px 14px;
  background-color: royalblue;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 20px;
  margin: 1rem auto;
  cursor: pointer;
}

.form-container .checkout-button.disabled {
  background-color: #999;
  cursor: not-allowed;
}

.shopping-cart h4 {
  font-size: 1.6rem;
  margin-top: -1rem;
  text-align: center;
  color: #999;
}
/* hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../img/header-bg.jpeg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0));
}
/* .hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: linear-gradient(0deg, #fffdd0 2%, rgba(255, 255, 255, 0) 50%);
} */

.hero .content {
  padding: 1.4rem 5%;
  /* max-width: 100rem; */
  width: 100%;
  text-align: center;
  position: fixed;
  top: 150px;
}
.hero .content h1 {
  font-size: 3em;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}
.hero .content h1 span {
  color: #ffffff;
}

.hero .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #ffffff;
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}
/* footer */
footer {
  background-color: #620064;
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
}
footer .sosial {
  padding: 1rem 0;
}
footer .sosial a {
  color: #ffffff;
  margin: 1rem;
}
footer .sosial a:hover,
footer .link a:hover {
  color: #62006467;
}
footer .link a {
  color: #ffffff;
  padding: 0.7rem 1rem;
}

/* menu section */

.about,
.menu {
  padding: 10rem 10% 1.4rem;
  color: #620064;
}
.products {
  color: #620064;
  padding: 2rem;
}
.kontak {
  padding: 8rem 7% 1.4rem;
  color: #620064;
}

.about h2,
.menu h2,
.products h2,
.kontak h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
}

.menu h2,
.kontak h2,
.products h2 {
  margin-bottom: 1rem;
}
.menu p,
.kontak p,
.products p {
  text-align: center;
  max-width: 30rem;
  margin: auto;
  font-size: 1.2rem;
}

.menu .row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5rem;
  justify-content: center;
  size: rem;
}

.menu .row .menu-card {
  text-align: center;
  padding-bottom: 4rem;
}

.menu .row .menu-card img {
  border-radius: 50%;
  width: 40%;
}
.menu .row .menu-card .menu-card-title {
  margin-top: 1.5rem;
}

.menu .row .menu .menu-card-price {
  margin: 1.5rem auto 0.5rem;
}

.about .row {
  display: flex;
}

.about .row .about-img {
  flex: 1 1 45rem;
}

.about .row .about-img img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.about .row .content {
  flex: 1 1 35rem;
  padding: 0 1rem;
}

.about .row .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about .row .content p {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.6;
}

/* service section */
.products .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.products .product-card {
  text-align: center;
  border: 1px solid #620064;
  padding: 1rem;
}

.products .product-icons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.products .product-icons a {
  width: 4rem;
  height: 4rem;
  color: #620064;
  margin: 0.3rem;
  border: 1px solid #620064;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.products .product-icons a:hover {
  background-color: #62006467;
  border: 1px solid #62006467;
}

.products .product-image {
  padding: 1rem 0;
}
.products .product-image img {
  height: 18rem;
}
.products .product-content h3 {
  font-size: 1.4rem;
}
.products .product-stars {
  font-size: 1.7rem;
  padding: 0.8rem;
  color: #620064;
  fill: #620064;
}
.products .product-stars .star-full {
  fill: #620064;
}

.products .product-price {
  font-size: 1rem;
  font-weight: bold;
}

.vanilla-description-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
  /* Anda bisa tambahkan padding atau margin awal jika perlu di sini */
}

.vanilla-description-content.visible {
  max-height: 500px; /* Sesuaikan dengan tinggi maksimal konten deskripsi Anda */
  opacity: 1;
  /* Tambahkan padding atau margin yang diinginkan saat terlihat */
  margin-top: 1rem; /* Contoh */
  padding: 1rem; /* Contoh */
}

/* contact section */
.kontak .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.kontak .row .map {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.kontak .row form {
  flex: 1 1 45rem;
  padding-top: 0px;
  width: 80%;
  max-width: 400px;
}
.kontak .row form .input-group {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  background-color: #fbfbfb;
  border: 1px solid #fbfbfb;
  padding-left: 2rem;
}

.kontak .row form .input-group input {
  width: 100%;
  padding: 2rem;
  font-size: 1.7rem;
  background: none;
  color: #000000;
}

.kontak .row form .btn {
  margin-top: 3rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.7rem;
  color: #fbfbfb;
  background-color: #620064;
  cursor: pointer;
}

/* modal box */
/* item detail */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-container {
  position: relative;
  background-color: white;
  color: #620064;
  margin: 15% auto;
  padding: 1.6rem;
  border: 1px solid #94937b;
  width: 80%;
  animation: animateModal 0.5s;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid #620064;
  outline-offset: 2px;
}

[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Pastikan modal visible */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  /* ... existing styles ... */
}

.modal.active {
  display: flex;
}

/* Animasi lebih smooth */
.modal-container {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* modal animation */
@keyframes animateModal {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-container .close-icon {
  position: absolute;
  right: 1rem;
  color: #006400;
}

.modal-content {
  display: flex;
  flex-wrap: nowrap;
}

.modal-content img {
  height: 10rem;
  margin-right: 2rem;
  margin-bottom: 2rem;
}

.modal-content p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  margin-top: 1.2rem;
}

.modal-content a {
  display: flex;
  gap: 1rem;
  width: 12rem;
  background-color: var(--primary);
  color: #fbfbfb;
  margin-top: 1rem;
  padding: 1rem 1.6rem;
}

.product-description {
  overflow: hidden;
  will-change: max-height;
  transition: max-height 0.3s ease-in-out;
  max-height: 0; /* Awalnya tersembunyi */
  padding: 0 1rem;
  margin-top: 1rem;
  font-size: 1.2rem;
  line-height: 1.8rem;
}
[x-cloak] {
  display: none !important;
}

.product-description {
  overflow: hidden;
  transition: all 0.3s ease-out;
  will-change: max-height;
}
.transition {
  animation-fill-mode: both;
}

/* mediaqueries */

/* laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/* mobile */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}

/* tablet */
@media (max-width: 758px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
  }
  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: whitesmoke;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }
  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: #620064;
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
  }
  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }
  .navbar .search-form {
    width: 90%;
    right: 2rem;
  }
  .about .row {
    flex-wrap: wrap;
  }

  .about .row .about-img img {
    height: 24rem;
    object-fit: cover;
    object-position: center;
    width: 100%;
    max-width: 400px;
  }
  .about.row .content {
    padding: 0;
  }
  .about .row .content h3 {
    margin-top: 1.6rem;
    font-size: 2rem;
  }
  .kontak .row {
    flex-wrap: wrap;
  }
  .kontak .row .map {
    height: 30rem;
  }
  .kontak .row form {
    padding-top: 0;
  }

  .modal-content {
    flex-wrap: wrap;
  }
}
