/* keranjang.css — Exspostar Cart Page */
body {
  background: var(--wood-deepest) !important;
}
/* ===== PAGE WRAPPER ===== */
.cart-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  min-height: 100vh;
}

/* ===== PAGE HEADER ===== */
.cart-page-header {
  text-align: center;
  margin-bottom: 60px;
}

.cart-page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: #c8a96e;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.cart-page-sub {
  font-family: 'Shippori Mincho', serif;
  font-size: 11px;
  letter-spacing: 5px;
  color: rgba(200, 146, 42, 0.5);
  text-transform: uppercase;
}

/* ===== EMPTY CART ===== */
.empty-cart {
  text-align: center;
  padding: 100px 20px;
}

.empty-icon {
  width: 90px;
  height: 90px;
  border: 1px solid rgba(200, 146, 42, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.empty-icon i {
  font-size: 36px;
  color: rgba(200, 146, 42, 0.3);
}

.empty-cart h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: rgba(232, 220, 200, 0.6);
  margin-bottom: 10px;
}

.empty-cart p {
  font-size: 13px;
  color: rgba(232, 220, 200, 0.35);
  margin-bottom: 35px;
}

.btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(200, 146, 42, 0.4);
  color: #d4af37;
  padding: 12px 32px;
  font-family: 'Shippori Mincho', serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.btn-browse:hover {
  background: rgba(200, 146, 42, 0.1);
  color: #e8c97a;
}

/* ===== LAYOUT ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

/* ===== ITEMS SECTION ===== */
.cart-items-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-section-header {
  padding: 16px 24px;
  background: rgba(42, 26, 10, 0.4);
  border: 1px solid rgba(200, 146, 42, 0.08);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}

.select-all-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: 'Shippori Mincho', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(200, 146, 42, 0.6);
  text-transform: uppercase;
}

.select-all-wrap em {
  font-style: normal;
  color: rgba(200, 146, 42, 0.35);
}

/* ===== CART ITEM ===== */
.cart-item {
  display: grid;
  grid-template-columns: 32px 100px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  background: rgba(26, 16, 8, 0.6);
  border: 1px solid rgba(200, 146, 42, 0.07);
  border-top: none;
  transition: background 0.3s ease;
}

.cart-item:last-child {
  border-radius: 0 0 3px 3px;
}

.cart-item:hover {
  background: rgba(42, 26, 10, 0.7);
}

/* Checkbox */
.item-check-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #d4af37;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(200, 146, 42, 0.35);
  border-radius: 3px;
  background: rgba(10, 6, 2, 0.5);
  position: relative;
  transition: all 0.2s ease;
}

.item-checkbox:checked {
  background: rgba(200, 146, 42, 0.15);
  border-color: rgba(200, 146, 42, 0.7);
}

.item-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 1.5px solid #d4af37;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Image */
.item-img-wrap {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(200, 146, 42, 0.1);
  flex-shrink: 0;
}

.item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) saturate(0.85);
  transition: filter 0.3s ease;
}

.cart-item:hover .item-img-wrap img {
  filter: brightness(1) saturate(1);
}

/* Info */
.item-info {
  min-width: 0;
}

.item-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: #e8d5b0;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.meta-tag {
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(200, 146, 42, 0.5);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-tag i {
  font-size: 9px;
}

.item-price {
  display: none;
}
/* Controls */
.item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(200, 146, 42, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.qty-btn {
  background: rgba(42, 26, 10, 0.8);
  color: rgba(200, 146, 42, 0.7);
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: rgba(200, 146, 42, 0.15);
  color: #d4af37;
}

.qty-input {
  width: 40px;
  height: 30px;
  text-align: center;
  background: rgba(20, 12, 4, 0.6);
  color: #e8d5b0;
  border: none;
  border-left: 1px solid rgba(200, 146, 42, 0.15);
  border-right: 1px solid rgba(200, 146, 42, 0.15);
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
}

.item-subtotal {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: rgba(200, 146, 42, 0.7);
  letter-spacing: 0.5px;
}

.btn-remove {
  background: transparent;
  border: 1px solid rgba(200, 80, 80, 0.2);
  color: rgba(200, 80, 80, 0.4);
  width: 30px;
  height: 30px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-remove:hover {
  border-color: rgba(220, 80, 80, 0.6);
  color: rgba(220, 80, 80, 0.8);
  background: rgba(220, 80, 80, 0.06);
}

/* ===== ORDER SUMMARY ===== */
.order-summary {
  background: rgba(26, 16, 8, 0.7);
  border: 1px solid rgba(200, 146, 42, 0.1);
  border-radius: 3px;
  padding: 32px 28px;
  position: sticky;
  top: 100px;
}

.summary-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: #c8a96e;
  letter-spacing: 2px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.1);
}

/* Form elements */
.form-block {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(200, 146, 42, 0.5);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(10, 6, 2, 0.5);
  border: 1px solid rgba(200, 146, 42, 0.15);
  border-radius: 2px;
  color: #e8d5b0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: rgba(200, 146, 42, 0.45);
  background: rgba(20, 12, 4, 0.7);
}

.form-input::placeholder {
  color: rgba(232, 220, 200, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: 'Poppins', sans-serif;
}

.form-error {
  display: none;
  font-size: 11px;
  color: rgba(220, 80, 80, 0.7);
  margin-top: 5px;
  letter-spacing: 0.5px;
}

.summary-divider {
  height: 1px;
  background: rgba(200, 146, 42, 0.08);
  margin: 20px 0;
}

/* Price rows */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(232, 220, 200, 0.5);
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.price-row em {
  font-style: normal;
  color: rgba(200, 146, 42, 0.4);
  font-size: 11px;
}

.included-label {
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(80, 180, 80, 0.6);
  text-transform: uppercase;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: #d4af37;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

/* Payment */
.payment-block {
  margin-bottom: 24px;
}

.payment-label {
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(200, 146, 42, 0.5);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.payment-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(10, 6, 2, 0.4);
  border: 1px solid rgba(200, 146, 42, 0.15);
  border-radius: 2px;
  color: rgba(232, 220, 200, 0.6);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-opt .check-icon {
  margin-left: auto;
  color: #d4af37;
  font-size: 12px;
}

.payment-opt.active {
  border-color: rgba(200, 146, 42, 0.45);
  background: rgba(200, 146, 42, 0.06);
  color: #e8d5b0;
}

/* Checkout button */
.btn-checkout {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #c8922a, #d4af37);
  color: #1a1008;
  border: none;
  border-radius: 2px;
  font-family: 'Shippori Mincho', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-checkout:hover:not(:disabled) {
  background: linear-gradient(135deg, #d4af37, #e8c97a);
  box-shadow: 0 4px 20px rgba(200, 146, 42, 0.25);
}

.btn-checkout:disabled {
  background: rgba(50, 40, 25, 0.6);
  color: rgba(200, 146, 42, 0.25);
  cursor: not-allowed;
}

.checkout-note {
  text-align: center;
  font-size: 11px;
  color: rgba(232, 220, 200, 0.2);
  margin-top: 12px;
  letter-spacing: 0.5px;
  font-family: 'Shippori Mincho', serif;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 2, 0.7);
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20000;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: linear-gradient(145deg, #2e1c0e, #1c1c1c);
  border: 1px solid rgba(200, 146, 42, 0.15);
  border-radius: 4px;
  padding: 40px;
  width: 90%;
  max-width: 460px;
  position: relative;
  color: #e8d5b0;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(200, 146, 42, 0.4);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px;
}

.modal-close:hover {
  color: #d4af37;
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: #c8a96e;
  letter-spacing: 2px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.1);
}

/* QRIS */
.qris-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border: 1px solid rgba(200, 146, 42, 0.15);
  border-radius: 4px;
}

.qris-total {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: #d4af37;
  margin-bottom: 10px;
}

.qris-note {
  text-align: center;
  font-size: 12px;
  color: rgba(232, 220, 200, 0.35);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Save button */
.btn-save {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #c8922a, #d4af37);
  color: #1a1008;
  border: none;
  border-radius: 2px;
  font-family: 'Shippori Mincho', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-save:hover {
  background: linear-gradient(135deg, #d4af37, #e8c97a);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .order-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-wrapper {
    padding: 100px 16px 60px;
  }
  .cart-page-title {
    font-size: 36px;
  }

  .cart-item {
    grid-template-columns: 28px 80px 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
  }

  .item-controls {
    grid-column: 2 / 4;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
/* Hilangkan spinner native input number */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
  width: 60px;
}

/* Select box dark theme — edit popup */
.modal-box select.form-input {
  background: rgba(10, 6, 2, 0.85);
  color: #e8d5b0;
  border: 1px solid rgba(200, 146, 42, 0.2);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c8922a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.modal-box select.form-input option {
  background: #1a1008;
  color: #e8d5b0;
}

.modal-box select.form-input:focus {
  border-color: rgba(200, 146, 42, 0.5);
  outline: none;
}
/* ===== PAYMENT SUMMARY ===== */
.payment-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.pm-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(200, 146, 42, 0.06);
  border: 1px solid rgba(200, 146, 42, 0.18);
  border-radius: 2px;
  font-family: 'Shippori Mincho', serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(232, 220, 200, 0.7);
}

.pm-summary-item i {
  font-size: 13px;
  color: #d4af37;
  width: 16px;
}

.pm-empty {
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(200, 146, 42, 0.3);
  text-transform: uppercase;
}
/* ===== ORDER INFO BLOCK ===== */
.order-info-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(200, 146, 42, 0.5);
  margin-bottom: 12px;
}

.order-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-info-card {
  background: rgba(10, 6, 2, 0.4);
  border: 1px solid rgba(200, 146, 42, 0.1);
  border-radius: 2px;
  padding: 14px 16px;
}

.oi-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: #c8a96e;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.07);
}

.oi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 11px;
}

.oi-row span:first-child {
  font-family: 'Shippori Mincho', serif;
  letter-spacing: 1px;
  color: rgba(200, 146, 42, 0.4);
  text-transform: uppercase;
  font-size: 9px;
}

.oi-row span:last-child {
  color: rgba(232, 220, 200, 0.7);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
}
.cart-item {
  cursor: pointer;
}
