/* avemed/cart — Figma 07: lines 594 + summary 330 (desktop), stacked + sticky bar (mobile) */
.av-cartpage__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0 24px; }
.av-cartpage__count { font-size: 16px; font-weight: 400; color: var(--av-muted); letter-spacing: 0; margin-left: 8px; }
.av-cartpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: start; padding-bottom: 80px; }
.av-cartpage .av-scline { padding: 20px 0; }
.av-cartpage .av-scline__img { width: 88px; height: 88px; }
.av-cartpage .av-scline__main { gap: 10px; }
.av-cartpage .av-scline__row { justify-content: space-between; }
.av-cartpage .av-sclines { border-top: 0; }
.av-cartpage__back { margin-top: 24px; }
.av-cartpage__back .av-icon { order: -1; }
.av-cartsum { position: sticky; top: 172px; padding: 28px; border: 1px solid var(--av-divider); border-radius: var(--av-r-large); background: #fff; }
.av-cartsum__title { margin: 0 0 20px; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: 0; }
.av-ship--box { margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--av-accent-100); border-radius: 12px; }
.av-ship--mobile { display: none; }
.av-coupon { margin-bottom: 16px; }
.av-coupon__row { display: flex; gap: 8px; }
.av-coupon__field { position: relative; flex: 1; }
.av-coupon__field .av-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--av-muted); pointer-events: none; }
.av-coupon__field .av-input { min-height: 48px; padding-left: 42px; }
.av-coupon__row .av-btn { --h: 48px; }
.av-coupon__msg { margin: 8px 0 0; font-size: 13px; color: var(--av-success); }
.av-coupon__msg.is-error { color: var(--av-danger); }
.av-coupon__applied { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.av-coupon__applied .av-badge button { border: 0; background: none; color: inherit; font-size: 14px; line-height: 1; cursor: pointer; padding: 0 0 0 4px; }
.av-cartsum__rows { margin: 0; padding: 4px 0 12px; border-bottom: 1px solid var(--av-divider); }
.av-cartsum__rows > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; color: var(--av-slate); }
.av-cartsum__rows dd { margin: 0; color: var(--av-navy); }
.av-cartsum__rows .is-save dd, .av-cartsum__rows dd.is-free { color: var(--av-success); font-weight: 500; }
.av-cartsum__rows dd.is-muted { color: var(--av-muted); font-size: 13px; }
.av-cartsum__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-size: 18px; }
.av-cartsum__total strong:last-child { font-size: 24px; font-weight: 600; }
.av-cartsum__vat { margin: 2px 0 18px; font-size: 12px; color: var(--av-muted); }
.av-cartsum__trust { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--av-slate); }
.av-cartsum__trust li { display: flex; align-items: center; gap: 8px; }
.av-cartpage__empty { padding: 72px 16px; border-radius: var(--av-r-large); background: var(--av-surface); }
.av-cartpage.is-empty .av-cartpage__grid { grid-template-columns: 1fr; }
.av-cartpage__sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--av-divider); box-shadow: 0 -8px 24px rgba(10,50,97,.08); animation: av-sticky-in .3s var(--av-ease); }
.av-cartpage__sticky > div { display: grid; font-size: 12px; color: var(--av-slate); }
.av-cartpage__sticky strong { font-size: 20px; color: var(--av-navy); font-weight: 600; }
.av-cartpage__sticky .av-btn { flex: 1; max-width: 260px; }
@keyframes av-sticky-in { from { transform: translateY(100%); } }
@media (max-width: 1023px) {
	.av-cartpage__grid { grid-template-columns: 1fr; gap: 16px; }
	.av-cartsum { position: static; padding: 20px; background: var(--av-surface); border: 0; }
	.av-ship--box { display: none; }
	.av-ship--mobile { display: block; margin: 0 calc(var(--av-side) * -1); padding: 10px var(--av-side) 12px; }
	.av-cartpage { padding-bottom: 90px; }
}
@media (max-width: 767px) {
	.av-cartpage__head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 0 16px; }
	.av-steps-bar { font-size: 12px; gap: 6px; }
	.av-steps-bar li + li::before { width: 16px; }
	.av-cartpage .av-scline__img { width: 72px; height: 72px; }
}
.av-cartpage__sticky[hidden] { display: none; }
@media (min-width: 1024px) { .av-cartpage__sticky { display: none !important; } }
