.cart-wrapper {
  padding: 12px;
}

.cart-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.back-btn {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
}

.cart-info {
  flex: 1;
  font-size: 14px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f7f7f7;
}

.cart-remove {
  color: #dc3545;
  cursor: pointer;
  font-size: 18px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin: 14px 0;
}

.cart-loading,
.cart-empty {
  text-align: center;
  padding: 30px;
  color: #777;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #ccc;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===============================
   FULL PAGE LOADER
================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===============================
   SPINNER RING (SMOOTH)
================================ */
.spinner-ring {
  width: 46px;
  height: 46px;
  border: 4px solid #e5e7eb;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: spinSmooth 0.9s ease-in-out infinite;
}

/* TEXT */
.loader-text {
  margin-top: 12px;
  font-size: 14px;
  color: #555;
}

/* ANIMATION */
@keyframes spinSmooth {
  to { transform: rotate(360deg); }
}

/* body cart harus relative */
.cart-body {
  position: relative;
}

/* ===============================
   BODY LOADER (CONTENT ONLY)
================================ */
.body-loader {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* spinner */
.spinner-ring {
  width: 42px;
  height: 42px;
  border: 4px solid #e5e7eb;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}
