/* Feuille de style dédiée au carrousel Amazon (amazon-carousel.php).
   Fichier indépendant : à charger avec un <link> partout où le carrousel
   apparaît, et à retirer d'un bloc si le carrousel est supprimé un jour. */

.amazon-box {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 32px 0 2px;
    padding: 15px 16px 11px;
    background: #fff;
    border: 1px solid #cfd9e6;
    border-top: 3px solid #8aa7c2;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35, 47, 62, 0.06);
}

.amazon-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.amazon-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.amazon-paid-label {
    flex: 0 0 auto;
    font-size: 11px;
    color: #6a6a6a;
    white-space: nowrap;
}

.amazon-carousel-area {
    position: relative;
    width: 100%;
}

.amazon-carousel {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding: 2px 34px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.amazon-carousel::-webkit-scrollbar {
    display: none;
}

.amazon-item {
    flex: 0 0 145px;
    scroll-snap-align: start;
    display: block;
    text-decoration: none;
}

.amazon-card {
    box-sizing: border-box;
    height: 132px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.amazon-item:hover .amazon-card {
    border-color: #aebdcb;
    box-shadow: 0 3px 10px rgba(35, 47, 62, 0.09);
}

.amazon-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 118px;
    max-height: 108px;
    object-fit: contain;
    border: 0;
}

.amazon-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #232f3e;
    color: #fff;
    font-size: 21px;
    line-height: 26px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,.13);
}

.amazon-prev {
    left: 0;
}

.amazon-next {
    right: 0;
}

.amazon-disclosure {
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid #edf0f3;
    font-size: 11px;
    line-height: 1.35;
    color: #666;
}

@media (max-width: 700px) {
    .amazon-box {
        width: 100%;
        padding: 13px 11px 9px;
        margin: 24px 0 2px;
    }

    .amazon-heading {
        display: block;
        margin-bottom: 10px;
    }

    .amazon-title {
        font-size: 1rem;
    }

    .amazon-paid-label {
        display: block;
        margin-top: 4px;
        font-size: 10px;
    }

    .amazon-carousel {
        gap: 9px;
        padding: 2px 3px;
    }

    .amazon-item {
        flex: 0 0 132px;
    }

    .amazon-card {
        height: 122px;
        padding: 7px;
    }

    .amazon-item img {
        max-width: 105px;
        max-height: 100px;
    }

    .amazon-arrow {
        display: none;
    }

    .amazon-disclosure {
        font-size: 10px;
        margin-top: 9px;
        padding-top: 7px;
    }
}
