* {

    font-family: 'Lato-Light',
        Helvetica,
        Arial,
        sans-serif;
}

#conatiner {
    display: flex;
    justify-content: space-between;
    position: relative;

}

#refine {
    width: 20%;
    border: 0px solid blue;
    padding: 20px;
}

#brief_intro {
    width: 100%;

}

#product {
    width: 75%;
    border: 0px solid green;
    margin: 20px;

}

#product_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product_img {
    overflow: hidden;
    position: relative;
    transition: opacity 0.4s ease-out;
}

.product_img {
    cursor: pointer;

}

.product_img img {
    width: 100%;
}

.product_img .Image2 {
    left: 0;
    top: 0;
    opacity: 0;
    position: absolute;
    z-index: -1;

}

.product_details {
    box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 48px;
    padding: 10px;

}

.product_details:hover .Image2 {
    width: 100%;
    opacity: 1;
    z-index: 0;
}

.Buy_btn {
    padding: 13px;
    color: #cae9d1;
    background-color: #333333;
    width: 100%;
    border: none;
}

.Buy_btn:hover {
    background-color: #9cece0;
    color: black;
}

#categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 15px;
}

#categories p {
    border: 1px solid black;
    padding: 10px;
    width: 90%;
    margin-bottom: 3px;

}

#categories :hover {
    background-color: #b7e7e0;
}

#myBtn {
    background-color: white;
    border: none;
    text-decoration: underline;
    text-align: left;
    padding: 5px;
}

#select {
    padding: 10px;
    padding-right: 10%;
}

#sortBy {
    margin-bottom: 10px;
    margin-top: 5px;
}

.Gift_option {
    border: 1px solid #ba3d49;
    width: 38%;
    padding: 8px;
}

/* gift popup */
.bg-modal {
    width: 100%;
    height: 100%;
    background-color: rgba(204, 204, 204, 0.7);
    display: flex;
    position: absolute;
    top: 0;
    justify-content: center;
    align-items: center;
    display: none;
}

.modal-content {
    width: 400px;
    height: 180px;
    background-color: white;
    border-radius: 4px;
    text-align: center;
    padding: 20px;
    position: relative;
}

.modal-content h3 {
    font-family: 'Lato-Light', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    margin-top: 10%;
    color: #2e3337;
}

.modal-content p {
    font-family: 'Lato-Light', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: #2e3337;
}

#shop-now {
    padding: 13px;
    color: #cae9d1;
    background-color: #333333;
    width: 100%;
    border: none;
}

#shop-now:hover {
    background-color: #9cece0;
    color: black;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 0;
    right: 14px;
    font-size: 50px;
    transform: rotate(45deg);
    cursor: pointer;

}

.close:hover {
    font-size: 55px;
}

.NmaeDiv {
    border: 0px solid blue;
    height: 40px;
    margin-top: 10px;

}

.NmaeDiv p {
    margin-top: 0;
    margin-bottom: 0;
}

.clearbtn {
    background-color: #2e3337;
    color: white;
    padding: 3px;
    margin-bottom: 10px;
    margin-top: 10px;
}

input.ABC {
    width: 20px;
    height: 20px;
    accent-color: rgba(0, 0, 0, 0.055);

}

input[data-checkbox]:checked:after {
    display: none;
}

.RatingA {
    margin-top: 7px;
    margin-bottom: 7px;
}

.Price {
    margin-bottom: 10px;
}

#total_items {
    font-size: 18px;
    font-weight: 700;
}

@media only screen and (max-width: 1100px) {
    .NmaeDiv p {
        font-size: 14px;
    }

    .Gift_option {
        width: 100%;
        font-size: 14px;
        padding: 3px;
        margin-top: 10px;
    }

    #categories {
        text-align: justify;
        text-justify: inter-word;
    }

    #categories p {
        font-size: 14px;
        padding: 3px;

    }
}

@media only screen and (max-width: 750px) {
    #heading {
        font-size: 24px;
        padding: 3px;
    }

    #product_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product_img {
        width: 80%;
        margin: auto;
    }

    #categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 13px;
    }

    .NmaeDiv p {
        font-size: 14px;
    }

    .Gift_option {
        font-size: 14px;
        padding: 3px;
        margin-top: 10px;
        width: 100%;
    }

    #categories p {
        font-size: 17px;
        padding: 12px;
    }

    #select {
        width: 70%;
        font-size: 16px;
        border: black;
    }

    #select:optional {
        font-size: 16px;
    }

    #sortBy {
        font-size: 20px;
    }
}

@media only screen and (max-width: 500px) {
    #heading {
        font-size: 20px;
        padding: 3px;
    }

    #refine {
        width: 30%;
        font-size: 20px;
    }

    #product {
        width: 60%;
    }

    #product_grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .product_img {
        width: 80%;
        margin: auto;
    }

    #product_details {
        text-align: center;
    }

    #categories {
        grid-template-columns: repeat(1, 1fr);
        gap: 13px;
    }

    .NmaeDiv {
        height: 100px;
    }

    .NmaeDiv p {
        font-size: 22px;

    }

    .RatingA {
        font-size: 24px;
    }

    .Gift_option {
        font-size: 22px;
        padding: 3px;
        margin-top: 10px;
        width: 100%;
    }

    #categories p {
        font-size: 20px;
        padding: 12px;
    }

    #select {
        width: 70%;
        font-size: 16px;
        border: black;
    }

    #select:optional {
        font-size: 16px;
    }

    #sortBy {
        font-size: 20px;
    }

    #starting {
        font-size: 20px;
    }
}