/* *{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-decoration: none;
    color: black;
}

html{
    font-size: 62.5%;
}

main{
    max-width: 1500px;
    width: 80%;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
}


main .card{
    height:  150px;
    border: 1px solid lightgray;
    margin: 20px;
    display: flex;
}

main .card .images{
    width: 20%;
}

main .card .images img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main .card .caption{
  line-height: 3em;
  margin-left: 30px;
  position: relative;
  width: 75%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main .card .caption p{
    font-size: 1.5rem;
}

del{
    text-decoration: line-through;
}

main .card .caption .rate{
    display: flex;
}

main .card .caption .rate i{
    color: gold;
    margin-left:  2px;
}

main .card .caption .price{
    position: absolute;
    top: 5%;
    right: 5%;
}

main .card .caption button{
    background-color: red;
    color: white;
    padding: 1em;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 2em;
    font-weight: bold;
    width: 30%;
} */



















































* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
}

main {
    max-width: 1200px;
    width: 90%;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
}

.card {
    display: flex;
    height: 150px;
    border: 1px solid lightgray;
    margin: 20px;
}

.card {
    width: 300px;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
 }

.images {
    width: 20%;
}

.images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    position: relative;
    width: 80%;
    padding: 10px;
}

.caption p {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.rate {
    display: flex;
    align-items: center;
}

.rate i {
    color: gold;
    margin-right: 5px;
}

.price {
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: bold;
}

button {
    background-color: red;
    color: white;
    padding: 10px 20px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    /* display:grid; */
}

button:hover {
    background-color: #c82333;
    width: 200px;


}
.total-price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
}