/* ============================================================
   Frugivore Cart — Premium 2025 overlay (desktop, non-empty)
   Visual-only elevation over my-cart.css. Loaded AFTER it, scoped to
   .cartPage2025--elevated. NO layout/DOM/JS-hook changes — only colour,
   depth, gradient and motion, so every cart feature keeps working.
   ============================================================ */

/* ---- Ambient page canvas: soft mesh instead of flat cream ---- */
.mainContent.cartPage2025--elevated {
  background:
    radial-gradient(58% 42% at 10% -4%, rgba(31, 61, 46, 0.07), transparent 62%),
    radial-gradient(46% 34% at 102% 6%, rgba(212, 166, 75, 0.12), transparent 60%),
    radial-gradient(40% 40% at 50% 108%, rgba(240, 138, 58, 0.05), transparent 72%),
    var(--ct-cream, #f5f1e8) !important;
}

/* ---- Hero: gradient headline + animated spark eyebrow ---- */
.cartPage2025--elevated .ct-page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
}
.cartPage2025--elevated .ct-page-eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ct-gold); box-shadow: 0 0 0 0 rgba(212, 166, 75, 0.55);
  animation: ctPulse 2.4s ease-out infinite;
}
.cartPage2025--elevated .ct-page-title {
  color: var(--ct-green);
  background: linear-gradient(118deg, var(--ct-green-3) 0%, var(--ct-green) 52%, #2c5141 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cartPage2025--elevated .ct-page-title em {
  color: var(--ct-gold); -webkit-text-fill-color: var(--ct-gold);
}
.cartPage2025--elevated .ct-page-sub { color: var(--ct-muted); }

/* ---- Trust pills: glassmorphism ---- */
.cartPage2025--elevated .ct-trust-pill {
  background: rgba(255, 255, 255, 0.55) !important;
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 8px 22px rgba(20, 40, 30, 0.07) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
.cartPage2025--elevated .ct-trust-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(20, 40, 30, 0.13) !important;
}

/* ---- Section titles ---- */
.cartPage2025--elevated .ct-section-title { letter-spacing: -0.5px; }

/* ---- Item cards: staggered entrance + gold hover accent ---- */
.cartPage2025--elevated .ct-item {
  position: relative; overflow: hidden;
  animation: ctRise .5s cubic-bezier(.2, .8, .2, 1) both;
}
.cartPage2025--elevated .ct-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--ct-gold), var(--ct-orange));
  transform: scaleY(0); transform-origin: top; transition: transform .28s ease;
  pointer-events: none;
}
.cartPage2025--elevated .ct-item:hover::before { transform: scaleY(1); }
.cartPage2025--elevated .ct-items-list .ct-item:nth-child(1) { animation-delay: .02s; }
.cartPage2025--elevated .ct-items-list .ct-item:nth-child(2) { animation-delay: .07s; }
.cartPage2025--elevated .ct-items-list .ct-item:nth-child(3) { animation-delay: .12s; }
.cartPage2025--elevated .ct-items-list .ct-item:nth-child(4) { animation-delay: .17s; }
.cartPage2025--elevated .ct-items-list .ct-item:nth-child(5) { animation-delay: .22s; }
.cartPage2025--elevated .ct-items-list .ct-item:nth-child(n+6) { animation-delay: .26s; }

/* ---- Sticky summary: premium card with gradient top rail ---- */
.cartPage2025--elevated .ct-summary-card {
  box-shadow: 0 26px 64px rgba(20, 40, 30, 0.13) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  position: relative;
}
.cartPage2025--elevated .ct-summary-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--ct-green) 0%, var(--ct-gold) 55%, var(--ct-orange) 100%);
}
.cartPage2025--elevated .ct-summary-total {
  border-top: 1px dashed var(--ct-line);
}
.cartPage2025--elevated .ct-summary-total .col-2 {
  font-family: var(--ct-serif); font-size: 24px !important; color: var(--ct-green-3) !important;
}
.cartPage2025--elevated #bill-saved { color: #2d6a30 !important; font-weight: 800; }

/* ---- ETA / delivery card: gentle living glow ---- */
.cartPage2025--elevated .ct-eta-card::after { animation: ctGlow 6s ease-in-out infinite; }

/* ---- Checkout CTA: the centrepiece ---- */
.cartPage2025--elevated .checkoutBoxFooter {
  position: relative; overflow: hidden; border: 0 !important;
  letter-spacing: 0.3px;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
/* Green gradient for the standard checkout; the express button keeps its
   distinct gold/orange urgency (only gains the shine + lift below). */
.cartPage2025--elevated .checkoutBoxFooter:not(.ct-checkout-btn--express) {
  background: linear-gradient(120deg, var(--ct-green-3) 0%, var(--ct-green) 46%, var(--ct-green-2) 100%) !important;
  box-shadow: 0 16px 34px rgba(31, 61, 46, 0.30) !important;
}
.cartPage2025--elevated .checkoutBoxFooter::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: ctShine 4.6s ease-in-out infinite;
}
.cartPage2025--elevated .checkoutBoxFooter:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(31, 61, 46, 0.40) !important;
}
.cartPage2025--elevated .checkoutBoxFooter:active { transform: translateY(0); }

/* ---- Address / message cards: soft polish ---- */
.cartPage2025--elevated .ct-msg-card {
  background: linear-gradient(135deg, #ffffff 0%, #f6f8f1 120%) !important;
  border-left: 3px solid var(--ct-gold) !important;
}
.cartPage2025--elevated .ct-address-card { transition: box-shadow .2s ease; }
.cartPage2025--elevated .ct-address-card:hover { box-shadow: 0 20px 40px rgba(20, 40, 30, 0.12) !important; }

/* ---- Express-cart header: "instant / live" identity ---- */
.cartPage2025--elevated .ct-eyebrow--orange {
  display: inline-flex !important; align-items: center; gap: 7px;
  color: var(--ct-orange) !important;
}
.cartPage2025--elevated .ct-eyebrow--orange::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ct-orange);
  animation: ctPulseOrange 1.8s ease-out infinite;
}
.cartPage2025--elevated .ct-eyebrow--orange + .ct-section-title em { color: var(--ct-orange); }
.cartPage2025--elevated .ct-eyebrow--orange + .ct-section-title::after,
.cartPage2025--elevated .ct-section-head:has(.ct-eyebrow--orange)::after {
  background: linear-gradient(90deg, var(--ct-orange) 0%, var(--ct-gold) 100%);
}

/* ---- Delivery-slot picker: premium polish (cart page only, JS-safe) ---- */
.cartPage2025--elevated .deliverySlotInfo { margin-top: 6px; }
.cartPage2025--elevated .order-review-ul label {
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cartPage2025--elevated .order-review-ul input[type="radio"]:checked + label,
.cartPage2025--elevated .order-review-ul .Checked + label {
  background: linear-gradient(135deg, var(--ct-green) 0%, var(--ct-green-2) 100%) !important;
  border-color: var(--ct-green) !important;
  color: #fff !important;
}
.cartPage2025--elevated .time-container {
  border: 1px solid var(--ct-line) !important;
  border-top-left-radius: 16px; border-top-right-radius: 16px;
  box-shadow: 0 10px 26px rgba(20, 40, 30, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf4 100%);
  overflow: hidden;
}
.cartPage2025--elevated .time-div {
  border-bottom: 1px dashed var(--ct-line) !important;
  transition: background .15s ease;
}
.cartPage2025--elevated .time-div:hover { background: #f6f8f1; }
.cartPage2025--elevated .radio-design2 { font-weight: 600; }

/* ---- Keyframes ---- */
@keyframes ctRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ctPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 166, 75, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(212, 166, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 166, 75, 0); }
}
@keyframes ctPulseOrange {
  0% { box-shadow: 0 0 0 0 rgba(240, 138, 58, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(240, 138, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 138, 58, 0); }
}
@keyframes ctShine { 0% { left: -60%; } 58%, 100% { left: 130%; } }
@keyframes ctGlow { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ---- Respect reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  .cartPage2025--elevated .ct-item,
  .cartPage2025--elevated .ct-page-eyebrow::before,
  .cartPage2025--elevated .ct-eyebrow--orange::before,
  .cartPage2025--elevated .ct-eta-card::after,
  .cartPage2025--elevated .checkoutBoxFooter::after {
    animation: none !important;
  }
  .cartPage2025--elevated .ct-item { opacity: 1; transform: none; }
}
