/*
Theme Name:   AspecialParts
Theme URI:    https://xstore.8theme.com
Description:  XStore is a multi-purpose theme that offers the ultimate WordPress and WooCommerce synergy, providing a comprehensive, all-in-one solution.
Author:       8theme
Author URI:   https://www.8theme.com
Template:     xstore
Version:      1.0
Text Domain:  xstore-child
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options, translation-ready, ecommerce, woocommerce, shop, elementor, business, corporate, blog, news, light, dark
*/

body:not(.logged-in) span.ewp-product-type-label {
    display: none !important;
}

.content-product .product-content-image img,
.etheme-product-grid-image img {
    height: 200px;
    object-fit: contain;
	object-position: center;
}

body.single-product.woocommerce div.product.elementor form.yith-wcpb-bundle-form {
    display: flex !important;
}

body:not(.admin-bar) .span.ewp-product-type-label {
    display: none !important;
}

h2.woocommerce-loop-product__title.etheme-product-grid-title {
    min-height: 63px;
}

.elementor-widget-woocommerce-product-etheme_price span.onsale.custom {
    position: relative;
    display: inline;
    top: -3px;
    left: 8px;
    padding: 6px;
}

.sib_signup_form,.sib_signup_form a {
    color: #fff
}

.sib_signup_form input::-webkit-input-placeholder {
    color: #333
}

.container-newsletter {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-bottom: 8px;
    color: #333!important;
    border-radius: 20px;
    background: #eaebef;
    overflow: hidden
}

.container-newsletter ::placeholder {
    color: #fff
}

.container-newsletter input:focus {
    outline: none
}

.container-newsletter input[type=email] {
    color: #333;
    background-color: transparent;
    border: none;
    height: 100%;
    width: 100%;
    padding-left: 16px
}

body .sib_signup_form .btn.newsletter-btn {
    text-transform: uppercase;
    background-color: #000!important;
    border: none;
    color: #fff !important;
    padding: 15px 28px;
    border-radius: 0! important;
    transition: all 0.3s ease-in-out
}

.newsletter-btn:hover {
    color: rgb(33,55,92)!important;
    background-color: #fff!important;
    transition: all 0.3s ease-in-out;
    overflow: hidden
}

@media (max-width: 48em) {
    .container-newsletter {
        grid-template-columns:1fr;
        grid-template-rows: 1fr 1fr;
        border: none;
        border-radius: 0;
        row-gap: 8px;
        background: transparent
    }

    .newsletter-btn-container {
        border-left: none;
        display: flex;
        justify-content: center
    }

    .newsletter-btn {
        background-color: #000!important;
        border-radius: 99px!important;
        width: 100%
    }

    .container-newsletter div {
        border-radius: 30px;
        overflow: hidden
    }

    .container-newsletter input[type=email] {
        background-color: #eaebef
    }
}

.popup-modello {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background-color: rgba(0,0,0,0.6);
	display: flex;
	justify-content: center; align-items: center;
	z-index: 9999;
}

.popup-modello-content {
	position: relative;
	background: #fff;
	padding: 20px; border-radius: 10px;
	width: 90%; max-width: 400px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}
button#apri-popup-modello {
    border: 0;
    background: transparent;
    color: #fff;
    padding-left: 60px;
    background-position: left center;
    background-image: url(/wp-content/uploads/2025/04/telaio-white-1.png);
    background-size: contain;
    background-repeat: no-repeat;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    min-height: 50px;
	text-align: left;
	display: flex;
	align-items: center;
}
.zoom-hover {
  transition: transform 0.2s ease;
}

.zoom-hover:hover {
  transform: scale(1.02);
}

button#apri-popup-modello span.label {
    margin-right: 5px;
}
.chiudi-popup {
	position: absolute;
	top: 10px; right: 15px;
	font-size: 25px; cursor: pointer;
}

#modello-select, #conferma-modello, #disabilita-filtro {
	margin-top: 15px;
	width: 100%;
	border-radius: 5px;
	cursor: pointer;
}
#conferma-modello, #disabilita-filtro {
    padding: 10px;
}
#conferma-modello {
	background-color: #333;
	color: #fff;
	border: none;
}

#disabilita-filtro {
	background-color: #f1f1f1;
	border: none;
	color: #333;
}

button#apri-popup-modello * {
    pointer-events: none;
}

button#apri-popup-modello {
    pointer-events: auto;
}

small.woocommerce-price-suffix {
    font-size: 45%;
}
.elementor-widget-woocommerce-product-price .price ins .amount, .elementor-widget-woocommerce-product-etheme_price .price ins .amount {
    color: var(--et_active-color);
}

.compatible-models-box {
	background-color: #f5f5f6;
	/* border: 1px solid #ddd; */
	padding: 20px;
	border-radius: 10px;
	font-family: sans-serif;
	margin-top: 20px;
}
.compatible-models-box h4 {
	margin-bottom: 15px;
	font-size: 18px;
}
.compatible-models-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1.8%;
}
.model-item-page,
.model-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 18.5%;
	text-align: center;
}
.model-item {
	max-width: 100px;
}
.model-thumb {
	width: 100%;
	height: auto;
	border-radius: 6px !important;
	object-fit: contain;
	border: 1px solid #ccc;
	margin-bottom: 6px;
	background-color: #fff;
}
.model-name {
	font-size: 12px;
	font-weight: 400;
}

.woof_results_by_ajax .open-filters-btn,
.woof_results_by_ajax .woocommerce-ordering,
span.woof_turbo_count,
span.woof_checkbox_count {
    /* display: none !important; */
}

body .woof_redraw_zone .woof_list label {
    font-size: 14px;
    max-width: 160px;
}
.elementor-widget-woocommerce-product-etheme_product_images .swiper-control-bottom {
    padding: 5px;
}
.yith-wcpb-product-bundled-item-data__price {
    display: none !important;
}

/* Contenitore link-carrello */
.ew-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
  }
  
  /* SVG dimensioni e riempimento */
  .ew-cart-link i {
	font-size: 24px;
  }
  
  /* Badge numero articoli */
  .ew-cart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	background-color: #e74c3c;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	padding: 2px 5px;
	border-radius: 50%;
	min-width: 18px;
	text-align: center;
  }
  
@media only screen and (min-width: 993px) {
	section.woocommerce-bacs-bank-details {
		max-width: 80%;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
}
@media only screen and (min-width: 1025px) and (max-width:1200px) {
	.model-item-page,
	.model-item {
    	width: 23.6%;
	}
}
@media only screen and (max-width: 1024px) {
	
	.model-item {
		width: 88px;
	}
	.model-item-page {
		width: 24%;
	}
	.compatible-models-grid {
		gap: 6px;
	}
}
@media only screen and (max-width: 768px) {
	

	.model-item-page {
		width: 32%;
	}

}

@media only screen and (max-width: 480px) {
	

	.model-item-page {
		width: 48%;
	}

}