/**
 * Top Trending Products - Colorful Card Design
 */

.top-trending-products {
    padding: 50px 0;
    background: #fff;
    width: 100%;
    margin: 0;
}

.top-trending-products .h2-heading {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2b2f42;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
    margin-top: 20px;
}

/* Grid Layout */
.top-trending-products .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
   /* max-width: 1100px;*/
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 767px) {
    .top-trending-products .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 420px;
    }
    
}

/* Product Card Base */
.top-trending-products .product-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
}

.top-trending-products .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* Card colors */
.top-trending-products .product-card-1 { background: #CE0B85; } /* magenta */
.top-trending-products .product-card-2 { background: #F9E65D; } /* jaune */
.top-trending-products .product-card-3 { background: #01ADFF; } /* bleu */

/* Card Header */
.top-trending-products .card-header {
    padding: 22px 22px 14px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.top-trending-products .card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    text-transform: uppercase;
}

.top-trending-products .card-reference {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Texte foncé sur la carte jaune */
.top-trending-products .product-card-2 .card-title,
.top-trending-products .product-card-2 .card-reference {
    color: #1a1a1a;
}

/* Bloc blanc : image + prix */
.top-trending-products .card-image {
    margin: 0 30px 30px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 12px;
}

.top-trending-products .card-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.top-trending-products .product-card:hover .card-image img {
    transform: scale(1.06);
}

/* Prix centré dans le bloc blanc */
.top-trending-products .card-price {
    margin-top: 14px;
    text-align: center;
}

.top-trending-products .price-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1a1a;
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.top-trending-products .product-card { animation: fadeIn 0.6s ease-out; }
.top-trending-products .product-card-1 { animation-delay: 0.1s; }
.top-trending-products .product-card-2 { animation-delay: 0.2s; }
.top-trending-products .product-card-3 { animation-delay: 0.3s; }

@media (max-width: 768px) {
    .top-trending-products .h2-heading { font-size: 1.3rem; }
    .top-trending-products .card-title { font-size: 1.05rem; }
}

@media (max-width: 991px) {
    .top-trending-products .price-value{
        font-size: 1rem;
    } 
}
