/**
 * MPR Sales Revolution
 * Frontend styles - Cross-sell widgets
 */

.mpr-sales {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 4px;
}

.mpr-sales__title {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #232323;
}

.mpr-sales__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.mpr-sales__product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.mpr-sales__product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mpr-sales__link {
    text-decoration: none;
    color: inherit;
}

.mpr-sales__image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.mpr-sales__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mpr-sales__product:hover .mpr-sales__image img {
    transform: scale(1.05);
}

.mpr-sales__info {
    padding: 1rem;
    flex-grow: 1;
}

.mpr-sales__name {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #232323;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mpr-sales__price {
    font-size: 1rem;
    font-weight: 600;
    color: #2fb5d2;
}

.mpr-sales__form {
    padding: 0 1rem 1rem;
}

.mpr-sales__add-to-cart {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Cart page widget */
.mpr-sales--cart {
    background: #f5f5f5;
}

/* Checkout widget */
.mpr-sales--checkout {
    margin: 1rem 0;
    padding: 1rem;
}

.mpr-sales--checkout .mpr-sales__products {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* Responsive */
@media (max-width: 767px) {
    .mpr-sales__products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .mpr-sales__products {
        grid-template-columns: 1fr;
    }
}

/* Product page cross-sell (native miniatures in theme grid) */
.mpr-product-crosssell {
    margin: 2rem 0;
}

.mpr-product-crosssell__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--bs-body-color, #212529);
}
