/* ===== GLOBAL RESET ===== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 15px 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10000;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: navy;
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-text a {
  text-decoration: none;
  color: navy;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav-links li a:hover {
  text-decoration: underline;
}

.icons {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1000;
}

.icons i {
  font-size: 18px;
  cursor: pointer;
  vertical-align: middle;
}

.yellow-icon {
  color: #FFD700;
}

/* ===== BANNER ===== */
.banner img {
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

/* ===== CATEGORIES ===== */
.categories {
  text-align: center;
  padding: 30px 20px;
}

.categories h2 {
  margin-bottom: 25px;
  color: #444;
  font-size: 24px;
}

.category-heading {
  text-align: center;
  margin-bottom: 20px;
}

.category-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 5px;
}

.category-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 30px;
}

.category-group {
  width: 240px;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-group:hover { /* Added from index.php for consistency */
  transform: scale(1.05);
}

.group-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.group-images img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 4px;
}

.category-group p {
  font-weight: 500;
  color: #333;
  margin: 5px 0 0;
}

/* ===== FEATURED MENU ===== */
.featured {
  padding: 40px 20px;
  text-align: center;
}

.featured-icon {
  width: 40px;
  margin-bottom: 5px;
}

.featured-header h2 {
  font-size: 24px;
  margin: 5px 0;
}

.subtitle {
  font-size: 14px;
  color: gray;
  margin-bottom: 20px;
}

.featured-line-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 30px;
}

.featured-line-tabs hr {
  flex: 1;
  border: none;
  border-top: 1px solid #aaa;
  height: 1px;
  margin: 0;
}

.featured-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 0 10px;
}

.featured-tabs .tab {
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: #333;
  transition: all 0.3s;
}

.featured-tabs .tab.active {
  border-color: black;
  font-weight: bold;
}

/* ===== PRODUCT CARDS ===== */
.product-category {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.product-card {
  width: 200px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);

  /* Kode animasi untuk kartu produk saat di-hover */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px); /* Mengangkat kartu produk 5 piksel ke atas */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Menambahkan bayangan untuk efek melayang */
}

.product-img {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.like-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  color: red;
  font-size: 16px;
}

.product-info {
  padding: 10px;
}

.product-info .name {
  font-weight: 500;
  margin: 5px 0;
  font-size: 14px;
}

.price-old {
  text-decoration: line-through;
  font-size: 13px;
  color: gray;
  margin: 0;
}

.price-now {
  color: #FFD700;
  font-weight: bold;
  margin: 4px 0;
}

.stars {
  color: gold;
  margin-bottom: 8px;
}

.add-btn {
  background-color: #FFD700;
  color: black;
  border: none;
  width: 100%;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s, transform 0.1s ease; /* Tambahkan 'transform 0.1s ease' di sini */
}

.add-btn:hover {
  background-color: #e6be00;
}

.add-btn:active {
  transform: scale(0.95); /* Efek 'menekan' saat tombol diklik */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ===== CART STYLING ===== */
.cart-wrapper {
  position: relative;
  z-index: 1000;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #000080;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

/* === UNIVERSAL CART STYLE (UNTUK DISEMUA HALAMAN) === */
#cart-dropdown {
  position: absolute;
  top: 35px;
  right: 0;
  width: 280px;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 2000;
}

#cart-dropdown.show {
  display: block;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid #FFD700;
}

.cart-item img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item .item-info {
  flex-grow: 1;
  font-size: 12px;
  font-family: 'Poppins', sans-serif !important;
}

.remove-item {
  color: #FFD700;
  font-size: 20px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
  font-family: 'Poppins', sans-serif !important;
}

.remove-item:hover {
  color: #e6be00;
}

.cart-summary {
  background-color: #fdfaf6; /* GANTI warna bawah agar beda */
  border-top: 1px solid #000080;
  padding: 10px 12px;
  text-align: right;
}

.purchase-btn {
  margin-top: 5px;
  background: #000080;
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  display: inline-block;
  width: auto;
  text-decoration: none;
}

/* === MODAL KONFIRMASI DELETE === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  justify-content: center;
  align-items: center;

  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.modal-content {
  background-color: #fff3b0;
  padding: 20px;
  border-radius: 8px;
  width: 260px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-align: center;
}

.modal-content h4 {
  margin-bottom: 6px;
  color: #444;
}

.modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-confirm,
.btn-close {
  background-color: #000080;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* === FONT FIX AGAR KONSISTEN === */
.cart-dropdown {
  display: none;
  position: absolute;
  right: 10px;
  top: 100%;
  background: #fff8c6; /* Warna dasar dropdown */
  border: 1px solid #ddd;
  width: 250px;
  z-index: 999;
}

.cart-dropdown.show {
  display: block;
}

/* === QTY CONTROL BUTTONS === */
.qty-wrapper {
  margin-top: 6px;
  display: flex;
  justify-content: start;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 6px;
  height: 26px;
  box-sizing: border-box;
}

.qty-box button {
  background-color: #FFD700;
  border: none;
  width: 20px;
  height: 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: 'Poppins', sans-serif !important;
}

.qty-box span {
  font-size: 13px;
  min-width: 14px;
  text-align: center;
  display: inline-block;
  line-height: 1;
  font-family: 'Poppins', sans-serif !important;
}

.cart-items {
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background-color: #fff8c6; /* ← Ini dia yang tadi masih putih */
}

.add-btn.clicked {
  transform: scale(1.08);
  background-color: #ffe066;
  transition: 0.2s ease;
}

@keyframes flashColor {
  0%   { background-color: #FFD700; color: black; }
  50%  { background-color: white; color: black; }
  100% { background-color: #FFD700; color: black; }
}
.open-hours {
    color: rgb(47, 15, 134);
    font-weight: bold; /* Opsional: membuat teks lebih tebal */
}

/* --- Gaya untuk halaman about.php --- */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  font-size: 15px;
  padding: 0;
}

.main-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-title-main {
  color: #f1c40f;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 15px;
  color: #555;
}

.breadcrumb a {
  position: relative;
  text-decoration: none;
  color: #555;
  display: inline-block;
  transition: color 0.3s ease;
}

.breadcrumb a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background-color: #f1c40f;
  transition: width 0.3s ease;
}

.breadcrumb a:hover::after {
  width: 100%;
}

.about-section,
.vision-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.reverse {
  flex-direction: row-reverse;
}

.about-text, .vision-text {
  flex: 1 1 55%;
  font-size: 15px;
  color: #333;
  line-height: 1.7;
}

.about-img, .vision-img {
  flex: 1 1 40%;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.about-img img, .vision-img img {
  width: 100%;
  display: block;
}

.vision-text ul {
  padding-left: 18px;
  margin-top: 10px;
}

.vision-text ul li {
  margin-bottom: 8px;
}

.section-title {
  font-weight: bold;
  color: #f1c40f;
  font-size: 18px;
  margin-bottom: 12px;
}

.store-section {
  text-align: center;
  margin-top: 60px;
}
.store-title {
  font-size: 24px;
  font-weight: bold;
  color: #f1c40f;
  margin-bottom: 30px;
}
.store-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.store-card {
  background-color: #fff3b0;
  border: 1px solid #f1c40f;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  font-size: 13px;
  text-align: center;
  width: 230px;
}
.store-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: #f1c40f;
}
.store-card p {
  font-size: 13px;
  margin: 2px 0;
  color: #333;
}
.store-icons {
  margin-top: 10px;
}
.store-icons a {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease;
}
.store-icons a:active {
  transform: scale(0.95);
}
.store-icons i {
  font-size: 14px;
  margin-right: 5px;
}
.store-icons .fa-map-marker-alt {
  color: red;
}
.store-icons .fa-whatsapp {
  color: #25D366;
}
.whatsapp {
  font-weight: bold;
  margin-top: 5px;
  display: inline-block;
  color: #25D366;
}

.social-section {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
}
.social-title {
  font-size: 24px;
  font-weight: bold;
  color: #f1c40f;
  margin-bottom: 30px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}
.social-box {
  max-width: 300px;
  background-color: #fff3b0;
  border: 1px solid #f1c40f;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.social-box i {
  font-size: 32px;
  color: #FFD700;
  margin-bottom: 10px;
}
.social-box p {
  margin: 4px 0;
  color: #222;
  font-size: 14px;
}
.social-box a {
  color: #FFD700;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  word-break: break-word;
}
.social-box a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .main-container {
      width: 95%;
      margin: 20px auto;
      padding: 0 10px;
  }
  .about-section, .vision-section {
      flex-direction: column;
      gap: 20px;
  }
  .about-text, .vision-text, .about-img, .vision-img {
      flex: 1 1 100%;
  }
  .reverse {
      flex-direction: column;
  }
  .store-page, .social-container {
      width: 95%;
      margin: 20px auto;
      padding: 0 10px;
  }
  .social-links {
      gap: 20px;
  }
}