.gtc-product-evidence-wrapper {
    padding: 0 5rem;
    margin-bottom: 2rem;
}

.gtc-product-evidence-title {
    padding: 0.5rem;
    color: var(--template-maincolor);
    margin-bottom: 1rem;
    font-size: xx-large;
    font-weight: bold;
    border-radius: 2rem;
    background: #f0f2f5;
    box-shadow: inset -4px -4px 8px #ffffff, inset 4px 4px 8px #aeaec0;

}

.gtc-product-template {
    background-color: #f0f2f5 !important;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: inset -4px -4px 8px #ffffff, inset 4px 4px 8px #aeaec0;
}

/* CARD con effetto rilievo iniziale */
.gtc-product-template>li {
    background: #f0f2f5;
    backdrop-filter: blur(14px);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    box-shadow: -4px -4px 8px #ffffff, 4px 4px 8px #aeaec0;
}

/* Effetto "premuto" al passaggio del mouse */
.gtc-product-template>li:hover {
    transform: scale(0.98) translateY(4px);
    box-shadow: -4px -4px 8px #ffffff,
        inset 4px 4px 8px #aeaec0;
}

/* Immagine arrotondata */
.gtc-product-image {
    width: 100%;
    height: 100%;
}

.gtc-product-template>li>.wc-block-components-product-image img {
    border-radius: 1rem;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Titolo prodotto */
.gtc-product-title>a {
    color: var(--template-fourthcolor) !important;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    text-align: center;
    min-height: 2.6em;
}

/* Prezzo prodotto */
.wp-block-woocommerce-product-price div span bdi {
    font-size: 1.2em;
}

.gtc-product-price {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center !important;
    gap: 1rem;
    flex-wrap: wrap;
}

.gtc-product-template>li .wp-block-woocommerce-product-price {
    width: 100%;
    margin: 1rem;
}

.gtc-product-price>del {
    color: var(--template-tirdcolor);
    font-weight: 400;
    font-size: 1em;
}

.gtc-product-price>ins {
    text-decoration: none;
    color: var(--template-maincolor);
    font-weight: 500;
    font-size: 1.2em;
}

.gtc-product-price>span:not(:has(del)) {
    text-decoration: none;
    color: var(--template-maincolor);
    font-weight: 500;
    font-size: 1.2em;
}

/* Bottone */
.gtc-product-template>li .wc-block-components-product-button {
    margin-top: auto;
    text-align: center;
    width: 100%;
}

.gtc-product-template>li .wc-block-components-product-button .wp-block-button__link {
    border-radius: 2rem;
    background: #f0f2f5;
    color: var(--template-fourthcolor);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    box-shadow: -4px -4px 8px #ffffff,
        4px 4px 8px #aeaec0
}

.gtc-product-template>li .wc-block-components-product-button .wp-block-button__link:hover {
    transform: scale(0.98) translateY(0);
    color: var(--template-maincolor);
    box-shadow: inset -4px -4px 8px #ffffff,
        inset 4px 4px 8px #aeaec0;
}

/* Titolo colore su hover */
.gtc-product-template>li:hover h2.wp-block-post-title {
    color: white;
}

/* Prezzo colore su hover */
.gtc-product-template>li:hover .wp-block-woocommerce-product-price {
    color: var(--template-maincolor);
}


/* Stile per il blocco delle ore */
.product-hours {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    font-size: 1.3em;
    color: var(--template-fourthcolor);
    font-weight: 600;
}

/* Icona SVG */
.product-hours svg {
    width: 1.2em;
    height: 1.2em;
    fill: var(--template-fourthcolor);
    flex-shrink: 0;
}

.editor-styles-wrapper .wc-block-grid__products .wc-block-grid__product .wc-block-components-product-image .wc-block-components-product-sale-badge--align-right,
.wc-block-components-product-image .wc-block-components-product-sale-badge--align-right {
    display: none !important;
}

.gtc-product-button>span {
    border-radius: 2rem;
    text-align: center;
    background: #f0f2f5;
    color: var(--template-fourthcolor);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    box-shadow: -4px -4px 8px #ffffff,
        4px 4px 8px #aeaec0;
}

.gtc-product-button>span>a {
    text-decoration: none;
    color: var(--template-fourthcolor);

}



/*.gtc-product-button span:hover {
    transform: scale(0.98) translateY(0);
    color: var(--template-maincolor);
    box-shadow: inset -4px -4px 6px #ffffff,
        inset 4px 4px 6px #aeaec0;
}*/
.wc-block-components-product-button>a.added_to_cart,
span[data-wp-bind--hidden] {
    display: none !important;
}


@media (max-width: 768px) {
    .gtc-product-template {
        grid-template-columns: repeat(1, 1fr);
    }

    .gtc-product-evidence-wrapper {
        padding: 1rem;
    }

    .gtc-product-evidence-title {
        font-size: large;
    }
}

@media (max-width: 468px) {}

/*
@media (max-width: 1280px) {
 .gtc-product-template { grid-template-columns: repeat(4, 1fr) !important; }
.gtc-product-template > li { display: none; }
.gtc-product-template > li:nth-child(-n+4) { display: flex; }
 }
@media (max-width: 1024px) {
 .gtc-product-template { grid-template-columns: repeat(2, 1fr) !important; }
.gtc-product-template > li { display: none; }
.gtc-product-template > li:nth-child(-n+3) { display: flex; }
 }
@media (max-width: 768px) {
 .gtc-product-evidence-title { font-size: x-large; }
.gtc-product-template { grid-template-columns: repeat(1, 1fr) !important; }
.gtc-product-template > li { display: none !important; }
.gtc-product-template > li:nth-child(-n+3) { display: flex !important; }
 }
*/