/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/


/*
 *  supplier cats fillter
 */
.titleindex {
    width: 100%;
    margin-bottom: 20px;
}
.suppliers-cats-wrapper{
	display: flex;
	align-items: center;
    justify-content: space-between;
	flex-wrap: wrap;
}

.suppliers-cats-wrapper .single-supplier-cat{
	padding: 15px 15px;
    border: 1px solid #000000;
    border-radius: 10px;
    cursor: pointer;
	margin: 5px 0 0 10px;
	background-color: #01aef0;
	min-width: 18%;
	max-width: 18%;
	margin-bottom: 15px;
	min-height: 125px;
	color: #fff;
    text-align: center;
}
span.cat-text {
    background: #01aef0;
    padding: 5px;
    border-radius: 10px;
	color: #000;
	display: none;
}

.suppliers-cats-wrapper .single-supplier-cat:hover{
	opacity: .7;
	border: 1px solid #fff;
}

.single-supplier-cat .far{
	display:block;
	text-align: center;
	font-size: 50px;
    color: #fff;
}

.nonce{
	display:none;
	visibility: hidden;
	opacity: 0;
	width: 0;
	height: 0;
}
#suppliers .uc_post_grid_style_one_wrap.ue_post_grid.uc-items-wrapper{
	display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
#suppliers .uc_post_grid_style_one_wrap.ue_post_grid.uc-items-wrapper h2{
	width: 100%;
}
#suppliers .reg-wrapper{
	width: 100%;
	padding-top: 20px;
	border-top: 2px solid #000000;
}
#suppliers .uc_post_grid_style_one_item.ue_post_grid_item.ue-item{
	width: calc(33% - 20px);
}
.uc_post_grid_style_one_item .uc_post_image {
    margin: 15px;
}
a.uc_post_grid_style_one_image h3 {
    font-size: 20px;
}
@media screen and (max-width: 769px){
	#suppliers .uc_post_grid_style_one_item.ue_post_grid_item.ue-item{
		width: 48%;
	}
}
@media screen and (max-width: 520px){
	#suppliers .uc_post_grid_style_one_item.ue_post_grid_item.ue-item{
		width: 100%;
	}
	.suppliers-cats-wrapper .single-supplier-cat{
		min-height: 90px;
		height: 90px;
		width: 50%;
		max-width: 140px;
		flex: unset;
	}
	.suppliers-cats-wrapper{
		justify-content: center;
	}
}
/*
 * END 
 */
span.single-supplier-cat {
    background-size: cover;
	background-position-x: center;
}









/* Force Grid Layout */
.uc_post_grid_style_one_wrap {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

/* Each Supplier Card */
.uc_post_grid_style_one_item {
    display: block !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.3s !important;
}

.uc_post_grid_style_one_item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    transform: translateY(-4px) !important;
}

/* Image */
.uc_post_grid_style_one_item .uc_post_image {
    width: 40% !important;
    height: 50px !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
}

.uc_post_grid_style_one_item .uc_post_image img {
    width: 60% !important;
    height: 60% !important;
    object-fit: contain !important;
}

/* Content */
.uc_post_grid_style_one_item .uc_content {
    padding: 20px !important;
}

.uc_post_grid_style_one_item h3 {
    font-size: 18px !important;
    margin: 0 0 10px 0 !important;
    color: #333 !important;
}

/* Regular Section */
.reg-wrapper {
    grid-column: 1 / -1 !important;
    margin-top: 30px !important;
}

/* Mobile */
@media (max-width: 768px) {
    .uc_post_grid_style_one_wrap {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================
   Supplier index: regular suppliers as text
   ========================================== */

/* Shortcode output: regular suppliers section (already text-only) */
#suppliers .reg-wrapper .uc_post_grid_style_one_image,
#suppliers .reg-wrapper .uc_post_image,
#suppliers .reg-wrapper .uc_post_image_overlay {
    display: none !important;
}

/* Unlimited Elements cards: hide image block when card points to supplier single page */
body.tax-suppliers_cats .uc_post_grid_style_one_item > a.uc_post_grid_style_one_image[href*="/supplier_index/"] .uc_post_image,
body.post-type-archive-supplier_index .uc_post_grid_style_one_item > a.uc_post_grid_style_one_image[href*="/supplier_index/"] .uc_post_image {
    display: none !important;
}

/* If the whole top anchor only wraps image, hide that anchor completely */
body.tax-suppliers_cats .uc_post_grid_style_one_item > a.uc_post_grid_style_one_image[href*="/supplier_index/"],
body.post-type-archive-supplier_index .uc_post_grid_style_one_item > a.uc_post_grid_style_one_image[href*="/supplier_index/"] {
    display: none !important;
}

/* Keep clean spacing after hiding image block */
body.tax-suppliers_cats .uc_post_grid_style_one_item .uc_content,
body.post-type-archive-supplier_index .uc_post_grid_style_one_item .uc_content {
    padding-top: 12px !important;
}

/* Hide placeholder thumbnails that create the tiny broken-image icon */
body.tax-suppliers_cats .uc_post_grid_style_one_item .uc_post_image img[src*="no-image.png"],
body.post-type-archive-supplier_index .uc_post_grid_style_one_item .uc_post_image img[src*="no-image.png"],
body.tax-suppliers_cats .uc_post_grid_style_one_item .uc_post_image img[src*="ac_assets/uc_post_grid_style_one"],
body.post-type-archive-supplier_index .uc_post_grid_style_one_item .uc_post_image img[src*="ac_assets/uc_post_grid_style_one"] {
    display: none !important;
}

body.tax-suppliers_cats .uc_post_grid_style_one_item .uc_post_image:empty,
body.post-type-archive-supplier_index .uc_post_grid_style_one_item .uc_post_image:empty {
    display: none !important;
}

/* Prevent gray placeholder boxes on category/search supplier cards. */
body.tax-suppliers_cats .uc_post_grid_style_one_item .uc_post_image,
body.post-type-archive-supplier_index .uc_post_grid_style_one_item .uc_post_image {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

body.tax-suppliers_cats .uc_post_grid_style_one_item .uc_post_image .uc_post_image_overlay,
body.post-type-archive-supplier_index .uc_post_grid_style_one_item .uc_post_image .uc_post_image_overlay {
    display: none !important;
}

/* Hide empty/placeholder image blocks completely (removes gray rectangle). */
body.tax-suppliers_cats .uc_post_grid_style_one_item .uc_post_image:has(img[src*="no-image.png"]),
body.post-type-archive-supplier_index .uc_post_grid_style_one_item .uc_post_image:has(img[src*="no-image.png"]),
body.tax-suppliers_cats .uc_post_grid_style_one_item .uc_post_image:has(img[src*="ac_assets/uc_post_grid_style_one"]),
body.post-type-archive-supplier_index .uc_post_grid_style_one_item .uc_post_image:has(img[src*="ac_assets/uc_post_grid_style_one"]) {
    display: none !important;
}

/* Compact header row in supplier cards (category + supplier name on one row). */
#suppliers .uc_post_grid_style_one_item .uc_content .ue_post_meta,
#suppliers .uc_post_grid_style_one_item .uc_content .ue-post-meta,
#suppliers .uc_post_grid_style_one_item .uc_content .uc_post_meta {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

#suppliers .uc_post_grid_style_one_item .uc_content .ue_post_meta a,
#suppliers .uc_post_grid_style_one_item .uc_content .ue-post-meta a,
#suppliers .uc_post_grid_style_one_item .uc_content .uc_post_meta a {
    order: 1;
    font-size: 13px;
    line-height: 1.2;
}

#suppliers .uc_post_grid_style_one_item .uc_content .ue_post_meta h3,
#suppliers .uc_post_grid_style_one_item .uc_content .ue-post-meta h3,
#suppliers .uc_post_grid_style_one_item .uc_content .uc_post_meta h3 {
    order: 2;
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

/* ==========================
   Suppliers shortcodes polish
   ========================== */
body.tax-suppliers_cats .suppliers-search-form-wrapper,
body.post-type-archive-supplier_index .suppliers-search-form-wrapper {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(20, 42, 64, 0.08);
}

.suppliers-search-form .form-field {
    margin-bottom: 12px;
}

.suppliers-search-form .form-field:last-child {
    margin-bottom: 0;
}

.suppliers-search-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 14px;
    color: #243b53;
}

.suppliers-search-form select,
.suppliers-search-form input[type="text"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #c9d4df;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    background: #fff;
    color: #102a43;
}

.suppliers-search-form select:focus,
.suppliers-search-form input[type="text"]:focus {
    border-color: #0f5ea8;
    box-shadow: 0 0 0 3px rgba(15, 94, 168, 0.15);
    outline: none;
}

.suppliers-search-form .search-submit-btn {
    width: 100%;
    min-height: 42px;
    border: 1px solid #0f5ea8;
    border-radius: 8px;
    background: #0f5ea8;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suppliers-search-form .search-submit-btn:hover {
    background: #0b4e8b;
    border-color: #0b4e8b;
}

.suppliers-search-form .search-submit-btn.is-loading {
    opacity: 0.75;
    cursor: wait;
}

/* Better output for [custom_suppliers_posts] */
#suppliers .search-results-info {
    width: 100%;
    background: #f3f8fc;
    border: 1px solid #d5e3ef;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 6px;
}

#suppliers .search-results-info h2 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #12324a;
}

#suppliers .search-results-info p {
    margin: 0;
    color: #355065;
}

#suppliers .uc_post_grid_style_one_item.ue_post_grid_item.ue-item {
    border: 1px solid #d8e1e8 !important;
    border-radius: 12px !important;
}

#suppliers .vip-suppliers-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

#suppliers .uc_post_grid_style_one_item .uc_content {
    padding: 16px !important;
}

#suppliers .uc_post_grid_style_one_item .uc_content h3 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #173a58;
}

#suppliers .reg-wrapper {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #dbe4ee;
}

#suppliers .reg-wrapper .reg-title {
    margin: 0 0 8px;
    font-size: 28px;
    color: #15324c;
}

#suppliers .reg-suppliers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

#suppliers .single-reg-post {
    padding: 14px;
    border: 1px solid #d8e1e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#suppliers .single-reg-post:last-child {
    border-bottom: 1px solid #d8e1e8;
}

#suppliers .single-reg-post h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    color: #15324c;
}

#suppliers .single-reg-post .post-content {
    color: #3b556b;
    margin: 10px 0 6px;
}

#suppliers .single-reg-post .supplier-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

#suppliers .single-reg-post .supplier-card-cat {
    display: inline-block;
    background: #4f5660;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 6px;
    white-space: nowrap;
    margin-top: 2px;
}

#suppliers .single-reg-post .supplier-site-link {
    display: inline-block;
    margin-top: 8px;
    color: #0f5ea8;
    font-weight: 700;
    text-decoration: none;
}

#suppliers .single-reg-post .supplier-site-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #suppliers .vip-suppliers-grid {
        grid-template-columns: 1fr;
    }
    #suppliers .reg-suppliers-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================
   Post listing pages lorem blocks
   ========================== */
.portal-posts-lorem {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 18px 20px;
    background: #f6fbff;
    border: 1px solid #d4e5f3;
    border-radius: 12px;
}

.portal-posts-lorem h2,
.portal-posts-lorem h3 {
    margin: 0 0 8px;
    color: #15324c;
}

.portal-posts-lorem p {
    margin: 0;
    color: #355065;
    line-height: 1.8;
}

.portal-posts-lorem-outro {
    margin-top: 26px;
    background: #f9fafc;
    border-color: #e3e9ef;
}