/* Container */
.td-mv-container {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.td-mv-header {
    text-align: center;
    margin-bottom: 40px;
}

.td-mv-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    margin: 0;
}

.td-mv-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #e63946; /* Accent color */
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Card */
.td-mv-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.td-mv-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
    border-color: #e8e8e8;
}

/* Badge */
.td-mv-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image */
.td-mv-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.td-mv-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.td-mv-card:hover .td-mv-img {
    transform: scale(1.08);
}

/* Content */
.td-mv-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.td-mv-product-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    min-height: calc(1.4em * 2); /* Garante altura para 2 linhas e alinha todos os cards */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.td-mv-product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.td-mv-product-title a:hover {
    color: #e63946;
}

/* Rating */
.td-mv-rating-container {
    min-height: 24px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.td-mv-rating {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #ffb400;
}

.td-mv-rating-count {
    color: #95a5a6;
    margin-left: 6px;
    font-size: 12px;
}

.woocommerce-product-rating .star-rating {
    margin: 0 auto;
}

/* Price */
.td-mv-price-wrapper {
    margin-top: auto;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.td-mv-price-prefix {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.td-mv-price .amount {
    font-size: 22px;
    font-weight: 800;
    color: #1d3557;
}

/* Button */
.td-mv-actions {
    margin-top: 15px;
    width: 100%;
}

.td-mv-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.td-mv-btn:hover {
    filter: brightness(1.15); /* Clareia dinamicamente independente da cor de fundo configurada */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Swiper overrides */
.td-mv-slide {
    height: auto; /* Permite que o slide assuma a altura máxima da row (strecth) */
}

.td-mv-swiper {
    padding: 20px 10px 50px 10px;
    margin: -20px -10px -50px -10px; /* Counteract padding to avoid clipping shadows */
}

.td-mv-swiper .swiper-button-next,
.td-mv-swiper .swiper-button-prev {
    color: #1d3557;
    background: rgba(255, 255, 255, 0.95);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.td-mv-swiper .swiper-button-next:after,
.td-mv-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.td-mv-swiper .swiper-button-next:hover,
.td-mv-swiper .swiper-button-prev:hover {
    background: #1d3557;
    color: #ffffff;
    transform: scale(1.1);
}

.td-mv-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #bdc3c7;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.td-mv-swiper .swiper-pagination-bullet-active {
    background: #e63946;
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .td-mv-title {
        font-size: 24px;
    }
    
    .td-mv-price .amount {
        font-size: 18px;
    }
    
    .td-mv-btn {
        padding: 10px 0;
        font-size: 12px;
    }
}
