* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #0f172a;
  color: #f8fafc;
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 800px;
}

/* NAVBAR */
.navbar {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1e293b;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.logo-image {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-order {
  background: #3b82f6;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.nav-order:hover {
  background: #2563eb;
}

/* HERO */
.hero {
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-copy h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin: 15px 0;
}

.hero-copy h1 span {
  color: #38bdf8;
}

.hero-text {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.btn-secondary {
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.trust-row {
  display: flex;
  gap: 20px;
  color: #64748b;
  font-size: 0.9rem;
}

.book-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 260px;
  height: 380px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #334155;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.book-top { font-weight: 700; letter-spacing: 2px; font-size: 0.8rem; }
.book-title { font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.book-subtitle { color: #38bdf8; font-weight: 700; }
.book-line { height: 2px; background: #334155; width: 100%; }
.book-bottom { font-size: 0.65rem; color: #94a3b8; letter-spacing: 0.5px; }

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section.light {
  background: #1e293b;
}

.section-label {
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2rem;
  margin-top: 10px;
}

.section-subtitle {
  color: #94a3b8;
  margin-bottom: 40px;
}

/* KATALOG PRODUK GRID (3 - 3 - 1) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.product-card:last-child {
  grid-column: 2 / 3;
}

.product-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #3b82f6;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

.product-img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #1e293b;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-info p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 20px;
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1e293b;
  padding-top: 15px;
}

.product-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: #38bdf8;
}

.stock-status {
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-select-product {
  background: #334155;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-select-product:hover {
  background: #3b82f6;
}

/* ORDER SECTION & MULTI-PRODUCT FORM */
.order-section {
  padding: 80px 0;
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.price-box {
  background: #1e293b;
  padding: 24px;
  border-radius: 12px;
  margin-top: 25px;
  border-left: 4px solid #3b82f6;
}

.summary-details span {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 600;
}

.summary-list {
  margin: 10px 0;
  font-size: 0.95rem;
  color: #f8fafc;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.shipping-info {
  font-size: 0.88rem;
  color: #38bdf8;
  margin-top: 8px;
  font-weight: 600;
}

.summary-divider {
  border: 0;
  height: 1px;
  background: #334155;
  margin: 15px 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-row span {
  font-size: 1rem;
  color: #cbd5e1;
}

.total-row strong {
  font-size: 1.8rem;
  color: #38bdf8;
}

/* DESAIN TERBARU DARI CHECKBOX PRODUK (TANPA SCROLLBAR) */
.order-card {
  background: #1e293b;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-title-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  margin-top: 5px;
}

/* Tanpa scrollbar: overflow dihapus & tinggi otomatis */
.product-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  padding: 0;
}

.product-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  background: #0f172a;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  transition: border-color 0.2s, background-color 0.2s;
}

.product-item-card:hover {
  border-color: #38bdf8;
}

.product-item-card.selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.checkbox-label.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Sembunyikan Checkbox Bawaan Browser */
.product-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Custom Checkbox Box */
.custom-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background-color: #1e293b;
  border: 2px solid #475569;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

/* Checkbox State Checked */
.checkbox-label input:checked ~ .custom-checkbox {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.custom-checkbox:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .custom-checkbox:after {
  display: block;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
}

.product-name-text {
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-text {
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
}

.product-qty {
  width: 50px !important;
  flex: 0 0 50px;
  padding: 6px 4px !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  text-align: center;
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #fff !important;
  border-radius: 6px;
}

.product-qty:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-divider {
  border: 0;
  height: 1px;
  background: #334155;
  margin: 10px 0;
}

.order-card label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.order-card input[type="text"],
.order-card input[type="tel"],
.order-card select,
.order-card textarea {
  width: 100%;
  padding: 10px 14px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #fff;
  font-size: 0.95rem;
}

.order-card input:focus,
.order-card select:focus,
.order-card textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.submit-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #2563eb;
}

.privacy {
  color: #64748b;
  font-size: 0.75rem;
  text-align: center;
}

/* FOOTER */
footer {
  border-top: 1px solid #1e293b;
  padding: 30px 0;
  color: #64748b;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-grid,
  .order-grid,
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-card:last-child {
    grid-column: auto;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .trust-row {
    flex-wrap: wrap;
  }

  .hero-copy,
  .order-info,
  .order-card {
    min-width: 0;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 10px 20px;
  }
}
/* POP-UP MODAL KONFIRMASI CS */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(5px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: #1e293b;
  border: 1px solid #334155;
  padding: 35px 25px;
  border-radius: 14px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-icon {
  width: 70px;
  height: 70px;
  background-color: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 18px;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.modal-content h2 {
  font-size: 1.5rem;
  color: #f8fafc;
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-alert-box {
  background-color: rgba(56, 189, 248, 0.1);
  border-left: 4px solid #38bdf8;
  padding: 14px;
  border-radius: 8px;
  text-align: left;
  margin-bottom: 25px;
}

.modal-alert-box p {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 0;
}

.modal-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

.modal-btn:hover {
  background-color: #2563eb;
}

/* STYLING POP-UP MODAL SUKSES */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex !important;
}

.modal-content {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 32px 28px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  color: #f8fafc;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.modal-content h3 {
  margin-bottom: 12px;
  font-size: 22px;
  color: #38bdf8;
}

.modal-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 24px;
}

.close-btn {
  background: #0284c7;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  width: 100%;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: #0369a1;
}