/* =====================================================================
   market.css — стили для всех страниц маркета (/market/*)
   Подключается в market.php, кешируется браузером
   ===================================================================== */

/* ── Общая обёртка ── */
.mk-page { background: var(--site-bg2); padding-top: 100px; }
@media (max-width: 540px) { .mk-page { padding-top: 60px; } }

/* ── Intro header (legacy) ── */
.mk-intro { background: var(--site-bg1); padding: 40px 0 36px; border-bottom: 1px solid var(--border-color); }
.mk-intro h1 { font-size: 30px; font-weight: 700; color: var(--text-color); margin: 0 0 8px; line-height: 1.25; }
.mk-intro-desc { font-size: 14px; color: #606470; line-height: 1.65; margin: 0; max-width: 640px; }

/* ── Grid section (legacy) ── */
.mk-section { padding: 48px 0 56px; }
.mk-section-title { font-size: 20px; font-weight: 700; color: var(--text-color); margin: 0 0 24px; }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .mk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .mk-grid { grid-template-columns: 1fr; } }

/* ── Card (legacy) ── */
.mk-card { background: #fff; border: 1.5px solid var(--border-color); border-radius: 16px; padding: 22px 20px 18px; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .2s, border-color .2s, transform .15s; }
.mk-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); border-color: var(--second-color); transform: translateY(-2px); }
.mk-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--card-bg); display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 0 14px; flex-shrink: 0; }
.mk-card-title { font-size: 15px; font-weight: 700; color: var(--text-color); margin: 0 0 6px; line-height: 1.35; }
.mk-card-desc { font-size: 13px; color: #606470; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.mk-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; }
.mk-count { display: inline-flex; align-items: center; background: var(--card-bg); color: var(--second-color); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.mk-card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--second-color); text-decoration: none; margin-left: auto; flex-shrink: 0; }
.mk-card-link svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .15s; }
.mk-card:hover .mk-card-link svg { transform: translateX(3px); }

/* ── Category header ── */
.mk-cat-header { display: flex; justify-content: center; background: var(--site-bg1); padding: 36px 0 32px; border-bottom: 1px solid var(--border-color); }
.mk-cat-header h1 { font-size: 28px; font-weight: 700; color: var(--text-color); margin: 0 0 8px; line-height: 1.25; }

/* ── Category text ── */
.mk-cat-text { padding: 40px 0 48px; border-top: 1px solid var(--border-color); }
.mk-cat-text p, .mk-cat-text h2 { margin-top: 20px; }

/* ── Product page ── */
.mk-product { padding: 40px 0 56px; }
.mk-product h1 { margin-bottom: 16px; }
.mk-product-lead { font-size: 16px; line-height: 1.7; color: #606470; margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.mk-product-text p, .mk-product-text h2 { margin-top: 20px; }

/* ── Hub intro ── */
.mkh-intro { display: flex; justify-content: center; padding: 48px 0 36px; background: var(--site-bg2, #f5f6fa); border-bottom: 1px solid var(--border-color, #e5e7ef); }
.mkh-intro__h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin: 0 0 10px; color: var(--text-color, #1a1c23); }
.mkh-intro__desc { font-size: 15px; color: #606470; margin: 0; max-width: 640px; line-height: 1.6; }

/* ── Hub section ── */
.mkh-section { padding: 40px 0 0; }
.mkh-section:last-of-type { padding-bottom: 56px; }
.mkh-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--border-color, #e5e7ef); padding-bottom: 12px; }
.mkh-section__title { font-size: 18px; font-weight: 700; color: var(--text-color, #1a1c23); text-decoration: none; font-family: 'Montserrat Semibold', sans-serif; transition: color .15s; }
.mkh-section__title:hover { color: var(--second-color, #4a6cf7); }
.mkh-section__all { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--second-color, #4a6cf7); text-decoration: none; transition: opacity .15s; }
.mkh-section__all:hover { opacity: .75; }

/* ── Hub grid ── */
.mkh-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1200px) { .mkh-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .mkh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .mkh-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Hub card ── */
.mkh-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--border-color, #e5e7ef); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .18s, border-color .18s, transform .18s; }
.mkh-card:hover { box-shadow: 0 6px 24px rgba(74,108,247,.13); border-color: var(--second-color, #4a6cf7); transform: translateY(-2px); }
.mkh-card__img-wrap { width: 100%; aspect-ratio: 1/1; background: var(--site-bg2, #f5f6fa); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mkh-card__img-wrap--broken { background: var(--site-bg2, #f5f6fa); }
.mkh-card__img { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; }
.mkh-card__body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.mkh-card__title { font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--text-color, #1a1c23); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mkh-card__desc { font-size: 11px; color: #606470; line-height: 1.45; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.mkh-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.mkh-card__price { font-size: 12px; font-weight: 700; color: var(--second-color, #4a6cf7); }
.mkh-card__installs { font-size: 11px; color: #27ae60; font-weight: 600; }
.mkh-card__more { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--second-color, #4a6cf7); opacity: 0; transition: opacity .18s; }
.mkh-card:hover .mkh-card__more { opacity: 1; }
.mkh-card__cmp { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border-color, #e5e7ef); background: #fff; color: var(--second-color, #4a6cf7); font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s; z-index: 2; }
.mkh-card:hover .mkh-card__cmp { display: flex; }
.mkh-card__cmp.is-added { background: var(--second-color,#4a6cf7); color:#fff; border-color: var(--second-color,#4a6cf7); display:flex; }

/* ── Hub sort buttons ── */
.mkh-sort { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.mkh-sort__btn { padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--border-color, #e5e7ef); background: transparent; font-size: 13px; font-weight: 600; color: var(--text-color, #1a1c23); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.mkh-sort__btn:hover, .mkh-sort__btn.is-active { border-color: var(--second-color, #4a6cf7); background: var(--second-color, #4a6cf7); color: #fff; }

/* ── Load more button ── */
.mkh-load-more { display: flex; justify-content: center; padding: 32px 0 48px; }
.mkh-load-more__btn { padding: 14px 36px; border: 2px solid var(--second-color, #4a6cf7); border-radius: 12px; background: transparent; font-size: 15px; font-weight: 700; color: var(--second-color, #4a6cf7); cursor: pointer; transition: background .18s, color .18s; }
.mkh-load-more__btn:hover { background: var(--second-color, #4a6cf7); color: #fff; }

/* ── Filter bar ── */
.mkf-bar { display: flex; justify-content: center; background: var(--site-bg1, #fff); border-bottom: 1px solid var(--border-color, #e5e7ef); padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.mkf-bar__inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mkf-sort { display: flex; gap: 6px; flex-shrink: 0; }
.mkf-sort__btn { padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--border-color, #e5e7ef); font-size: 13px; font-weight: 600; color: var(--text-color, #1a1c23); text-decoration: none; transition: border-color .15s, background .15s, color .15s; white-space: nowrap; }
.mkf-sort__btn:hover, .mkf-sort__btn.is-active { border-color: var(--second-color, #4a6cf7); background: var(--second-color, #4a6cf7); color: #fff; }
.mkf-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mkf-price__label { font-size: 13px; color: #606470; white-space: nowrap; }
.mkf-price__sep { color: #606470; }
.mkf-price__input { width: 100px; padding: 6px 10px; border: 1.5px solid var(--border-color, #e5e7ef); border-radius: 8px; font-size: 13px; outline: none; }
.mkf-price__input:focus { border-color: var(--second-color, #4a6cf7); }
.mkf-price__submit { padding: 7px 14px; background: var(--second-color, #4a6cf7); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.mkf-price__submit:hover { opacity: .85; }
.mkf-price__reset { font-size: 13px; color: #606470; text-decoration: none; padding: 4px 8px; border-radius: 6px; transition: background .15s; }
.mkf-price__reset:hover { background: #f0f1f5; color: var(--text-color); }
.mkf-count { margin-left: auto; font-size: 13px; color: #606470; white-space: nowrap; }
.mkf-empty { padding: 48px 0; text-align: center; font-size: 15px; color: #606470; }
.mkf-empty a { color: var(--second-color, #4a6cf7); }

/* ── Category grid ── */
.mkc-section { display: flex; justify-content: center; padding: 32px 0 56px; }
.mkc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1200px) { .mkc-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .mkc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .mkc-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Category card ── */
.mkc-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--border-color, #e5e7ef); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .18s, border-color .18s, transform .18s; }
.mkc-card:hover { box-shadow: 0 6px 24px rgba(74,108,247,.13); border-color: var(--second-color, #4a6cf7); transform: translateY(-2px); }
.mkc-card__img-wrap { width: 100%; aspect-ratio: 1/1; background: var(--site-bg2, #f5f6fa); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mkc-card__img { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; }
.mkc-card__body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.mkc-card__title { font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--text-color, #1a1c23); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mkc-card__desc { font-size: 11px; color: #606470; line-height: 1.45; margin: 0 0 8px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mkc-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.mkc-card__price { font-size: 12px; font-weight: 700; color: var(--second-color, #4a6cf7); }
.mkc-card__installs { font-size: 11px; color: #27ae60; font-weight: 600; }
.mkc-card__more { display: block; margin: 8px 12px 10px; font-size: 12px; font-weight: 600; color: var(--second-color, #4a6cf7); opacity: 0; transition: opacity .18s; }
.mkc-card:hover .mkc-card__more { opacity: 1; }
.mkc-card__cmp { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-color, #e5e7ef); background: #fff; color: var(--second-color, #4a6cf7); font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; transition: background .15s, color .15s; z-index: 2; }
.mkc-card:hover .mkc-card__cmp { display: flex; }
.mkc-card__cmp.is-added { background: var(--second-color,#4a6cf7); color:#fff; border-color: var(--second-color,#4a6cf7); display:flex; }

/* ── Catalog back-link ── */
.mkc-catalog-link { display: flex; justify-content: center; padding: 32px 0 48px; }
.mkc-catalog-link__btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: 2px solid var(--second-color, #4a6cf7); border-radius: 12px; font-size: 15px; font-weight: 700; color: var(--second-color, #4a6cf7); text-decoration: none; transition: background .18s, color .18s; }
.mkc-catalog-link__btn:hover { background: var(--second-color, #4a6cf7); color: #fff; }

/* ── Compare tray ── */
.mkcmp-tray { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9980; background: #fff; border-top: 2px solid var(--second-color, #4a6cf7); box-shadow: 0 -4px 24px rgba(0,0,0,.12); display: flex; align-items: center; gap: 16px; padding: 12px 24px; animation: cmpSlideUp .22s ease; }
@keyframes cmpSlideUp { from { transform: translateY(100%); } to { transform: none; } }
.mkcmp-tray__items { display: flex; gap: 10px; flex: 1; overflow-x: auto; }
.mkcmp-tray__item { position: relative; width: 56px; height: 56px; flex-shrink: 0; border: 1.5px solid var(--border-color, #e5e7ef); border-radius: 10px; overflow: hidden; background: var(--site-bg2,#f5f6fa); }
.mkcmp-tray__item img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.mkcmp-tray__item-name { display: none; }
.mkcmp-tray__item-rm { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: #ff4d4f; color: #fff; border: none; font-size: 10px; line-height: 16px; text-align: center; cursor: pointer; z-index: 1; }
.mkcmp-tray__btn { padding: 10px 22px; background: var(--second-color,#4a6cf7); color:#fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: opacity .15s; }
.mkcmp-tray__btn:hover { opacity: .85; }
.mkcmp-tray__clear { padding: 10px 16px; background: none; border: 1.5px solid var(--border-color,#e5e7ef); border-radius: 10px; font-size: 13px; font-weight: 600; color: #606470; cursor: pointer; flex-shrink: 0; transition: border-color .15s; }
.mkcmp-tray__clear:hover { border-color: #ff4d4f; color: #ff4d4f; }

/* ── Compare overlay ── */
.mkcmp-overlay { display: none; position: fixed; inset: 0; z-index: 9995; background: rgba(0,0,0,.5); align-items: center; justify-content: center; }
.mkcmp-overlay.is-open { display: flex; }
.mkcmp-modal { position: relative; background: #fff; border-radius: 20px; width: 96vw; max-width: 1100px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.2); animation: mkhelp-in .22s ease; }
.mkcmp-modal__close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 18px; color: #606470; cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: background .15s; z-index: 1; }
.mkcmp-modal__close:hover { background: #f0f1f5; }
.mkcmp-modal__title { font-size: 20px; font-weight: 800; padding: 24px 24px 0; flex-shrink: 0; }
.mkcmp-table-wrap { overflow: auto; padding: 16px 24px 24px; }
.mkcmp-table { border-collapse: collapse; width: 100%; min-width: 400px; }
.mkcmp-table th, .mkcmp-table td { border: 1px solid var(--border-color,#e5e7ef); padding: 10px 14px; text-align: left; font-size: 13px; vertical-align: top; }
.mkcmp-table th { background: var(--site-bg2,#f5f6fa); font-weight: 700; white-space: nowrap; width: 120px; }
.mkcmp-table td { min-width: 180px; }
.mkcmp-table .cmp-img { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; background: var(--site-bg2,#f5f6fa); padding: 6px; }
.mkcmp-table .cmp-name { font-weight: 700; font-size: 14px; }
.mkcmp-table .cmp-price { color: var(--second-color,#4a6cf7); font-weight: 700; }
.mkcmp-table .cmp-link { display: inline-block; margin-top: 8px; padding: 7px 14px; background: var(--second-color,#4a6cf7); color:#fff; border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; }
.mkcmp-table tr.cmp-best td { background: #f0f7ff; }

/* ── FAB (плавающая кнопка подбора) ── */
.mkhelp-fab { position: fixed; bottom: 90px; right: 28px; z-index: 9990; display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; background: var(--second-color, #4a6cf7); color: #fff; border: none; border-radius: 40px; font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer; text-align: left; box-shadow: 0 4px 20px rgba(74,108,247,.4); transition: transform .18s, box-shadow .18s; }
.mkhelp-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(74,108,247,.5); }
.mkhelp-fab svg { flex-shrink: 0; }
@media (max-width: 540px) { .mkhelp-fab span { display: none; } .mkhelp-fab { padding: 14px; border-radius: 50%; } }

/* ── Help overlay ── */
.mkhelp-overlay { display: none; position: fixed; inset: 0; z-index: 9995; background: rgba(0,0,0,.45); align-items: center; justify-content: center; }
.mkhelp-overlay.is-open { display: flex; }
.mkhelp-modal { position: relative; background: #fff; border-radius: 20px; padding: 40px 36px 36px; width: 100%; max-width: 460px; margin: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.18); animation: mkhelp-in .22s ease; }
@keyframes mkhelp-in { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
.mkhelp-modal__close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 18px; color: #606470; cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: background .15s; }
.mkhelp-modal__close:hover { background: #f0f1f5; }
.mkhelp-modal__title { font-size: 20px; font-weight: 800; color: var(--text-color, #1a1c23); margin: 0 0 8px; }
.mkhelp-modal__sub { font-size: 14px; color: #606470; margin: 0 0 24px; line-height: 1.55; }
.mkhelp-form__row { margin-bottom: 12px; }
.mkhelp-form__input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border-color, #e5e7ef); border-radius: 10px; font-size: 14px; outline: none; box-sizing: border-box; transition: border-color .15s; }
.mkhelp-form__input:focus { border-color: var(--second-color, #4a6cf7); }
.mkhelp-form__textarea { resize: vertical; min-height: 80px; }
.mkhelp-form__submit { width: 100%; padding: 14px; background: var(--second-color, #4a6cf7); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .18s; margin-top: 4px; }
.mkhelp-form__submit:hover { opacity: .88; }
.mkhelp-form__ok { margin-top: 12px; font-size: 14px; font-weight: 600; color: #27ae60; text-align: center; }

/* ── Footer market strip ── */
.fmk-strip { background: var(--site-bg2, #f5f6fa); border-top: 1px solid var(--border-color, #e5e7ef); padding: 14px 0; }
.fmk-strip .container { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fmk-strip__label { font-size: 12px; font-weight: 700; color: #606470; white-space: nowrap; flex-shrink: 0; }
.fmk-strip__nav { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.fmk-strip__link { font-size: 12px; color: #606470; text-decoration: none; transition: color .15s; white-space: nowrap; }
.fmk-strip__link:hover { color: var(--second-color, #4a6cf7); }
.fmk-strip__all { font-size: 12px; font-weight: 600; color: var(--second-color, #4a6cf7); text-decoration: none; margin-left: 4px; white-space: nowrap; }
.fmk-strip__all:hover { text-decoration: underline; }

/* ── Product slider ── */
.mkp-slider { position: relative; background: var(--site-bg2, #f5f6fa); border-radius: 12px; overflow: hidden; margin-top: 24px; user-select: none; aspect-ratio: 16/9; }
@supports not (aspect-ratio: 16/9) { .mkp-slider::before { content: ''; display: block; padding-top: 56.25%; } }
.mkp-slider__track { position: absolute; inset: 0; }
.mkp-slider__slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; opacity: 0; visibility: hidden; transition: opacity 0.25s ease; cursor: zoom-in; }
.mkp-slider__slide--active { opacity: 1; visibility: visible; }
.mkp-slider__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; display: block; }
.mkp-slider__img:not(.mkp-slider__img--loaded) { background: var(--border-color, #e5e7ef); }
.mkp-slider__btn { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 1.5px solid var(--border-color, #e5e7ef); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; z-index: 2; }
.mkp-slider__btn svg { display: block; stroke: #333; fill: none; }
.mkp-slider__btn:hover { background: var(--second-color, #4a6cf7); border-color: transparent; }
.mkp-slider__btn:hover svg { stroke: #fff; }
.mkp-slider__btn--prev { left: 12px; }
.mkp-slider__btn--next { right: 12px; }
.mkp-slider__btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.mkp-slider__counter { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; pointer-events: none; }
.mkp-desc__single-img { margin-top: 24px; text-align: center; cursor: zoom-in; }
.mkp-desc__img { max-width: 100%; height: auto; display: block; margin: 16px auto; border-radius: 8px; }

/* ── Product AI description ── */
.mkp-ai-desc__body { font-size: 15px; line-height: 1.75; color: var(--text-color, #2d2f3a); max-width: 780px; }
.mkp-ai-desc__body p { margin: 0 0 12px; }
.mkp-ai-desc__body ul, .mkp-ai-desc__body ol { margin: 0 0 12px; padding-left: 20px; }
.mkp-ai-desc__body li { margin-bottom: 4px; }
.mkp-ai-desc__body h3 { margin: 20px 0 8px; font-weight: 700; }

/* ── Product tabs ── */
.mkp-tabs { display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 2px solid var(--border-color, #e5e7ef); }
.mkp-tab { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; padding: 10px 18px 12px; font-size: 14px; font-weight: 600; font-family: 'Montserrat Semibold', sans-serif; color: #606470; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; border-radius: 6px 6px 0 0; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.mkp-tab svg { opacity: .7; }
.mkp-tab:hover { color: var(--second-color, #4a6cf7); background: var(--site-bg2, #fff); }
.mkp-tab:hover svg { opacity: 1; }
.mkp-tab--active { color: var(--second-color, #4a6cf7); border-bottom-color: var(--second-color, #4a6cf7); background: var(--site-bg2, #fff); }
.mkp-tab--active svg { opacity: 1; }
.mkp-tab__count { background: var(--site-bg1, #f5f6fa); border: 1px solid var(--border-color, #e5e7ef); border-radius: 20px; font-size: 12px; padding: 1px 8px; font-weight: 400; color: #606470; font-family: inherit; }
.mkp-tab--active .mkp-tab__count { background: color-mix(in srgb, var(--second-color,#4a6cf7) 10%, #fff); border-color: color-mix(in srgb, var(--second-color,#4a6cf7) 30%, #fff); color: var(--second-color, #4a6cf7); }

/* ── Product demo banner ── */
.mkp-demo { background: var(--second-color, #4a6cf7); padding: 28px 0; }
.mkp-demo__body { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mkp-demo__icon { flex-shrink: 0; width: 52px; height: 52px; background: rgba(255,255,255,.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.mkp-demo__text { flex: 1; min-width: 200px; }
.mkp-demo__title { font-family: 'Montserrat Semibold', sans-serif; font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.mkp-demo__sub { font-size: 14px; color: rgba(255,255,255,.82); margin: 0; line-height: 1.5; }
.mkp-demo__btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--second-color, #4a6cf7); border: none; border-radius: 10px; padding: 12px 22px; font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity 0.15s; font-family: inherit; white-space: nowrap; }
.mkp-demo__btn:hover { opacity: .88; }
@media (max-width: 640px) { .mkp-demo__body { flex-direction: column; align-items: flex-start; } .mkp-demo__btn { width: 100%; justify-content: center; } }

/* ── Product lead modal ── */
.mkp-modal-overlay { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.55); align-items: center; justify-content: center; padding: 16px; }
.mkp-modal-overlay--open { display: flex; }
.mkp-modal { background: #fff; border-radius: 16px; padding: 32px 28px 28px; width: 100%; max-width: 420px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.mkp-modal__close { position: absolute; top: 14px; right: 14px; background: none; border: none; cursor: pointer; color: #999; padding: 4px; line-height: 1; }
.mkp-modal__close:hover { color: #333; }
.mkp-modal__title { font-size: 18px; font-weight: 700; color: var(--text-color,#1a1c23); margin: 0 0 6px; }
.mkp-modal__sub { font-size: 13px; color: #606470; margin: 0 0 20px; }
.mkp-modal__product { background: var(--site-bg2,#f5f6fa); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #606470; margin-bottom: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkp-modal__field { margin-bottom: 12px; }
.mkp-modal__input { width: 100%; box-sizing: border-box; border: 1.5px solid var(--border-color,#e5e7ef); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: var(--text-color,#1a1c23); outline: none; transition: border-color 0.15s; font-family: inherit; }
.mkp-modal__input:focus { border-color: var(--second-color,#4a6cf7); }
.mkp-modal__input.has-error { border-color: #e84040; }
.mkp-modal__textarea { resize: vertical; min-height: 72px; }
.mkp-modal__submit { width: 100%; padding: 12px; background: var(--second-color,#4a6cf7); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; margin-top: 4px; font-family: inherit; }
.mkp-modal__submit:hover { opacity: .88; }
.mkp-modal__submit:disabled { opacity: .5; cursor: default; }
.mkp-modal__success { text-align: center; padding: 16px 0; font-size: 15px; color: #27ae60; font-weight: 600; display: none; }
.mkp-modal__error-msg { color: #e84040; font-size: 13px; margin-top: 8px; display: none; }

/* ── Product lightbox ── */
.mkp-lb { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); align-items: center; justify-content: center; }
.mkp-lb--open { display: flex; }
.mkp-lb__img { max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); object-fit: contain; border-radius: 6px; display: block; user-select: none; }
.mkp-lb__btn { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none; border-radius: 50%; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s; z-index: 10000; }
.mkp-lb__btn:hover { background: rgba(255,255,255,.25); }
.mkp-lb__btn svg { stroke: #fff; fill: none; display: block; }
.mkp-lb__btn--prev { left: 16px; }
.mkp-lb__btn--next { right: 16px; }
.mkp-lb__close { position: fixed; top: 16px; right: 16px; background: rgba(255,255,255,.12); border: none; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s; z-index: 10000; }
.mkp-lb__close:hover { background: rgba(255,255,255,.25); }
.mkp-lb__close svg { stroke: #fff; fill: none; display: block; }
.mkp-lb__counter { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600; pointer-events: none; z-index: 10000; }
@media (max-width: 600px) { .mkp-lb__img { max-width: calc(100vw - 20px); } .mkp-lb__btn--prev { left: 4px; } .mkp-lb__btn--next { right: 4px; } }

/* ── Related products ── */
.mkp-related { padding: 40px 0; border-top: 1px solid var(--border-color, #e5e7ef); }
.mkp-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.mkp-related__title { font-size: 18px; font-weight: 700; margin: 0; color: var(--text-color, #1a1c23); font-family: 'Montserrat Semibold', sans-serif; }
.mkp-related__all { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--second-color, #4a6cf7); text-decoration: none; transition: opacity .15s; }
.mkp-related__all:hover { opacity: .75; }
.mkp-lnk__grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
@media (max-width: 1200px) { .mkp-lnk__grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 860px)  { .mkp-lnk__grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px)  { .mkp-lnk__grid { grid-template-columns: repeat(2,1fr); } }
.mkp-lnk__card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--border-color,#e5e7ef); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .18s, border-color .18s, transform .18s; }
.mkp-lnk__card:hover { box-shadow: 0 4px 18px rgba(74,108,247,.12); border-color: var(--second-color,#4a6cf7); transform: translateY(-2px); }
.mkp-lnk__img-wrap { width: 100%; aspect-ratio: 1/1; background: var(--site-bg2,#f5f6fa); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mkp-lnk__img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.mkp-lnk__img--empty { width: 100%; height: 100%; }
.mkp-lnk__body { padding: 9px 11px 11px; display: flex; flex-direction: column; flex: 1; }
.mkp-lnk__title { font-size: 11px; font-weight: 700; line-height: 1.4; margin: 0 0 5px; color: var(--text-color,#1a1c23); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mkp-lnk__desc { font-size: 10px; color: #606470; line-height: 1.4; margin: 0 0 6px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mkp-lnk__footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; flex-wrap: wrap; }
.mkp-lnk__price { font-size: 11px; font-weight: 700; color: var(--second-color,#4a6cf7); }
.mkp-lnk__inst { font-size: 10px; color: #27ae60; font-weight: 600; }

/* ── Market sections block ── */
.mkp-sections { padding: 40px 0 56px; border-top: 1px solid var(--border-color,#e5e7ef); background: var(--site-bg2,#f5f6fa); }
.mkp-sections__title { font-size: 18px; font-weight: 700; margin: 0 0 20px; color: var(--text-color,#1a1c23); font-family: 'Montserrat Semibold', sans-serif; }
.mkp-sections__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 860px) { .mkp-sections__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .mkp-sections__grid { grid-template-columns: 1fr 1fr; } }
.mkp-sections__card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--border-color,#e5e7ef); border-radius: 10px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mkp-sections__card:hover { border-color: var(--second-color,#4a6cf7); box-shadow: 0 2px 10px rgba(74,108,247,.1); }
.mkp-sections__name { font-size: 13px; font-weight: 600; color: var(--text-color,#1a1c23); line-height: 1.3; }
.mkp-sections__cnt { flex-shrink: 0; background: var(--site-bg2,#f5f6fa); border: 1px solid var(--border-color,#e5e7ef); border-radius: 20px; font-size: 11px; font-weight: 600; color: #606470; padding: 2px 8px; }
