.top-tendances {
    background: #f7f7f7;
    padding: 60px 20px 50px;
}

.top-tendances-container {
    max-width: 1300px;
    margin: 0 auto;
}

.top-tendances h2 {
    font-size: 42px;
    font-weight: 800;
    color: #f7c400;
    text-align: center;
    margin-bottom: 35px;
}

.tendances-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tendances-window {
    overflow: hidden;
    width: 100%;
}

.tendances-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.4s ease;
    width: 100%;
}

.tendance-card {
    flex: 0 0 33.3333%;
    padding: 10px;
    box-sizing: border-box;
}

.tendance-card-box {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.2s ease;
}

.tendance-card-box:hover {
    transform: translateY(-4px);
}

.tendance-card img {
    width: 100%;
    max-width: 180px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 24px;
    display: block;
}

.tendance-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2c3a;
    margin: 0;
}

.tendances-btn {
    border: none;
    background: transparent;
    font-size: 42px;
    cursor: pointer;
    color: #111;
    padding: 10px;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.tendances-btn:hover {
    color: #f7c400;
}

.tendances-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.tendances-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cfcfcf;
    cursor: pointer;
    transition: 0.2s ease;
}

.tendances-dots .dot.active {
    background: #111;
}

@media (max-width: 992px) {
    .tendance-card {
        flex: 0 0 50%;
    }

    .top-tendances h2 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .tendance-card {
        flex: 0 0 100%;
    }

    .tendances-btn {
        font-size: 34px;
    }

    .top-tendances h2 {
        font-size: 28px;
    }

    .tendance-card img {
        height: 140px;
        max-width: 150px;
    }

    .tendance-card-box {
        min-height: 260px;
    }
}

.tendance-card a {
    display: block;
    color: inherit;
    height: 100%;
}

.tendance-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
}

.tendance-card {
    position: relative;
    overflow: visible;
}

.best-seller-banner {
    position: absolute;
    top: 16px;
    right: -38px;
    width: 150px;
    padding: 8px 0;
    background: #e11d2e;
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    transform: rotate(45deg);
    transform-origin: center;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    pointer-events: none;
}

.tendance-card-box {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
    border: 1px solid transparent;
}

.tendance-card-box:hover {
    transform: translateY(-6px);
    border: 1px solid #f7c400;
    box-shadow:
            0 0 0 1px rgba(247, 196, 0, 0.35),
            0 15px 35px rgba(247, 196, 0, 0.35);
}

