.checkout-page { padding-top: 18px; padding-bottom: 104px; }
.checkout-page .breadcrumb { display: flex; margin: 0 0 42px; padding: 0; gap: 9px; border: 0; background: transparent; color: #8a8a8a; font-size: 11px; list-style: none; }
.checkout-page .breadcrumb > li { display: flex; align-items: center; }
.checkout-page .breadcrumb > li + li::before { content: "/"; padding: 0 9px 0 0; color: #bbb; }
.checkout-page .breadcrumb a { color: #777; }
.checkout-page .breadcrumb .fa-home::before { content: "Главная"; font-family: Inter, sans-serif; font-size: 11px; }

.checkout-heading { margin-bottom: 48px; }
.checkout-heading__eyebrow { margin: 0 0 10px; color: #777; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.checkout-heading h1 { margin: 0; color: #111; font-size: clamp(44px, 5vw, 72px); line-height: .95; font-weight: 500; letter-spacing: -.055em; text-transform: none; }
.checkout-heading > p:last-child { max-width: 620px; margin: 16px 0 0; color: #666; font-size: 14px; line-height: 1.6; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: clamp(45px, 6vw, 92px); }
.checkout-main { min-width: 0; }
.checkout-section { padding: 0 0 58px; border-bottom: 1px solid #dedede; }
.checkout-section + .checkout-section { padding-top: 54px; }
.checkout-section__heading { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
.checkout-step { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid #111; border-radius: 50%; font-size: 10px; font-weight: 600; }
.checkout-section__heading h2 { margin: 0; color: #111; font-size: 25px; line-height: 1.1; font-weight: 500; letter-spacing: -.025em; text-transform: none; }
.checkout-section__heading p { margin: 6px 0 0; color: #888; font-size: 11px; }

.cart-items__labels { display: grid; grid-template-columns: minmax(0, 1fr) 92px 126px 100px 30px; gap: 18px; padding: 0 0 12px 138px; border-bottom: 1px solid #dedede; color: #999; font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cart-line-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) 92px 126px 100px 30px; min-height: 164px; padding: 22px 0; align-items: center; gap: 18px; border-bottom: 1px solid #dedede; }
.cart-line-item__image { display: flex; width: 120px; height: 140px; align-items: center; justify-content: center; background: #f4f4f2; }
.cart-line-item__image img { width: 100%; height: 100%; padding: 12%; object-fit: contain; }
.cart-line-item__info { min-width: 0; }
.cart-line-item__name { display: block; color: #111; font-size: 14px; line-height: 1.4; font-weight: 500; }
.cart-line-item__variant { display: block; margin-top: 9px; color: #888; font-size: 11px; }
.cart-line-item__unit-price, .cart-line-item__total { display: flex; flex-direction: column; gap: 5px; color: #111; font-size: 13px; }
.cart-line-item__unit-price del { color: #999; font-size: 10px; }
.cart-line-item__total strong { font-weight: 600; }
.cart-line-item__mobile-label { display: none; }
#checkout-cart .cart-line-item__quantity { display: grid; grid-template-columns: 38px 48px 38px; width: 126px; height: 44px; margin: 0; align-items: center; border: 1px solid #bdbdbd; }
#checkout-cart .cart-line-item__quantity span { display: flex; width: 38px; height: 42px; margin: 0; padding: 0; align-items: center; justify-content: center; background: transparent; color: #111; font-size: 17px; cursor: pointer; }
#checkout-cart .cart-line-item__quantity input { width: 48px; height: 42px; padding: 0; border: 0; background: #fff; color: #111; font-size: 13px; text-align: center; outline: none; }
#checkout-cart .cart-line-item__quantity input:focus-visible { box-shadow: inset 0 0 0 1px #111; }
.cart-line-item__remove { width: 30px; height: 44px; padding: 0; border: 0; background: transparent; color: #777; font-size: 24px; font-weight: 300; line-height: 1; }
.cart-line-item__remove:hover { color: #111; }

.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.amorosa-field--wide { grid-column: 1 / -1; }
.checkout-alert { display: grid; margin-bottom: 24px; padding: 15px 17px; gap: 4px; border-left: 3px solid #9b3131; background: #f8eeee; color: #722727; font-size: 12px; line-height: 1.45; }

.fulfillment-block + .fulfillment-block { margin-top: 34px; }
.fulfillment-block h3 { margin: 0 0 14px; color: #111; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fulfillment-options { display: grid; gap: 10px; }
.fulfillment-option { border: 1px solid #d4d4d4; background: #fff; transition: border-color .18s ease; }
.fulfillment-option.active { border-color: #111; }
.fulfillment-option label { display: grid; min-height: 74px; margin: 0; padding: 15px 16px; grid-template-columns: 18px auto minmax(0, 1fr) auto; align-items: center; gap: 13px; cursor: pointer; }
.fulfillment-option input { position: absolute; opacity: 0; pointer-events: none; }
.fulfillment-option__radio { display: block; width: 16px; height: 16px; border: 1px solid #999; border-radius: 50%; }
.fulfillment-option input:checked + .fulfillment-option__radio { border-color: #111; box-shadow: inset 0 0 0 4px #fff; background: #111; }
.fulfillment-option__image { width: 42px; height: 42px; object-fit: contain; }
.fulfillment-option__content { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.fulfillment-option__content strong { color: #111; font-size: 13px; font-weight: 500; }
.fulfillment-option__content > span { overflow: hidden; color: #777; font-size: 11px; line-height: 1.45; }
.fulfillment-option__content p { margin: 0; }
.fulfillment-option__price { color: #111; font-size: 12px; font-weight: 600; white-space: nowrap; }

.checkout-captcha__row { display: flex; align-items: flex-end; gap: 18px; }
.checkout-captcha__row img { width: 150px; height: 50px; border: 1px solid #dedede; object-fit: contain; }
.checkout-captcha__row .amorosa-field { width: min(100%, 260px); }

.order-summary { position: sticky; top: 24px; padding: 28px; border: 1px solid #111; background: #fff; }
.order-summary h2 { margin: 0 0 24px; color: #111; font-size: 24px; font-weight: 500; letter-spacing: -.025em; text-transform: none; }
.order-summary__rows { display: grid; gap: 13px; }
.order-summary__rows > div { display: flex; justify-content: space-between; gap: 20px; color: #666; font-size: 12px; }
.order-summary__rows strong { color: #111; font-weight: 500; text-align: right; }
.order-summary__rows .order-summary__total { margin-top: 8px; padding-top: 20px; align-items: baseline; border-top: 1px solid #dedede; color: #111; font-size: 14px; }
.order-summary__total strong { font-size: 24px; font-weight: 600; white-space: nowrap; }
.checkout-coupon { margin-top: 26px; padding-top: 22px; border-top: 1px solid #dedede; }
.checkout-coupon > label { display: block; margin-bottom: 9px; color: #555; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.checkout-coupon__controls { display: grid; grid-template-columns: minmax(0, 1fr) 48px; }
.checkout-coupon input { min-width: 0; height: 46px; padding: 0 12px; border: 1px solid #bdbdbd; border-right: 0; border-radius: 0; outline: none; }
.checkout-coupon input:focus-visible { border-color: #111; }
.checkout-coupon button { width: 48px; height: 46px; padding: 0; border: 1px solid #111; background: #111; color: #fff; font-size: 18px; }
.checkout-coupon__error { margin: 8px 0 0; color: #8a3030; font-size: 11px; line-height: 1.4; }
.checkout-submit { width: 100%; min-height: 54px; margin-top: 26px; padding: 0 18px; border: 1px solid #111; border-radius: 0; background: #111; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.checkout-submit:hover, .checkout-submit:focus { background: #fff; color: #111; }
.checkout-terms { margin: 12px 0 0; color: #888; font-size: 9px; line-height: 1.5; text-align: center; }
.checkout-continue { display: block; margin-top: 20px; color: #555; font-size: 11px; text-align: center; }

.cart-float-summary { display: none; }

.cart-empty-state { max-width: 820px; margin: 40px auto 0; padding: clamp(60px, 9vw, 120px) 30px; background: #f1f1ee; text-align: center; }
.cart-empty-state h1 { max-width: 700px; margin: 0 auto; color: #111; font-size: clamp(38px, 5vw, 68px); line-height: 1; font-weight: 500; letter-spacing: -.05em; text-transform: none; }
.cart-empty-state > p:not(.checkout-heading__eyebrow) { max-width: 560px; margin: 22px auto 30px; color: #666; font-size: 14px; line-height: 1.65; }
.cart-empty-state__cta { display: inline-flex; min-width: 190px; min-height: 50px; padding: 0 24px; align-items: center; justify-content: center; background: #111; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cart-empty-state__cta:hover { color: #fff; }

@media (max-width: 1199px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .cart-items__labels { display: none; }
  .cart-line-item { grid-template-columns: 100px minmax(0, 1fr) 126px 86px 30px; }
  .cart-line-item__image { width: 100px; height: 120px; }
  .cart-line-item__unit-price { display: none; }
}

@media (max-width: 991px) {
  .checkout-page { padding-bottom: 128px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }

  .cart-float-summary { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: stretch; gap: 14px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #111; background: #fff; box-shadow: 0 -10px 28px rgba(0,0,0,.09); }
  .cart-float-summary__info { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
  .cart-float-summary__label { color: #888; font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .cart-float-summary__info strong { color: #111; font-size: 18px; font-weight: 600; white-space: nowrap; }
  .cart-float-summary__cta { flex: 0 0 auto; min-width: 178px; padding: 0 20px; border: 1px solid #111; border-radius: 0; background: #111; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .cart-float-summary__cta:hover, .cart-float-summary__cta:focus { background: #fff; color: #111; }
}

@media (max-width: 767px) {
  .checkout-page { padding-top: 12px; padding-bottom: 104px; }
  .checkout-page .breadcrumb { margin-bottom: 28px; }
  .checkout-heading { margin-bottom: 38px; }
  .checkout-heading h1 { font-size: clamp(42px, 14vw, 60px); }
  .checkout-section { padding-bottom: 44px; }
  .checkout-section + .checkout-section { padding-top: 42px; }
  .checkout-section__heading { margin-bottom: 24px; }
  .cart-line-item { position: relative; grid-template-columns: 88px minmax(0, 1fr); min-height: 0; padding: 18px 32px 20px 0; gap: 14px; align-items: start; }
  .cart-line-item__image { grid-column: 1; grid-row: 1 / span 3; width: 88px; height: 108px; }
  .cart-line-item__info { grid-column: 2; }
  .cart-line-item__name { font-size: 12px; line-height: 1.35; }
  .cart-line-item__variant { margin-top: 6px; font-size: 10px; }
  .cart-line-item__quantity { grid-column: 2; }
  #checkout-cart .cart-line-item__quantity { grid-template-columns: 44px 44px 44px; width: 132px; height: 46px; }
  #checkout-cart .cart-line-item__quantity span { width: 44px; height: 44px; }
  #checkout-cart .cart-line-item__quantity input { width: 44px; height: 44px; }
  .cart-line-item__total { grid-column: 2; flex-direction: row; align-items: baseline; justify-content: space-between; font-size: 12px; }
  .cart-line-item__mobile-label { display: inline; color: #888; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
  .cart-line-item__remove { position: absolute; top: 12px; right: -4px; width: 44px; height: 44px; }
  .checkout-fields { grid-template-columns: 1fr; gap: 18px; }
  .amorosa-field--wide { grid-column: auto; }
  .fulfillment-option label { grid-template-columns: 18px minmax(0, 1fr) auto; padding: 14px; }
  .fulfillment-option__image { display: none; }
  .fulfillment-option__content > span { max-height: 3em; }
  .fulfillment-option__price { font-size: 10px; }
  .checkout-captcha__row { align-items: stretch; flex-direction: column; }
  .checkout-captcha__row .amorosa-field { width: 100%; }
  .order-summary { padding: 24px 20px; }
  .cart-float-summary { gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cart-float-summary__info strong { font-size: 15px; }
  .cart-float-summary__cta { min-width: 0; flex: 1 1 42%; padding: 0 12px; font-size: 10px; }
  .cart-empty-state { margin-top: 20px; padding-left: 20px; padding-right: 20px; }
}
