/* css/order.css */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  padding: 0px;
  color: #333;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}
.form-container {
  max-width: 650px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h2, h3 {
  text-align: center;
  color: #5D4037;
  margin-bottom: 20px;
}
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.product-item {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: all 0.3s ease;
}
.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.product-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
}
.product-name {
  margin: 10px 0 5px;
  font-weight: bold;
  color: #5D4037;
  font-size: 16px;
}
.product-price {
  margin: 5px 0;
  color: #8D6E63;
  font-size: 14px;
  font-weight: bold;
}
.product-desc {
  color: #757575;
  font-size: 12px;
  margin-bottom: 10px;
  min-height: 36px;
}
.quantity-btn {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.quantity-btn button {
  background-color: #8D6E63;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  font-size: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quantity-btn button:hover {
  background-color: #6D4C41;
  transform: scale(1.1);
}
.quantity-btn span {
  min-width: 20px;
  text-align: center;
}
.cart-container {
  margin-top: 30px;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
  align-items: center;
}
.cart-item button {
  background-color: #D32F2F;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.3s;
}
.cart-item button:hover {
  background-color: #B71C1C;
}
button.submit-btn {
  width: 100%;
  background-color: #388E3C;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
  font-weight: bold;
}
button.submit-btn:hover {
  background-color: #2E7D32;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
button.submit-btn:active {
  transform: translateY(0);
}
input[type="text"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
  transition: border 0.3s;
}
input[type="text"]:focus {
  border-color: #8D6E63;
  outline: none;
}
label {
  font-weight: bold;
  margin-top: 15px;
  display: block;
  color: #5D4037;
}
.back-home-container {
  text-align: center;
  margin: 30px 0 20px;
}

.back-home-btn {
  color: #007BFF; /* Warna biru seperti link */
  text-decoration: none;
  font-size: 16px;
  font-weight: normal;
  background: none;
  padding: 0;
  border: none;
  display: inline;
  transition: color 0.3s;
}

.back-home-btn:hover {
  color: #0056b3; /* Biru lebih gelap saat hover */
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-top: 40px;
  padding-bottom: 20px;
}
#manualAddress {
  display: none;
  margin-top: 10px;
}
#addressPicker {
  width: 100%;
  padding: 12px;
  margin: 8px 0 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}
.empty-cart {
  text-align: center;
  color: #757575;
  font-style: italic;
  padding: 15px 0;
}
.price-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}
.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.price-label {
  color: #616161;
}
.price-value {
  font-weight: bold;
}
.total-row {
  font-size: 18px;
  color: #5D4037;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #aaa;
}
#deliveryInfo {
  margin-top: 10px;
  padding: 10px;
  background: #E8F5E9;
  border-radius: 6px;
  font-size: 14px;
  display: none;
}
#loading {
  display: none;
  text-align: center;
  padding: 10px;
  color: #5D4037;
}
#mapContainer {
  height: 300px;
  margin: 15px 0;
  border-radius: 8px;
  overflow: hidden;
  display: none;
  border: 1px solid #ddd;
}
#map {
  height: 100%;
  width: 100%;
}
.map-toggle {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 5px;
}
.map-toggle button {
  background: #8D6E63;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.map-toggle button:hover {
  background: #6D4C41;
}
.bali-only-notice {
  font-size: 12px;
  color: #757575;
  text-align: left;
  margin-top: -15px;
  margin-bottom: 15px;
  font-style: italic;
}
.error-message {
  color: #D32F2F;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 15px;
  display: none;
}
@media (max-width: 600px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom */
    gap: 12px; /* opsional: beri jarak antar kolom */
  }

  .product-item img {
    height: auto;
    width: 100%;
    border-radius: 6px;
  }
}