.card-product {
    display: flex;
    flex-direction: column;
}

.card-product .card-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-product .card-product-info .price {
    margin-top: auto;
}
.card-product .product-img{
    justify-content: center;
}
.tf-product-media-main1 .item, .tf-product-media-main2 .item, .tf-product-media-main3 .item, .tf-product-media-main4 .item, .tf-product-media-main .item{
    text-align: center;
}
.card-product .card-product-wrapper img,.tf-product-media-main1 .item img, .tf-product-media-main2 .item img, .tf-product-media-main3 .item img, .tf-product-media-main4 .item img, .tf-product-media-main .item img {
    object-fit: contain;
    object-position: bottom;
    width: auto;
    height: auto;
    max-height: 100%;
}

.card-product .card-product-wrapper:hover .product-img .img-product {
    opacity: 0.8;
}

@media (max-width: 677.98px) {

    .page-shop .tf-grid-layout.tf-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
.page-shop .swiper .swiper-slide{height: auto;}
.page-shop .swiper .card-product{
    height: 100%;
}
/* SEARCH AUTOCOMPLETE */
.tf-mini-search-frm .twitter-typeahead{
    width: 100%;
}
.tt-menu {
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    max-height: 250px; /* Optional: Limit height */
    overflow-y: auto; /* Optional: Add scroll if too many items */
    padding: 0;
    margin: 2px 0 0;
    list-style: none;
    width: 100%; /* Make it span the width of the input */
    z-index: 1000; /* Ensure it's above other elements */
}

.tt-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    line-height: 20px;
}

.tt-suggestion.tt-cursor,
.tt-suggestion:hover {
    color: #fff;
    background-color: #007bff; /* Bootstrap primary blue */
}

.tt-suggestion p {
    margin: 0;
}
#cart-message {
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 9999;
}
#cart-message .success {
    background: var(--main);
    color: var(--white);
    padding: 3px;
    border-radius: 3px;
}
#cart-message .error {
    background: #f8c4c0;
    color: red;
    padding: 3px 5px;
    border-radius: 3px;
}
.add-to-cart-form .box-icon{
    border: none;
}
.btn-icon-action.loading .icon{
    color: red;
}
.btn-icon-action.active .icon-delete{
    color: red;
}
.btn-icon-action.active .icon-delete:before{
    content: "\e92f";
}
/* Scheda */
.pswp {
    --pswp-transition-duration:0ms !important;
}
img.pswp__img{
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    position: static;
    transition: none !important;
    transform: none !important;
}
img.pswp__img--placeholder{display: none}
.pswp__zoom-wrap{
    position: static;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}
/* Slider */

.tf-slideshow .swiper-wrapper{
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.tf-slideshow .swiper-slide {
    height: auto;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: auto;
}
.tf-slideshow .swiper-slide .wrap-slider {
    display: inline-flex;
    height: 100%;
}
.tf-slideshow .swiper-slide .wrap-slider a{
    display: inline-flex;
    height: 100%;
}
.tf-slideshow .swiper-slide img {
    max-width: none;
    height: auto;
    display: block;
    width: auto;
    max-height: 500px;
}