@charset "UTF-8";
.main-container {
    width: 100%;
    max-width: 12000px;
    margin: 0 auto;
    padding: 20px;
}
.main-container h1 {
    font-size: 3em;
    text-align: center;
    margin-top: 20px;
}
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-card {
    width: 23%;
    margin: 1%;
    background-color: #101010;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 15px;

}

.product-card--unavailable {
    opacity: 0.5;
}

.product-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-card__availability {
    font-size: 14px;
    color: #101010;
    background-color: #28a745;
    padding: 5px 10px;
    border-radius: 3px;
}

.product-card__availability--red {
    background-color: #dc3545;
}

.product-card__image-link {
    display: block;
    margin-bottom: 10px;
}

.product-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card__title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-card__code {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card__price-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card__price {
    font-size: 16px;
    font-weight: bold;
}

.product-card__quick-add-button,
.product-card__add-to-cart-button {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.product-card__quick-add-button {
    background-color: #28a745;
    color: #fff;
}

.product-card__add-to-cart-button {
    background-color: #ddd;
    color: #000;
}

.product-card__cart-icon {
    width: 20px;
    height: 20px;
    background-image: url('cart-icon.png');
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.product-card__title:hover {
    text-decoration: underline;
}

.product-card__price-group .product-card__price {
    margin-right: 10px;
}
@media (max-width: 768px) {
    .product-grid {
        flex-direction: column;
    }

    .product-card {
        width: 100%;
        margin: 10px 0;
    }

    .product-card__image {
        height: 150px; 
    }
}
