
.add-cart{
    position: relative;
    overflow: hidden;
}
.add-cart img{
    width: 28px;
}
.checkmark {
    display: none; 
    position: absolute;
    left: 50%;
    font-size: 20px; 
    z-index: 10; 
    overflow: hidden;


}

.fade-in{
    animation: fadingIn 2s forwards;
}
@keyframes fadingIn {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50%{
        transform: translateX(0%);
    }
    100% {
        transform: translateX(1500%);
    }

}

#prevBtn {
    left: 20px;
    animation: movingL 1s ease-in-out infinite;
}
@keyframes movingL {
    0% {
        left: 20px
    }

    50% {
        left: 10px
    }

    100% {
        left: 20px
    }
}

#nextBtn {
    right: 20px;
    animation: movingR 1s ease-in-out infinite;
}

@keyframes movingR {
    0% {
        right: 15px
    }

    50% {
        right: 5px
    }

    100% {
        right: 15px
    }
}
@media (max-width: 850px) {
    main {
        width: 100%;
        margin: 5px 0;
    }

    .quantity-container button {
        font-size: 20px;
        width: 30px;
        height: 30px;
        border: none;
        background-color: #ddd;
        border-radius: 50%;
        margin: 0 25px;
        ;
    }

    input[type="number"] {
        text-align: center;
        width: 50px;
        height: 30px;
        border: 1px solid #ccc;
        border-radius: 5px;


    }

    .breadcrumb {
        display: none;
    }


    .carousel-container button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        padding: 0;
        cursor: pointer;
        background-color: transparent;

    }

    #prevBtn {
        left: 20px;
        animation: movingL 1s ease-in-out infinite;
    }

    @keyframes movingL {
        0% {
            left: 20px
        }

        50% {
            left: 10px
        }

        100% {
            left: 20px
        }
    }

    #nextBtn {
        right: 20px;
        animation: movingR 1s ease-in-out infinite;
    }

    @keyframes movingR {
        0% {
            right: 15px
        }

        50% {
            right: 5px
        }

        100% {
            right: 15px
        }
    }

    .details {
        display: flex;
        height: 60px;
        align-items: center;
        justify-content: space-around;
        border: 1px solid black;

        padding: 0 10px;
    }

    .id {
        grid-area: id;
        font-weight: bold;
    }

    .price {
        grid-area: price;
    }

    .carousel-indicators {
        position: absolute;
        bottom: 0px;
        left: 0px;
        display: flex;
        gap: 5px;
        z-index: 10;
        background-color: rgba(255, 255, 255, 0.2);
        padding: 5px;
    }

    .indicator {
        width: 5px;
        height: 5px;
        background-color: white;
        opacity: 0.5;
        border: 2px solid white;
        border-radius: 50%;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .indicator.active {
        background-color: #235af0;
        opacity: 1;
    }

    .variants,
    .quantity-container,
    .description,
    .padding-container {
        display: flex;
        align-items: center;
        width: 90%;
        margin: auto
    }
  
    .description {
        flex-direction: column;
        align-items: flex-start;
    }

    .variant-btn {
        padding: 5px 10px;
        border: 2px solid transparent;
        border-radius: 5px;
        cursor: pointer;
        margin: 15px 5%;
        background-color: transparent;
        transition: border-color 0.3s;
        font-size: 16px;
    }

    .variant-btn.selected {
        border-color: #235af0;
    }

    .cart-button-container {
        display: flex;

        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 15px 0;
    }

    .add-cart {
        padding: 5px;
        background-color: #235af0;
        border-radius: 15px;
        border: none;
        font-size: 16px;
        font-weight: 600;
        width: 40%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        position: relative;
        overflow: hidden;
        height: 30px;
    }
    .add-cart span{
        margin-right: 5px;
    }
    .description p {
        padding-left: 5px;
        margin: 5px 0;
        color: lightslategray;
        text-align: justify;
    }

    .sizeSelect {
        display: none;
    }

    .mobile-btn {
        display: block;
    }

    .padding-container {
        padding: 15px 0;
        font-size: 20px;

    }

    #look-a-like ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;

    }

    #look-a-like ul {
        border: 1px solid black;
    }

    #look-a-like li p {
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: black;
        border-left: 1px solid black;
    }

    #look-a-like li article {
        width: 100%;
        padding-top: 100%;
        background-size: contain;
        background-position: 50%;
    }
    #formAddToCart div{
        padding:8px 0;
    }
}
.variants input {
    display: none;
}

.variant-label {
    padding:  3px 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    cursor: pointer;
    font-size: 15px;
    
    min-width: 80px;
}

.variants input:checked + .variant-label {
    border: 2px solid #235af0;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-slide {
    display: flex;

    transition: all 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    border: 1px solid black;
    box-sizing: border-box;
}

@media (min-width: 850px) {
    main {
        width: 70%;
        margin: 0px auto;
    }
  
    section {
        display: flex;
        margin-bottom: 20px;
        align-items: stretch;

            }

    section>div:nth-child(2) {
        width: 50%;
    }

    select {
        width: max-content;
        text-align: center;
    }
    input{
       margin:  10px 0;
    }
    form{
        display: flex;
        flex-direction: column ;
        justify-content: space-between;
        height: 150px;

    }

    .right-col-wrapper {
        box-sizing: border-box;
        width: 100%;
        border: 1px solid black;
        position: relative;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: space-between;
        flex-grow: 1;

    }

    .right-col-wrapper>div, .right-col-wrapper>form{
        padding: 0 10%;
    }

    section>div:nth-child(2) {
        display: flex;
        align-items: stretch;
    }


    .breadcrumb {
        padding: 0;
        margin: 1em 0;
        font-size: 0.9em;
        display: flex;
    }

    .breadcrumb li {
        display: inline;
    }

    .breadcrumb li+li::before {
        content: ">";
        margin: 0 0.5em;
    }


    .breadcrumb a:hover {
        text-decoration: underline;
    }

    .id {
        font-weight: bold;
        font-size: 34px;
        height: 110px;
        align-items: center;
        position: relative;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .details {
        border-bottom: 1px solid black;
    }


    .breadcrumb li[aria-current="page"] {
        font-weight: bold;
        color: #235af0;
    }

    .carousel-container button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        padding: 0;
        cursor: pointer;
        background-color: transparent;
    }

    .price {
        position: absolute;
        top: 26%;
        right: 10%;
        font-size: 32px;
    }

    .carousel-container {
        width: 50%;
        margin: 0;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        
    }

    

    .carousel-indicators {
        display: flex;
        justify-content: center;
        padding: 20px 0;
        border: 1px solid black;
        align-items: center;
    }

    .indicator {
        width: 60px;
        height: 40px;
        background-color: transparent;
        background-position: 50%;
        background-size: cover;
        margin: 0 10px;
        cursor: pointer;
    }

    .indicator.active {
        border: 4px solid #235af0;
    }

    .variants {
        display: flex;
        justify-content: space-between;
        width: 70%;
        align-items: center;
         margin-bottom: 5px;
    }

    .variant-btn.mobile-btn {
        display: none;
    }

    .sizeSelect {
        display: inline-block;
        font-size: 20px;
        border: 2px solid black;
        padding: 2px;
    }

    #sizeLabel,
    .quantity-container label {
        padding-right: 5px;
        font-size: 18px;
    }

    #quantity {
        font-size: 20px;
    }



    .description p {
        color: rgb(165, 159, 159);
        font-size: 18px;
    }

    .add-cart {
        width: 70%;
        border-radius: 15px;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #235af0;
        color: white;
        font-weight: 600;
        border: none;
        height: 30px;
        margin: auto;
      
    }
    .add-cart span{
        margin-right: 20px;
    }
   
    #incrementBtn,#decrementBtn{
        padding-bottom: 4px;
    }

    .quantity-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 70%;
    }

    .quantity-container button {

        background-color: transparent;
        font-size: 34px;
        width: 34px;
        max-height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .quantity-container input {
        border: none;
        border-bottom: 1px solid black;
        background-color: transparent;
        text-align: center;
        width: 10%;
    }

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Pour Firefox */
    input[type="number"]::-moz {
        -moz-appearance: textfield;
    }

    #look-a-like {

        padding: 0;
    }

    .padding-container {
        padding: 0 10%;
        border-bottom: 1px solid black;
        border-top: 1px solid black;
    }

    #look-a-like p {
        height: 40px;
        box-sizing: border-box;
        display: flex;
        align-items: center;


        width: 100%;
    }

    #look-a-like ul {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;

    }

    #look-a-like li {
        box-sizing: border-box;
        border: 1px solid black;
        border-left: none;
        border-top: none;

        text-align: center;
    }

    #look-a-like li p {
        color: black;
        justify-content: center;
    }

    #look-a-like li article {
        width: 100%;
        padding-top: 100%;
        background-size: contain;
        background-position: 50%;

    }
 

   

}
@media (min-width:1150px) {

    .variant-label{
        font-size: 20px;
        margin-right: 20px;
    }
    #formAddToCart div{
        padding:5px 0;
    }
}
@media (min-width:850px) and (max-width: 1150px){

    .variants{
        flex-wrap: wrap;
    }
    .description p {
        padding-top: 60px;
        font-size: 13px;
    }
}

@media (min-width : 850px) and (max-width: 1350px) {

    .right-col-wrapper .variants{
        font-size: 16px;
    }
    .add-cart{
        font-size: 18px;
    }
    .description{
        font-size: 16px;
    }
    .id{
        height: 50px;
    }
    .price{
        font-size: 20px;
        top: 20%;
    }
    .carousel-indicators{
        flex: 1 1;
        display: flex;
    }
    .indicator{
        width: 90px;
        height: 60px;
    }
    .variant-label{
        /* margin: 5px 0; */
        font-size: 16px;
        min-width: 81px;
        
    }
    .quantity-container button{
        width: 24px;
        height: 24px;
    }
}