/* Reset e Base */
.ms-products-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background: transparent;
}

/* Container do Carrossel */
.ms-products-container {
    display: flex;
    gap: 25px;
    padding: 20px 10px;
    width: max-content;
}

/* Animação Infinita */
@keyframes ms-infinite-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ms-products-container.infinite-scroll {
    animation: ms-infinite-scroll 30s linear infinite;
}

.ms-products-container.infinite-scroll:hover {
    animation-play-state: paused;
}

/* Estilo do Card - Design Premium */
.ms-product-card {
    flex: 0 0 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.ms-product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.ms-product-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.ms-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.ms-product-card:hover .ms-product-image img {
    transform: scale(1.05);
}

.ms-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #232f3e; /* Amazon Dark */
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.ms-product-info {
    padding: 20px;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #f5f5f5;
}

.ms-product-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ms-product-price {
    font-size: 24px;
    font-weight: 900;
    color: #00a8e1; /* Amazon Blue */
    margin-bottom: 20px;
}

.ms-buy-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #ff9900 0%, #ffb700 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.ms-buy-button:hover {
    background: linear-gradient(135deg, #e68a00 0%, #ff9900 100%);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
    color: #fff;
}

/* Grid Mode */
.ms-products-container.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    width: 100%;
    gap: 30px;
    animation: none;
}

/* Mobile */
@media (max-width: 768px) {
    .ms-product-card {
        flex: 0 0 260px;
    }
    .ms-product-image {
        height: 200px;
    }
}
