/* all */
* {
  scroll-behavior: smooth;
}

a {
  color: black;
  text-decoration: none;
}

/* all body */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  margin: 0;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/main-bg.png');
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.7);
  z-index: -1;
}

/* start navbar */
.nama-toko {
  display: flex;
  align-items: center;
  color: #FB9B8F;
  text-shadow: 0 2px 3px rgb(0, 0, 0);
}

.logo {
  width: 15%;
  margin-right: 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn {
  text-shadow: 0 2px 3px #F57799;
}

.btn:hover {
  border-radius: 20px;
  padding: 5px;
  transition: all 0.3s ease-in-out;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 30px;
  height: 4px;
  background-color: #000;
  border-radius: 5px;
}

ul {
  display: flex;
  align-items: center;
  gap: 12px;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #FFF7CD;
  padding: 10px 20px;
  border-radius: 50px 50px 0 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  border-radius: 0 0 50px 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* end navbar */

/* start container */
.container {
  background: linear-gradient(-145deg, #FFF7CD, #FDC3A1, #FB9B8F, #F57799);
  position: relative;
  z-index: 1;
  width:100%;
  min-width: 700px;
  height: 100%;
  border-radius: 50px 50px 0px 0px;
  font-family: "Coiny", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* gambar */
.hero {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 50px 50px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.342);
  z-index: 1;
}

.hero-content{
  position: relative;
  z-index: 2;
}

.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slider-wrapper{
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slider-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 247, 205, 0.8);
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  color: #F57799;
  transition: 0.3s;
  z-index: 3;
}

.prev-btn:hover, .next-btn:hover{
  background-color: #F57799;
  color: #FFF7CD;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active, .dot:hover{
  background-color: #F57799;
  width: 24px;
  border-radius: 10px;
}

/* start menu */
.menu {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 50px;
}

.card {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  text-align: center;
}

.card-produk img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.card-produk {
  grid-row: span 3 / span 3;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
}

.card-produk>button {
  border: none;
  padding: 5px;
  width: 80px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.card-produk>button:hover {
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: #575757;
  color: #FFF7CD;
  font-weight: bold;
  padding: 6px;
}

.card:hover> :not(:hover) {
  filter: blur(2px);
  opacity: 0.5;
}

/* animasi fade in scrol */
.fade-in{
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.8s ease-out, trasnform 0.8s ease-out;
}

.fade-in.muncul{
  opacity: 1;
  transform: translateY(0);
}

/* end menu */


/* start keranjang */
.keranjang-section {
  padding: 80px 10%;
  background-color: transparent; 
}

.keranjang-container {
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
}

.keranjang-container h2 {
  color: #FB9B8F;
  font-family: "Coiny", cursive;
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 2rem;
  text-align: center;
}

/* List Item Pesanan */
.daftar-pesanan {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  max-height: 250px;
  overflow-y: auto; /* Bisa di-scroll kalau pesanannya banyak */
  border-bottom: 2px dashed #FDC3A1;
  padding-bottom: 10px;
}

.daftar-pesanan li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f9f9f9;
  font-size: 1.1rem;
  font-weight: 500;
  color: #555;
}

.daftar-pesanan li:last-child {
  border-bottom: none;
}

.empty-cart {
  color: #aaa !important;
  font-style: italic;
  font-weight: normal !important;
  justify-content: center !important;
}

/* Bagian Total & Tombol */
.keranjang-summary {
  margin-top: 20px;
}

.total-text {
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  color: #333;
}

.total-amount {
  color: #FB9B8F;
  font-size: 1.6rem;
}

.btn-checkout {
  width: 100%;
  background-color: #25D366; /* Warna Hijau Khas WhatsApp */
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 15px;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-checkout:hover {
  background-color: #1ebe5d;
  padding: 15px;
  box-shadow: 0 8px 15px rgba(37, 211, 102, 0.4);
}

/* end keranjang */

footer {
  background-color: #4a342e;
  /* Warna cokelat gelap yang elegan */
  color: #FFF7CD;
  padding: 40px 20px 10px 20px;
  font-family: "Hanken Grotesk", sans-serif;
  border-radius: 50px 50px 0 0;
  /* Memberi lengkungan di atas agar senada dengan header */
  margin-top: 50px;
}

.footer-main{
  display: flex;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  color: #FB9B8F;
  margin-bottom: 15px;
  font-family: "Coiny", cursive;
}

.footer-section ul {
  display: block;
  /* Mengubah list navigasi jadi vertikal */
  padding: 0;
}

.footer-section ul li {
  list-style: none;
  margin-bottom: 10px;
}

.footer-section a {
  color: #FFF7CD;
  transition: 0.3s;
}

.footer-section a:hover {
  color: #FB9B8F;
  padding-left: 5px;
}

.footer-contact {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 247, 205, 0.2);
  padding-top: 20px;
  font-size: 0.9em;
}

/* Style Ikon Sosial Media */
.social-icons {
  display: flex;
  flex-direction: column;
  margin-right: 90px;
  color: #FB9B8F;
  font-family: "Coiny", cursive;
}

.social-icons a {
  font-size: 1.5rem;
  color: #FFF7CD;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  color: #FB9B8F;
  transform: translateY(-5px);
  padding-left: 0;
  /* Menimpa hover global sebelumnya */
}

.icons {
  display: flex;
  gap: 20px;
}

/* Style Tombol GoFood */
.btn-gofood {
  display: inline-block;
  margin-top: 15px;
  background-color: #008148;
  /* Warna hijau khas Gojek */
  color: white !important;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: "Hanken Grotesk", sans-serif;
  transition: 0.3s;
}

.btn-gofood:hover {
  background-color: #006337;
  transform: scale(1.05);
  padding-left: 15px !important;
  /* Menimpa hover global */
}


/* end container */


/* responsif */
@media (max-width: 700px) {

  /*PENGATURAN CONTAINER UNTUK HP */
  .container {
    width: 100%;
    min-width: auto;
    border-radius: 0;
  }

  .card {
    width: 95%;
    grid-template-columns: repeat(2, 1fr);
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hamburger {
    display: flex;
  }

  ul#nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #FFF7CD;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgb(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
    z-index: -1;
    opacity: 0;
    visibility: inherit;
    transform: translateY(-20px);
    transition: all 0.4s ease-in-out;
  }

  ul#nav-menu.tampil {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .card:hover> :not(:hover) {
    filter: none;
    opacity: 1;
  }

  .footer-main {
    flex-direction: column;
    gap: 30px;
  }

  /* 2. Pusatkan semua teks di HP */
  .footer-content,
  .footer-contact {
    text-align: center;
    align-items: center; /* Memastikan elemen flex di dalamnya ke tengah */
    width: 100%; /* Pastikan lebarnya tidak melebihi layar */
  }

  /* 3. Reset margin yang mengganggu di HP */
  .social-icons {
    margin-right: 0;
    align-items: center;
    margin-bottom: 20px;
  }

  /* 4. Pusatkan list navigasi dan deretan ikon */
  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .icons {
    justify-content: center;
  }

  
}

header.menu-buka {
  border-radius: 0 !important;
}