/*
Theme Name: Astra Child
Theme URI: https://tennisfunbo.com/
Author: Tennis Fun
Author URI: https://tennisfunbo.com
Description: Child theme di Astra per personalizzazioni custom.
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/


h1.productTitle {
    font-size: 25px;
    line-height: 30px;
    text-transform: uppercase;
    margin: 0 0 15px;
}

.single-product .woocommerce-tabs ul.tabs.wc-tabs {
    display: none;
}

div#mainHpSlider {
    height: 400px;
}

div#mainHpSlider .e-con-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1370px;
    width: 100%;
    margin: 0 auto;
}

/* === DOT NAVIGATION SLIDER HOMEPAGE === */

.featured-products-slider {
	position: relative;
	padding-bottom: 80px; /* spazio per i dot */
}

.featured-products-slider .swiper-pagination {
	position: static;          /* evita che stia sopra lo slider */
	margin-top: 30px;          /* spazio sopra i dot */
	text-align: center;
}

.featured-products-slider .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background-color: #555;    /* grigio scuro */
	opacity: 0.4;
	transition: all 0.3s ease;
}

.featured-products-slider .swiper-pagination-bullet-active {
	opacity: 1;
	background-color: #333;    /* grigio ancora più scuro */
}

/* =========================================================
   YITH AJAX FILTERS – CLEAN & MODERN (Astra friendly)
   ========================================================= */

/* Wrapper generale */
.yith-wcan-filters {
	margin-bottom: 40px;
	padding: 24px;
	background: #fafafa;
	border: 1px solid #e6e6e6;
	border-radius: 16px;
}

/* Singolo blocco filtro */
.yith-wcan-filter {
	margin-bottom: 28px;
}

.yith-wcan-filter:last-child {
	margin-bottom: 0;
}

/* Titolo filtro */
.yith-wcan-filter-title {
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #333;
	margin-bottom: 12px;
}

/* Lista opzioni */
.yith-wcan-filter ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Singola opzione */
.yith-wcan-filter ul li {
	margin-bottom: 10px;
}

/* Link opzioni */
.yith-wcan-filter ul li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	font-size: 14px;
	color: #444;
	text-decoration: none;
	transition: all 0.2s ease;
}

/* Hover */
.yith-wcan-filter ul li a:hover {
	border-color: #bbb;
	background: #f5f5f5;
}

/* Opzione attiva */
.yith-wcan-filter ul li.chosen a,
.yith-wcan-filter ul li a.active {
	border-color: #333;
	background: #333;
	color: #fff;
}

/* Conteggio prodotti */
.yith-wcan-filter ul li a .count {
	font-size: 12px;
	color: #888;
}

.yith-wcan-filter ul li.chosen a .count {
	color: #ddd;
}

/* Checkbox custom */
.yith-wcan-filter input[type="checkbox"] {
	display: none;
}

/* Prezzo – slider */
.yith-wcan-price-slider {
	margin-top: 10px;
}

.yith-wcan-price-slider .ui-slider-range {
	background: #333;
}

.yith-wcan-price-slider .ui-slider-handle {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #333;
	background: #fff;
	top: -6px;
}

/* Reset filtri */
.yith-wcan-reset-filters {
	margin-top: 20px;
	display: inline-block;
	font-size: 13px;
	color: #666;
	text-decoration: underline;
	cursor: pointer;
}

/* Mobile spacing */
@media (max-width: 768px) {
	.yith-wcan-filters {
		padding: 20px;
		border-radius: 12px;
	}
}

/* Spazio tra titolo filtro e lista */
.yith-wcan-filters .yith-wcan-filter .filter-title {
	margin-bottom: 20px;
}

.ast-page-builder-template .site-content > .ast-container, .ast-container {
    max-width: 1440px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.home.ast-page-builder-template .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.featured-products-slider h3.product-title {
    font-size: 20px;
    margin: 10px 0;
    text-align: center;
}

.woocommerce-js div.product p.price, .woocommerce-js div.product span.price {
    color: #000;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 .2em;
    text-align: center;
    display: block;
}

.featured-products-slider img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    width: 100%;
}

.ast-site-header-cart .ast-addon-cart-wrap i.astra-icon:after, .ast-theme-transparent-header .ast-site-header-cart .ast-addon-cart-wrap i.astra-icon:after {
    color: #fff !important;
}
.ast-site-header-cart .ast-addon-cart-wrap i.astra-icon:after {
    color: #ffffff !important;
    background-color: #EA0000 !important;
}

.ast-icon-shopping-bag .ast-icon svg, .ast-icon-shopping-cart .ast-icon svg, .ast-icon-shopping-basket .ast-icon svg {
    height: 20px;
    width: 20px;
}

.ast-cart-menu-wrap, i.astra-icon.ast-icon-shopping-cart {
    font-size: 20px;
}

.ast-icon svg:not([fill]) {
    fill: #454F5E;
}

.ast-left-sidebar #secondary {
	border-right: 0 !important;
	margin-right: 0 !important;
}

.ast-left-sidebar #primary {
	border-left: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current {
    background: #454F5E;
    color: #fff;
}

.woocommerce nav.woocommerce-pagination ul, .woocommerce nav.woocommerce-pagination ul li {
    border-color: #454F5E;
}

span.ast-on-card-button.ast-onsale-card {
    display: none !important;
}

.ast-page-builder-template .ast-archive-description {
	padding-left: 0;
}

.wp-singular.woocommerce-js div.product p.price, .wp-singular.woocommerce-js div.product span.price {
    text-align: left;
}

.wcf-embed-checkout-form-instant-checkout form.checkout.woocommerce-checkout {
    display: flex;
    margin: 0;
    flex-direction: column-reverse;
}

.wcpay-express-checkout-wrapper {
    width: 100%;
    clear: both;
    display: flex;
    flex-direction: column-reverse;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

#wcpay-express-checkout-button-separator {
    margin: 20px 0 !important;
}

/* Bottone filtri */
.mobile-filter-toggle {
    display: none;
}

@media (max-width: 921px) {
    .ast-theme-transparent-header #masthead {
        position: relative;
    }

	[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-fill {
		background: transparent !important;
	}

	[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
		width: 30px;
		height: 30px;
		fill: #000000;
	}

	.mobile-filter-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 14px;
        margin-bottom: 16px;
        background: #000;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        text-transform: uppercase;
        border: none;
    }

    /* Sidebar → overlay */
    .sidebar-main {
        position: fixed;
        inset: 0;
        background: #fff;
        z-index: 9999;
        padding: 20px 16px;
        overflow-y: auto;

        transform: translateY(100%);
        transition: transform 0.35s ease;
    }

    .sidebar-main.is-open {
        transform: translateY(0);
    }

    /* Migliora leggibilità */
    .yith-wcan-filter {
        margin-bottom: 24px;
    }

	.mobile-filter-close {
        position: sticky;
        top: 0;
        width: 100%;
        padding: 12px;
        background: #000;
        color: #fff;
        font-size: 14px;
        border: 0;
        z-index: 10;
    }

	.wcf-embed-checkout-form.wcf-embed-checkout-form-instant-checkout .woocommerce .wcf-instant-checkout-wrapper {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 100%;
	}

	.wcf-embed-checkout-form.wcf-embed-checkout-form-instant-checkout .woocommerce .wcf-instant-checkout-wrapper .wcf-customer-info-main-wrapper {
		justify-content: space-between;
	}

	.wcf-embed-checkout-form.wcf-embed-checkout-form-instant-checkout .wcf-ic-layout-left-column {
		display: grid;
		width: 100%;
		padding: 2.5rem;
	}

	a.custom-logo-link.ast-transparent-desktop-logo {
    	display: none !important;
	}

	header .custom-logo-link img, .ast-header-break-point .site-logo-img .custom-mobile-logo-link img {
        max-width: 190px;
        width: 190px;
    }
}

.ast-header-break-point .ast-has-mobile-header-logo .custom-logo-link, .ast-header-break-point .wp-block-site-logo .custom-logo-link, .ast-desktop .wp-block-site-logo .custom-mobile-logo-link {
    display: inline-block;
}

.ast-header-break-point .ast-has-mobile-header-logo .custom-mobile-logo-link {
    display: none;
}

body.cartflows-instant-checkout .main-header--content {
    max-width: 1200px;
    width: 100%;
    /* margin: 0; */
    padding: 15px;
    align-items: center;
    justify-content: center !important;
    display: flex;
}

.cartflows-checkout-main-wrapper span.main-header--site-logo {
	width: 190px !important;
	height: auto !important;
}

body.cartflows-instant-checkout .main-header--content .main-header--site-logo img {
	max-width: 100% !important;
}

@media only screen and (max-width: 921px) {
    body.cartflows-instant-checkout .main-header--content .main-header--site-logo img {
        max-width: 100% !important;
        width: 100%;
    }

	.wcf-embed-checkout-form.wcf-embed-checkout-form-instant-checkout .woocommerce .wcf-instant-checkout-wrapper {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 100%;
	}

	.wcf-embed-checkout-form.wcf-embed-checkout-form-instant-checkout .woocommerce .wcf-instant-checkout-wrapper .wcf-customer-info-main-wrapper {
		justify-content: space-between;
	}

	.wcf-embed-checkout-form.wcf-embed-checkout-form-instant-checkout .wcf-ic-layout-left-column {
		display: grid;
		width: 100%;
		padding: 2.5rem;
	}
}

.swiper-slide span.price {
    text-align: center !important;
}
