/* =============================== */
/* Ingredient Page — Grid Layout   */
/* =============================== */

.chcm-ingredient-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.chcm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* =============================== */
/* Typography                      */
/* =============================== */

.chcm-ing-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
}

.chcm-ing-intro p{
     font-size: 15px;
    line-height: 1.25;
}

.chcm-drug-class {
    font-size: 15px;
    line-height: 1.25;
    padding: 8px 0 6px;
}

.chcm-drug-class strong {
    color: #cd1900;
    font-weight: 600;
}

.chcm-col-left h2,
.chcm-col-middle h2,
.chcm-col-right h2 {
    font-size: 24px;
    font-weight: 700;
    
    margin-bottom: 12px !important;
}

.chcm-col-left h3 {
    margin-top: 25px;
}

.chcm-col-left h3,
.chcm-col-right h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px !important;
    margin-bottom: 8px !important;
}

.chcm-ingredient-wrapper p,
.chcm-ingredient-wrapper li {
    margin-bottom: 10px !important;
    line-height: 1.25 !important;
    font-size: 15px;
}

.chcm-cd-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.cd-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #eee;
}

.cd-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.cd-person {
    font-size: 16px;
    font-weight: 600;
    color: #cd1900;
    text-decoration: none;
}

.cd-person:hover {
    text-decoration: underline;
}


/* Content Details Box */
.chcm-content-details {
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 5px 25px 5px;
    background: #fff;
    margin-top: 40px;
    font-family: inherit;
    font-size: 14px;
    color: #666;
}

.chcm-content-details-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c2c2c;
    text-transform: uppercase;
}

.chcm-content-details-block {
    margin-bottom: 22px;
}

.chcm-content-details-block .cd-label {
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
}

.chcm-content-details-block .cd-person {
    font-size: 17px;
    font-weight: 600;
    color: #C73A24; /* фирменный красный */
}

.chcm-content-details-block .cd-title {
    font-size: 14px;
    color: #666;
}

.chcm-content-details-updated {
    border-top: 1px solid #eee;
    padding-top: 15px;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.chcm-content-details-updated .cd-label {
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
}

.chcm-content-details-updated .cd-updated {
    font-size: 14px;
    color: #444;
}

.chcm-eat-extra {
    margin-top: 25px;
}

.chcm-eat-section {
    margin-bottom: 25px;
}

.chcm-eat-section p {
     margin: 0 !important;
    font-size: 15px;
    line-height: 1.25 !important;
}


/* =============================== */
/* Center Column — Products List   */
/* =============================== */

.chcm-products {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* PRODUCT LIST – refined */
.chcm-product-list li {
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
    display: flex;
    justify-content: space-between;
    align-items: center; /* keep this */
}

/* Center product name vertically relative to price block */
.chcm-product-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center; /* <— MAGIC FIX */
}

.chcm-product-list a.chcm-product-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #cd1900;
    text-decoration: none;
    line-height: 1.25;
}
.chcm-product-dosage {
    display: block;
    font-size: 14px;
    color: #666;
}
.chcm-product-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.chcm-product-right {
    text-align: right;
    white-space: nowrap;
}
.chcm-product-right span {
    line-height: 1.25;
}

.chcm-product-price {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #111;
}

.chcm-product-variants {
    display: block;
    font-size: 14px;
    color: #666;
}


/* =============================== */
/* FAQ Section                     */
/* =============================== */

.chcm-col-right details {
    border: 1px solid #e0e0e0;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fafafa;
}

.chcm-col-right details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    outline: none;
}

.chcm-col-right details[open] {
    border-color: #cd1900;
    background: #fff;
}

.chcm-col-right details[open] summary {
    color: #cd1900;
}

.chcm-col-right .faq-answer {
    margin-top: 10px;
    line-height: 1.6;
    font-size: 15px;
}

 /* Mobile Typography Improvements */
@media (max-width: 768px) {
    .chcm-col-left,
    .chcm-col-middle,
    .chcm-col-right {
        width: 100% !important;
        max-width: 100% !important;
        border-bottom: 1px solid #ececec;
        padding-bottom: 22px;
        margin-bottom: 22px;
    }

    .chcm-ing-title {
        font-size: 26px !important;
        margin-bottom: 12px !important;
    }

    .chcm-col-left h2,
    .chcm-col-middle h2,
    .chcm-col-right h2 {
        font-size: 20px !important;
        margin-top: 24px !important;
        margin-bottom: 10px !important;
    }

    .chcm-col-left h3,
    .chcm-col-right h3 {
        font-size: 18px;
    }

    .chcm-ingredient-wrapper p {
        font-size: 15px !important;
        line-height: 1.55 !important;
        margin-bottom: 10px !important;
    }
    .chcm-ingredient-wrapper {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .chcm-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-flow: row !important;
    }

    .chcm-col-right details summary {
        font-size: 15px !important;
        padding: 4px 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    /* reduce excessive white space */
    .chcm-ingredient-wrapper {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* scale down headings */
    .chcm-ing-title {
        font-size: 30px !important;
        margin-bottom: 16px !important;
    }

    .chcm-col-left h2,
    .chcm-col-middle h2,
    .chcm-col-right h2 {
        font-size: 22px !important;
    }

    .chcm-col-left h3,
    .chcm-col-right h3 {
        font-size: 18px !important;
    }

    .chcm-ingredient-wrapper p {
        font-size: 16px !important;
    }

    /* add subtle dividers like 1mg */
    .chcm-col-left,
    .chcm-col-middle,
    .chcm-col-right {
        border-bottom: 1px solid #eaeaea;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .chcm-grid {
        grid-template-columns: 1fr 1fr;
    }
}
