:root {
  --primary: #B22222;
  --bg: #010101;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(1, 25, 35, 0.8);
  border-bottom: 1px solid #513c28;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}

.navbar .navbar-logo span {
  color: var(--primary);
}

.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1.3rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: var(--primary);
}

.navbar .navbar-nav a::after {
  content: '';
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra {
  display: flex;
  align-items: center;
  gap: 1rem; /* memberi jarak antar icon */
}

.navbar .navbar-extra a {
  color: #fff;
  margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
  color: var(--primary);
}

#hamburger-menu {
  display: none;
}

/* Navbar search form */
.navbar .search-form {
  position: absolute;
  top: 100%;
  right: 7%;
  background-color: #fff;
  width: 50rem;
  height: 5rem;
  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: 1.6rem;
  color: var(--bg);
  padding: 1rem;
}

.navbar .search-form label {
  cursor: pointer;
  font-size: 2rem;
  margin-right: 1.5rem;
  color: var(--bg);
}

/* ----------------------------- SEARCH ------------------------------------------------------------------*/
.search-suggestion{
  position:absolute;
  top:100%;
  left:0;
  width:100%;
  background:white;
  border-radius:8px;
  margin-top:6px;
  box-shadow:0 8px 25px rgba(0,0,0,0.15);
  color: black;
  max-height:110px;
  overflow-y:auto;
}

.suggestion-item{
  padding:10px;
  cursor:pointer;
}

.suggestion-item:hover{
  background:#f2f2f2;
}

.not-found{
  text-align:center;
  margin-top:2rem;
  font-size:1.3rem;
  color:#777;
}

.active-suggestion{
  background:#f1f1f1;
  }

[x-cloak]{
  display:none !important;
  }

/* ----------------------------------------------- SEARCH END ---------------------------------------------------------- */

/* 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: fixed;
  top: 6rem;
  right: -100%;
  height: calc(100vh - 6rem);
  width: 35rem;
  padding: 0 1.5rem;
  background-color: #fff;
  color: var(--bg);
  transition: 0.3s;
  overflow-y: auto;
  scrollbar-width: thin;
}
 
.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: 1px dashed #666;
  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: brown;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;

}

.shopping-cart h4 {
  font-size: 1.6rem;
  margin-top: -1rem;
  text-align: center;
}

/* Checkout Form */
.form-container {
  width: 100%;
  display: flex;
  justify-content: center;
  border-top: 1px dashed black;
  margin-top: 1rem;
  padding: 1rem;
}

.form-container form {
  width: 100%;
  max-width: 400px;
}

.form-container h5 {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.form-container label {
  display: flex;
  align-items: center;
  margin: 0.8rem 0;
  gap: 1rem;
}

.form-container span {
  width: 90px;
  text-align: left;
}

.form-container input {
  flex: 1;
  background-color: #ddd;
  padding: 6px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
}

.form-container .checkout-button {
  display: block;
  padding: 6px 14px;
  background-color: greenyellow;
  color: white;
  font-weight: bold;
  font-size: 1.4rem;
  border-radius: 20px;
  margin: 1rem auto;
  cursor: pointer;
}

.form-container .checkout-button.disabled {
  background-color: #999;
  cursor: not-allowed;
}

/* ----------------------------- Checkout Button ------------------------------------------------------------- */

.checkout-success h3 {
  color: #2e7d32;
}

.checkout-success {
  animation: fadeIn .4s ease;
}

@keyframes fadeIn {
  from {opacity:0; transform: translateY(10px);}
  to {opacity:1; transform: translateY(0);}
}

/* ------------------------------------------- Checkout Button End ------------------------------------------------- */

/* ----------------------------- Animasi Checkout Setelah Berhasil------------------------------------------------------- */

.success-title{
  font-size:22px;
  margin-bottom:10px;
  animation: slideFade 5s ease forwards;
}

.success-text{
  color:#666;
  animation: slideFade 5s ease forwards;
}

@keyframes slideFade{
  0%{
    opacity:0;
    transform: translateY(30px);
  }
  100%{
    opacity:1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------ Animasi Checkout END ------------------------------------------ */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../img/header-bg.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
}


.hero::after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 10%;
  bottom: 0;
  background: linear-gradient(0deg, rgba(1, 1, 3, 1) 8%, rgba(255, 255, 255, 0) 50%);
}

.hero .content {
  padding: 1.4rem 7%;
  /* max-width: 60rem; */
  width: 100%;
  text-align: center;
  position: fixed;
  top: 130px;
}

.hero .content h1 {
  font-size: 5em;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  line-height: 1.2;
}

.hero .content h1 span {
  color: var(--primary);
}

.hero .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.4;
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  mix-blend-mode: difference;
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #fff;
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

/* About Section */
.about,
.menu,
.products,
.contact {
  padding: 8rem 7% 1.4rem;
}

.about h2,
.menu h2,
.products h2,
.contact h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
}

.about h2 span,
.menu h2 span,
.products h2 span,
.contact h2 span {
  color: var(--primary);
}

.about .row {
  display: flex;
}

.about .row .about-img {
  flex: 1 1 45rem;
}

.about .row .about-img img {
  width: 100%;
}

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

/* Menu Section */
.menu h2,
.products h2,
.contact h2 {
  margin-bottom: 1rem;
}
.menu p,
.products p,
.contact p {
  text-align: center;
  max-width: 30rem;
  margin: auto;
  font-weight: 300;
  line-height: 1.6;
}

.menu .row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5rem;
  justify-content: center;
}

.menu .row .menu-card {
  text-align: center;
  padding-bottom: 4rem;
}

.menu .row .menu-card img {
  border-radius: 50%;
  width: 80%;
}

.menu .row .menu-card .menu-card-title {
  margin: 1rem auto 0.5rem;
}

/* Products Section */
.products .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.products .product-card {
  text-align: center;
  border: 1px solid #666;
  padding: 2rem;
}

.products .product-icons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.products .product-icons a {
  width: 4rem;
  height: 4rem;
  color: #fff;
  margin: 0.3rem;
  border: 1px solid #666;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.products .product-icons a:hover {
  background-color: var(--primary);
  border: 1px solid var(--primary);
}

.products .product-image {
  padding: 1rem 0;
}

.products .product-image img {
  height: 25rem;
}

.products .product-content h3 {
  font-size: 2rem;
}

.products .product-stars {
  font-size: 1.7rem;
  padding: 0.8rem;
  color: var(--primary);
}

.products .product-stars .star-full {
  fill: var(--primary);
}

.products .product-price {
  font-size: 1.3rem;
  font-weight: bold;
}

.product-stars{
  font-size: 1.2rem;
  color: gold;
  letter-spacing: 2px;
}

/* .products .product-price span {
  text-decoration: line-through;
  font-weight: lighter;
  font-size: 1rem;
} */

/* Contact Section */
.contact .row {
  display: flex;
  margin-top: 2rem;
  background-color: #222;
}

.contact .row .map {
  flex: 1 1 45rem;
  width: 100%;
  object-fit: cover;
}

.contact .row form {
  flex: 1 1 45rem;
  padding: 5rem 2rem;
  text-align: center;
}

.contact .row form .input-group {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  background-color: var(--bg);
  border: 1px solid #eee;
  padding-left: 2rem;
}

.contact .row form .input-group input {
  width: 100%;
  padding: 2rem;
  font-size: 1.7rem;
  background: none;
  color: #fff;
}

.contact .row form .btn {
  margin-top: 3rem;
  display: inline-block;
  border-radius: 8px;
  padding: 1rem 3rem;
  font-size: 1.7rem;
  color: #fff;
  background-color: rgba(218, 103, 9, 0.15);
  cursor: pointer;
}

.contact .row form .btn:hover {
  color: #2ecc71;
  background-color: var(--primary);
}

/* --------------------------- ALERT PESAN TERKIRIM KONTAK KAMI ---------------------------------------------------- */

/* TOAST ALERT */
.toast {
  position: fixed;
  bottom:  30px;
  right: 30px;
  background: #2ecc71;
  color: white;
  padding: 16px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 35px;
  background: white;
  color: #2ecc71;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
}

.toast-text strong {
  font-size: 16px;
}

.toast-text p {
  font-size: 14px;
  margin: 0;
}

/* ----------------------------- ALERT PESAN TERKIRIM KONTAK KAMI END ---------------------------------------------------- */


/* Footer */
footer {
  background-color: var(--primary);
  text-align: center;
  padding: 1rem 0 1rem;
  margin-top: 3rem;
}

footer .socials {
  padding: 1rem 0;
}

footer .socials a {
  color: #fff;
  margin: 1rem;
}

/* Instagram */
.socials a.instagram {
  color: #FFA500;
}

.socials a.twitter {
  color: #4169E1;
}

/* Facebook */
.socials a.facebook {
  color: #1877F2;
}

footer .socials a:hover,
footer .links a:hover {
  color: var(--bg);
}

footer .links {
  margin-bottom: 1.4rem;
}

footer .links a {
  color: #fff;
  padding: 0.7rem 1rem;
}

footer .credit {
  font-size: 0.8rem;
}

footer .credit a {
  color: var(--bg);
  font-weight: 700;
}

/* ---------------------------------------------- MODAL --------------------------------------------------------- */
/* Modal Box */
/* Item Detail */
.modal {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}


/* MODAL BOX */
.modal-container {
  position: relative;
  background-color: #ffffff;
  color: var(--bg);

  padding: 1.6rem;
  border-radius: 12px;

  width: 80%;
  max-width: 850px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.3);

  animation: animateModal 0.35s ease;
}


/* MODAL ANIMATION */
@keyframes animateModal {
  from {
    transform: translateY(-40px) scale(0.95);
    opacity: 0;
  }

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


/* CLOSE BUTTON */
.modal-container .close-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;

  cursor: pointer;
  padding: .3rem;
  border-radius: 50%;

  transition: 0.25s;
}

.modal-container .close-icon:hover {
  background: rgba(0,0,0,0.08);
}


/* CONTENT LAYOUT */
.modal-content {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 2rem;
}


/* IMAGE PRODUCT */
.modal-content img {
  height: 20rem;
  width: auto;

  border-radius: 8px;

  margin-bottom: 1rem;

  transition: transform 0.3s;
}

.modal-content img:hover {
  transform: scale(1.05);
}


/* PRODUCT DESCRIPTION */
.modal-content p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  margin-top: 1.2rem;
}


/* PRICE */
.modal-content .product-price {
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: 1rem;
  color: var(--primary);
}


/* ADD TO CART BUTTON */
.modal-content a {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: .8rem;
  width: 14rem;

  background: linear-gradient(135deg, var(--primary), #c58940);
  color: #fff;

  margin-top: 1.4rem;
  padding: .9rem 1.4rem;

  border-radius: 40px;
  font-weight: 600;

  transition: all .3s ease;
}

.modal-content a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}


/* PRODUCT STARS */
.product-stars {
  margin-top: .5rem;
  font-size: 1.3rem;
  color: gold;
}


/* RESPONSIVE TABLET */
@media (max-width: 768px) {

  .modal-container {
    width: 90%;
  }

  .modal-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .modal-content img {
    height: 16rem;
    margin-right: 0;
  }

}


/* RESPONSIVE MOBILE */
@media (max-width: 480px) {

  .modal-content img {
    height: 14rem;
  }

  .modal-content p {
    font-size: 1rem;
  }

}

/* -------------------------------------------------- MODAL END ----------------------------------------------------- */

/* Media Queries */
/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/* 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: #fff;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: var(--bg);
    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;
  }

  .about .row .content {
    padding: 0;
  }

  .about .row .content h3 {
    margin-top: 1rem;
    font-size: 2rem;
  }

  .about .row .content p {
    font-size: 1.6rem;
  }

  .menu p {
    font-size: 1.2rem;
  }

  .contact .row {
    flex-wrap: wrap;
  }

  .contact .row .map {
    height: 30rem;
  }

  .contact .row form {
    padding-top: 0;
  }

  .modal-content {
    flex-wrap: wrap;
  }
}


/* Mobile Phone */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}