/* Layout card minimale, non invasivo */
.best-splide-wrapper { margin-block: 1rem 2rem; }
.best-splide-title { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); margin-bottom: 2rem; text-align: center;}

.best-splide-wrapper .splide__list {
    padding-bottom: 2rem !important;
}
.splide__slide { padding: .25rem; height: auto; }
.best-card {
    list-style: none;
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1rem;
    -webkit-box-shadow: 0 1rem 1rem -1rem rgba(0, 0, 0, 0.5);
    box-shadow: 0 1rem 1rem -1rem rgba(0, 0, 0, 0.5);
    border-radius: 0.1rem;
    text-align: center;
}
.best-card__image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(0,0,0,.03);
  border-radius: .5rem;
}
.best-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    -webkit-transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -ms-transition: all 500ms ease;
    -o-transition: all 500ms ease;
    transition: all 500ms ease;
}
.best-card:hover .best-card__image img {
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -o-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

/* Testi */
.best-card__title { font-size: 1.0625rem; line-height: 1.5; margin-bottom: 0.625rem; }
.best-card__title a { text-decoration: none; color: var(--theme-palette-color-4);}
.best-card__title a:hover {color: var(--theme-palette-color-9);}
.best-card__price { margin-bottom: .25rem; color: var(--theme-palette-color-9); font-weight: bold;}
.best-card__cats { font-size: 0.75rem; color: var(--theme-palette-color-4); margin-bottom: 0.625rem; text-transform: uppercase;}

/* CTA sempre allineata al fondo della card */
.best-card__cta { margin-top: auto; }
.best-card__cta form button,
/*.best-card__cta a.button, .best-card__cta .added_to_cart { width: 100%; }*/

/* Accessibilità: focus visibile su frecce/paginazione */
.best-splide__arrow:focus { outline: 2px solid currentColor; outline-offset: 2px; }
.splide__pagination__page:focus { outline: 2px solid currentColor; outline-offset: 2px; }

/* Nascondi il pulsante "Aggiungi al carrello" quando è stato aggiunto (WooCommerce aggiunge .added) */
.add_to_cart_button.added { display: none !important; }
