* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f5f5;
  color: #2d3436;
  line-height: 1.6;
}
header {
  background-color: #2B3499;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}
.cart-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50px;
  cursor: pointer;
}
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.brand-section h2 {
  margin-bottom: 1.5rem;
  color: #2B3499;
  font-size: 1.5rem;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.brand-grid button {
  padding: 1rem;
  border: 2px solid #2B3499;
  border-radius: 8px;
  background-color: white;
  color: #2B3499;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}
.brand-grid button:hover {
  background-color: #2B3499;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(43,52,153,0.2);
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
}
.modal-content {
  position: relative;
  background-color: white;
  margin: 2% auto;
  padding: 30px;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  animation: modalSlide 0.3s ease-out;
  max-height: 90vh;         /* Batas tinggi maksimal pop out */
  overflow-y: auto;         /* Jika konten melebihi, tampilkan scrollbar vertikal */
}
.modal-content h2,
.modal-content h3,
.modal-content p,
.modal-content li {
  margin-bottom: 15px;
}
.tutorial-body,
.confirm-body {
  padding: 10px 0;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}
.close:hover {
  color: #ff4757;
  transform: rotate(90deg);
}
@keyframes modalSlide {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
#tutorialModal .modal-content {
  background: linear-gradient(135deg, #2B3499, #1a216b);
  color: white;
}
#tutorialModal .close {
  color: white;
}
.product-table {
  width: 100%;
  border-collapse: collapse;
}
.product-table th,
.product-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.product-table button {
  padding: 0.5rem 1rem;
  background-color: #2B3499;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.product-table button:hover {
  background-color: #1a216b;
}
.cart-section {
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 2rem;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.clear-btn {
  background: none;
  border: none;
  color: #ff4757;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
}
.cart-items {
  margin-bottom: 1.5rem;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.checkout-section {
  margin-top: 1.5rem;
}
.subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}
.input-group {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.input-group input {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  font-size: 1rem;
}
.checkout-btn {
  width: 100%;
  padding: 1rem;
  background-color: #2B3499;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.checkout-btn:hover {
  background-color: #1a216b;
}
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  background-color: #2B3499;
  color: white;
  display: none;
  animation: slideIn 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@media (max-width: 768px) {
  .brand-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .modal-content {
    margin: 1rem;
    width: 90%;
  }
  .header-content {
    padding: 0 1rem;
  }
}
.confirm-content {
  max-width: 700px;
  background: linear-gradient(135deg, #2B3499, #1a216b);
  color: white;
  border-radius: 10px;
  padding: 30px;
}
.confirm-body {
  padding: 10px 0;
  max-height: 60vh;
  overflow-y: auto;
}
.confirm-actions {
  display: flex;
  gap: 1rem;
  padding: 15px 0 0 0;
  border-top: 1px solid rgba(255,255,255,0.5);
  justify-content: flex-end;
}
.confirm-actions button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}
.confirm-actions button:nth-child(1) {
  background: rgba(255,255,255,0.3);
  color: white;
}
.confirm-actions button:nth-child(2) {
  background: #25D366;
  color: white;
}
.confirm-actions button:nth-child(3) {
  background: #2B3499;
  color: white;
}
.highlight {
  color: #FFD700;
}
.phone-number {
  color: #25D366;
}
.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.order-table th,
.order-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
.order-table th {
  background-color: #f2f2f2;
  font-weight: bold;
  color: #000;
}
@media print {
  body * {
    visibility: hidden;
  }
  #printArea, #printArea * {
    visibility: visible;
  }
  #printArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px;
    font-size: 14px;
  }
  #printArea h2 {
    color: #000;
    margin-bottom: 15px;
  }
  #printContent table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
  }
  #printContent td, #printContent th {
    border: 1px solid #ddd;
    padding: 8px;
  }
}
