/* Astra search results grid */
.search .ast-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.search .ast-article-post {
    width: 100% !important;
    margin: 0 !important;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.search .ast-article-post img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.search .entry-title {
    font-size: 16px;
    line-height: 1.4;
}

.search .entry-content {
    display: none;
}

@media (max-width:768px){
    .search .ast-row {
        grid-template-columns: repeat(2,1fr);
    }
}
/* PDF image size small */
.search .ast-article-post img[src*=".png"],
.search .ast-article-post img[src*="pdf"] {
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: contain;
    display: block;
    margin: 10px auto;
}
/* Elementor blog cards equal height */
.elementor-posts-container article {
    display: flex !important;
    flex-direction: column;
    height: 100% !important;
}

/* Equal card box */
.elementor-post {
    height: 420px !important;
    display: flex !important;
    flex-direction: column;
    border: 1px solid #eee;
    padding: 15px;
}

/* Thumbnail container */
.elementor-post__thumbnail {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Full image without crop */
.elementor-post__thumbnail img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    background: #fff;
}

/* Fix title height */
.elementor-post__title {
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
    line-height: 1.4;
}

/* Content stretch */
.elementor-post__text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Read more button bottom aligned */
.elementor-post__read-more {
    margin-top: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .elementor-post {
        height: auto !important;
    }

    .elementor-post__thumbnail {
        height: 150px;
    }
}

/* Procare premium homepage - Page 22452 only */

body.page-id-22452 #masthead,
body.page-id-22452 .site-header,
body.page-id-22452 .elementor-location-header,
body.page-id-22452 .hfe-header,
body.page-id-22452 .entry-header,
body.page-id-22452 .page-header,
body.page-id-22452 .entry-title {
    display: none !important;
}

body.page-id-22452 #content,
body.page-id-22452 .site-content,
body.page-id-22452 #primary,
body.page-id-22452 .content-area,
body.page-id-22452 .site-main,
body.page-id-22452 .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page-id-22452 #procare-premium-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Procare full-screen width - Page 22452 */

body.page-id-22452 #procare-premium-page {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
}

body.page-id-22452 {
    overflow-x: hidden !important;
}

body.page-id-22452 #procare-premium-page figure {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page-id-22452 #procare-premium-page figure img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
}



/* ProCare live fixes 30 Nov 2026 – START (append only; remove this block to undo) */

/* 1. Product pages: side padding, no edge-to-edge content */
body.single-product div.product {
    max-width: 1240px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    body.single-product div.product {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* 2. Product pages: Get a Quote + WhatsApp enquiry buttons (from WPCode snippet) */
body.single-product .procare-quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 20px;
}
body.single-product .procare-quote-actions .procare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
}
body.single-product .procare-quote-actions .procare-btn-quote {
    background: #c9000b;
    border: 2px solid #c9000b;
    color: #ffffff !important;
}
body.single-product .procare-quote-actions .procare-btn-quote:hover {
    background: #a30009;
    border-color: #a30009;
}
body.single-product .procare-quote-actions .procare-btn-wa {
    background: #ffffff;
    border: 2px solid #25d366;
    color: #128c4a !important;
}
@media (max-width: 767px) {
    body.single-product .procare-quote-actions .procare-btn {
        flex: 1 1 100%;
    }
}

/* 3. Search results: heading (from WPCode snippet), hide author / "Leave a Comment" */
body.search .procare-search-heading {
    font-size: 30px;
    line-height: 1.3;
    color: #231f20;
    margin: 0 0 24px;
}
@media (max-width: 767px) {
    body.search .procare-search-heading {
        font-size: 22px;
        margin: 0 8px 16px;
    }
}
body.search .ast-article-post .ast-blog-meta-container,
body.search .ast-article-post .entry-meta {
    display: none !important;
}

/* 4. Footer: centre the Request a Quotation button on mobile (widget block-15) */
@media (max-width: 767px) {
    #block-15 .wp-block-buttons {
        justify-content: center;
    }
}

/* ProCare live fixes 30 Nov 2026 – END */