/* Leka Print — всплывающие окна, варианты товара, отзывы, «Вы смотрели», личный кабинет, блог.
   Токены: leka-global.css, DESIGN.md */

/* =====================================================================
   Варианты товара (кнопки, которые строит common-js)
   ===================================================================== */

.lk-product .option-selector { display: flex; flex-direction: column; gap: 16px; border: 0; padding: 0; margin: 0; }
.lk-product .option-selector > .option { margin: 0; border: 0; padding: 0; }
.lk-product .option-label { display: block; font: 700 14px/1.2 var(--lk-font) !important; color: var(--lk-ink); margin: 0 0 10px !important; text-transform: none; }
.lk-product .option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-product .option-value.is-span {
	margin: 0 !important; min-height: 42px; padding: 0 18px !important; border-radius: 999px !important;
	border: 1.5px solid var(--lk-line) !important; background: #fff !important; color: var(--lk-ink) !important;
	font: 600 14px/1 var(--lk-font) !important; box-shadow: none !important; transition: border-color .2s, background-color .2s, color .2s;
}
.lk-product .option-value.is-span:hover { border-color: var(--lk-ink) !important; }
.lk-product .option-value.is-span.is-active { background: var(--lk-ink) !important; border-color: var(--lk-ink) !important; color: #fff !important; }
.lk-product .option-value.is-span.is-disabled, .lk-product .option-value.is-span[disabled] { opacity: .45; text-decoration: line-through; }
.lk-product .option-selector select.custom-select, .lk-product .option-selector select { border-radius: 14px; height: 48px; border: 1.5px solid var(--lk-line); font: 600 15px var(--lk-font); }
/* в карточках каталога */
.card-product-grid .option-selector .option-label { font: 600 12px var(--lk-font); color: var(--lk-body); }
.card-product-grid .option-selector .option-value.is-span { border-radius: 999px !important; background: var(--lk-soft) !important; font-family: var(--lk-font); }
.card-product-grid .option-selector .option-value.is-span.is-active { background: var(--lk-ink) !important; color: #fff !important; }

/* =====================================================================
   Быстрый заказ (модальное окно платформы .m-modal--checkout)
   ===================================================================== */
.m-modal--checkout { font-family: var(--lk-font); }
.m-modal--checkout .m-modal-wrapper {
	border-radius: var(--lk-r-xl) !important; padding: 36px 32px 28px !important; box-shadow: 0 30px 80px -20px rgba(0,0,0,.35) !important;
	max-width: 480px; font-family: var(--lk-font);
}
.m-modal--checkout .m-modal-heading { font: 800 26px/1.15 var(--lk-font) !important; letter-spacing: -.02em; color: var(--lk-ink); text-align: left !important; margin-bottom: 20px !important; }
.m-modal--checkout .m-input { margin-bottom: 14px !important; }
.m-modal--checkout .m-input-label { font: 700 13px var(--lk-font) !important; color: var(--lk-ink) !important; margin-bottom: 6px !important; display: block; }
.m-modal--checkout .m-input-field {
	width: 100%; border: 1.5px solid transparent !important; background: var(--lk-soft) !important; border-radius: 14px !important;
	min-height: 50px; padding: 12px 16px !important; font: 500 16px var(--lk-font) !important; color: var(--lk-ink) !important;
	box-shadow: none !important; outline: none; transition: border-color .2s, background-color .2s;
}
.m-modal--checkout textarea.m-input-field { min-height: 90px; resize: vertical; }
.m-modal--checkout .m-input-field:focus { border-color: var(--lk-ink) !important; background: #fff !important; }
.m-modal--checkout .m-modal-footer { margin-top: 8px !important; padding: 0 !important; border: 0 !important; }
.m-modal--checkout .m-modal-button--checkout {
	width: 100%; min-height: 56px; border-radius: 999px !important; background: var(--lk-brand) !important; border: 0 !important;
	color: #fff !important; font: 700 17px var(--lk-font) !important; cursor: pointer; transition: background-color .2s;
}
.m-modal--checkout .m-modal-button--checkout:hover { background: var(--lk-brand-hover) !important; }
.m-modal--checkout .m-modal-close { width: 40px !important; height: 40px !important; border-radius: 50% !important; background-color: var(--lk-soft) !important; top: 16px !important; right: 16px !important; }
.m-modal--checkout .m-modal-errors:not(:empty) { background: #fdecec; color: #c62828; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }

/* =====================================================================
   «Товар добавлен в корзину» (fancybox, разметка в handwritten.js)
   ===================================================================== */
.fancybox-content:has(.lk-incart) { padding: 0 !important; border-radius: var(--lk-r-xl); overflow: hidden; }
.lk-incart { padding: 36px 32px 30px; text-align: center; font-family: var(--lk-font); max-width: 440px; }
.lk-incart__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--lk-brand-soft); color: var(--lk-brand); font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.lk-incart__title { font: 800 22px/1.2 var(--lk-font); letter-spacing: -.01em; color: var(--lk-ink); margin-bottom: 22px; }
.lk-incart__actions { display: flex; flex-direction: column; gap: 10px; }
.lk-incart__actions .lk-btn { width: 100%; }
.lk-incart__actions .lk-btn--ghost { border-color: var(--lk-line) !important; cursor: pointer; }
.lk-incart__actions .lk-btn--ghost:hover { border-color: var(--lk-ink) !important; }

/* =====================================================================
   Уведомления (избранное) и модальные окна Bootstrap
   ===================================================================== */
.toasts-wrapper { right: 0; bottom: 0; z-index: 1080; }
.toasts-wrapper .toast {
	border: 0; border-radius: 16px; background: var(--lk-ink); color: #fff; box-shadow: 0 20px 50px -12px rgba(0,0,0,.4);
	font: 600 14px var(--lk-font); max-width: 360px;
}
.toasts-wrapper .toast-body { padding: 14px 16px; }
.toasts-wrapper .toast .btn { border-radius: 999px; background: var(--lk-brand); border: 0; font-weight: 700; padding: 6px 14px; }
.toasts-wrapper .toast .close { color: #fff; opacity: .7; text-shadow: none; }

.modal-content { border: 0; border-radius: var(--lk-r-xl); font-family: var(--lk-font); box-shadow: 0 30px 80px -20px rgba(0,0,0,.35); }
.modal-content > .close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: var(--lk-soft); opacity: 1; text-shadow: none; }
.modal-body { padding: 36px 32px; }
.modal-body .h5 { font: 800 22px/1.2 var(--lk-font); margin-bottom: 10px; }
.modal-body p { color: var(--lk-body); margin: 0; }

/* =====================================================================
   Отзывы (snippets/reviews.liquid)
   ===================================================================== */
.lk-product #contact .row { row-gap: 24px; }
.lk-product [data-reviews-list] li.rev {
	border: 0 !important; border-radius: var(--lk-r-lg) !important; background: var(--lk-soft); padding: 20px 22px !important; margin-bottom: 12px !important;
}
.lk-product [data-reviews-list] .h5 { font: 800 16px var(--lk-font); }
.lk-product [data-reviews-list] .fs14 { font-size: 13px; }
.lk-product [data-reviews-list] .badge-warning { background: #fff; color: var(--lk-ink); border-radius: 999px; font-weight: 700; padding: 4px 10px; }
.lk-product [data-reviews-list] .badge-warning .fa { color: #f5a623; }
.lk-product .review-manager_reply { background: var(--lk-brand-soft); border-radius: 12px !important; padding: 10px 14px !important; font-size: 15px; }
.lk-product [data-reviews-list] img { border-radius: 12px; }
.lk-product #contact .card { border: 1px solid var(--lk-line) !important; border-radius: var(--lk-r-xl); }
.lk-product #contact .card-body { padding: 26px; }
.lk-product #contact .card-title { font: 800 22px/1.2 var(--lk-font); letter-spacing: -.01em; }
.lk-product #contact label { font: 700 13px var(--lk-font); color: var(--lk-ink); }
.lk-product #contact .form-control, .lk-product #contact .custom-select {
	border: 1.5px solid transparent; background-color: var(--lk-soft); border-radius: 14px; min-height: 48px; font: 500 15px var(--lk-font); box-shadow: none;
}
.lk-product #contact .form-control:focus, .lk-product #contact .custom-select:focus { border-color: var(--lk-ink); background-color: #fff; }
.lk-product #contact .custom-file-label { border-radius: 14px; border: 1.5px dashed var(--lk-line); background: #fff; }
.lk-product #contact .sendrev { min-height: 52px; border-radius: 999px; background: var(--lk-ink); border-color: var(--lk-ink); font-weight: 700; }
.lk-product #contact .sendrev:hover { background: var(--lk-brand); border-color: var(--lk-brand); }

/* =====================================================================
   «Вы смотрели» (шаблон recently_view в snippets/render.liquid)
   ===================================================================== */
.lk-recent { padding: clamp(48px, 6vw, 80px) 0 0; font-family: var(--lk-font); }
.lk-recent .lk-h2 { margin-bottom: 24px; }
.lk-recent__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.lk-recent__item { display: flex; flex-direction: column; gap: 6px; text-decoration: none !important; color: var(--lk-ink) !important; scroll-snap-align: start; }
.lk-recent__img { display: block; aspect-ratio: 1; border-radius: 16px; background: var(--lk-soft); overflow: hidden; transition: background-color .2s; }
.lk-recent__img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.lk-recent__item:hover .lk-recent__img { background: #e9e9e5; }
.lk-recent__title { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lk-recent__price { font-size: 15px; font-weight: 800; }
.lk-recent__item:hover .lk-recent__title { color: var(--lk-brand); }

/* =====================================================================
   Личный кабинет (layouts.client_account: классы платформы .co-*)
   ===================================================================== */
.co-section--content_wrapper, .co-section--content_wrapper * { font-family: var(--lk-font); }
.co-section--content_wrapper { color: var(--lk-ink); padding-bottom: 8px; }
.co-section--content_wrapper .co-checkout-title.co-title--h1 { font: 800 clamp(30px, 3.6vw, 44px)/1.05 var(--lk-font) !important; letter-spacing: -.03em; }
.co-section--content_wrapper .co-title--h2 { font: 800 20px/1.2 var(--lk-font) !important; }
.co-section--content_wrapper .co-input-label { font-size: 13px; font-weight: 600; color: var(--lk-body); }
.co-section--content_wrapper .co-input-field, .co-section--content_wrapper .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;
}
.co-section--content_wrapper .co-input-field:focus { border-color: var(--lk-ink) !important; background-color: #fff !important; }
.co-section--content_wrapper .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;
}
.co-section--content_wrapper .co-button:hover { background: var(--lk-brand) !important; }
.co-section--content_wrapper .co-button--link { background: transparent !important; color: var(--lk-ink) !important; text-decoration: underline !important; }
.co-section--content_wrapper .co-link { color: var(--lk-ink); text-decoration: underline; text-underline-offset: 3px; }
.co-section--content_wrapper .co-link:hover { color: var(--lk-brand); }
/* меню кабинета */
.co-section--content_wrapper .co-tabs-node, .co-section--content_wrapper .co-menu-item, .co-section--content_wrapper .co-account_menu-item {
	border-radius: 999px !important; font-weight: 700 !important;
}
.co-section--content_wrapper .co-tabs-node--active, .co-section--content_wrapper .co-menu-item--active { background: var(--lk-ink) !important; color: #fff !important; }
/* история заказов */
.co-section--content_wrapper .co-table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--lk-soft); border-radius: var(--lk-r-lg); overflow: hidden; }
.co-section--content_wrapper .co-table-cell { padding: 14px 16px !important; border: 0 !important; border-bottom: 1px solid var(--lk-line) !important; font-size: 15px; }
.co-section--content_wrapper .co-table-cell--head { font-size: 12px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--lk-mute); background: transparent !important; }
.co-section--content_wrapper .co-table-row--striped:nth-child(even) { background: transparent !important; }
.co-section--content_wrapper .co-table-row--foot .co-table-cell { border-bottom: 0 !important; }
.co-section--content_wrapper .co-order_history-total_sum { font-weight: 800; font-size: 20px; }

/* =====================================================================
   Блог и статьи
   ===================================================================== */
.lk-blog-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px; border-radius: var(--lk-r-xl); background: var(--lk-soft); color: var(--lk-ink) !important; text-decoration: none !important; transition: background-color .2s, transform .2s var(--lk-ease); }
.lk-blog-card:hover { background: #e9e9e5; transform: translateY(-4px); }
.lk-blog-card h2 { font: 800 22px/1.2 var(--lk-font); letter-spacing: -.01em; margin: 0; }
.lk-blog-card time { font-size: 13px; color: var(--lk-mute); font-weight: 600; }
.lk-blog-card p { margin: 0; color: var(--lk-body); line-height: 1.55; }
.lk-blog-card .lk-link { margin-top: auto; }

@media (max-width: 575.98px) {
	.m-modal--checkout .m-modal-wrapper { padding: 28px 20px 20px !important; }
	.lk-incart { padding: 28px 20px 22px; }
	.modal-body { padding: 30px 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.lk-blog-card, .lk-recent__img { transition: none !important; }
}
.lk-product .option-selector > .option.is-span { border: 0 !important; padding: 0 !important; background: none !important; border-radius: 0 !important; min-height: 0; }
.fancybox-content:has(.lk-incart) .fancybox-close-small { color: var(--lk-ink) !important; background: var(--lk-soft) !important; border-radius: 50%; width: 36px; height: 36px; top: 12px; right: 12px; padding: 8px; }
.co-section--content_wrapper { max-width: 1170px; margin: 0 auto !important; padding: 24px 15px 0 !important; }
