/* MDS Prodotti in Evidenza - Frontend */

.mds-featured-carousel {
    margin: 1rem auto;
}

.mds-featured-swiper {
    position: relative;
    overflow: hidden;
}

.mds-slide {
    display: block;
    position: relative;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 1 / 1;
}

/* Badges */
.mds-slide__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.mds-slide__badge-type {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mds-slide--evidenza .mds-slide__badge-type {
    background: var(--c-primary);
    color: #fff;
}

.mds-slide--promozione .mds-slide__badge-type {
    background: #edd221;
    color: #050505;
}

.mds-slide__badge-ref {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: #191919;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

/* Prezzi (solo promozione) */
.mds-slide__prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.mds-slide__price-old {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #000;
    text-decoration: line-through;
}

.mds-slide__price-new {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: var(--c-primary);
    line-height: 1.1;
}

/* Immagine prodotto */
.mds-slide__image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px 50px;
}

.mds-slide__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Footer */
.mds-slide__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    text-align: center;
}

.mds-slide--evidenza .mds-slide__footer {
    background: var(--c-primary);
}

.mds-slide--promozione .mds-slide__footer {
    background: #edd221;
}

.mds-slide__name {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mds-slide--evidenza .mds-slide__name {
    color: #fff;
}

.mds-slide--promozione .mds-slide__name {
    color: #000;
}

/* Pagination */
.mds-featured-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.mds-featured-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border: 2px solid var(--c-primary);
    background: transparent;
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.mds-featured-pagination .swiper-pagination-bullet-active {
    background: var(--c-primary);
}

/* Hover */
.mds-slide:hover .mds-slide__image img {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.mds-slide__image img {
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 767px) {
    .mds-featured-carousel {
        margin: 20px auto;
    }

    .mds-slide__price-new {
        font-size: 22px;
    }

    .mds-slide__name {
        font-size: 12px;
    }
}
