@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@100..900&display=swap');
:root{
    --Orange: hsl(26, 100%, 55%);
    --Pale-orange: hsl(25, 100%, 94%);
    --Very-dark-blue: hsl(220, 13%, 13%);
    --Dark-grayish-blue: hsl(219, 9%, 45%);
    --Grayish-blue: hsl(220, 14%, 75%);
    --Light-grayish-blue: hsl(223, 64%, 98%);
    --White: hsl(0, 0%, 100%);
    --Black: hsl(0, 0%, 0%);
}
div{
    img{
        cursor: pointer;
    }
}
body{
    font-family: Kumbh Sans, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding-bottom: 4rem;
    
}

.desktopNav{
    display: none;
}

.mobileNav{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem;
    .avatar{
        height: 2rem;
    }
    .left{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    .right{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 1rem;
    }
    .links{
        position: absolute;
        top: 0;
        left: 0;
        z-index: 100;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        background-color: white;
        width: 60%;
        height: 125.5vh;
        padding: 1rem;
        gap: 3rem;
        .mobileLinks{
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            gap: 1rem;
            a{
                color: black;
                font-size: 18px;
            }
        }

    }
}

.avatar{
    border-radius: 100%;
}

.avatar:hover{
    border: 2px solid var(--Orange);
}
.overlay{
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 130vh;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.712);
}
.main{
    width: 100%;
    height: 20rem;
    transition: background 0.5s ease;
}

.thumbnails{
    display: none;
}

.noScroll{
    overflow: hidden !important;
}

.product1{
    background-image: url(images/image-product-1.jpg);
    background-size: cover;
}

.text{
    padding-left: 1rem;
    padding-right: 1rem;
}
p{
    font-size: 16px;
}
.prices{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    .mainPrice{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    div{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .sale{
        background-color: var(--Black);
        padding: .4rem;
        border-radius: .4rem;
        color: white;
        text-align: center;
        width: 3rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    .previousPrice{
        text-decoration-line: line-through;
    }
}



.buttons{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    button{
        width: 100%;
        border: none;
    }
    .amount{
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: .4rem;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        background-color: var(--Light-grayish-blue);
    }
    .addToCart{
        background-color: var(--Orange);
        padding: 1.2rem;
        border-radius: .4rem;
        font-weight: 600;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        transition: background 0.3s ease;
    }
    .addToCart:hover{
        background-color: #ffac6a;
    }
}

.hide{
    display: none !important;
}

a{
    text-decoration: none;
    color: var(--Dark-grayish-blue);
}

button:hover{
    cursor: pointer;
}

@media (min-width: 900px){
    body{
        padding-left: 8rem;
        padding-right: 8rem;
    }
    .mobileNav{
        display: none;
    }
    .desktopNav{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 2rem;
        border-bottom: 1px solid #ccc;
        /* border: 1px solid; */

        .avatar{
            height: 3rem;
        }
        .left, .right{
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            gap: 2.5rem;
            /* padding-bottom: 2rem;    */
            align-items: center;
        }
        .right{
            padding-bottom: 2rem;   

        }
        .left img{
            padding-bottom: 2rem;   

        }
        .links{
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center; 
            gap: 2rem; 
            /* border: 1px solid; */
            a{
                padding-bottom: 2rem;   

            }
            a:hover{
                margin-top: 4px;
                border-bottom: 4px solid var(--Orange);

            }
        }
        
    }
    .mainContent{
        margin-top: 4rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 8rem;
        /* border: 1px solid; */
    }
    .main{
        width: 27rem;
        height: 27rem;
        /* border: 1px solid; */
        border-radius: 1rem;
        background-size: contain;
    }
    .text{
        width: 37%;
        padding-top: 2rem;
        /* border: 1px solid; */
    }
    .prices{
        flex-direction: column;
        align-items: flex-start;
        .previousPrice{
            font-size: 14px;
            color: var(--Dark-grayish-blue);
            margin-top: -2rem;
        }
    }
    .buttons{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        .amount{
            width:60%;
            text-align: center;
        }
    }
    .sneakerSlider{
        /* border: 1px solid; */
        width: 27rem;
        .main{
            cursor: pointer;
        }
    }
    .thumbnails{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        /* border: 1px solid; */
        gap: 1rem;
        margin-top: 2rem;
        width: 100%;

        .wrapper{    
            position: relative;
            display: inline-block;
            width: 23%;
            border-radius: 1rem;
            overflow: hidden;        
            img{    
                width: 100%;
                border-radius: 1rem;
                display: block;
                transition: 0.3s ease;
                border-radius: 1rem;
            }
        }   
        img:hover{
            cursor: pointer;
        }
        .wrapper::after{
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: white;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            border-radius: 1rem;
        }
        .wrapper:hover::after {
            opacity: 0.4;
        }

        .wrapper img {
            outline: none;
            transition: 0.3s ease;
        }
          
        .wrapper.selected img {
            outline: 100px solid var(--Orange);
            outline-offset: -3px;
        }

    }

    .dark{
        display: none;
        position:absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.712);
    }
    .popup {
        position: relative; /* Key part! */
        display: flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        margin: auto;
    }
      
    .navBtn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 1000;
        background-color: white;
        border-radius: 100%;
        padding: .9rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
      
    .navBtn img {
        opacity: 0.8;
        transition: opacity 0.2s ease;
        width: 80%;
    }
      
    .navBtn img:hover {
        opacity: 1;
    }
      
    .navBtn.left {
        left: -1.4rem;
    }
      
    .navBtn.right {
        right: -1.4rem;
    }
    h1.title{
        font-size: 2.6rem;
    }

    .text p{
        /* border: 1px solid; */
        font-size: 16px;
        width: 110%;
        line-height: 1.5rem;
        color: var(--Dark-grayish-blue);
    }

    
}


@media (max-width: 899px){
    .sneakerSliderTwo{
        width: 0px;
        height: 0px;
        div{
            display: none;
        }
        img{
            display: none;
        }
    }
}
.sneakerSliderTwo{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* border: 1px solid; */                    
    .wrapper{
        width: 10%;
    }
    .main{
        z-index: 100 !important;
    }
    .close{
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        width: 64%;
        padding-bottom: 1rem;
        z-index: 100 !important;
        /* border: 1px solid; */
    }
}
/* For mobile version */
@media (max-width: 899px) {
    .desktopNav {
      display: none;
    }
  
    .mobileNav {
      display: flex;
    }
  
    .sneakerSlider .thumbnails {
      display: flex;
      justify-content: center;
    }
  
    .main.product1 {
      background-size: cover;
      /* height: 300px; Adjust size as needed */
      width: 100%;
    }
  
    /* Hide the wrapper class in mobile view */
    .sneakerSlider .thumbnails .wrapper {
      display: none;
    }
    #prevBtnMobile, #nextBtnMobile {
        display: block; /* Make the buttons visible */
        position: absolute; /* Ensure they overlay on the image */
        top: 25%;
        transform: translateY(-50%); /* Adjust for exact centering */
        background: white; /* Add semi-transparent background */
        padding: 10px;
        padding: .9rem;
        border-radius: 100%;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }
    
    #prevBtnMobile {
        left: 10px; /* Position left button */
    }
    
    #nextBtnMobile {
        right: 10px; /* Position right button */
    }
  }
  
 @media (min-width: 800px){
    .main{
        height: 50rem;
        /* border: 1px solid; */
    }
    #prevBtnMobile, #nextBtnMobile {
        top: 40%;
    } 
    
}
@media (min-width: 899px){
    .main{
        height: 27rem;
    }
    #prevBtnMobile{
        display: none;
    }
    #nextBtnMobile{
        display: none;
    }
}


.cartBadge{
    border-radius: 40%;
    padding: 3px;
    text-align: center;
    width: 1rem;
    background-color: var(--Orange);
    position: absolute;
    top: 2.3rem;
    right: 13rem;
    font-size: 10px;
    color: white;
    @media (max-width: 899px){
        right: 0;
        top: 0;
    }
}

.cart{
    position: absolute;
    top: 7rem;
    left: 69vw;
    @media (max-width: 899px){
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        z-index: 5000000;
        top: 5rem;
        .cartContent{
            text-align: center;
        }
    }
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.247);
    border-radius: .5rem;
    padding: 1.5rem;
    padding-top: 0;
    background-color: white;
    hr{
        width: 115%;
        margin-left: -1.5rem;
        color: #ccc;
    }
}

.cartDesc{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* border: 1px solid; */
    /* gap: 1rem; */
    margin-top: 1.3rem;
    .cartImg{
        width: 3rem;
        border-radius: .3rem;
    }
    font-size: 16px;
    .text{
        /* border: 1px solid; */
        padding-top: 0;
        width: 100%;
    }
    .trash{
        align-self: center;
    }

}




.checkout{
    background-color: var(--Orange);
    padding: 1rem;
    font-weight: 800;
    text-align: center;
    border-radius: .7rem;
    margin-top: 2rem;
}

.cartEmpty{
    padding: 4rem;
    padding-left: 6rem;
}

.checkout{
    cursor: pointer;
}