/* Leka Print — корзина, оформление заказа, страница заказа. Токены: leka-global.css, DESIGN.md */

/* =====================================================================
   Корзина (templates/cart.liquid)
   ===================================================================== */

.lk-basket-page { padding: 24px 0 0; font-family: var(--lk-font); }
.lk-basket { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 3vw, 40px); align-items: start; }
.lk-basket__items { display: flex; flex-direction: column; gap: 12px; }
.lk-basket-item {
	display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: center;
	padding: 14px 20px 14px 14px; border-radius: var(--lk-r-lg); border: 1px solid var(--lk-line); background: #fff;
}
.lk-basket-item__img { display: block; width: 112px; height: 112px; border-radius: 14px; background: var(--lk-soft); overflow: hidden; }
.lk-basket-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.lk-basket-item__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lk-basket-item__title { font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--lk-ink) !important; text-decoration: none !important; }
.lk-basket-item__title:hover { color: var(--lk-brand) !important; }
.lk-basket-item__opts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--lk-body); }
.lk-basket-item__price { font-size: 15px; color: var(--lk-body); }
.lk-basket-item__price [data-item-price] { font-weight: 800; color: var(--lk-ink); font-size: 17px; }
.lk-basket-item__controls { display: flex; align-items: center; gap: 10px; }
.lk-basket-item .lk-qty { height: 48px; padding: 3px; }
.lk-basket-item .lk-qty .btn { width: 42px; height: 42px; font-size: 18px; }
.lk-basket-item .lk-qty .form-control { width: 46px; height: 42px; font-size: 16px; }
.lk-basket-item__del {
	position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	color: var(--lk-mute) !important; transition: background-color .2s, color .2s;
}
.lk-basket-item__del:hover { background: #fdecec; color: #c62828 !important; }

.lk-basket__aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.lk-basket__summary { background: var(--lk-soft); border-radius: var(--lk-r-xl); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.lk-basket__summary-title { font: 800 22px/1.2 var(--lk-font); margin: 0 0 4px; letter-spacing: -.01em; }
.lk-basket__summary .dlist-align { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 14px; }
.lk-basket__summary .dlist-align dt { font-weight: 500; color: var(--lk-body); margin: 0; }
.lk-basket__summary .dlist-align dd { margin: 0; font-weight: 700; }
.lk-basket__total { padding-top: 12px; border-top: 1px solid var(--lk-line); align-items: baseline; }
.lk-basket__total dt { font-size: 16px !important; color: var(--lk-ink) !important; font-weight: 700 !important; }
.lk-basket__total dd { font: 800 30px/1 var(--lk-font) !important; letter-spacing: -.02em; }
.lk-basket__note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--lk-mute); }
.lk-basket__coupon-row { display: flex; background: #fff; border-radius: 999px; padding: 4px; }
.lk-basket__coupon-row .form-control { border: 0; background: transparent; height: 40px; padding: 0 14px; font: 500 14px var(--lk-font); box-shadow: none; min-width: 0; }
.lk-basket__coupon-row .btn { flex: none; height: 40px; padding: 0 16px; background: var(--lk-ink); color: #fff; border: 0; font-size: 13px; }
.lk-basket__coupon-row .btn:hover { background: var(--lk-brand); color: #fff; }
.lk-basket__coupon-err { display: block; color: #c62828; font-weight: 600; margin-top: 6px; padding-left: 14px; }
.lk-basket__checkout, .lk-basket__continue { width: 100%; }
.lk-basket__checkout { min-height: 56px; font-size: 17px; margin-top: 4px; }
.lk-basket__continue { min-height: 46px; font-size: 15px; border-color: var(--lk-line) !important; }
.lk-basket__continue:hover { border-color: var(--lk-ink) !important; background: transparent !important; }
.lk-basket__perks { margin: 0; }
.lk-perks a { color: var(--lk-ink); }

.lk-basket__empty { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border-radius: var(--lk-r-xl); background: var(--lk-soft); }
.lk-basket__empty-icon { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #fff; font-size: 28px; color: var(--lk-ink); margin-bottom: 20px; }
.lk-basket__empty h2 { font: 800 28px/1.15 var(--lk-font); margin: 0 0 10px; }
.lk-basket__empty p { color: var(--lk-body); max-width: 30em; margin: 0 auto 24px; line-height: 1.55; }
.lk-basket__empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lk-basket:has(.lk-basket__empty) { grid-template-columns: 1fr; }
.lk-basket:has(.lk-basket__empty) .lk-basket__aside { display: none; }

@media (max-width: 991.98px) {
	.lk-basket { grid-template-columns: 1fr; }
	.lk-basket__aside { position: static; }
}
@media (max-width: 575.98px) {
	.lk-basket-item { grid-template-columns: 80px minmax(0, 1fr); gap: 12px 14px; padding: 12px; }
	.lk-basket-item__img { width: 80px; height: 80px; }
	.lk-basket-item__controls { grid-column: 1 / -1; justify-content: space-between; flex-direction: row; }
	.lk-basket-item__controls .lk-qty { order: 1; }
	.lk-basket-item__controls .lk-basket-item__del { order: 2; }
	.lk-basket__summary { padding: 22px; }
}

/* =====================================================================
   Оформление заказа (layouts.checkout2: разметка платформы, только стили)
   ===================================================================== */
.co-section--checkout_content, .co-section--checkout_content * { font-family: var(--lk-font); }
.co-section--checkout_content { color: var(--lk-ink); }
.co-checkout-title.co-title--h1 { font: 800 clamp(30px, 3.6vw, 44px)/1.05 var(--lk-font) !important; letter-spacing: -.03em; }
.co-section--checkout_content .co-title--h2 { font: 800 20px/1.2 var(--lk-font) !important; letter-spacing: -.01em; color: var(--lk-ink); }

.co-section--checkout_content .co-input-label { font-size: 13px; font-weight: 600; color: var(--lk-body); }
.co-section--checkout_content .co-input-field,
.co-section--checkout_content .co-input-select {
	border: 1.5px solid transparent !important; background-color: var(--lk-soft) !important; border-radius: 14px !important;
	font-weight: 500 !important; color: var(--lk-ink) !important; box-shadow: none !important; transition: border-color .2s, background-color .2s;
}
.co-section--checkout_content .co-input-field:focus,
.co-section--checkout_content .co-input-select:focus { border-color: var(--lk-ink) !important; background-color: #fff !important; }
.co-section--checkout_content .co-input-description, .co-section--checkout_content .co-input-notice { font-size: 13px; color: var(--lk-mute); }
.co-section--checkout_content .co-link { color: var(--lk-ink); text-decoration: underline; text-underline-offset: 3px; }
.co-section--checkout_content .co-link:hover { color: var(--lk-brand); }

.co-section--checkout_content .co-toggable_field--bordered {
	border: 1.5px solid var(--lk-line) !important; border-radius: 16px !important; margin-bottom: 10px !important;
	transition: border-color .2s, background-color .2s; background: #fff;
}
.co-section--checkout_content .co-toggable_field--bordered:hover { border-color: #cfcfca !important; }
.co-section--checkout_content .co-toggable_field--bordered:has(input:checked) { border-color: var(--lk-ink) !important; background: var(--lk-soft); }
.co-section--checkout_content .co-toggable_field-title { font-weight: 700; color: var(--lk-ink); }
.co-section--checkout_content .co-toggable_field-description { font-size: 13px; color: var(--lk-body); line-height: 1.45; }
.co-section--checkout_content .co-toggable_field-price { font-weight: 800; color: var(--lk-ink); white-space: nowrap; }
.co-section--checkout_content input[type=radio], .co-section--checkout_content input[type=checkbox] { accent-color: var(--lk-brand); }

.co-section--checkout_content .co-tabs-node {
	border: 0 !important; border-radius: 999px !important; background: var(--lk-soft); color: var(--lk-body) !important;
	font-weight: 700 !important; text-decoration: none !important; cursor: pointer;
}
.co-section--checkout_content .co-tabs-node--active { background: var(--lk-ink) !important; color: #fff !important; }

.co-section--checkout_content .co-button {
	border-radius: 999px !important; font-weight: 700 !important; background: var(--lk-ink) !important; color: #fff !important;
	border: 0 !important; text-decoration: none !important; transition: background-color .2s;
}
.co-section--checkout_content .co-button:hover { background: var(--lk-brand) !important; }
.co-section--checkout_content .co-button--checkout { background: var(--lk-brand) !important; min-height: 60px; font-size: 18px !important; }
.co-section--checkout_content .co-button--checkout:hover { background: var(--lk-brand-hover) !important; }
.co-section--checkout_content .co-button--link { background: transparent !important; color: var(--lk-ink) !important; text-decoration: underline !important; }

.co-section--checkout_content .co-sidebar { background: var(--lk-soft) !important; border-radius: var(--lk-r-xl) !important; border: 0 !important; box-shadow: none !important; }
.co-section--checkout_content .co-basket_item-image { background: #fff; border-radius: 12px; overflow: hidden; }
.co-section--checkout_content .co-basket_item-image img { mix-blend-mode: multiply; object-fit: contain; }
.co-section--checkout_content .co-basket_item-description { font-weight: 600; line-height: 1.35; }
.co-section--checkout_content .co-basket_item-price, .co-section--checkout_content .co-basket_subtotal-price { font-weight: 700; }
.co-section--checkout_content .co-basket_subtotal { color: var(--lk-body); }
.co-section--checkout_content .co-basket_total-title { font-weight: 700; }
.co-section--checkout_content .co-basket_total .co-price--current { font: 800 28px/1 var(--lk-font) !important; letter-spacing: -.02em; color: var(--lk-ink) !important; }
.co-section--checkout_content .co-notice--danger { border-radius: 12px; }

/* =====================================================================
   Заказ оформлен (templates/order2.liquid: те же классы платформы)
   ===================================================================== */
.co-section--checkout_content .co-order-information { background: var(--lk-soft); border-radius: var(--lk-r-lg); padding: 8px 20px; }
.co-section--checkout_content .co-order-information_row { border-bottom: 1px solid var(--lk-line); }
.co-section--checkout_content .co-order-information_row:last-child { border-bottom: 0; }
.co-section--checkout_content .co-order-information_title { color: var(--lk-body); font-weight: 500; }
.co-section--checkout_content .co-order-information_value { font-weight: 600; }
.co-section--checkout_content .co-price { font-weight: 800; }
.co-section--checkout_content .co-order-state { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.co-section--checkout_content .co-order-state--paid { background: var(--lk-brand-soft); color: var(--lk-brand); }
.co-section--checkout_content .co-order-state--not_paid { background: #fdecec; color: #c62828; }
