:root {
    --primary: rgb(159, 87, 0);
    --bg: rgb(0, 0, 0);
    --gren: rgb(0, 115, 0);
}
@font-face {
    font-family: rascon;
    src: url(../fonts/Rascon.woff);
}
@font-face {
    font-family: breakwater;
    src: url(../fonts/Breakwater.woff);
}
@font-face {
    font-family: aileronsb;
    src: url(../fonts/Aileron-SemiBold.woff);
}
@font-face {
    font-family: aileronbold ;
    src: url(../fonts/Aileron-Regular.woff);
}
@font-face {
    font-family: aileron;
    src: url(../fonts/Aileron-Regular.woff);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}
html{
    transition: 1s linear;

    scroll-behavior: smooth;
}
body{
    transition: 1s linear;

    font-family: breakwater;
    color: white;
    background-color: var(--bg);
}

/* cpu */
.products h2{
    text-align: center;
    font-size: 4rem;
    margin-top: 2rem ;
    font-weight: 900;
}
.products h2 span{
    color: var(--primary);
}
.products .exit{
    padding: .8rem 1rem .7rem 1rem ;
    border-radius: 50%;
    color: var(--primary);
    position: absolute;
    top: 2.4rem;
    left: 2.5rem;
    transition: 500ms;
}
.products .exit:hover{
    transform: rotate(360deg);
    transition: 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: rgb(242, 242, 242);
}
.products .row{
    transition: 1s linear;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
    margin: 2rem ;
    margin-top: 4rem;
}
.products .row .product-card{
    box-shadow: 0 5px 10px rgba(159, 88, 0, 0.22);
    border-radius: 30px;
    position: relative;
    text-align: center;
    border: 1px solid #666;
    padding: 1rem;
    padding-bottom: .5rem;
    /* padding-bottom: 7.5rem; */
}
.products .row .product-card:hover{
    background-color: rgba(42, 42, 42, 0.423);
    transform: scale(1.03);
}
.products .row .product-card .product-icons{
    z-index: 99;
    display: flex;
    position: absolute;
    justify-content: space-between;
    width: 100%;
    left: 0;
    top: 0;
    padding: 1rem;
}
.products .row .product-card .product-icons a{
    
    width: 3rem;
    height: 3rem;
    color: #fff;
    border: 1px solid #666;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color .5s ;
}
.products .row .product-card .product-icons a:hover{
    background-color: var(--primary);
    border: 1px solid var(--primary);
    transform: rotate(360deg);
    transition: 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.products .row .product-card .product-image{
    padding: .1rem 0;
}
.products .row .product-card .product-image img{
    filter: drop-shadow(3px 3px 10px rgba(255, 0, 0, 0.254));
    height: 7rem;
    transition: .1s linear;
}
.products .row .product-card .product-image img:hover{
    /* transform: scale(1.3); */
    transform: scale(1.2);
    transition: .1s linear;
}
.product .product-content h3{
    font-size: 2rem;
}
.products .product-stars{
    font-size: 1rem;
    padding: 0.3rem;
    color: var(--primary);

}
.products .product-stars .star{
    fill: var(--primary);
}
.products .product-spec{
    margin-top: 1rem;
    margin-bottom: .5rem;
    /* position: absolute; */
    width: 100%;
    left: 0;
    right: 0;
    padding: .1rem 0 .5rem;
    /* background-color: aliceblue; */

}
.products .product-spec ul{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    justify-content: space-evenly
    ;
    font-family: aileron;

}
.products .product-spec ul li{
    margin-bottom: .5rem;
    list-style: none;
    border: 1px solid #666;
    padding: .3rem .6rem .1rem;
    font-size: 1.1rem;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.294);
    transition: .7s linear;
    cursor: pointer;
}
.products .product-spec ul li:hover{
    background-color: var(--primary);
    transform: translateY(-.5rem);
    transition : background-color .5s linear .2s, transform .3s ;
}
.products .product-content h3{
    font-size: 1.9rem;
    padding: 
    .5rem .5rem 0;
}
.products .product-price{
    font-size: 1.4rem;
    color: wheat;
    font-family: aileronsb;
}


/* modal box detail start*/
.modal{
    font-family: rascon;
    display: none   ;
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    top: 0;
    right: 0;
    left: 0;
    animation: 2s;
}
.modal-container{
    position: relative;
    background-color: #fff;
    color: var(--bg);
    margin: 15% auto;
    padding: 1.2rem;
    border: 1px solid #666;
    width: 80%;
    animation: details 2s;
    top: 0;
}

.modal-container .close-icon {
    color: black;
    position: absolute;
    right: 1rem;
}
.modal-content {
    display: flex;
    flex-wrap: nowrap;
}
.modal-content img{
    width: 20rem;
    /* margin-right: 1rem; */
    margin-bottom: 2rem;
}
.modal-content p {
    font-size: 1.2rem;
    line-height: 1.8rem;
    margin-top: 1.2rem;
}
.modal-content a {
    display: flex;
    gap: 1rem;
    width: 13rem;
    background-color: var(--primary);
    color: #fff;
    margin-top: 1rem;
    padding: 1rem 1.6rem;
    justify-items: center;
    align-items: center;
}
.modal-content a span{
    display: flex;
    justify-content: center;
    justify-items: center;
}
.product-content .product-price {
    color: var(--primary)
}
.product-content .add-to-cart {
    font-size: 1.1rem;
}
/* modal box detail end*/

/* animation detail start */
@keyframes details {
    from{
    top: -999px;
    }
    to{
    
    }
}
/* animation detail end */





/* Media Queries */

/* Laptop */
@media (max-width: 1366px) {
    html{
        font-size: 75%;
    }
}



/* Tablet */
@media (max-width: 768px) {
    html{
        font-size: 65%;
    }
    .products .row .product-card .product-icons a{
        height: 3.5rem;
        width: 3.5rem;
        padding: .7rem;
        margin: .2rem 0.2rem;

    }
    .modal-content {
        flex-wrap: wrap;
    }
}



/* Mobile */
@media (max-width: 450px) {
    html{
        font-size: 55%;
    }
    .products .row{
        grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));

        padding: 1rem;
    }
    .products .row .product-card{
        text-align: left;
        position: relative;
        padding: 1rem .4rem;
        display: flex;
        padding-bottom: 30px;
    }
    .products .row .product-card .product-icons {
        display: flex;
        justify-content: end;
    }
    .products .row .product-card .product-icons a{
        height: 3.7rem;
        width: 3.7rem;
        padding: .8rem;
        margin: .2rem 0.5rem 0 1rem;

    }
    .products .row .product-card .product-image{
        margin-bottom: 3rem;
        display: flex;
        justify-items: center;
        justify-content: center;
        width: 9rem;
        top: 0;
        left: 0;
        /* position: absolute; */
        padding: 0;
    }
    .products .product-content h3{
        font-size: 2rem;
        padding: 
        .5rem .5rem 0;
    }
    .products .product-price{
        font-size: 1.8rem;
        margin-left: .5rem;
        color: wheat;
        font-family: aileronsb;
    }
    .products .product-spec{
        bottom: 0;
        margin-top: 10px;
        margin-bottom: .8rem;
        position: absolute;
        width: 100%;
        left: 0;
        /* background-color: aliceblue; */
        /* display: flex; */
        padding: .1rem .3rem .1rem;

    }
    .products .product-spec ul{
        gap: 0;
        display: flex;
        font-weight: 400;
        color: rgb(215, 215, 215);
        width: 100%;
        justify-content: space-evenly;
        /* border: 1px solid white; */
    }
    .products .product-spec ul li{
        border-radius: 20px;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.294);
        font-size: 1.5rem;
        border: 1px solid #666;
        text-decoration: none;
        padding: .3rem 1rem;

    }
}

/* Extra small */
@media (max-width: 396px) {
    .products .product-spec ul{

    }
    .products .row .product-card{
        padding-bottom: 6rem;
    }


}