/* ========================================
   PRATTSEUL — SHOP V9
   CARROUSEL INFINI / COMPACT / ENCADRÉ
======================================== */


/* ========================================
   CONTENU
======================================== */

.shop-content {
    width: min(
        var(--content-width),
        calc(100% - 80px)
    );

    min-width: 600px;

    display: flex;
    flex-direction: column;

    gap: 0;

    padding: 0 0 22px;
}


/* ========================================
   ENTÊTE
======================================== */

.shop-heading {
    position: relative;
    z-index: 10;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin: 0;

    padding-bottom: 14px;

    /*
       Ligne supérieure
    */
    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.34);
}


.shop-category {
    color:
        rgba(
            255,
            255,
            255,
            0.88
        );

    font-size: 15px;
    line-height: 1;

    font-weight: 600;

    text-shadow:
        0 1px 8px
        rgba(0, 0, 0, 0.38);
}


/* ========================================
   CONTRÔLES
======================================== */

.shop-controls {
    display: flex;

    align-items: center;

    gap: 8px;
}


.shop-counter {
    min-width: 58px;

    color:
        rgba(
            255,
            255,
            255,
            0.90
        );

    font-size: 14px;
    line-height: 1;

    font-weight: 600;

    text-align: center;

    text-shadow:
        0 1px 8px
        rgba(0, 0, 0, 0.38);
}


.shop-arrow {
    appearance: none;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;

    background: transparent;

    color:
        rgba(
            255,
            255,
            255,
            0.86
        );

    font: inherit;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}


.shop-arrow:hover {
    color: #fff;

    transform:
        scale(1.1);
}


/* ========================================
   SHELL
======================================== */

.shop-carousel-shell {
    position: relative;

    width: 100%;

    overflow: hidden;
}


/* ========================================
   CARROUSEL
======================================== */

.shop-carousel {
    position: relative;

    width: 100%;

    /*
       Zone réservée à :
       image + informations + prix
    */

    height:
        clamp(
            455px,
            52vh,
            535px
        );

    overflow: hidden;

    cursor: grab;

    touch-action: pan-y;

    user-select: none;

    outline: none;
}


.shop-carousel.is-dragging {
    cursor: grabbing;
}


/* ========================================
   TRACK
======================================== */

.shop-track {
    position: absolute;

    /*
       Plus proche de la ligne supérieure
    */

    top: 4px;
    left: 50%;

    display: flex;

    align-items: flex-start;

    gap:
        clamp(
            8px,
            1.2vw,
            18px
        );

    width: max-content;

    padding: 0;
    margin: 0;

    will-change: transform;

    transform:
        translate3d(
            0,
            0,
            0
        );

    transition:
        transform
        0.65s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


/* ========================================
   PRODUIT
======================================== */

.shop-product {
    position: relative;

    flex:
        0 0
        clamp(
            240px,
            21vw,
            310px
        );

    display: flex;
    flex-direction: column;

    gap: 8px;

    opacity: 0.42;

    transform:
        scale(0.78);

    transform-origin:
        center top;

    filter:
        brightness(0.86);

    transition:
        transform
        0.58s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        opacity
        0.4s
        ease,
        filter
        0.4s
        ease;
}


/* ========================================
   VOISINS
======================================== */

.shop-product.is-neighbour {
    z-index: 2;

    opacity: 0.72;

    transform:
        scale(0.88);

    filter:
        brightness(0.96);
}


/* ========================================
   PRODUIT ACTIF
======================================== */

.shop-product.is-active {
    z-index: 5;

    opacity: 1;

    transform:
        scale(1.08);

    filter: none;
}


/* ========================================
   IMAGE
======================================== */

.shop-product-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 1475 / 1052;

    overflow: hidden;

    background:
        rgba(
            0,
            0,
            0,
            0.15
        );

    color: inherit;

    text-decoration: none;

    box-shadow:
        0 14px 38px
        rgba(
            0,
            0,
            0,
            0.10
        );

    transition:
        box-shadow
        0.4s
        ease;
}


.shop-product.is-active
.shop-product-image {
    box-shadow:
        0 18px 50px
        rgba(
            0,
            0,
            0,
            0.16
        );
}


.shop-product-image img {
    display: block;

    width: 100%;
    height: 100%;

    /*
       Même ratio que le visuel Bandcamp de référence
       (1475 × 1052), sans zoom artificiel.
    */
    object-fit: cover;

    pointer-events: none;
}


/* ========================================
   HOVER IMAGE
======================================== */

@media
(hover: hover)
and
(pointer: fine) {

    .shop-product.is-active
    .shop-product-image img {
        transition:
            transform
            0.7s
            cubic-bezier(
                0.22,
                1,
                0.36,
                1
            );
    }


    .shop-product.is-active
    .shop-product-image:hover img {
        transform:
            scale(1.018);
    }

}


/* ========================================
   INFORMATIONS PRODUIT
======================================== */

.shop-product-info {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 0;

    width: 100%;

    text-align: center;

    opacity: 0;

    transform:
        translateY(-2px);

    pointer-events: none;

    transition:
        opacity
        0.3s
        ease,
        transform
        0.4s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.shop-product.is-active
.shop-product-info {
    opacity: 1;

    transform:
        translateY(0);

    pointer-events: auto;
}


/* ========================================
   NOM DE L'ALBUM / PROJET
======================================== */

.shop-product-project {
    margin: 0 0 5px;

    color:
        rgba(
            255,
            255,
            255,
            0.88
        );

    font-size: 14px;
    line-height: 1;

    font-weight: 700;

    letter-spacing:
        0.055em;

    text-transform: uppercase;

    text-shadow:
        0 1px 9px
        rgba(
            0,
            0,
            0,
            0.52
        );
}


/* ========================================
   TITRE PRODUIT
======================================== */

.shop-product h1,
.shop-product h2 {
    margin: 0;

    color: #fff;

    font-size:
        clamp(
            28px,
            2.25vw,
            34px
        );

    line-height: 0.98;

    font-weight: 700;

    letter-spacing:
        -0.03em;

    text-shadow:
        0 2px 13px
        rgba(
            0,
            0,
            0,
            0.52
        );
}


/* ========================================
   DESCRIPTION
======================================== */

.shop-product p {
    margin: 7px 0 0;

    color:
        rgba(
            255,
            255,
            255,
            0.92
        );

    font-size: 15px;
    line-height: 1.12;

    font-weight: 500;

    text-shadow:
        0 1px 9px
        rgba(
            0,
            0,
            0,
            0.52
        );
}


/* ========================================
   EXPÉDITION
======================================== */

.shop-product
.shop-product-shipping {
    margin-top: 3px;

    color:
        rgba(
            255,
            255,
            255,
            0.76
        );

    font-size: 13px;
    line-height: 1.1;
}


/* ========================================
   PRIX
======================================== */

.shop-product-price {
    display: inline-block;

    margin-top: 8px;

    color: #fff;

    font-size: 21px;
    line-height: 1;

    font-weight: 700;

    text-decoration: none;

    text-shadow:
        0 2px 12px
        rgba(
            0,
            0,
            0,
            0.52
        );

    transition:
        opacity
        0.2s
        ease,
        transform
        0.2s
        ease;
}


.shop-product-price:hover {
    opacity: 0.70;

    transform:
        translateX(2px);
}


/* ========================================
   BADGE PRÉCOMMANDE
======================================== */

.shop-badge {
    position: absolute;

    z-index: 5;

    top: 9px;
    left: 9px;

    padding:
        6px 8px
        5px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.78
        );

    background:
        rgba(
            0,
            0,
            0,
            0.74
        );

    color: #fff;

    font-size: 10px;
    line-height: 1;

    font-weight: 700;

    letter-spacing:
        0.07em;

    text-transform: uppercase;

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(4px);
}


/* ========================================
   FOOTER BANDCAMP

   La bordure supérieure devient
   la seconde ligne du cadre.
======================================== */

.shop-footer {
    position: relative;

    z-index: 10;

    flex: 0 0 auto;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 5px;

    width: 100%;

    margin: 0;

    /*
       Espace symétrique autour
       de la ligne inférieure
    */

    padding:
        14px 0
        0;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.34
        );

    color:
        rgba(
            255,
            255,
            255,
            0.70
        );

    font-size: 13px;
    line-height: 1;

    font-weight: 500;

    text-shadow:
        0 1px 8px
        rgba(
            0,
            0,
            0,
            0.44
        );
}


.shop-footer a {
    color:
        rgba(
            255,
            255,
            255,
            0.96
        );

    font-weight: 700;

    text-decoration: none;

    transition:
        opacity
        0.2s
        ease;
}


.shop-footer a:hover {
    opacity: 0.60;
}


/* ========================================
   GRAND ÉCRAN
======================================== */

@media
(min-width: 1300px) {

    .shop-product {
        flex-basis:
            clamp(
                255px,
                20vw,
                325px
            );
    }


    .shop-carousel {
        height:
            clamp(
                470px,
                53vh,
                545px
            );
    }


    .shop-product h1,
    .shop-product h2 {
        font-size:
            clamp(
                30px,
                2vw,
                35px
            );
    }

}


/* ========================================
   TABLETTE
======================================== */

@media
(max-width: 900px) {

    .shop-content {
        width:
            calc(
                100% - 48px
            );
    }


    .shop-product {
        flex-basis:
            clamp(
                220px,
                33vw,
                275px
            );
    }


    .shop-track {
        gap: 10px;
    }


    .shop-product.is-active {
        transform:
            scale(1.06);
    }


    .shop-product h1,
    .shop-product h2 {
        font-size: 27px;
    }


    .shop-product p {
        font-size: 14px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media
(max-width: 700px) {

    .shop-content {
        width:
            calc(
                100% - 28px
            );

        min-width: 0;

        padding:
            2px 0
            18px;
    }


    .shop-heading {
        gap: 8px;

        padding-bottom: 10px;
    }


    .shop-category {
        font-size: 12px;
    }


    .shop-controls {
        gap: 4px;
    }


    .shop-counter {
        min-width: 48px;

        font-size: 11px;
    }


    .shop-arrow {
        width: 25px;
        height: 25px;

        font-size: 20px;
    }


    .shop-carousel {
        height: 420px;
    }


    .shop-track {
        top: 4px;

        gap: 7px;
    }


    .shop-product {
        flex-basis:
            min(
                68vw,
                245px
            );

        opacity: 0.34;

        transform:
            scale(0.78);
    }


    .shop-product.is-neighbour {
        opacity: 0.66;

        transform:
            scale(0.86);
    }


    .shop-product.is-active {
        opacity: 1;

        transform:
            scale(1.03);
    }


    .shop-product-project {
        margin-bottom: 4px;

        font-size: 11px;
    }


    .shop-product h1,
    .shop-product h2 {
        font-size: 25px;
    }


    .shop-product p {
        margin-top: 5px;

        font-size: 12px;
    }


    .shop-product
    .shop-product-shipping {
        margin-top: 2px;

        font-size: 11px;
    }


    .shop-product-price {
        margin-top: 7px;

        font-size: 18px;
    }


    .shop-footer {
        padding-top: 10px;

        font-size: 10px;
    }

}


/* ========================================
   PETIT MOBILE
======================================== */

@media
(max-width: 430px) {

    .shop-carousel {
        height: 395px;
    }


    .shop-product {
        flex-basis: 70vw;
    }


    .shop-product.is-active {
        transform:
            scale(1.02);
    }


    .shop-product h1,
    .shop-product h2 {
        font-size: 23px;
    }


    .shop-product p {
        font-size: 11px;
    }


    .shop-product
    .shop-product-shipping {
        font-size: 10px;
    }


    .shop-product-price {
        font-size: 17px;
    }

}


/* ========================================
   ACCESSIBILITÉ
======================================== */

@media
(prefers-reduced-motion: reduce) {

    .shop-track {
        transition: none !important;
    }


    .shop-product {
        transition: none;
    }


    .shop-product-info {
        transition: none;
    }

}
