/* ================================
   GLOBAL / iOS STYLE BASE
================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0 auto;
  max-width: 1100px;
  padding: 16px;
  background: #f6f7fb; /* pastel cool */
  color: #222;
}

/* ================================
   HEADER
================================ */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

/* CART LINK + BADGE */
.cart-link {
  position: fixed;
  top: 14px;
  right: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #000;
}

#cart-count {
  background: #ff3b30; /* iOS red */
  color: #fff;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 12px;
  margin-left: 4px;
}

/* ================================
   SEARCH
================================ */
.search-bar {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 14px;
}

/* ================================
   CATEGORY FILTER
================================ */
.category-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 4px;
}

.category-filter button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #ffffff;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.category-filter button.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ================================
   PRODUCT GRID
================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

/* ================================
   PRODUCT CARD (iOS STYLE)
================================ */
.product,
.product-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product:hover,
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* PRODUCT IMAGE */
.product img,
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
}

/* PRODUCT TEXT */
.product h3,
.product-name {
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0 2px;
}

.price-line,
.product-price {
  font-size: 14px;
  color: #444;
}

/* ================================
   QTY CONTROL
================================ */
.qty-info {
  font-size: 13px;
  color: #666;
}

.qty-control {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

.qty-number {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

/* ================================
   BUTTONS
================================ */
button {
  background: #ffffff !important;
  color: #111 !important;
  border: 1px solid #ddd !important;
}
button:hover {
  background: #f2f2f2;
}


/* ================================
   STORE INFO
================================ */
.store-info {
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.store-desc {
  margin-bottom: 8px;
}

.store-address a {
  color: #1a73e8;
  text-decoration: none;
}

/* HALAL BADGE */
.badge-halal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
}

.badge-halal img {
  width: 36px;
}

.badge-halal span {
  font-weight: 600;
  color: #0a8f3c;
  font-size: 14px;
}

/* ================================
   CART PAGE
================================ */
.cart-item {
  margin-bottom: 12px;
}

/* ================================
   FOOTER
================================ */
.site-footer {
  margin-top: 40px;
  padding: 16px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.site-footer .disclaimer {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}

/* ================================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product img,
  .product-card img {
    height: 160px;
  }
}


.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
/* =================================
   FIX UI ISSUE – FINAL PATCH
   (PASTE DI PALING BAWAH CSS)
================================= */

/* 1️⃣ REMOVE FREEZE / STICKY HEADER */
header {
  position: static !important;
  box-shadow: none !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
}

/* 2️⃣ GLOBAL BUTTON → PUTIH & READABLE */
button {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #dddddd !important;
  font-weight: 500;
}

button:hover {
  background: #f2f2f2 !important;
}

/* 3️⃣ CATEGORY FILTER – KELIATAN JELAS */
.category-filter button {
  background: #ffffff !important;
  color: #111 !important;
  border: 1px solid #dddddd !important;
  border-radius: 999px;
}

.category-filter button.active {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}

/* 4️⃣ LANGUAGE SWITCH (ID / JP) */
.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button {
  background: #ffffff !important;
  color: #111 !important;
  border: 1px solid #cccccc !important;
  font-weight: 600;
}

/* 5️⃣ STORE INFO & TEXT VISIBILITY FIX */
.store-info,
.store-desc,
.store-address,
.site-footer,
.site-footer .disclaimer {
  color: #222222 !important;
}

/* 6️⃣ HALAL BADGE VISIBILITY */
.badge-halal span {
  color: #0a8f3c !important;
  font-weight: 700;
}

/* 7️⃣ PRODUCT TEXT BIAR GA TENGGELAM */
.product h3,
.product-name {
  color: #111111 !important;
}

.price-line,
.product-price,
.qty-info {
  color: #444444 !important;
}

/* 8️⃣ CART BADGE TETAP KONTRAS */
#cart-count {
  background: #ff3b30 !important;
  color: #ffffff !important;
}

/* 9️⃣ MOBILE COMPACT FEEL */
@media (max-width: 480px) {
  header {
    padding: 10px 12px !important;
  }
}


/* HIDE LANGUAGE TOGGLE (ID / JP) */
.lang-switch {
  display: none !important;
}

/* =================================
   CART PAGE – iOS STYLE POLISH
================================= */

/* CART CONTAINER */
.cart-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  margin-top: 12px;
}

/* CART ITEM */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
}

.cart-item:last-child {
  border-bottom: none;
}

/* ITEM NAME */
.cart-item h4,
.cart-item .item-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: #111;
}

/* PRICE LINE */
.price-line {
  font-size: 14px;
  color: #444;
  margin-top: 4px;
}

/* QTY CONTROL (reuse catalog style) */
.cart-item .qty-control {
  gap: 10px;
}

.cart-item .qty-control button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dddddd;
  font-size: 18px;
}

/* TOTAL SECTION */
.cart-total {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #ddd;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

/* ACTION BUTTONS */
.cart-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-actions button,
.cart-actions a {
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
}

/* PRIMARY (CHECKOUT / WHATSAPP) */
.cart-actions .btn-primary {
  background: #111 !important;
  color: #fff !important;
}

/* SECONDARY */
.cart-actions .btn-secondary {
  background: #ffffff !important;
  color: #111 !important;
  border: 1px solid #ddd !important;
}

/* BACK LINK */
.back-link {
  display: inline-block;
  margin-bottom: 14px;
  text-decoration: none;
  font-weight: 600;
  color: #111;
}

/* EMPTY CART */
.empty-cart {
  text-align: center;
  padding: 40px 16px;
  color: #555;
  font-size: 15px;
}

/* MOBILE TUNING */
@media (max-width: 480px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cart-total {
    text-align: left;
  }
}


/* =========================
   SHIPPING / DELIVERY FORM
========================= */

.shipping-form label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: block;
}

.shipping-form input,
.shipping-form textarea,
.shipping-form select {
  width: 100%;
  font-size: 16px;          /* 👈 standar iOS */
  padding: 14px 16px;       /* 👈 lebih tinggi & nyaman */
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.shipping-form textarea {
  min-height: 90px;
  resize: vertical;
}

.shipping-form input:focus,
.shipping-form textarea:focus,
.shipping-form select:focus {
  outline: none;
  border-color: #7c9cff;
  box-shadow: 0 0 0 3px rgba(124,156,255,0.15);
}

/* SECTION TITLE */
.shipping-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #222;
}

/* MOBILE BOOST */
@media (max-width: 600px) {
  .shipping-form input,
  .shipping-form textarea {
    font-size: 17px; /* 👈 biar ga auto-zoom iOS */
  }
}

/* ===== CART FORM IMPROVEMENT ===== */

.shipping-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.shipping-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shipping-form label {
  font-size: 14px;
  color: #444;
}

.shipping-form input,
.shipping-form textarea,
.shipping-form select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.shipping-form textarea {
  resize: vertical;
}

.btn-primary {
  margin-top: 10px;
  padding: 14px;
  font-size: 16px;
  background: #000;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* TOTAL */
.cart-total {
  margin-top: 16px;
  font-size: 18px;
  font-weight: bold;
}

/* ===== CONFIRM PAGE ===== */

.confirm-container {
  max-width: 520px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.confirm-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.confirm-subtitle {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.confirm-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 16px;
  text-align: left;
}

.confirm-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.order-summary {
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.customer-info p {
  margin: 6px 0;
  font-size: 14px;
}

.btn-wa {
  display: block;
  margin: 20px 0 12px;
  padding: 14px;
  background: #25D366;
  color: white;
  font-size: 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

.btn-wa:hover {
  opacity: 0.9;
}

.btn-secondary {
  display: inline-block;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}
.order-id {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}
/* MAIN BANNER */
.main-banner {
  width: 100%;
  max-width: 1100px;
  margin: 12px auto 20px;
  border-radius: 14px;
  overflow: hidden;
}

.main-banner img {
  width: 100%;
  height: auto;
  display: block;
}
/* ===== FOOTER POPUP BANNER ===== */

.footer-popup {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 520px;
  background: white;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 999;
  animation: slideUpPopup 0.6s ease forwards;
  animation-delay: 1.5s;
}

.footer-popup img {
  width: 100%;
  display: block;
}

/* CLOSE BUTTON */
.popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 22px;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ANIMATION */
@keyframes slideUpPopup {
  from {
    bottom: -200px;
  }
  to {
    bottom: 0;
  }
}

/* HIDE WHEN CLOSED */
.footer-popup.hide {
  display: none;
}
/* ===== CENTER BOTTOM BANNER ===== */

.bottom-banners {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.bottom-banners img {
  width: 100%;
  max-width: 520px;   /* aman utk mobile & desktop */
  border-radius: 14px;
}
/* ================= FOOTER ================= */
.site-footer {
  background: #14532d; /* hijau halal gelap */
  color: #f0fdf4;      /* putih kehijauan kontras */
  margin-top: 40px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #ecfeff; /* hampir putih */
}

.footer-col p {
  margin: 6px 0;
  line-height: 1.6;
  color: #dcfce7; /* teks jelas */
}

.site-footer a {
  color: #a7f3d0; /* link hijau terang */
  font-weight: 500;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  background: #064e3b; /* hijau lebih gelap */
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: #f0fdf4;
}
