/* Wishlist + Compare UI */
.pc-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pc-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(88, 94, 146, 0.18);
    background: rgba(255, 255, 255, 0.95);
    color: #585E92;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pc-action:hover {
    transform: scale(1.06);
    background: #fff;
}

.pc-action.is-active {
    background: #585E92;
    color: #fff;
    border-color: #585E92;
}

.pc-action--fav.is-active {
    background: #c45c6a;
    border-color: #c45c6a;
}

/* Legacy alias kept for safety */
.header-wc-link {
    display: none;
}

/* Floating favorites heart — слева, чтобы не пересекаться с фильтром каталога справа */
.favorites-fab {
    position: fixed;
    left: 16px;
    right: auto;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: #c45c6a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(31, 31, 36, 0.14);
    border: 1px solid rgba(196, 92, 106, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, bottom 0.2s ease;
}

.favorites-fab[hidden] {
    display: none !important;
}

.favorites-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(31, 31, 36, 0.18);
    color: #c45c6a;
}

.favorites-fab__heart {
    font-size: 1.35rem;
    line-height: 1;
}

.favorites-fab__count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 99px;
    background: #585E92;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
}

.favorites-fab__count[hidden] {
    display: none !important;
}

.compare-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e4e4ec;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}

.compare-sticky-bar__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.compare-sticky-bar__text {
    font-size: 0.95rem;
    color: #2d2d2d;
    flex: 1 1 auto;
    min-width: 0;
}

.compare-sticky-bar__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.compare-sticky-bar__clear {
    border: none;
    background: transparent;
    color: #6b6b78;
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 40px;
    padding: 0 8px;
}

.compare-sticky-bar__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: #585E92;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Мобильный стек: меню снизу → сравнение над ним → FAB выше */
@media (max-width: 992px) {
    :root {
        --mobile-bottom-nav-h: 64px;
        --compare-bar-h: 56px;
    }

    .bottom-nav {
        bottom: 0 !important;
        z-index: 1200 !important;
    }

    .compare-sticky-bar {
        bottom: calc(var(--wb-nav-height, var(--mobile-bottom-nav-h)) + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 1150;
        padding: 8px 12px;
        min-height: var(--compare-bar-h);
        box-sizing: border-box;
    }

    .compare-sticky-bar__inner {
        gap: 8px;
    }

    .compare-sticky-bar__go {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    .compare-sticky-bar__clear {
        min-height: 36px;
        font-size: 0.85rem;
    }

    .favorites-fab {
        left: 14px;
        right: auto;
        bottom: calc(var(--mobile-bottom-nav-h) + 14px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 1160;
        width: 48px;
        height: 48px;
    }

    body.has-compare-bar .favorites-fab {
        bottom: calc(var(--mobile-bottom-nav-h) + var(--compare-bar-h) + 14px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.has-compare-bar .main-content {
        padding-bottom: calc(var(--mobile-bottom-nav-h) + var(--compare-bar-h) + 24px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Каталог: фильтр справа, избранное слева — оба над меню/сравнением */
    .fab-filters {
        bottom: calc(var(--wb-nav-height, var(--mobile-bottom-nav-h)) + 14px + env(safe-area-inset-bottom, 0px)) !important;
        right: 14px !important;
        z-index: 1160 !important;
    }

    body.has-compare-bar .fab-filters {
        bottom: calc(var(--wb-nav-height, var(--mobile-bottom-nav-h)) + var(--compare-bar-h) + 14px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .fab-filters.is-above-cartbar {
        bottom: calc(var(--wb-nav-height, 64px) + var(--wb-cartbar-height, 56px) + 14px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.has-compare-bar .fab-filters.is-above-cartbar {
        bottom: calc(var(--wb-nav-height, 64px) + var(--wb-cartbar-height, 56px) + var(--compare-bar-h) + 14px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.has-compare-bar .wb-cart-bar {
        bottom: calc(var(--wb-nav-height, 64px) + var(--compare-bar-h) + 8px) !important;
    }

    body.catalog-page .favorites-fab {
        bottom: calc(var(--wb-nav-height, var(--mobile-bottom-nav-h)) + 14px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.catalog-page.has-compare-bar .favorites-fab {
        bottom: calc(var(--wb-nav-height, var(--mobile-bottom-nav-h)) + var(--compare-bar-h) + 14px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (min-width: 993px) {
    .favorites-fab {
        left: 24px;
        bottom: 28px;
    }

    body.has-compare-bar .favorites-fab {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
}

/* ——— Pages ——— */
.wc-page {
    padding: 20px 0 110px;
    min-height: 55vh;
    background: linear-gradient(180deg, #faf9fc 0%, #fff 180px);
}

.wc-page__header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 18px;
}

.wc-page__title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.55rem, 5vw, 1.9rem);
    color: #1f1f24;
}

.wc-page__subtitle {
    margin: 4px 0 0;
    color: #6b6b78;
    font-size: 0.92rem;
    line-height: 1.4;
}

.wc-empty {
    text-align: center;
    padding: 40px 18px;
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 16px;
}

.wc-empty__icon {
    font-size: 2.25rem;
    opacity: 0.45;
    margin-bottom: 8px;
}

.wc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wc-toolbar .btn,
.wc-hint-btn {
    min-height: 44px;
    flex: 1 1 auto;
}

.wc-hint-btn {
    border: 1.5px solid #585E92;
    background: #fff;
    color: #585E92;
    border-radius: 12px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
}

.compare-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #2d2d2d;
    cursor: pointer;
    user-select: none;
    min-height: 44px;
    padding-right: 4px;
}

.compare-check input {
    width: 18px;
    height: 18px;
    accent-color: #585E92;
    flex-shrink: 0;
}

/* Favorites grid — compact on phone */
.wc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wc-card {
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wc-card.is-oos {
    opacity: 0.72;
}

.wc-card__img {
    aspect-ratio: 1;
    background: #f5f5f8;
    overflow: hidden;
    display: block;
}

.wc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wc-card__body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.wc-card__name {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f1f24;
    text-decoration: none;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wc-card__price {
    color: #585E92;
    font-weight: 700;
    font-size: 0.98rem;
}

.wc-card__meta {
    font-size: 0.78rem;
    color: #6b6b78;
    line-height: 1.35;
}

.wc-card__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}

.wc-card__actions .btn {
    width: 100%;
    min-height: 40px;
    font-size: 0.85rem;
    padding: 8px 10px;
}

.wc-card__row-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

@media (min-width: 640px) {
    .wc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 960px) {
    .wc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .wc-page__header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .wc-toolbar .btn,
    .wc-hint-btn {
        flex: 0 0 auto;
    }
}

/* ——— Compare matrix (TZ) ——— */
.cmp-sticky-head {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e4e4ec;
    box-shadow: 0 4px 12px rgba(88, 94, 146, 0.08);
    margin: 0 -12px 12px;
    padding: 8px 12px;
}

.cmp-sticky-head__inner {
    display: grid;
    grid-template-columns: 88px repeat(var(--cmp-cols, 2), minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    max-width: 1100px;
    margin: 0 auto;
}

.cmp-sticky-head__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #8a8a98;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cmp-sticky-head__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cmp-sticky-head__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1f1f24;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmp-sticky-head__price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #585E92;
}

.cmp-matrix {
    --cmp-label-w: 88px;
    background: #fff;
    border: 1px solid #ececf2;
    border-radius: 14px;
    overflow: hidden;
}

.cmp-matrix__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.cmp-head,
.cmp-row {
    display: grid;
    grid-template-columns: var(--cmp-label-w) 1fr;
    min-width: calc(var(--cmp-label-w) + var(--cmp-cols, 2) * 140px);
}

.cmp-head {
    background: #faf9fc;
    border-bottom: 1px solid #ececf2;
}

.cmp-head__label,
.cmp-row__label {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #faf9fc;
    padding: 10px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #8a8a98;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
    border-right: 1px solid #ececf2;
    box-sizing: border-box;
}

.cmp-row__label {
    background: #fff;
    display: flex;
    align-items: flex-start;
}

.cmp-head__cols,
.cmp-row__cells {
    display: grid;
    grid-template-columns: repeat(var(--cmp-cols, 2), minmax(140px, 1fr));
}

.cmp-col {
    padding: 12px 10px 14px;
    border-left: 1px solid #f0f0f4;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.cmp-col:first-child {
    border-left: none;
}

.cmp-col__media {
    position: relative;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f3f7;
}

.cmp-col__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cmp-col__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #585E92;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cmp-col__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f1f24;
    text-decoration: none;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cmp-col__price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #585E92;
}

.cmp-col__cta .btn {
    width: 100%;
    min-height: 40px;
}

.cmp-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(88, 94, 146, 0.12);
    color: #585E92;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
}

.cmp-badge--key {
    background: rgba(88, 94, 146, 0.16);
}

.cmp-upgrade {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #4a4a55;
    background: #f7f6fb;
    border-radius: 8px;
    padding: 8px;
}

.cmp-upgrade__label {
    font-weight: 600;
    color: #585E92;
}

.cmp-row {
    border-top: 1px solid #f0f0f4;
}

.cmp-row--full .cmp-row__cells {
    align-items: start;
}

.cmp-cell {
    padding: 12px 10px;
    border-left: 1px solid #f0f0f4;
    min-width: 0;
    font-size: 0.9rem;
    color: #2d2d2d;
    line-height: 1.4;
}

.cmp-cell:first-child {
    border-left: none;
}

.cmp-cell__primary {
    font-weight: 500;
    word-break: break-word;
}

.cmp-cell__secondary {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #6b6b78;
}

.cmp-cell--ok .cmp-cell__primary {
    color: #2e7d32;
}

.cmp-cell--warn .cmp-cell__primary {
    color: #c0392b;
}

.cmp-cell--muted .cmp-cell__primary {
    color: #8a8a98;
}

.cmp-cell .cmp-badge {
    margin-top: 6px;
}

.cmp-full {
    padding: 4px 10px 12px;
    border-left: 1px solid #f0f0f4;
    font-size: 0.8rem;
}

.cmp-full:first-child {
    border-left: none;
}

.cmp-full summary {
    cursor: pointer;
    color: #585E92;
    font-weight: 600;
    list-style: none;
}

.cmp-full summary::-webkit-details-marker {
    display: none;
}

.cmp-full-list {
    margin: 8px 0 0;
    padding-left: 1.1em;
    color: #4a4a55;
}

.cmp-full-empty {
    margin: 8px 0 0;
    color: #8a8a98;
}

.cmp-sticky-cta {
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(var(--cmp-cols, 2), minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e4e4ec;
    border-radius: 12px;
    box-shadow: 0 -4px 16px rgba(31, 31, 36, 0.06);
}

.cmp-sticky-cta .btn {
    min-height: 44px;
    font-size: 0.82rem;
    padding: 8px 10px;
}

.cmp-invite {
    display: grid;
    gap: 16px;
}

.cmp-invite__card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid #ececf2;
    border-radius: 14px;
    padding: 12px;
}

.cmp-invite__card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
}

.cmp-invite__name {
    font-weight: 600;
    color: #1f1f24;
    text-decoration: none;
}

.cmp-invite__price {
    margin-top: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #585E92;
}

.cmp-invite__msg {
    text-align: center;
    padding: 8px 4px 24px;
}

.cmp-invite__msg h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.cmp-invite__msg p {
    margin: 0 0 14px;
    color: #6b6b78;
}

@media (min-width: 769px) {
    .cmp-sticky-head {
        margin: 0 0 16px;
        border-radius: 12px;
        border: 1px solid #e4e4ec;
    }

    .cmp-col__media {
        height: 170px;
    }

    .cmp-head,
    .cmp-row {
        min-width: 0;
    }

    .cmp-matrix {
        --cmp-label-w: 120px;
    }

    .cmp-sticky-cta {
        bottom: 16px;
    }
}

/* Sticky bar thumbnails */
.compare-sticky-bar__thumbs {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.compare-sticky-bar__thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f4;
    border: 1px solid #e4e4ec;
}

.compare-replace {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 1300;
    background: #fff;
    border: 1px solid #e4e4ec;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(31, 31, 36, 0.16);
    padding: 14px;
    max-width: 420px;
    margin: 0 auto;
}

.compare-replace__title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
}

.compare-replace__hint {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: #6b6b78;
}

.compare-replace__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 10px;
}

.compare-replace__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid #e4e4ec;
    background: #faf9fc;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
    color: #1f1f24;
    font-size: 0.9rem;
}

.compare-replace__item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.compare-replace__cancel {
    width: 100%;
    border: none;
    background: transparent;
    color: #6b6b78;
    min-height: 40px;
    cursor: pointer;
}

.pc-action--cmp.is-active {
    background: #585E92;
    color: #fff;
    border-color: #585E92;
}

/* ——— Mobile DNS comparator (TZ v4) ——— */
@media (max-width: 768px) {
    .compare-check--desk {
        display: none !important;
    }

    .cmp-desktop,
    .cmp-matrix {
        display: none !important;
    }

    .wc-page.compare-page,
    .compare-page .wc-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    body.compare-page.has-mcmp-buy .main-content,
    body.compare-page.has-mcmp-buy .wc-page {
        padding-bottom: calc(72px + var(--mobile-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 769px) {
    .mcmp {
        display: none !important;
    }

    .mcmp-sticky-head {
        display: none !important;
    }
}

.mcmp {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mcmp-pair-sel__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8a98;
    margin-bottom: 8px;
}

.mcmp-pair-sel__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.mcmp-pair-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 46%;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1.5px solid #e4e4ec;
    background: #fff;
    color: #1f1f24;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.mcmp-pair-chip img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.mcmp-pair-chip span {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2;
    text-align: left;
}

.mcmp-pair-chip i {
    color: #585E92;
    font-style: normal;
    font-weight: 700;
}

.mcmp-pair-chip.is-active {
    border-color: #585E92;
    background: rgba(88, 94, 146, 0.08);
    box-shadow: inset 0 0 0 1px rgba(88, 94, 146, 0.15);
}

.mcmp-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    background: #f0f0f4;
    border-radius: 12px;
}

.mcmp-mode__btn {
    min-height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #6b6b78;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 6px;
}

.mcmp-mode__btn.is-active {
    background: #fff;
    color: #585E92;
    box-shadow: 0 1px 4px rgba(31, 31, 36, 0.08);
}

.mcmp-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mcmp-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.mcmp-card.is-selected {
    border-color: #585E92;
    background: rgba(88, 94, 146, 0.04);
}

.mcmp-card__media {
    position: relative;
    aspect-ratio: 1 / 1.05;
    max-height: 165px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f3f7;
}

.mcmp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mcmp-card__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    min-width: 44px;
    min-height: 44px;
    margin: -6px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #585E92;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mcmp-card__name {
    min-height: 2.4em;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1f1f24;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mcmp-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #585E92;
    line-height: 1.1;
    white-space: nowrap;
}

.mcmp-card__sec {
    min-height: 1.2em;
    font-size: 0.78rem;
    color: #6b6b78;
    font-weight: 600;
}

.mcmp-card__sec--spacer {
    visibility: hidden;
}

.mcmp-section {
    padding: 14px 0;
    border-top: 1px solid #ececf2;
}

.mcmp-section__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8a98;
    margin-bottom: 10px;
}

.mcmp-section__grid,
.mcmp-key__grid,
.mcmp-accordion__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mcmp-val {
    min-width: 0;
    font-size: 0.98rem;
    color: #2d2d2d;
    line-height: 1.35;
}

.mcmp-val__primary,
.mcmp-val__lines {
    font-weight: 600;
    word-break: break-word;
}

.mcmp-val__secondary {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #6b6b78;
    font-weight: 600;
}

.mcmp-val--ok .mcmp-val__primary {
    color: #2e7d32;
}

.mcmp-val--warn .mcmp-val__primary,
.mcmp-val--muted .mcmp-val__primary {
    color: #8a8a98;
}

.mcmp-badge {
    display: inline-flex;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(88, 94, 146, 0.12);
    color: #585E92;
    font-size: 0.7rem;
    font-weight: 700;
}

.mcmp-key {
    background: #faf9fc;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #ececf2;
}

.mcmp-key__fact {
    font-size: 0.95rem;
    font-weight: 700;
    color: #585E92;
    line-height: 1.25;
}

.mcmp-key__fact--empty {
    color: #c8c8d0;
    font-weight: 500;
}

.mcmp-key__name {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #8a8a98;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcmp-accordion summary {
    cursor: pointer;
    color: #585E92;
    font-weight: 700;
    font-size: 0.9rem;
    list-style: none;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mcmp-accordion summary::-webkit-details-marker {
    display: none;
}

.mcmp-accordion__grid {
    margin-top: 10px;
}

.mcmp-upgrade {
    background: #f7f6fb;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #e8e6f2;
}

.mcmp-upgrade__title {
    font-weight: 700;
    color: #1f1f24;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.mcmp-upgrade__body {
    font-size: 0.88rem;
    color: #4a4a55;
    line-height: 1.4;
}

.mcmp-upgrade__body span {
    font-weight: 600;
    color: #585E92;
}

.mcmp-upgrade--desk {
    margin-top: 16px;
}

.mcmp-buy {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--mobile-bottom-nav-h, 64px) + 8px + env(safe-area-inset-bottom, 0px));
    z-index: 1180;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e4e4ec;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(31, 31, 36, 0.12);
}

.mcmp-buy__label {
    font-size: 0.75rem;
    color: #8a8a98;
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcmp-buy__name,
.mcmp-buy__price {
    font-size: 1rem;
    font-weight: 700;
    color: #1f1f24;
}

.mcmp-buy__price {
    color: #585E92;
}

.mcmp-buy .btn {
    flex-shrink: 0;
    min-height: 44px;
    min-width: 112px;
    padding: 0 14px;
}

.mcmp-sticky-head {
    margin: 0 -12px 10px;
    padding: 8px 12px;
}

.mcmp-sticky-head__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mcmp-sticky-head__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mcmp-sticky-head__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1f1f24;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcmp-sticky-head__price {
    font-size: 0.88rem;
    font-weight: 700;
    color: #585E92;
}

@media (max-width: 360px) {
    .mcmp-card__price {
        font-size: 1.1rem;
    }

    .mcmp-card__name {
        font-size: 0.92rem;
    }

    .mcmp-val {
        font-size: 0.9rem;
    }
}

