/* selector (*) digunakan untuk reset margin dan padding di semua elemen.
box-sizing: border-box memastikan padding dan border dihitung dalam width/height elemen */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* header & navigation */
/* position: sticky membuat header tetap terlihat saat scroll */
.container-header {
  background-color: #0b0909;
  padding: 14px 130px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
}

div.logo {
  display: inline-block;
}

.logo img,
.logo span {
  vertical-align: middle;
}

.logo .logo-text {
  font-family: "Sacramento", cursive;
  color: #ffffff;
  font-size: 20px;
  font-weight: 400;
  margin-left: 15px;
}

/* Navigation menggunakan inline-block agar  dalam satu baris */
nav.nav-container-left {
  display: inline-block;
}
ul .list {
  display: inline-block;
  vertical-align: middle;
}

a.nav-a {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
}

.line {
  margin: 0 60px 0 68px;
  border-bottom: 1px solid #ff8906;
  padding-bottom: 5px;
}

.nav-container-right {
  float: right;
}

a.signin,
a.signup {
  text-decoration: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 12px;
  border-radius: 5px;
}

a.signup {
  background-color: #ff8906;
  color: #0b132a;
}

a.signin {
  color: #ffffff;
  border: 1px solid #ffffff;
  margin: 0 22px;
}

img.cart-icon {
  margin-left: 22px;
}

/*payman detail*/

.payment-info {
  margin-top: 31px;
  padding: 0 20px;
}

/* container payment */
.payment {
  margin-top: 38px;
  padding: 0 20px;
}

.payment > div {
  margin-top: 31px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.payment > div > a {
  background-color: #ff8906;
  font-size: 14px;
  font-weight: 500;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: black;
}

/* container article payment (image, price, name, fkashshale) */
.article-payment {
  display: flex;
  background-color: #e8e8e84d;
  padding: 10px;
  position: relative;
  gap: 20px;
}

.icon-x {
  width: 24px;
  height: 24px;
}

.article-payment > div > img {
  width: 100%;
  height: 100%;
  /* max-width: 180px; */
}

.flash {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  width: 100%;
  margin-top: 11px;
}

.flash > .icon-x {
  position: absolute;
  top: 60px;
  right: 10px;
  cursor: pointer;
}
h4.flash-sale {
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 10px;
  border-radius: 24px;
  background-color: #d00000;
  display: inline-block;
  width: max-content;
}

h3.title-menu-title {
  font-size: 22px;
  font-weight: 500;
  color: #0b132a;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.flash > span {
  font-size: 18px;
  font-weight: 400;
}

.idr-line {
  color: #d00000;
  font-size: 12px;
  font-weight: 500;
  font-family: "Plus Jakarta Sans", sans-serif;
  text-decoration: line-through;
  margin-right: 10px;
}

span.menu-price {
  font-weight: 500;
  font-size: 22px;
  color: #ff8906;
  font-family: "Plus Jakarta Sans", sans-serif;
}

/*Payment Info*/

div.input-wrapper {
  position: relative;
}

/* form input customer */
form .label {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #0b132a;
  margin-top: 25px;
}

form .input {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  display: block;
  width: 100%;
  padding: 18.5px 0;
  padding-left: 47px;
  color: #4f5665;
  border: 1px solid #dedede;
  border-radius: 8px;
  background-color: #fcfdfe;
  margin-top: 13px;
  margin-bottom: 25px;
}

img.icon-name {
  position: absolute;
  top: 53px;
  left: 13px;
  z-index: 2;
}

.button-delivery {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
}

.button-delivery > button {
  padding: 10px;
  cursor: pointer;
}

/*total container*/

.total {
  font-family: "Plus Jakarta Sans", sans-serif;
  margin-top: 51px;
  padding: 0 20px;
}

.total > h2 {
  margin-bottom: 27px;
}

.total > article {
  background-color: #e8e8e84d;
  padding: 50px 10px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.container-order {
  display: flex;
  justify-content: space-between;
}

span.order,
span.price {
  color: #4f5665;
  font-size: 14px;
  font-weight: 700;
}

span.price {
  color: #0b132a;
}

.history {
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  background-color: #ff8906;
  padding: 10px 0;
  color: #0b132a;
  border-radius: 6px;
  text-align: center;
}

.we {
  font-size: 14px;
  font-weight: 400;
}

.bank {
  display: flex;
  justify-content: space-between;
}

/*Footer*/

.footer.footer {
  background-color: #f8f8f8;
  margin-top: 32px;
}
.coffee-logo {
  width: 340px;
  margin-left: 110px;
  display: inline-block;
  margin-right: 60px;
  vertical-align: middle;
}

.nav-logo {
  text-decoration: none;
}

.logo-text-coffe {
  font-family: "Sacramento", cursive;
  color: #8e6447;
  font-size: 20px;
  font-weight: 400;
  margin-left: 15px;
}

p.coffe-text {
  color: #4f5665;
  font-weight: 400;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  margin-top: 23px;
  margin-bottom: 32px;
}

p.copy-coffe {
  color: #afb5c0;
  font-size: 16px;
  font-weight: 400;
  font-family: "Rubik", sans-serif;
  margin-bottom: 67.5px;
}

nav.footer-nav {
  display: inline-block;
  margin-right: 106px;
  margin-top: 50px;
}

h3.footer-heading {
  color: #0b132a;
  font-weight: 500;
  font-size: 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  margin-bottom: 20px;
}

.footer-link {
  list-style-type: none;
}

.footer-link li {
  margin-bottom: 10px;
}

.footer-link li a {
  text-decoration: none;
  color: #4f5665;
  font-size: 16px;
  font-weight: 400;
}

section.sosial-media {
  display: inline-block;
  vertical-align: top;
  margin-top: 50px;
}

h3.sosial-media-text {
  color: #0b132a;
  font-weight: 500;
  font-size: 18px;
  font-family: "Plus Jakarta Sans", sans-serif;
  margin-bottom: 26px;
}

.border {
  border: 1px solid black;
}

.sosial-media-image {
  margin: 0 20px;
}

@media (min-width: 640px) {
  .grid {
    display: grid;
    grid-template-areas:
      "payment total"
      "payment-info total";

    padding: 0 100px;
    margin-bottom: 50px;
  }

  .payment {
    grid-area: payment;
  }

  .payment-info {
    grid-area: payment-info;
  }

  .total {
    grid-area: total;
    padding-top: 50px;
  }
}
