/* =========================
   MCX CART (ISOLATED)
========================= */

#mcx-cart {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

#mcx-cart.open {
  pointer-events: auto;
}

.mcx-cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0;
  transition: .3s;
}

#mcx-cart.open .mcx-cart-overlay {
  opacity: 1;
}

.mcx-cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: 380px;
  height: 100%;
  background: #0a0a0a !important;
  color: #fff9f0 !important;
  transform: translateX(100%);
  transition: .35s ease;
  display: flex;
  flex-direction: column;
}

#mcx-cart.open .mcx-cart-panel {
  transform: translateX(0);
}

/* Header / Footer */
.mcx-cart-header,
.mcx-cart-footer {
  padding: 16px;
  border-bottom: 1px solid #1a1a1a;
}

.mcx-cart-footer {
  border-top: 1px solid #1a1a1a;
}

/* Body */
.mcx-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

/* Item */
.mcx-cart-item {
  border-bottom: 1px solid #1a1a1a;
  padding: 12px 0;
}

.mcx-cart-item-top {
  display: flex;
  gap: 12px;
}

.mcx-cart-item img {
  width: 56px;
  height: 56px;
}

.mcx-cart-item-title {
  color: #ffeeca !important;
}

.mcx-cart-item-price {
  color: #be974b !important;
}

/* Actions */
.mcx-cart-item-bottom {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mcx-cart-qty {
  width: 60px;
}

.mcx-update-qty {
  background: #cfac69 !important;
}

.mcx-remove-item {
  margin-left: auto;
  background: none;
  color: #fff9f0 !important;
}

/* Icon */
.mcx-cart-icon {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #0a0a0a;
  color: #fff9f0;
  border-radius: 50%;
  padding: 14px;
  z-index: 10000;
}

.mcx-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #be974b;
  color: #000;
}
/* =========================
       CHECKOUT POPUP
    ========================= */
    
    #checkout-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      display: none; /* CRITICAL */
      z-index: 10000;
    }
    
    #checkout-overlay.show {
      display: block;
    }
    
    #checkout-popup {
      background: #fff;
      max-width: 420px;
      display: none;
      width: 90%;
      margin: 10% auto;
      padding: 24px;
      border-radius: 12px;
      position: relative;
    }
    
    /* Close button */
    #checkout-popup .close {
      position: absolute;
      top: 12px;
      right: 12px;
      background: none;
      border: none;
      font-size: 22px;
      cursor: pointer;
    }
    
    /* Inputs */
    #checkout-form input {
      width: 100%;
      padding: 10px;
      margin-bottom: 12px;
      border-radius: 6px;
      border: 1px solid #ddd;
    }
    
    /* Submit */
    #checkout-form button {
      width: 100%;
      padding: 12px;
      background: #111;
      color: #fff;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }
    
    /* Loading */
    #checkout-form.loading {
      opacity: 0.6;
      pointer-events: none;
    }
    
    /* Success */
    #checkout-success {
      text-align: center;
    }