/* ==========================================================================
   Qichenshop CRO / trust fixes  2026-09-26
   Loaded from /wp-content/uploads/qichen-cro-fix.css
   Sections: A5 footer social icons | B3 hero CTAs | D1 product cards
             D3 mobile (H1, appline, fixed bottom CTA bar)
   ========================================================================== */

/* ---------- A5. footer social icons: white icon on white bg was invisible -- */
.qc-footer-socail .footer-socail-item,
.footer-socail-item {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #1F2F52 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 0;
}
.footer-socail-item a,
.footer-socail-item > * {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
}
.footer-socail-item img,
.footer-socail-item svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
    /* make the white glyph readable on the dark blue disc */
    filter: brightness(0) saturate(100%) invert(97%) sepia(6%) saturate(0%) hue-rotate(175deg) brightness(103%) contrast(103%);
}

/* ---------- B3. hero double CTA ------------------------------------------ */
.elementor-element-d1c4f0a1 .jkit-button-wrapper,
.elementor-element-d2e5f1b2 .jkit-button-wrapper {
    display: inline-block;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: background .2s ease, transform .2s ease;
}
.elementor-element-d1c4f0a1 .jkit-button-wrapper {
    background: #D35400 !important;
    border: 1px solid #D35400 !important;
    color: #fff !important;
}
.elementor-element-d1c4f0a1 .jkit-button-wrapper:hover {
    background: #B54A00 !important;
    color: #fff !important;
}
.elementor-element-d2e5f1b2 .jkit-button-wrapper {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .85) !important;
    color: #fff !important;
}
.elementor-element-d2e5f1b2 .jkit-button-wrapper:hover {
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
}
/* keep the two CTAs side by side on one row on desktop */
@media (min-width: 993px) {
    .elementor-element-2b34070a {
        display: flex !important;
        flex-wrap: wrap;
        gap: 14px;
        align-items: center;
    }
}

/* ---------- D1. product cards on the home grid --------------------------- */
/* hide the useless "Default sorting" dropdown */
.jkit-products .product-order,
.elementor-widget-container .product-order select.orderby {
    display: none !important;
}
/* spec lines injected by qc_card_specs_filter() */
.qc-card-specs {
    margin: 8px 0 4px;
    font-size: 13px;
    line-height: 1.55;
    color: #2D3436;
}
.qc-card-specs .qc-spec-row + .qc-spec-row {
    margin-top: 2px;
}
.qc-card-specs .qc-spec-dim {
    color: #6b7480;
}
.qc-card-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 9px 18px;
    border: 1px solid #D35400;
    background: #D35400;
    color: #fff !important;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.qc-card-cta:hover {
    background: #B54A00;
    border-color: #B54A00;
    color: #fff !important;
}

/* ---------- D3. mobile --------------------------------------------------- */
/* fixed bottom CTA bar (markup printed by qc_mobile_cta_bar()) */
.qc-mobile-cta {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9998;
    height: 56px;
    background: #fff;
    border-top: 1px solid #D8DEE7;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}
.qc-mobile-cta a {
    flex: 1 1 0;
    height: 40px;
    line-height: 38px;
    text-align: center;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.qc-mcta-wa {
    border: 1px solid #25D366;
    color: #128C7E !important;
    background: #fff;
}
.qc-mcta-quote {
    background: #D35400;
    border: 1px solid #D35400;
    color: #fff !important;
}
body.qc-cta-bar-visible .qc-mobile-cta {
    display: flex;
}
/* hide the floating Get Quote button on phones - the bar replaces it */
@media (max-width: 767px) {
    .qc-float-quote {
        display: none !important;
    }
    .qc-mobile-cta {
        display: flex !important;
    }
    body.qc-cta-bar-hidden .qc-mobile-cta {
        display: none !important;
    }
    body { padding-bottom: 56px; }

    /* H1: 28px / 1.25, max 3 lines */
    h1.heading-title,
    .elementor-widget-heading h1.heading-title,
    h1.elementor-heading-title {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }

    /* appline: single static line, never overflow */
    .qc-appline-items {
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .qc-appline {
        padding: 8px 12px !important;
    }
    .qc-appline-tag {
        display: none !important;
    }

    /* hero CTAs stack full width */
    .elementor-element-2b34070a {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .elementor-element-2b34070a .jkit-button-wrapper {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* product card spec lines */
    .qc-card-specs {
        font-size: 12px;
    }
}

/* ---------- D2. home FAQ accordion -------------------------------------- */
.qc-faq {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 30px;
}
.qc-faq details {
    border: 1px solid #D8DEE7;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff;
}
.qc-faq summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    color: #1B2A4A;
    list-style: none;
}
.qc-faq summary::-webkit-details-marker { display: none; }
.qc-faq summary::after {
    content: "+";
    float: right;
    color: #D35400;
    font-weight: 700;
}
.qc-faq details[open] summary::after { content: "\2212"; }
.qc-faq .qc-faq-body {
    padding: 0 18px 14px;
    color: #2D3436;
    font-size: 15px;
    line-height: 1.65;
}
.qc-faq-wa {
    display: inline-block;
    margin-top: 12px;
    color: #128C7E;
    font-weight: 600;
}

/* ---- D1: product card spec lines + quote CTA (home page grid) ---- */
.product-order,
select.orderby { display: none !important; }
li.product .qc-card-specs {
    list-style: none; margin: 8px 0 10px; padding: 0;
    font-size: 13px; line-height: 1.55; color: #2D3436;
}
li.product .qc-card-specs li { margin: 0; }
li.product .qc-card-specs .qc-sp-w { font-weight: 700; color: #1B2A4A; }
li.product .qc-card-specs .qc-sp-moq { color: #1B2A4A; }
li.product a.button.qc-card-quote {
    background: #D35400 !important; color: #fff !important;
    border-radius: 3px; font-weight: 700; letter-spacing: .2px;
}
li.product a.button.qc-card-quote:hover { background: #B84600 !important; }
li.product a.button.qc-card-quote .fas { display: none; }
@media (max-width: 767px) {
    li.product .qc-card-specs { font-size: 12px; }
}

/* ---- D1b: same treatment for the "Best Quality Product" carousel ----
 * JetEngine prints the slide as div.jkit-product-block (not li.product),
 * so the D1 rules above never matched these 8 cards.
 */
div.jkit-product-block .qc-card-specs {
    list-style: none; margin: 8px 0 10px; padding: 0;
    font-size: 13px; line-height: 1.55; color: #2D3436;
}
div.jkit-product-block .qc-card-specs li { margin: 0; }
div.jkit-product-block .qc-card-specs .qc-sp-w { font-weight: 700; color: #1B2A4A; }
div.jkit-product-block .qc-card-specs .qc-sp-moq { color: #1B2A4A; }
div.jkit-product-block a.button.qc-card-quote {
    display: inline-block;
    width: auto !important;
    background: #D35400 !important; color: #fff !important;
    border-radius: 3px; font-weight: 700; letter-spacing: .2px;
}
div.jkit-product-block a.button.qc-card-quote:hover { background: #B84600 !important; }
div.jkit-product-block a.button.qc-card-quote .fas { display: none; }
@media (max-width: 767px) {
    div.jkit-product-block .qc-card-specs { font-size: 12px; }
}
