/* Cart page — glass layout (loaded after glass-refine.css) */
html body .ct-root { max-width: 1160px; margin: 0 auto !important; padding: 8px 24px 40px !important; background: none !important; box-shadow: none !important; min-height: 420px; box-sizing: border-box; }
.ct-loading { text-align: center; padding: 90px 20px; color: #5b5075; }
.ct-loading i { font-size: 34px; color: #7c3aed; margin-bottom: 14px; display: block; }

.ct-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.ct-main, .ct-summary {
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.85); border-radius: 28px;
  box-shadow: 0 14px 40px rgba(76,29,149,.1), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.ct-main { padding: 24px; }
.ct-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ct-head h2 { margin: 0; font-family: 'Outfit','Poppins',sans-serif; font-size: 26px; font-weight: 800; color: #1e1b4b; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ct-head h2 span { font-size: 13px; font-weight: 700; color: #6d28d9; background: rgba(124,58,237,.1); padding: 5px 12px; border-radius: 999px; font-family: inherit; }
.ct-clear { border: 0; background: rgba(239,68,68,.08); color: #dc2626; font-weight: 600; font-size: 13px; padding: 9px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.ct-clear:hover { background: rgba(239,68,68,.16); }

.ct-list { display: flex; flex-direction: column; gap: 12px; }
.ct-item {
  display: grid; grid-template-columns: 72px minmax(0,1fr) auto 96px 40px; gap: 16px; align-items: center; padding: 14px;
  background: rgba(255,255,255,.75); border: 1px solid rgba(124,58,237,.1); border-radius: 20px; transition: box-shadow .2s, transform .2s;
}
.ct-item:hover { box-shadow: 0 10px 26px rgba(76,29,149,.1); transform: translateY(-1px); }
.ct-thumb { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; background: #f3effc; display: grid; place-items: center; color: #a78bfa; font-size: 24px; }
.ct-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-info h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #1e1b4b; line-height: 1.3; }
.ct-info p { margin: 0; font-size: 13.5px; color: #6b6285; }
.ct-qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(124,58,237,.08); }
.ct-qty button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: #7c3aed; cursor: pointer; display: grid; place-items: center; font-size: 11px; box-shadow: 0 2px 6px rgba(76,29,149,.12); }
.ct-qty button:hover { background: var(--g-grad, #7c3aed); color: #fff; }
.ct-qty span { min-width: 28px; text-align: center; font-weight: 700; color: #1e1b4b; }
.ct-sub { text-align: right; font-weight: 800; font-size: 17px; color: #6d28d9; white-space: nowrap; }
.ct-remove { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(239,68,68,.08); color: #dc2626; cursor: pointer; display: grid; place-items: center; }
.ct-remove:hover { background: rgba(239,68,68,.18); }
.ct-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #6d28d9; font-weight: 600; font-size: 14px; text-decoration: none; }
.ct-more:hover { gap: 12px; }

.ct-summary { padding: 24px; position: sticky; top: calc(var(--nav-h, 92px) + 12px); }
.ct-summary h3 { margin: 0 0 16px; font-family: 'Outfit','Poppins',sans-serif; font-size: 20px; font-weight: 800; color: #1e1b4b; }
.ct-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: #5b5075; font-size: 14.5px; }
.ct-row b { color: #1e1b4b; font-weight: 700; }
.ct-row .ct-free { color: #16a34a; }
.ct-total { margin-top: 6px; padding-top: 16px; border-top: 1px dashed rgba(124,58,237,.25); font-size: 16px; color: #1e1b4b; font-weight: 700; }
.ct-total b { font-size: 26px; font-weight: 800; background: var(--g-grad, linear-gradient(135deg,#7c3aed,#c026d3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 16px; font-weight: 700; font-size: 15.5px; padding: 15px 22px; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ct-btn-primary { background: var(--g-grad, linear-gradient(135deg,#7c3aed,#c026d3)); color: #fff; box-shadow: 0 10px 24px rgba(124,58,237,.35); }
.ct-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(124,58,237,.45); }
.ct-checkout { width: 100%; margin-top: 18px; }
.ct-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(124,58,237,.12); display: grid; gap: 10px; }
.ct-trust li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: #5b5075; }
.ct-trust i { width: 28px; height: 28px; border-radius: 9px; background: rgba(124,58,237,.1); color: #7c3aed; display: grid; place-items: center; font-size: 12px; flex: 0 0 auto; }

.ct-empty { max-width: 460px; margin: 40px auto; padding: 48px 28px; text-align: center; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.85); border-radius: 32px; box-shadow: 0 14px 40px rgba(76,29,149,.1); backdrop-filter: blur(16px); }
.ct-empty-icon { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 28px; display: grid; place-items: center; background: var(--g-grad, #7c3aed); color: #fff; font-size: 34px; box-shadow: 0 14px 30px rgba(124,58,237,.35); }
.ct-empty h2 { margin: 0 0 8px; font-family: 'Outfit','Poppins',sans-serif; font-size: 26px; color: #1e1b4b; }
.ct-empty p { margin: 0 0 24px; color: #5b5075; }

@media (max-width: 900px) {
  .ct-layout { grid-template-columns: 1fr; gap: 16px; }
  .ct-summary { position: static; }
}
@media (max-width: 600px) {
  html body .ct-root { padding: 4px 12px 28px !important; }
  .ct-main, .ct-summary { border-radius: 24px; padding: 16px; }
  .ct-head h2 { font-size: 21px; }
  .ct-item { grid-template-columns: 60px minmax(0,1fr) auto 36px; grid-template-areas: "thumb info info remove" "qty qty sub sub"; gap: 12px; padding: 12px; }
  .ct-thumb { grid-area: thumb; width: 60px; height: 60px; border-radius: 14px; }
  .ct-info { grid-area: info; }
  .ct-remove { grid-area: remove; align-self: start; width: 34px; height: 34px; }
  .ct-qty { grid-area: qty; justify-self: start; }
  .ct-sub { grid-area: sub; align-self: center; font-size: 16px; }
  .ct-info h3 { font-size: 15px; }
}
