.cart-page {
  width: min(var(--container), calc(100% - (var(--page-padding) * 2)));
  margin: 26px auto 72px;
}

.cart-page__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cart-breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.cart-breadcrumbs a { color: var(--text-soft, #526c80); }
.cart-breadcrumbs a:hover, .cart-continue:hover { color: var(--coral); }
.cart-continue { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 9px; color: var(--coral); font-size: 14px; font-weight: 600; }
.cart-continue span { font-size: 20px; line-height: 1; }
.cart-heading { display: flex; align-items: baseline; gap: 20px; margin: 22px 0 28px; }
.cart-heading h1 { margin: 0; color: var(--green); font: 700 clamp(42px, 4vw, 58px)/.98 var(--font-display); letter-spacing: -2px; }
.cart-heading__count { color: var(--text-soft, #526c80); font-size: 17px; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1.88fr) minmax(320px, 1fr); align-items: start; gap: 28px; }
.cart-content { min-width: 0; }
.cart-items { display: grid; gap: 14px; }
.cart-item { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 22px; min-height: 182px; padding: 14px; border: 1px solid var(--color-border-accent); border-radius: var(--radius-lg); background: var(--color-surface); }
.cart-item--addon { min-height: 148px; }
.cart-item__photo { display: block; width: 150px; height: 150px; overflow: hidden; border-radius: 13px; background: var(--pink-soft); }
.cart-item--addon .cart-item__photo { width: 124px; height: 124px; align-self: center; }
.cart-item__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 4px 0 2px; }
.cart-item__title { color: var(--green); font-size: 18px; font-weight: 700; line-height: 1.2; }
.cart-item__title:hover { color: var(--coral); }
.cart-item__details { margin-top: 7px; color: var(--text-soft, #526c80); font-size: 14px; line-height: 1.4; }
.cart-item__edit { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; color: var(--coral); font-size: 13px; }
.cart-item__edit:hover { text-decoration: underline; }
.cart-item__edit .icon { width: 16px; height: 16px; }
.cart-item__controls { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.cart-stepper { display: inline-flex; align-items: center; min-height: 36px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: #fff; }
.cart-stepper button { display: grid; place-items: center; width: 34px; height: 34px; color: var(--coral); font-size: 20px; line-height: 1; }
.cart-stepper button:hover { background: var(--pink-soft); border-radius: 50%; }
.cart-stepper button:disabled { cursor: not-allowed; opacity: .4; }
.cart-stepper span { min-width: 24px; color: var(--green); text-align: center; font-size: 15px; font-weight: 600; }
.cart-item__price { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; min-width: 112px; padding: 8px 4px 4px 0; }
.cart-item__amount { color: var(--green); font-size: 20px; font-weight: 700; white-space: nowrap; }
.cart-item__old-price { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; text-decoration: line-through; }
.cart-item__remove { display: inline-flex; align-items: center; gap: 6px; color: var(--coral); font-size: 13px; }
.cart-item__remove:hover { text-decoration: underline; }
.cart-item__remove .icon { width: 16px; height: 16px; }
.cart-item__notice { width: 100%; margin-top: 13px; padding: 8px 10px; border-radius: 9px; color: #9b4b52; background: #fff1f2; font-size: 12px; }
.cart-item__notice a { color: var(--coral); font-weight: 600; text-decoration: underline; }
.cart-item.is-unavailable { border-color: #f3b7c0; }

.cart-addons { margin-top: 24px; }
.cart-addons__heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cart-addons__heading h2 { margin: 0; color: var(--green); font: 700 25px/1.1 var(--font-display); }
.cart-addons__heading a { display: inline-flex; align-items: center; gap: 5px; color: var(--coral); font-size: 13px; white-space: nowrap; }
.cart-addons__heading a:hover { text-decoration: underline; }
.cart-addons__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.cart-addon { display: flex; min-width: 0; align-items: center; gap: 10px; min-height: 106px; padding: 9px; border: 1px solid var(--color-border-accent); border-radius: var(--radius-md); background: #fff; }
.cart-addon.is-selected { background: #fffafb; }
.cart-addon__photo { display: block; flex: 0 0 84px; width: 84px; height: 84px; overflow: hidden; border-radius: 10px; background: var(--color-surface-blush-strong); }
.cart-addon__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-addon__content { display: flex; min-width: 0; min-height: 84px; flex: 1 1 auto; flex-direction: column; align-items: flex-start; }
.cart-addon__name { display: block; max-width: 100%; overflow: hidden; color: var(--green); font-size: 14px; font-weight: 600; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.cart-addon__name:hover { color: var(--coral); }
.cart-addon__detail { display: block; max-width: 100%; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.cart-addon__bottom { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 7px; margin-top: auto; }
.cart-addon__price { min-width: 0; color: var(--text-soft, #526c80); font-size: 13px; line-height: 1.2; white-space: nowrap; }
.cart-addon__price del { margin-left: 3px; color: var(--muted); font-size: 10px; }
.cart-addon__price em { margin-left: 3px; color: var(--coral); font-size: 10px; font-style: normal; }
.cart-addon__button { flex: 0 0 auto; min-height: 29px; padding: 5px 9px; border: 1px solid var(--color-border-accent); border-radius: var(--radius-pill); color: var(--coral); background: var(--pink-soft); font-size: 11px; font-weight: 600; white-space: nowrap; }
.cart-addon__button:hover { border-color: var(--coral); background: #fff; }
.cart-addon__button.is-added { border-color: #b8ddd0; color: var(--green); background: #eff9f4; }

.cart-summary-wrap { position: sticky; top: 24px; min-width: 0; }
.cart-summary { padding: 22px 22px 20px; border: 1px solid var(--color-border-accent); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.cart-summary h2 { margin-bottom: 23px; font-size: 30px; }
.cart-summary__rows { display: grid; gap: 12px; }
.cart-summary__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: var(--text-soft, #526c80); font-size: 15px; }
.cart-summary__row strong { color: var(--green); font-size: 15px; white-space: nowrap; }
.cart-summary__row--discount strong { color: var(--coral); }
.cart-summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-border); color: var(--green); font-size: 16px; font-weight: 700; }
.cart-summary__total strong { font-size: 27px; white-space: nowrap; }
.cart-summary__delivery-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; color: var(--text-soft, #526c80); font-size: 12px; line-height: 1.4; }
.cart-summary__delivery-note .icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--coral); }
.cart-checkout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 18px; border-radius: var(--radius-pill); color: #fff; background: var(--coral); font-size: 15px; font-weight: 700; }
.cart-checkout:visited { color: #fff; }
.cart-checkout:hover { background: var(--color-pink-hover); }
.cart-checkout:disabled { cursor: not-allowed; opacity: .55; }
.cart-checkout .icon { width: 17px; height: 17px; }
.cart-payment-note { display: flex; gap: 12px; margin-top: 13px; padding: 14px; border-radius: 14px; color: var(--text-soft, #526c80); background: #f3f9f8; font-size: 12px; line-height: 1.4; }
.cart-payment-note .icon { width: 21px; height: 21px; color: var(--green); }
.cart-payment-note strong { display: block; margin-bottom: 3px; color: var(--green); font-size: 13px; }
.cart-trust { display: grid; gap: 13px; margin-top: 18px; padding: 0 2px; }
.cart-trust__item { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; }
.cart-trust__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--coral); background: var(--pink-soft); }
.cart-trust__icon .icon { width: 18px; height: 18px; }
.cart-trust__copy { display: grid; gap: 2px; }
.cart-trust__copy strong { color: var(--green); font-size: 13px; }
.cart-trust__copy span { color: var(--muted); font-size: 12px; }

.cart-empty { padding: 55px 24px; border: 1px solid var(--color-border-accent); border-radius: var(--radius-lg); background: var(--color-surface-blush); text-align: center; }
.cart-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; color: var(--coral); background: #fff; }
.cart-empty__icon .icon { width: 30px; height: 30px; }
.cart-empty h2 { margin: 0; color: var(--green); font: 700 30px/1.1 var(--font-display); }
.cart-empty p { max-width: 390px; margin: 12px auto 22px; color: var(--text-soft, #526c80); line-height: 1.5; }
.cart-empty a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: var(--radius-pill); color: #fff; background: var(--coral); font-weight: 600; }
.cart-empty a:hover { background: var(--color-pink-hover); }
.cart-status { margin-top: 14px; color: var(--green); font-size: 13px; }
.cart-status.is-visible { display: flex; align-items: center; gap: 8px; }
.cart-status button { padding: 0; color: var(--coral); font-weight: 600; }
.cart-mobile-bar { display: none; }

@media (max-width: 1100px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-summary-wrap { position: static; }
  .cart-summary { max-width: none; }
}

@media (max-width: 767px) {
  .cart-page { margin-top: 19px; margin-bottom: 32px; }
  .cart-page__top { align-items: flex-start; }
  .cart-breadcrumbs { font-size: 12px; }
  .cart-continue { font-size: 0; }
  .cart-continue span { font-size: 22px; }
  .cart-heading { gap: 12px; margin: 19px 0 20px; }
  .cart-heading h1 { font-size: 42px; }
  .cart-heading__count { font-size: 14px; }
  .cart-item { grid-template-columns: 94px minmax(0, 1fr); gap: 13px; min-height: 146px; padding: 10px; }
  .cart-item--addon { min-height: 124px; }
  .cart-item__photo, .cart-item--addon .cart-item__photo { width: 94px; height: 94px; align-self: start; border-radius: 10px; }
  .cart-item__body { padding: 1px 86px 30px 0; }
  .cart-item__title { font-size: 15px; }
  .cart-item__details { margin-top: 4px; font-size: 12px; }
  .cart-item__edit { margin-top: 8px; font-size: 12px; }
  .cart-item__controls { margin-top: auto; }
  .cart-item__price { position: absolute; top: 10px; right: 10px; bottom: 10px; min-width: 78px; padding: 2px 0 0; }
  .cart-item__amount { font-size: 16px; }
  .cart-item__old-price { display: block; margin: 4px 0 0; font-size: 11px; }
  .cart-item__remove { margin-top: auto; font-size: 12px; }
  .cart-item__remove .icon { width: 14px; height: 14px; }
  .cart-addons { margin-top: 20px; }
  .cart-addons__heading h2 { font-size: 22px; }
  .cart-addons__grid { grid-template-columns: 1fr; gap: 8px; }
  .cart-addon { min-height: 96px; padding: 8px; }
  .cart-addon__photo { flex-basis: 78px; width: 78px; height: 78px; }
  .cart-addon__content { min-height: 78px; }
  .cart-addon__name { font-size: 14px; }
  .cart-summary { padding: 18px 15px 16px; }
  .cart-summary h2 { margin-bottom: 18px; }
  .cart-summary__row { font-size: 14px; }
  .cart-summary__total { margin-top: 15px; padding-top: 15px; }
  .cart-summary__total strong { font-size: 24px; }
  .cart-trust { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cart-trust__item { grid-template-columns: 28px minmax(0, 1fr); gap: 7px; }
  .cart-trust__icon { width: 28px; height: 28px; }
  .cart-trust__icon .icon { width: 15px; height: 15px; }
  .cart-trust__copy strong { font-size: 11px; }
  .cart-trust__copy span { font-size: 10px; }
  .cart-empty { padding: 40px 18px; }
  .cart-empty h2 { font-size: 26px; }
  .cart-mobile-bar { position: fixed; z-index: 15; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-top: 1px solid var(--color-border-accent); background: rgba(255,255,255,.97); box-shadow: 0 -8px 20px rgba(30,49,44,.08); }
  .cart-mobile-bar[hidden] { display: none; }
  .cart-mobile-bar__price { display: grid; gap: 1px; color: var(--green); font-size: 18px; font-weight: 700; }
  .cart-mobile-bar__price small { color: var(--muted); font-size: 11px; font-weight: 400; }
  .cart-mobile-bar a, .cart-mobile-bar button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border: 0; border-radius: var(--radius-pill); color: #fff; background: var(--coral); font-size: 13px; font-weight: 700; white-space: nowrap; }
  .cart-mobile-bar button:disabled { cursor: not-allowed; opacity: .55; }
  .cart-page.has-mobile-bar { padding-bottom: 63px; }
}

@media (max-width: 359px) {
  .cart-item { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
  .cart-item__photo, .cart-item--addon .cart-item__photo { width: 82px; height: 82px; }
  .cart-item__body { padding-right: 74px; }
  .cart-item__title { font-size: 14px; }
  .cart-trust { grid-template-columns: 1fr; }
  .cart-mobile-bar a, .cart-mobile-bar button { padding-inline: 11px; font-size: 12px; }
}
