/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-padding-top: 2rem;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root{
  --brown0:#543310;
  --brown1:#74512D;
  --brown2:#A79277;
  --brown3:#D1BB9E;
  --brown4:#EAD8C0;
  --brown5:#FFF2E1;
  --brown6:#F8F4E1;
  --black:#333;
  --white:#fff;
  --red:#FF0000;
  --bg-color:#eee;
}
.page {
    opacity: 1;
    transition: opacity 0.2s ease;
}
.page-hidden {
    opacity: 0;
}
img {
  width: 100%;
}
section{
  padding: 50px 10% 50px 10%;
}

/*heading*/
.heading span, .heading2 span {
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brown1);
  font-weight: bolder;
}
.heading h1, .heading2 h1 {
  font-size: 1rem;
  color: var(--black);
}
.heading2{
  text-align: end;
}

/*button*/
.btn {
  padding: 7px 16px;
  background-color:  var(--brown2);
  border-radius: 40px;
  color: var(--white);
  font-weight: 500;
}
.btn:hover {
  background: var(--brown3);
}
.Lightbtn{
  background-color: var(--brown3);
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.2s;
}
.Lightbtn:hover { 
  background-color: var(--brown2);
}

/*navigation bar*/
.navbar { /*latar*/
  position: sticky;
  background-color: var(--white);
  height: 70px;
  padding: 0.5rem;
  position: sticky;
}
.navbar-brand { /*logo*/
  display: flex;
  align-items: center;
}
.navbar-brand img,
.offcanvas-header img{
  width: 120px;
}
.navbar-toggler {
  border: none;
  font-size: 1.25rem;
}
.navbar-toggler:focus, .btn-close:focus{ /*close button*/
  box-shadow: none;
  outline: none;
}
.nav-link{
  color: var(--brown2);
  font-weight: 500;
  position: relative;
}
.nav-link:hover, .nav-link.active{
  color: var(--brown3);
}
@media (min-width: 991px) { /*transisi navbar*/
  .nav-link::before{
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 2px;
      background-color: var(--brown2);
      visibility: hidden;
      transition: 0.3s ease-in-out;
  }
  .nav-link:hover::before, .nav-link.active::before {
      width: 100%;
      visibility: visible;
  }
}

/*sign-In sign-up*/
body.left, body.right{
  background-color: var(--brown5);
}
.box-area{
  width: 930px;
}
.right-box{
  padding: 40px 30px 40px 40px;
}
::placeholder{
  font-size: 16px;
}
.rounded-4{
  border-radius: 20px;
}
.rounded-5{
  border-radius: 30px;
}
@media only screen and (max-width: 768px){
   .box-area{
      margin: 0 10px;
   }
   .left-box{
      height: 100px;
      overflow: hidden;
   }
   .right-box{
      padding: 20px;
   }
}

/*profile*/
.profileContainer {
  padding-top: 10px;
}

/*home cover*/
.home {
  background: var(--brown4);
  gap: 1rem;
}
.homeBox1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  z-index: 2;
  position: relative; 
}
.homeBox2 {
  z-index: 1;
  position: absolute;
  background-color: var(--brown5); 
}
@media (min-width: 887px) {
  .home {
    position: relative; 
    padding: 40px 10% 0px 10%;
  }
  .homeBox2 {
    width: auto; 
    height: 500px; 
    bottom: 150px; 
    left: 5%; 
    right: 5%;
    border-radius: 20px;
  }
  .home-img img{
    padding-bottom: 150px;
  }
}
@media (max-width: 887px) {
  .home{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 90px 10% 0px 10%;
  }
}
.home-text{
  flex: 1 1 14rem;
}
.home-img img{
  flex: 1 1 14rem;
}
.home-text h3{
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown0);
}
.home-text h1 {
  font-size: 3.2rem;
  color: var(--brown1);
  font-weight: bolder;
}
.home-text h2{
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--brown2);
  text-transform: uppercase;
  margin: 0.5rem 0 1.4rem;
}

/*home carousel favorite*/
section.favorite{
  padding: 50px 10% 10px 10%;
  width: 100%;
}
.carousel-caption{
  color: var(--black);
}
@media (min-width: 1407px) {
    .favorite .carousel-caption {
    top: 50%; 
    transform: translateY(-50%);
  }
}
@media (max-width: 1407px) {
  .carousel-caption p {
      display: none;
  }
}
@media (max-width: 495px) {
  .carousel-caption h5 {
      display: none;
  }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); 
}

/*promo*/
.promo-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}
.promo-container .box {
  flex: 1 1 10rem;
  background: var(--brown4);
  padding: 20px;
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  border-radius: 0.5rem;
}
.promo-container .box .box-img {
  width: 150px;
  height: 150px;
  margin-top: -80px;
}
.promo-container .box .box-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.promo-container .box h2 {
  color: var(--black);
  font-size: 1.2rem;
}
.promo-container .box span {
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0.2rem 0 0.5rem;
}

/*what's new*/
.new-container {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 14rem;
  justify-content: center;
}
.new-container .new-img {
  width: 70%;
  height: 70%;
}
.new-text p{
  text-align: justify;
}
@media (min-width: 1025px) {
  .new-container {
    gap: 5rem;
  }
  .new-text {
    max-width: 60%;
  }
  .new-container .new-img {
    width: 30%;
    height: 30%;
  }
}

/* info home*/
.containerInfoHome {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.menuInfoHome,
.deliveryInfoHome{
  background: var(--brown4);
}
.reservationInfoHome,
.aboutInfoHome{
  background: var(--brown5);
}
.infoHome-text {
  font-size: 1rem;
  flex: 1 1 21rem;
  margin-bottom: 10px;
}
.infoHome-text p{
  text-align: justify;
}
.infoHome-text h2 {
  font-size: 1rem;
  color: var(--black);
}
.infoHome-img{
  flex: 1 1 21rem;
}
@media (min-width: 1265px) {
  .containerInfoHome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    gap:0;
  }
  .infoHome-img{
    flex: 1 1 21rem;
    max-width: 50%;
    max-height: 100%;
  }
  .infoHome-text {
    padding: 20px 70px 20px 70px;
    margin: 0;
  }
  section.menuInfoHome,
  section.reservationInfoHome,
  section.deliveryInfoHome,
  section.aboutInfoHome{
    padding: 0px;
    margin: 0px;
  }
}

/*Menu*/
section.menuCarousel{
  padding: 0;
}
.displayMenu-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; 
  justify-content: center;
}
.displayMenu-container .card {
  flex: 1 1 15rem; 
  border-radius: 0.5rem;
}
.displayMenu-container .card img {
  width: 100%;
  height: auto; 
  object-fit: contain;
}
.displayMenu-container .card h5 {
  color: var(--black);
  font-size: 1rem;
}
.displayMenu-container .card p {
  color: var(--black);
  font-size: 0.7rem;
}
@media (max-width: 768px) {
  .displayMenu-container {
    flex-direction: column; 
  }
  .displayMenu-container .card {
    width: 100%;
  }
}

/* Contact Section */
.footer {
  background-color: var(--brown0);
  color: var(--brown6);
}
.footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer .logo img {
  width: 150px;
}
.footer .location, 
.footer .Info {
  flex: 0 0 calc(25% - 30px);
}
.footer h2, 
.footer h5, 
.footer p {
  color: var(--brown6);
}
.footer .kelompok {   
  font-weight: lighter;
  margin-top: 30px;
  padding: 1rem;
  flex: 0 0 100%;
  text-align: center;
}
.kelompok hr {
  color: var(--brown6);
}
.footer .kelompok h5 {
  font-weight: lighter;
  margin-top: 1rem;
}
.footer .kelompok .anggota {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; 
  align-items: center;
}
.members, .numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}
.logo-upn {
  width: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer .location, 
  .footer .Info {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
  .footer .kelompok .anggota {
    flex-direction: column;
  }
  .footer .kelompok .anggota .text-right {
    margin-top: 20px;
  }
}

/* Delivery Section */
.deliveryMenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 90px 10% 0px 10%;
}

section.deliveryCarousel{
  padding: 90px 10% 0px 10%;
}

.box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap:1.5rem
}

.box-container .box {
  padding: 2rem;
  text-align: center;
  border: 1px solid #ddd; /* Sesuaikan dengan var(--border) jika ada */
  transition: background-color 0.3s, color 0.3s;
  background: var(--brown3);
}

.box-container .box img {
  width: 100%;
  height: auto; /* Menjaga rasio aspek gambar */
  object-fit: contain;
}

.box-container .box h3, .box-container .box h5 {
  color: var(--black);
  font-size: 1rem;
  padding: 0.5rem 0;
}

.box-container .box .price {
  color: #000; /* Sesuaikan warna jika diperlukan */
  font-size: 1rem;
  padding: 0.5rem 0;
}

.box-container .box:hover {
  background-color: #f0f0f0; /* Sesuaikan warna jika diperlukan */
}

.box-container .box:hover > * {
  color: var(--black); /* Pastikan var(--black) didefinisikan */
}

/* Media queries untuk tampilan yang lebih kecil */
@media (max-width: 768px) {
  .box-container {
    flex-direction: column; /* Susun kartu secara vertikal pada layar kecil */
  }

  .box-container .box {
    width: 100%; /* Lebar penuh pada layar kecil */
  }
}

/* Chart Section */
.floating-container {
  position: fixed;
  bottom: 35px;
  right: 25px;
  z-index: 1000;
}
.floating-button {
  width: 65px;
  height: 65px;
  background: #74512D;
  border-radius: 50%;
  color: #EAD8C0;
  line-height: 65px;
  text-align: center;
  font-size: 23px;
  box-shadow: 0 10px 25px -5px #543310;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.floating-button:hover {
  box-shadow: 0 10px 25px #543310;
  transform: translateY(-5px);
}
.floating-button img {
  width: 40px;
  height: 40px;
}

.cart {
  display: none; /* Initially hidden */
  position: fixed;
  bottom: 110px;
  right: 25px;
  width: 300px;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 20px;
  z-index: 1000;
}
.cart.active {
  display: block;
}
.cart-title {
  font-size: 24px;
  margin-bottom: 20px;
}

.cart-content {
  max-height: 220px; /* Set the desired max height */
  overflow-y: auto; /* Enable vertical scrolling */
  padding: 10px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}
.cart-content::-webkit-scrollbar {
  width: 10px;
}
.cart-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
.cart-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.cart-box {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-bottom: 15px;
}
.detail-box{
  padding-left: 15px;
  width: 180px;
}
.cart-img {
  width: 50px;
  height: 50px;
}
.cart-product-title {
  font-size: 18px;
}
.cart-price, .cart-quantity {
  width: 100px;
  align-items: left;
  font-size: 15px;
}
.cart-remove {
  cursor: pointer;
  color: rgb(135, 44, 31);
}

.total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 18px;
}
.btn-buy {
  display: block;
  width: 100%;
  background-color: #543310;
  color: #EAD8C0;
  border: none;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}
.btn-buy:hover {
  background-color: #3e270b;
}

/* Welcome Section */
section.aboutWelcome {
  background: var(--brown4);
  padding: 50px 10%;
  text-align: center;
}

.aboutWelcome .welcome-heading {
  font-size: 3rem; /* Adjusted to match existing heading sizes */
  color: var(--brown0);
  font-weight: bolder;
}

.aboutWelcome .welcome-description {
  color: var(--brown1);
  margin-top: 20px;
}

/* About Us Section */
section.aboutUs {
  background: var(--white);
  padding: 50px 10%;
}

.containerAboutUs {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap; /* Ensure items wrap on small screens */
  justify-content: space-between;
}

.aboutUs-text {
  font-size: 1rem;
  flex: 1 1 27rem;
  margin-bottom: 10px;
}

.aboutUs-text p {
  text-align: justify;
}

.aboutUs-text h2 {
  font-size: 1.5rem;
  color: var(--black);
}

.aboutUs-img {
  flex: 1 1 15rem;
}

.aboutUs-img img {
  width: 100%; /* Ensure image takes full width of its container */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Cover the entire container */
  max-width: calc(100% - 1.5rem); /* Adjust max-width to accommodate gap */
  max-height: calc(100vh - 250px); /* Adjust max-height for smaller screens */
}

/* Media query for small screens */
@media (max-width: 768px) {
  .containerAboutUs {
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    gap: 1px; /* Reduce gap between stacked items */
  }
  
  .aboutUs-text {
    padding: 1rem;
  }

  .aboutUs-img {
    max-width: calc(100% - 1.5rem); /* Adjust max-width to accommodate gap */
    max-height: calc(100vh - 300px); /* Adjust max-height for smaller screens */
  }

  .aboutUs-img img {
    width: 100%; /* Ensure image fills its container */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensure image doesn't exceed container width */
    object-fit: cover;
    aspect-ratio: 6/4;
  }
}


/* Banner Section */
section.banner {
  background: var(--brown2);
  padding: 50px 10%;
  text-align: center;
}

.banner .banner-heading {
  font-size: 2rem; /* Adjusted to match existing heading sizes */
  color: var(--white);
  font-weight: 600;
}

/* Our Location Section */
section.ourLocation {
  background: var(--white);
  padding: 50px 10%;
}

.containerOurLocation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap; /* Ensure items wrap on small screens */
}

.ourLocation-text {
  font-size: 1rem;
  flex: 1 1 21rem;
  margin-bottom: 10px;
}

.ourLocation-text p {
  text-align: justify;
}

.ourLocation-text h2 {
  font-size: 1.5rem;
  color: var(--black);
}

.ourLocation-img {
  flex: 1 1 21rem;
}

/* Media query for small screens */
@media (max-width: 768px) {
  .containerOurLocation {
    display:grid;
    gap: 2rem;
  }
  .ourLocation-img {
    margin: 0; /* Add space below the image */
  }
}

/* Banner Section */
section.homeAdmin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: var(--brown3);
  padding: 90px 10% 100% 10%;
  text-align: center;
}