/* ============================================================
   PAVI'S LAB — cart.css
   Cart page + shared checkout step indicator
   ============================================================ */

/* ── Fixed background ── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('https://res.cloudinary.com/dhpxr9ubq/image/upload/v1748452985/bg_wqaozb.jpg')
    center / cover no-repeat;
  filter: brightness(0.18);
}

/* ── Step indicator ── */
.co-steps-bar {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 0;
  position: sticky;
  top: 70px;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.co-steps {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  gap: 0;
}

.co-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.co-step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
}

.co-step span {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.co-step.active .co-step-dot {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.45);
}

.co-step.active span,
.co-step.done span {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.co-step.done .co-step-dot {
  background: rgba(255, 0, 127, 0.25);
  border-color: var(--pink);
  color: var(--pink);
}

.co-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 8px;
  margin-bottom: 22px;
  min-width: 24px;
}

/* ── Cart main ── */
.cart-main {
  min-height: calc(100vh - 160px);
  padding: 40px 0 80px;
}

/* ── Cart layout ── */
.cart-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ── Items column ── */
.cart-items-col {
  flex: 1;
  min-width: 0;
}

.cart-heading {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-heading i { color: var(--pink); }

.cart-item-count {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 4px;
}

/* ── Single cart item card ── */
.cart-item {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.cart-item:hover { border-color: rgba(255, 255, 255, 0.14); }

.cart-item-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.cart-item-img-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.cart-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.cart-item-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-item-meta .meta-sep { opacity: 0.35; }

.cart-item-colour {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 0, 127, 0.12);
  color: var(--pink-light);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.cart-item-gift {
  font-size: 12px;
  color: rgba(255, 200, 0, 0.85);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Qty control */
.cart-qty {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.cart-qty button {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-qty button:hover { background: rgba(255, 0, 127, 0.2); }
.cart-qty button:disabled { opacity: 0.3; cursor: default; }

.cart-qty span {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-left: auto;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--pink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  padding: 0;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.cart-remove-btn:hover { opacity: 0.7; }

/* ── Price panel ── */
.cart-price-panel {
  width: 300px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 22px 20px;
  position: sticky;
  top: 160px;
}

.price-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 0;
}

.price-row span:last-child { font-weight: 600; color: #fff; }

.price-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}

.price-row-grand {
  font-size: 16px;
  font-weight: 700;
  padding: 10px 0 0;
}

.price-row-grand span { color: #fff !important; font-weight: 800 !important; }
.price-row-grand span:first-child { color: rgba(255,255,255,0.7) !important; font-weight: 700 !important; }

.price-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin: 10px 0 16px;
  text-align: center;
}

.btn-co-proceed {
  width: 100%;
  padding: 14px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-co-proceed:hover { background: var(--pink-deep); transform: translateY(-1px); }

/* ── Empty state ── */
.cart-empty-box {
  text-align: center;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cart-empty-box i {
  font-size: 72px;
  color: rgba(255, 255, 255, 0.12);
}

.cart-empty-box p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Toast ── */
.pl-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}

.pl-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pl-toast.error { border-color: rgba(255,60,60,0.4); }
.pl-toast.success { border-color: rgba(0,200,80,0.4); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .cart-layout {
    flex-direction: column;
  }

  .cart-price-panel {
    width: 100%;
    position: static;
  }

  .cart-item-img {
    width: 72px;
    height: 72px;
  }

  .co-steps-bar { top: 60px; }

  .co-step span { display: none; }

  .co-step-dot { width: 32px; height: 32px; font-size: 12px; }
}
