/* Additional styles for productos.html */
.invisible {
    visibility: hidden;
}

/* Ensure products always display 3 per row on desktop */
@media (min-width: 769px) {
    .products-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-bottom: 40px;
    }
}

/* Row layout for remaining products */
.products-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
    justify-content: space-between;
}

.products-row .product-card {
    flex: 1;
    min-width: 200px;
    max-width: calc(25% - 20px);
}

/* Product card image background styling */
.product-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.product-card .product-icon,
.product-card h4, 
.product-card h5,
.product-card p {
    position: relative;
    z-index: 2;
}

/* Enhance text readability on image backgrounds */
.product-card h4, 
.product-card h5,
.product-card p {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Enhanced product card with background image styling */
.product-card[id="bronce"] .product-icon,
.product-card[id="bronce"] h4, 
.product-card[id="bronce"] p {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .invisible {
        display: none;
    }
    
    .products-row {
        flex-direction: column;
    }
    
    .products-row .product-card {
        max-width: 100%;
    }
}