.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%,1fr));
    gap: 20px;
    justify-content: center;
    justify-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.product-card {
    border: 1px solid #ccc;
    text-align: center;
    max-width: 300px; /* Added a max-width to maintain individual card size */
    width: 100%;
    padding: 5px;
}

.product-card a {
    text-decoration: none;
    color: #333;
}

.product-card h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1em;
}

.product-shipping {
    display: block;
    font-size: 14px;
    color: #888;
}

.product-info-wrapper {
    display: flex;
    flex-direction: column;
}

.product-shipping-info {
    display: flex;
    flex-direction: column;
}

.product-price {
    display: block;
    font-weight: bold;
    margin: 8px 0;
}

.product-description {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}

.product-button {
    display: block;
    margin: 16px auto;
    cursor: pointer;
    transition: background-color 0.3s ease;

    background-color: #cf2e2e;
    color: #fff;
    border-radius: 9999px;
    box-shadow: none;
    text-decoration: none;
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    font-size: 1.125em;
}

.product-button:hover {
    background-color: #486e26;
}

.product-button:disabled {
    background-color: #ccc;
    color: #333;
}

.product-image-wrapper {
    aspect-ratio: 4/3;
    width: 100%;
}

.product-image {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

#product-button-anchor {
    text-decoration: none;
    color: #fff;
}

.product-discount-wrapper {
    display: flex;
    gap: 8px;
    align-self: center;
}

.product-price-discount {
    display: block;
    font-weight: bold;
    margin: 8px 0;
    color: rgb(131 104 89);
    text-decoration: line-through;
}

.product-price-sale {
    display: block;
    font-weight: bold;
    margin: 8px 0;
}

.product-title-section {
    display: block;
}

.product-card-inner-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-button-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: end;
}

/* Responsive styles for mobile devices */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
