
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: white;
}

.container {
    /* width: 100%; */
    margin: 0 auto;
    max-width: 1160px;
}

.main-title {
    margin: 10px;
    /*font-family: Tahoma, Geneva, sans-serif;*/
    font-family: "Poppins", sans-serif;
    font-size: 70px;
    letter-spacing: 0px;
    word-spacing: 2px;
    color: black;
    font-weight: 700;
    text-decoration: none solid rgb(68, 68, 68);
    font-style: normal;
    
    
    /*text-shadow: 0 0 10px #f0aeae;*/
}

.topic {
    font-size: 40px;
    border-style: solid;
    
    border-radius: 10px;
    background-color: rgb(41, 41, 41);
    color: white;
    padding: 10px;
}

button
{
    width: 150px;
    height: 35px;
    background-color: white;
    cursor: pointer;
    color: black;
    border: solid 1px;
    border-color: black;
    border-radius: 18px;
    margin: 2px;
    transition: background-color 300ms ease;
}

button:hover{
    background-color: black;
    cursor: pointer;
    color: white;
    border: solid 1px;
    border-color: black;
}

table {
    margin-top: 30px;
    margin-bottom: 30px;
    /**border-style: solid;
    border-color: white;**/
    width: 100%;
    float: center;
    margin-left: auto;  
    margin-right: auto; 
    text-align: center;
}



section {
    display: block;
    padding: 20px 60px;
    
}

.btn__small {
    padding: 5px 10px;
    border-radius: 10px;
    border: 0px;
    background: #999999e5;
    color: #fff;
    margin: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 300ms ease;
    
}

.btn__small:hover {

    background: #5f5f5fe5;
    color: #fff;
    cursor: pointer;
}


.btn {
    /*padding: 10px 15px;*/
    border-radius: 10px;
    border: 0px;
    background: #8d8d8de5;
    color: #fff;
    margin-left: 20px;
    font-size: 18px;
    cursor: pointer;
}

.btn_remove {
    background: #ec4949;
    transition: background-color 300ms ease;
}
.btn_remove:hover {
    background: #ff3333;
}

h4 {
    display: inline;
}

nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 83px;
    background: #333333e5;
    box-shadow: 0 2px 10px -2px gray;
    color: #fff;
}

nav > * {
    margin: 20px;
}

.cart__counter {
    /*display: flex;
    flex-direction: row;*/
    justify-content: center;
    align-items: center;
    /*width: 60px;
    height: 60px;*/
    border-radius: 50%;
    position: relative;
    top: 0%;
    left: 0%;
    float: right;
}

.cart__counter span {
    color: black;
    position: relative;
    /* top: 30%;
    left: 30%; */
    /*font-size: 20px;*/
    margin: 8px;
}

.fas .fa-cart-plus {
    color: #fff;
    /*font-size: 25px !important;*/
}
.fa-shopping-cart:hover {
    color: black;
    /*font-size: 25px !important;*/
}


.cart__items {
    animation: show__cart 1s ease-in-out;
    position: absolute;
    /*
    for desktop sites
     right: 21%;
    top: 11%; */
    /* for laptops */
    right: 10%;
    top: 18%;
    padding: 20px;
    display: none;
    background: rgb(255, 255, 255);
    border-radius: 10px;
    z-index: 2;
    width: 700px;
    box-shadow: 2px 2px 10px rgba(151, 146, 146, 0.924);
    border-bottom: 1px solid #999999e5;

}

.cart__items:before {
    /*content: '';*/
    position: absolute;
    top: -3%;
    right: 3%;
    width: 30px;
    height: 50px;
    background: rgb(255, 255, 255);
    transform: rotate(45deg);
    box-shadow: 2px 0px 10px -2px rgb(255, 255, 255);
    /* color: #fff; */
}

.cart__items.active {

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    
}


.cart_item {

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 700px;
    border-bottom: 1px dashed #999999e5;
}

.cart_item >* {
    margin: 20px;
}

.cart_item img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

.total__cost {
    /* padding: 20px; */
    position: relative;
    top: 80%;
    left: 3%;
}
.total_width {
    width: 170px;
    text-align: right;
}

.check_out {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px;

}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1rem;

}

.products .product__element {
    padding: 20px;
    background: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.05));
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;

}

.products .product__element:hover{
    transform: scale(1.05);
    transition: 0.3s ease;
    cursor: pointer;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);

}

.products .product__element img {
    position:relative;
    /* top: 10%; */
    align-self: center;
    border-radius: auto;
    text-align: center;
    margin: 0px;
    border-radius: 10px;
}

.products .product__element .product__name {
    font-size: 20px;
    font-weight: 700;
    margin: 0px;


    /* margin-left: 10px; */
}

.cart__items.active .product__name{
    width: 170px;

}

.products .product__element .product__price {
    font-size: var(--smaller-font-size);
    /*font-size: 20px;*/
    margin: 13px;
    color: #e91e63;
}

.product__user {
    font-weight: 400;
    font-size: 12px;
    color: rgb(138, 138, 138);
    
}

.btn__add__to__cart {
    position: relative;
    /* top: 10%; */
    bottom: 0;
    background: black;
    color: #fff;
    /* margin: 0 auto; */
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    /*font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;*/
    font-family: "Poppins", sans-serif;
    transition: .3s;

}


.btn__add__to__cart:hover {
    background: white;
    color: black;
}

@keyframes show__cart {

    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }

}

@media only screen and (max-width : 480px) {
    .products {
        grid-template-columns: 1fr;

    }

    .product__element {
        margin: 20px auto;
    }

    .cart__items {
        width: 340px;
        right: 3%;
        top: 10%;
        justify-content:center;
        align-items:center;
        font-size: smaller;

    }

    .cart__items.active .product__name{
        width: 100px;
    
    }

    .cart_item {
        width: 340px;
        /* padding: 10px; */
    }

    .cart_item > * {
        margin: 5px;
        padding: 5px;
    }

    .check_out {
        font-size: 12px;
    }

    .total_width{
        width:115px;
    }
 
}

@media only screen and (min-width : 481px) {
    .products {
        grid-template-columns: 1fr 1fr;

    }

    .product__element {
        margin: 20px auto;
    }

}

@media only screen and (min-width : 800px) {
    .products {
        grid-template-columns: repeat(3, 1fr);

    }

    .cart__items {
        right:3%;
        top: 150%;
        /*top: 10%;*/
    }

    .product__element {
        margin: 20px auto;
    }
}


#myBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    /* background-color: rgb(192, 192, 192); /* Set a background color */
    /*color: rgb(100, 100, 100); /* Text color */ 
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 10px; /* Some padding */
    margin: 10px;
    width: auto;
    border-radius: 30px; /* Rounded corners */
    font-size: 35px; /* Increase font size */
    transition: 0.3s ease;
  }
  
  #myBtn:hover {
    color: #e91e63; /* Add a dark-grey background on hover */
  }

  html {
    scroll-behavior: smooth;
  }

  #cartbtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    background-color: black; /* Set a background color */
    color: white; /* Text color */ 
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 10px; /* Some padding */
    margin: 10px;
    width: auto;
    height: auto;
    border-radius: 30px; /* Rounded corners */
    font-size: 17px; /* Increase font size */
    transition: 0.3s ease;
    border-style: none;
  }

  #cartbtn .fa-shopping-cart:hover {
      color: white;
  }

  #cartbtn:hover {
    background-color: #e91e63; /* Add a dark-grey background on hover */
  }

  #cartbtn .cart__counter{
    /*display: flex;
    flex-direction: row;*/
    justify-content: center;
    align-items: center;
    /*width: 60px;
    height: 60px;*/
    border-radius: 50%;
    position: relative;
    top: 0%;
    left: 0%;
    float: right;
    
}

  #cartbtn .cart__counter span {
    color: white;
    position: relative;
    margin-right: 2px;
    /* top: 30%;
    left: 30%; */
    /*font-size: 20px;*/
    
}