.carrousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
}
.carrousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    width: 100%;
}
.carrousel-item {
    min-width: 100%;
    max-width: 100%;
    background: #fbeedc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(60,40,20,0.08);
    padding: 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.carrousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #b25c2e;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    opacity: 0.85;
    transition: background 0.2s;
}
.carrousel-btn:hover {
    background: #7a4a2f;
}
.carrousel-btn.left {
    left: 0;
}
.carrousel-btn.right {
    right: 0;
}
.carrousel-item {
    min-width: 100%;
    max-width: 100%;
    background: #fbeedc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(60,40,20,0.08);
    padding: 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
}
.carrousel-item img {
    display: block;
    margin: 0 auto 12px auto;
    max-width: 280px;
    max-height: 180px;
    border-radius: 8px;
    border: 4px solid #7a4a2f;
    background: #e6d3b3;
}
.infos {
    text-align: center;
}
.infos h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: bold;
}
.infos p {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #7a4a2f;
}
.prix {
    font-size: 1.1rem;
    color: #b25c2e;
    font-weight: bold;
}
@media (max-width: 700px) {
    .carrousel {
        max-width: 98vw;
    }
    .carrousel-item {
        min-width: 100vw;
        max-width: 100vw;
        padding: 10px;
    }
    .carrousel-item img {
        display: block;
        margin: 0 auto 12px auto;
        max-width: 160px;
        max-height: 100px;
        border-radius: 8px;
        border: 4px solid #7a4a2f;
        background: #e6d3b3;
    }
}

/* Thumbnail selector and preview */
.carrousel .thumbs-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 4px;
    margin-bottom: 10px;
}
.carrousel .thumb {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px; /* make button rectangular-ish to match thumb */
    transition: transform 0.12s;
}
.carrousel .thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; box-sizing: border-box; }
.carrousel .thumb.active { transform: scale(1.05); }
.carrousel .thumb.active img { border-color: #c62828; }
.carrousel .thumb:focus { outline: none; box-shadow: none; }

.carrousel .thumb:active { box-shadow: none; }

@media (max-width:700px) {
    .carrousel .thumb { width: 44px; height: 44px; }
    .carrousel .thumb img { width: 36px; height: 36px; }
}
