* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #fd3008;
    --secondary-color: #00a896;
    --neutral-light-color: #f8f9fa;
    --neutral-dark-color: #2d2d2d;
    --accent-color: #ffd166;
}

.products-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
    padding: 1em;
    width: 100%;
}

.product-card {
    width: 23%;
    margin-bottom: 1em;
    border-radius: 8px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    position: relative;
}

.product-card:hover {
    border: 1px solid var(--secondary-color);
}

.product-card-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.product-card-details {
    padding: 1em;
}

.product-card-product-name {
    margin-bottom: 1em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    line-height: 1.2em;
}

.product-card-product-name a {
    text-decoration: none;
    color: var(--neutral-dark-color);
}

.product-card-product-name a:hover {
    color: var(--secondary-color);
}

.product-card-price-cart {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1em;
    font-weight: 600;
}

.product-card-price {
    font-weight: 600;
}

.product-card-price .sale-price {
    color: var(--secondary-color);
}

.product-card-add-to-cart button {
    padding: .5em 1em;
    background-color: var(--primary-color);
    color: var(--neutral-light-color);
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
}

.product-card-add-to-cart button:hover {
    background-color: var(--secondary-color);
    scale: 1.1;
    transition: 0.3s ease-in-out;
}

.product-card-sale-badge {
    background-color: black;
    color: var(--neutral-light-color);
    font-size: .9rem;
    width: fit-content;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .2em;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 50%;
}

@media (max-width: 800px) {

.product-card {
    width: 30%;
}
}

@media (max-width: 560px) {
.product-card {
    width: 45%;
}
}

@media (max-width: 330px) {
.product-card {
    width: 100%;
}
}