@font-face {
  font-family: 'Sableklish';
  src: url('fonts/Sableklish.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Bahnschrift';
  src: url('fonts/Bahnschrift.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
h1 {
  font-family: 'Sableklish', cursive;
}
h2 {
  font-family: 'Sableklish', cursive;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Bahnschrift', sans-serif;
  background: #ffe8c8;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #ffe8c8;
}

.nav-wrapper {
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 20px;
  background: #d62828;
  padding: 10px 25px;
  border-radius: 50px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
 
}

.main-nav a.active {
  border-bottom: 1px solid white;
  padding-bottom: 2px;
}

.cart-menu {
  position: relative;
  margin-left: 15px;
}

.cart-menu button {
  background: #d62828;
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
}

.cart-menu img {
  vertical-align: middle;
}

.cart-dropdown {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  background: #d62828;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 10px;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.cart-dropdown a {
  display: block;
}

.cart-dropdown img {
  width: 24px;
}

.main-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 60px;
  gap: 40px;
  flex-wrap: wrap;
}

.main-content img {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  flex: 1;
}


.text-section {
  color: #4a2b0f;
  max-width: 500px;
  text-align: left;
}

@media (max-width: 768px) {
  .text-section {
    text-align: center;
    max-width: 100%;
  }
}

.text-section h1 {
  font-size: 5rem;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 700;
  margin-top: -5px;
  margin-bottom: 35px;  
}

.text-section p {
  font-size: 1rem;  
  line-height: 1.6;
}

footer {
  background: #d62828;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.social-icons img {
  width: 50px;
  margin-right: 15px;
}

.logo-footer img {
  height: 50px;
  padding: 5px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); /* opsional efek bayangan */
}


/*--------CSS Profile--------*/
.item-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  overflow: hidden;
  max-width: 500px;
  flex: 1 1 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.item-box .image-wrapper {
  background-color: #d62828;
  width: 100%;
  padding: 40px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-sizing: border-box;
}

.item-box .image-wrapper img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.item-box .text-section {
  color: #4a2b0f;
  text-align: center;
  padding: 20px 10px;
  max-width: 100%;
  background: transparent;
}

.item-box .text-section h1 {
  font-size: 2rem;
  margin: 10px 0;
}

.item-box .text-section p {
  font-size: 1rem;
}


.profile-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #d62828;
  padding: 60px 30px;
  gap: 40px;
  justify-content: center;
  margin-top: 90px;
   border-radius: 15px;
}

.profile-section .image-wrapper {
  flex: 1 1 400px;
  max-width: 400px;
  padding: 0;
}

.profile-section .image-wrapper img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  aspect-ratio: 3 / 3;
}

.profile-section .text-box {
  flex: 1 1 400px;
  color: white;
  padding: 20px;
  max-width: 500px;
}

.profile-section .text-box h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.profile-section .text-box p {
  font-size: 1.1rem;
  line-height: 1.7;
}


/* --- Produk Page --- */

.banner-container {
  width: 100%;
  text-align: center;
  margin-top: 80px;
}

.banner-container img {
  width: 90%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.produk-title {
  text-align: center;
  font-size: 3rem;
  color: #4a2b0f;
  margin: 40px 0 20px;
  font-family: 'Sableklish', cursive;
}

.produk-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
}

.produk-card {
  background: #d62828;
  border-radius: 15px;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: 0.3s;
  text-decoration: none;
  margin-bottom: 20px;
}

.produk-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.produk-card h3 {
  color: #fff;
  text-align: center;
  padding: 15px 0;
}

.produk-card:hover {
  transform: scale(1.03);
}


/*--------CSS Lokasi--------*/
  .lokasi-section {
  padding: 40px 20px;
  background-color: #ffe8c8;
}

.lokasi-title {
  font-family: 'Sableklish', cursive;
  font-size: 3rem;
  text-align: center;
  color: #4a2b0f;
  margin-bottom: 40px;
}

.gerai-wrapper {
  background-color: #d62828;
  padding: 30px;
  border-radius: 15px;
  display: flex;
  flex-wrap: wrap;
  max-width: 960px; 
   margin: 0 auto;
  justify-content: center;
  gap: 25px;

      
}

.gerai-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.gerai-card {
  background-color: #d62828;
  border-radius: 15px;
  overflow: hidden;
  width: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gerai-card h3 {
  background-color: #fff;
  color: #4a2b0f;
  margin: 0;
  padding: 10px 0;
  font-size: 1.2rem;
}

.gerai-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.gerai-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


/*--------CSS ecommerce--------*/
.ecommerce-section {
  padding: 40px 20px;
  background-color: #ffe8c8;
}

.ecommerce-title {
  font-family: 'Sableklish', cursive;
  font-size: 3rem;
  text-align: center;
  color: #4a2b0f;
  margin-bottom: 40px;
}

.ecommerce-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.ecommerce-card {
  border-radius: 15px;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;

}

.ecommerce-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* === Animasi Transisi Halaman Lebih Smooth === */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-out {
  opacity: 1;
  transform: translateY(0);
  animation: fadeOut 0.5s ease-in forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}



/* Responsif */
@media (max-width: 768px) {
  .ecommerce-card {
    width: 180px;
    height: 180px;
  }
}

/* Responsif tambahan untuk layout utama dan item box */
@media (max-width: 768px) {
  .main-content {
    padding: 20px;
    flex-direction: column;
    align-items: center;
  }
/* Responsif */
@media (max-width: 900px) {
  .gerai-wrapper {
    flex-direction: column;
    align-items: center;
  }
}




/* ===== NAVBAR RESPONSIF FIXED UNTUK LAYOUT KAMU ===== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
  }

  .nav-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
  }

  .main-nav a {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  .cart-menu {
    margin-top: 10px;
    margin-left: 0;
    align-self: center;
  }
}

/* ===== FOOTER RESPONSIF FIXED UNTUK LAYOUT KAMU ===== */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 15px;
    text-align: center;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .social-icons img {
    width: 36px;
  }

  .logo-footer img {
    height: 45px;
  }
}



@media (max-width: 768px) {
  .text-section h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .item-box .text-section h1 {
    font-size: 1.8rem;
  }

  .item-box .text-section {
    padding: 10px 5px;
  }
}
.item-box {
  flex: 1 1 350px;
}
@media (max-width: 768px) {
  .item-box {
    width: 90%;
    margin: auto;
  }

  .profile-section {
    padding: 40px 15px;
    gap: 20px;
  }
}
