/* Mosaic View Style */
.product-grid.view-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 15px;
}

.view-mosaic .product-card {
    grid-column: span 1;
    grid-row: span 1;
    position: relative;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-mosaic .product-card:nth-child(5n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

.view-mosaic .product-img {
    height: 100%;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.view-mosaic .product-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.view-mosaic .product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    z-index: 2;
    transition: 0.3s;
}

.view-mosaic .product-info h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.view-mosaic .product-info .product-price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: bold;
}

/* Specific adjustment for large mosaic items */
.view-mosaic .product-card:nth-child(5n+1) .product-info h3 {
    font-size: 1.2rem;
}

/* Hide tags and actions to keep mosaic clean */
.view-mosaic .spec-tags,
.view-mosaic .card-actions-row {
    display: none;
}

.view-mosaic .product-card:hover .product-img {
    filter: brightness(0.7);
}
