@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500&display=swap");

:root {
    --bg: #363fff;
    --bg2: #3138c6;
    --title: #293245;
    --secondary-light: rgb(34, 124, 112, 0.2);
    --secondary-light-2: rgb(127, 183, 126, 0.1);
    --white: #fff;
    --black: #393e46;
    --green: #00FF96;
    --blue: #00A2FF;

    --shadow: 0px 2px 8px 0px var(--secondary-light);
}

*{
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* accessoires Section */
.content {
    display: flex;
    padding: 300px 10% 50px 10%;
    background: linear-gradient(180deg, #124559, #16184f);
    color: var(--white);
    text-align: center;
    gap: 60px;
    flex-direction: column;
    justify-content: space-around;
}

section.category{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* margin: auto; */
}

.card{
    display: flex;
    max-width: 300px;
    width: 90%;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 400px;
    margin: 10px;
    background-color: var(--white);
    box-shadow: 0px 2px 8px 0px var(--secondary-light);
}

.card-top{
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.card-top p.title{
    background-color: white;
    width: 95%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    color: black;
    margin-top: 10px;
}

.card-top img{
    max-width: 200px;
    max-height: 200px;
    margin-bottom: 60px;
}

.card .card-bottom{
    width: 100%;
    height: 80px;
    background-color: var(--title);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
}

.card-bottom .box-left p.text{
    font-size: 10px;
    margin-bottom: -10px;
}

.card-bottom .box-left p.value{
    font-weight: bold;
    margin-left: -2px;
}

.card-bottom .box-left{
    width: 50%;
}

.card-bottom .box-right{
    width: 50%;
    padding: 5px;
    border-radius: 10px;
    background: linear-gradient(117deg, #9de1fc, #353ab5);
}

.card-bottom .box-right-no-buy{
    width: 50%;
    padding: 5px;
    border-radius: 10px;
    background: rgba(20, 19, 19, 0.7);
}

.card-bottom .box-right a, .card-bottom .box-right-no-buy .a{
    text-decoration: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: black;
}

.centrage{
    width: 40%;
    margin: auto;
    display: flex;
    justify-content: center;

}

/* popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    background: linear-gradient(180deg, #124559, #16184f);
    color: white;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.5);
    z-index: 1000;
    padding: 20px;
    text-align: center;
}

/* Contenu de la pop-up */
.popup-content {
    position: relative;
    padding: 20px;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: -10px;
    right: 0px;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

.close-btn:hover {
    color: var(--green);
}

/* Image du produit */
.popup img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.popup img:hover{
    transform: scale(2.5);
    transition: all 0.3s;
}

#popup-description{
    text-align: start;
}

/* Prix */
.popup-price {
    font-size: 20px;
    color: var(--green);
    margin: 10px 0;
}

/* Bouton Acheter */
.buy-button {
    display: none;
    /* background-color: var(--blue); */
    background-color: #51545678;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 35px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.buy-button:hover {
    display: none;
    background-color: #0088cc;
    transform: translateY(-2px);
}





/* style alerte box */
#alertLogoSend{
    z-index: 125;
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 20px;
    top: 80px;
    width: 300px;
    height: 70px;
    padding: 20px;
    background-color: rgba(54, 180, 60, 0.795);
    border-radius: 10px;
}

#alertLogoSend.anim{
    z-index: 125;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 20px;
    top: 80px;
    width: 300px;
    height: 70px;
    padding: 20px;
    background-color: rgba(54, 180, 60, 0.795);
    border-radius: 10px;
}

#alertLogoError{
    z-index: 125;
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 20px;
    top: 80px;
    width: 340px;
    height: 70px;
    padding: 20px;
    background-color: rgba(172, 37, 37, 0.795);
    border-radius: 10px;
}

#alertLogoError.anim{
    z-index: 125;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 20px;
    top: 80px;
    width: 340px;
    height: 70px;
    padding: 20px;
    background-color: rgba(172, 37, 37, 0.795);
    border-radius: 10px;
}






/* ------------------------- */
.popup-gallery-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-gallery {
    display: flex;
    transition: transform 0.5s ease;
    max-width: 100%;
}

.popup-gallery img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.slider-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 10px;
    user-select: none;
}

.slider-btn:hover {
    color: var(--green);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}


@media screen and (max-width:720px) {
    .popup img:hover{
        transform: none;
    }
}

@media screen and (max-width:300px) {
    .card-top p.title{
        font-size: 15px;
    }

    .card-top img{
        width: 100px;
        height: 100px;
    }

    .card-bottom .box-right a, .card-bottom .box-right-no-buy .a{
        font-size: 11px;
    }
}

/* css pour le fleche de remonter  */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease-in-out;
}

#backToTop:hover {
    background-color: #555;
}
