/* === Content Editor — стили для статей блога === */
/* Wrapper в Prostore: .editor.article__body--blog                  */
/* ce-* классы уникальны и стилизуются без префикса.                 */
/* blockquote/h2/h3/p — только внутри .article__body--blog          */
/* чтобы не задеть другие места темы.                                */

/* ====== Вступительный «эссе»-блок ====== */

.ce-intro {
    background: #faf5f8;
    border-left: 4px solid #be2768;
    padding: 22px 26px 14px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0 32px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #3a3a3a;
    overflow: hidden; /* drop-cap не пускает float наружу */
}

.ce-intro p {
    margin: 0 0 14px;
}

.ce-intro p:first-of-type::first-letter {
    font-size: 2.6em;
    line-height: 0.95;
    float: left;
    padding: 4px 8px 0 0;
    color: #be2768;
    font-weight: 700;
}

/* ====== Цитаты (только внутри блога) ====== */

.article__body--blog blockquote,
.editor.article__body--blog blockquote {
    margin: 26px 0;
    padding: 14px 26px;
    border-left: 3px solid #be2768;
    background: #faf5f8;
    font-style: italic;
    font-size: 1.15em;
    line-height: 1.55;
    color: #555;
    border-radius: 0 6px 6px 0;
    /* Сбрасываем потенциальные width/position от Prostore */
    box-sizing: border-box;
    max-width: 100%;
    width: auto;
    position: static;
    float: none;
    clear: both;
}

.article__body--blog blockquote::before {
    content: "«";
    font-size: 1.6em;
    color: #be2768;
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 4px;
}

/* ====== Callout-боксы ====== */

.ce-callout {
    margin: 22px 0;
    padding: 14px 18px;
    border-radius: 8px;
    background: #f6f3fb;
    border-left: 4px solid #6e44b5;
    line-height: 1.55;
    box-sizing: border-box;
    max-width: 100%;
}

.ce-callout strong { color: #6e44b5; }

.ce-callout--tip {
    background: #f0fae5;
    border-left-color: #4a8e1a;
}
.ce-callout--tip strong { color: #4a8e1a; }

.ce-callout--warning {
    background: #fef4e9;
    border-left-color: #d6791d;
}
.ce-callout--warning strong { color: #d6791d; }

/* ====== Сравнительная таблица ====== */

.ce-comparison {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    table-layout: auto;
}

.ce-comparison th,
.ce-comparison td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #ece5ef;
    font-size: 0.95em;
    line-height: 1.45;
    vertical-align: top;
}

.ce-comparison thead th {
    background: #f7f4ff;
    color: #6e44b5;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.03em;
}

.ce-comparison tbody tr:last-child td {
    border-bottom: none;
}

.ce-comparison tbody tr:hover {
    background: #faf7fc;
}

/* ====== Карточки товаров ====== */

.content-editor-product-card {
    display: flex;
    gap: 18px;
    margin: 20px 0;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ece5ef;
    transition: box-shadow 0.18s;
    box-sizing: border-box;
}

.content-editor-product-card:hover {
    box-shadow: 0 4px 12px rgba(190, 39, 104, 0.08);
}

.content-editor-product-card .cep-image {
    flex: 0 0 auto;
}

.content-editor-product-card .cep-image img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    background: #f9f7fa;
}

.content-editor-product-card .cep-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.content-editor-product-card .cep-title {
    font-weight: 600;
    font-size: 1.05em;
    color: #333;
    text-decoration: none;
    line-height: 1.35;
}

.content-editor-product-card .cep-title:hover {
    color: #be2768;
}

.content-editor-product-card .cep-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #be2768;
    margin: 4px 0;
}

.content-editor-product-card .cep-link {
    color: #be2768;
    text-decoration: none;
    padding: 8px 16px;
    background: #faf5f8;
    border-radius: 6px;
    font-size: 0.92em;
    align-self: flex-start;
    transition: background 0.18s;
}

.content-editor-product-card .cep-link:hover {
    background: #f1e0e9;
}

/* ====== Типографика статьи (только в .article__body--blog) ====== */

.article__body--blog h2,
.editor.article__body--blog h2 {
    margin: 40px 0 18px;
    padding-top: 24px;
    border-top: 1px solid #ece5ef;
    font-size: 1.55em;
    color: #2a2a2a;
}

.article__body--blog h3,
.editor.article__body--blog h3 {
    margin: 28px 0 14px;
    font-size: 1.25em;
    color: #333;
}

.article__body--blog p,
.editor.article__body--blog p {
    margin: 14px 0;
    line-height: 1.7;
}

.article__body--blog ul,
.article__body--blog ol,
.editor.article__body--blog ul,
.editor.article__body--blog ol {
    margin: 14px 0 18px 0;
    padding-left: 24px;
}

.article__body--blog ul li,
.article__body--blog ol li,
.editor.article__body--blog ul li,
.editor.article__body--blog ol li {
    margin: 6px 0;
    line-height: 1.6;
}

/* ====== Адаптив ====== */

@media (max-width: 640px) {
    .content-editor-product-card {
        flex-direction: column;
    }
    .content-editor-product-card .cep-image img {
        width: 100%;
        height: 200px;
    }
    .ce-comparison th,
    .ce-comparison td {
        padding: 8px 10px;
        font-size: 0.88em;
    }
    .ce-intro {
        padding: 18px 16px 8px;
    }
    .article__body--blog blockquote,
    .editor.article__body--blog blockquote {
        padding: 12px 18px;
        font-size: 1.05em;
    }
}
