:root {
  --primary: #b6895b;
  --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", serif;
  color: white;
  background-color: var(--bg);
  /* min-height: 5000px; */
}

.feather {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

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

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

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

.navbar .navbar-nav a {
  color: white;
  display: inline-block;
  margin: 0 0.8rem;
  font-size: 1.2rem;
}
.navbar .navbar-nav a:hover {
  color: var(--primary);
}

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

.navbar .navbar-nav a:hover::after {
  content: "";
  transform: scaleX(50%);
}

.navbar .navbar-extra a {
  color: white;
  margin: 0 0.5rem;
}
.navbar .navbar-extra a:hover {
  color: var(--primary);
}
.navbar .navbar-extra #shopping-cart {
  position: relative;
}
#shopping-cart .quantity-badge {
  display: inline-block;
  background-color: red;
  padding: 1px 5px;
  font-size: 0.8rem;
  position: absolute;
  right: -10px;
  bottom: 0;
  border-radius: 50%;
}
#hamburger-menu {
  display: none;
}

.navbar .search-form {
  position: absolute;
  display: flex;
  align-items: center;
  top: 100%;
  right: 5%;
  width: 54.2%;
  transform: scaleY(0);
  background-color: white;
  transform-origin: top;
  transition: all 0.3s;
  opacity: 0;
}
.navbar .search-form.active {
  transform: scaleY(1);
  opacity: 1;
}

.navbar .search-form input {
  height: 100%;
  width: 100%;
  padding: 1.2rem 1rem;
  background: none;
}
.navbar .search-form label {
  margin: 0 1rem;
  color: var(--bg);
}

.navbar .shopping-card-menu {
  /* display: flex; */
  position: absolute;
  overflow: scroll;
  top: 100%;
  right: -100%;
  height: 100vh;
  width: 40vw;
  background-color: white;
  transition: 0.25s;
  opacity: 0;
}

.navbar .shopping-card-menu.active {
  right: 0;
  opacity: 1;
}

.shopping-card-menu .kosong {
  text-align: center;
  margin: 20px auto;
  font-size: 2rem;
  color: var(--bg);
}

.shopping-card-menu .total {
  text-align: center;
  margin: 20px auto;
  font-size: 1rem;
  color: var(--bg);
}

.collumn {
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
  border-bottom: 2px dotted black;
  margin: 0 5%;
}

.collumn .card-image {
  display: flex;
  justify-content: left;
  padding: 0.5rem 0;
}

.collumn .card-image img {
  height: 3rem;
  border-radius: 50%;
}

.collumn .teks {
  color: var(--bg);
  font-size: 0.8rem;
}
.collumn .teks h3 {
  font-size: 1.2rem;
}

.item-price #add,
.item-price #remove {
  display: inline-block;
  padding: 1px 5px;
  background-color: #010101;
  color: white;
  border-radius: 25%;
  cursor: pointer;
  margin: 0 8px;
}

.shopping-card-menu .form-container {
  border-top: dotted black 2px;
  margin: 0 5%;
}
.shopping-card-menu .form-container form#checkoutForm {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  color: var(--bg);
  justify-content: center;
  text-align: center;
  padding: 1rem 0;
}

.shopping-card-menu .form-container form label {
  padding: 0 5%;
  text-align: left;
  margin: 0.5rem 0;
}

.shopping-card-menu .form-container form label input {
  position: absolute;
  right: 20%;
  padding: 0.1rem;
  width: 50%;
  background-color: #cccccc;
  border-radius: 2px;
}

.form-container .checkoutButton {
  /* width: 20%; */
  color: white;
  background-color: rgb(93, 136, 204);
  cursor: pointer;
  padding: 0.5rem 1rem;
  display: inline-block;
  margin: 0 auto;
  border-radius: 20px;
}

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

/* * Hero */
.hero {
  min-height: 100vh;
  /* max-width: 100vw; */
  display: flex;
  position: relative;
  align-items: center;
  background-image: url(../img/header-bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-sizing: border-box;
  mask-image: linear-gradient(rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
}

.hero .mask-container {
  position: absolute;
  inset: 0;
  mask-image: url(../img/header-bg.svg);
  /* background: green; */
  mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* tidak perlu lagi */
/* .hero::after {
  content: "";
  width: 100%;
  height: 25vh;
  position: absolute;
  left: 0;
  bottom: 0;
  background-image: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.248),
    rgba(0, 0, 0, 0.404),
    rgba(0, 0, 0, 0.571),
    rgba(0, 0, 0, 0.711),
    rgba(0, 0, 0, 0.884),
    rgb(0, 0, 0)
  );
} */

.hero .content {
  padding: 1.4rem 7%;
  width: 100%;
  text-align: center;
  top: 10rem;
  position: fixed;
}
.content h1 {
  color: white;
  font-size: 5rem;
  line-height: 1.2;
  text-shadow: 1px 1px 3px var(--primary);
}
.hero .content p {
  font-size: 1.6rem;
  font-weight: 100;
  margin-top: 1rem;
  line-height: 1.2;
  color: white;
  text-shadow: 1px 1px 3px var(--primary);
  mix-blend-mode: difference;
}

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

/* * About  */
/* * About  */
.isi-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.about-img img {
  /* flex: 1 1 45rem; */
  width: 100%;
  mask-image: url(../img/menu/kopi2.svg);
  mask-size: 60%;
  mask-position: center;
  mask-repeat: no-repeat;
}
.about h2,
.menu h2,
.products h2,
.contact h2 {
  padding: 8rem 7% 3rem;
  text-align: center;
  font-size: 3rem;
}
.about h2 span,
.menu h2 span,
.products h2 span,
.contact h2 span {
  color: var(--primary);
}

.about .content {
  padding: 0 1.2rem;
  box-sizing: border-box;
}
.isi-about h3 {
  font-size: 2rem;
}
.isi-about .content p {
  /* margin-top: 0 */
  font-weight: 100;
  line-height: 1.5;
  font-size: 1.4rem;
}

/* * menu section */
/* * menu section */
.menu h2 {
  padding-bottom: 1rem;
}
.menu .content p,
.contact p {
  text-align: center;
  max-width: 30rem;
  margin: auto;
  font-size: 1rem;
  font-size: 1.2rem;
  font-weight: 100;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.menu .row {
  display: flex;
  flex-wrap: wrap;
  /* margin: 4rem 4rem; */
  justify-content: center;
}

.menu-card {
  text-align: center;
  /* border-radius: 50%; */
  padding: 2rem 3rem;
  /* width: 20rem; */
}

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

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

/* * Products section */

.products p {
  text-align: center;
  max-width: 30rem;
  margin: auto;
  font-size: 1rem;
  font-weight: 100;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.product-view {
  display: grid;
  padding: 0 5%;
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 1.5rem;
}
.product-view .product-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* width: 50%; */
  /* height: 100%; */
  padding: 5% 0;
  box-sizing: border-box;
  border: 2px solid #292929;
}

.product-list .ikon {
  display: flex;
}
.product-list .ikon a {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 1.5rem;
  padding: 1rem;
  border-radius: 50%;
  border: 2px rgb(102, 102, 102) solid;
  color: white;
}

.product-view img {
  width: 75%;
  margin: 2rem 0;
}

.product-list h3 {
  font-size: 1.5rem;
}

.product-list p {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
}

.product-list .product-star {
  margin: 1rem;
  color: orange;
}

.product-list .product-star .star-full {
  fill: orange;
}

/* * Contact Section */
.contact {
  padding: 1.4rem 5%;
}

.contact h2 {
  padding-bottom: 1rem;
}

.contact .row {
  /* width: 100%; */
  display: flex;
  flex-wrap: wrap;
  background-color: #292929;
  /* margin: 0 3vw; */
}
.contact .row .map {
  height: 60vh;
  min-width: 50%;
  /* max-width: 100%; */
  object-fit: cover;
  object-position: center;
}

.contact .row form {
  display: flex;
  flex-direction: column;
  min-width: 50%;
  padding: 2rem;
  justify-content: center;
}
.contact .row form .input {
  display: flex;
  background-color: var(--bg);
  border: 2px solid rgb(125, 125, 125);
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.contact .row form .input input {
  background: none;
  padding: 2rem 2rem;
  width: 100%;
  color: white;
  font-size: 1.2rem;
}

.contact .row form button {
  width: 30%;
  color: white;
  cursor: pointer;
  padding: 1rem 2rem;
  display: inline-block;
  margin: 1.5rem auto 0;
  background-color: var(--primary);
  border-radius: 0.3rem;
  box-shadow: 1px 1px 3px rgb(114, 83, 43);
}

/* * FOoter */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--primary);
  padding: 1.4rem 0 1.6rem;
  margin: 2rem 0 0;
  text-align: center;
}

footer > * {
  margin-bottom: 1rem;
}
footer .socials a:hover,
footer .navigasi a:hover {
  color: var(--bg);
}
footer .socials a {
  color: white;
  margin: 0 1rem 0;
}
footer .navigasi a {
  color: white;
  margin: 0 1rem 0;
}
footer .credit p a {
  font-weight: 700;
  color: var(--bg);
}

/* *modal  */
.modal {
  position: fixed;
  z-index: 1946;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #010101b0;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal .modal-container {
  position: relative;
  /* z-index: 2000; */
  background-color: white;
  border: 1px solid rgb(72, 72, 72);
  color: var(--bg);
  width: 80%;
  /* height: 80%; */
  padding: 1.2rem;
  /* margin: 10% auto; */
  display: flex;
  animation: animasiModal 0.5s;
}

.modal .modal-container .close {
  position: absolute;
  right: 1rem;
  color: var(--bg);
}

.modal .modal-container .modal-content {
  margin: auto;
}

.modal .modal-container .modal-content img {
  height: 25rem;
  margin: 0 2rem 2rem 0;
}

.modal .modal-container .product-content h3 {
  font-size: 2rem;
}
.modal .modal-container .product-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 0.5rem;
}

.modal .modal-container .product-content button {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

.product-content button > * {
  margin: 0 0.5rem;
}

@keyframes animasiModal {
  from {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 0;
    opacity: 1;
  }
}

/** Responsif breakpoint*/

/*? Laptop */

@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/*? Tablet */
@media (max-width: 768px) {
  html {
    font-size: 65%;
  }
  .navbar .navbar-nav {
    /* display: grid; */
    position: absolute;
    top: 100%;
    right: -100%;
    height: 100vh;
    width: 50vw;
    background-color: white;
    transition: 0.25s;
    opacity: 0;
  }

  .navbar .navbar-nav a {
    color: var(--bg);
    font-size: 2rem;
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    width: max-content;
  }

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

  .navbar .navbar-nav a:hover::after {
    content: "";
    transform-origin: 0 0;
    transform: scaleX(80%);
  }

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

  #hamburger-menu {
    display: inline-block;
  }

  .navbar .search-form {
    width: 90%;
    /* left: 10%; */
    /* right: 10%; */
  }

  /* about menu */
  .about .isi-about {
    display: flex;
    flex-wrap: wrap;
    padding: 0 2rem;
  }
  .isi-about .about-img {
    padding: 0 1.2rem;
    width: 100%;
  }
  .about .isi-about .about-img img {
    height: 24rem;
    object-fit: cover;
    object-position: center;
  }
  .about .isi-about .content {
    margin-top: 2rem;
  }

  /* menu responsif */
  .menu .content p {
    font-size: 1.5rem;
  }

  /* contact responsif */
  .contact .row .map {
    width: 100%;
  }

  .contact .row form {
    width: 100%;
  }

  .navbar .shopping-card {
    width: 60vw;
  }

  .modal .modal-container {
    flex-direction: column;
  }

  .shopping-card-menu .form-container form label input {
    position: inherit;
    display: flex;
    width: 100%;
  }
}

/*? Mobile Phone */

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