
/* Tiles grid */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tile-gap);
    justify-content: center;
    width: 100%;

}

.tile {
    overflow: hidden;
    isolation: isolate;
    width: 30vw;
    max-width: 250px;
    min-width: 160px;
    border-radius: var(--radius);
    background: var(--header-bg);
    color: var(--header-text);
    box-shadow: var(--shadow);
}

.tile h2 {
    margin: 0 0 8px;
    font-size: clamp(12px, 2vw, 20px)
}

.tile p {
    margin: 0;
    color: var(--text);
    font-size: clamp(8px, 1vw, 12px)
}

.tile .thumb {
    width: 30vw;
    max-width: 250px;
    min-width: 200px;
    max-height: 200px;
    flex: 0 0 auto;
    background-size: cover;
}

.tile .thumb img {
    width: 30vw;
    height: 20vh;
    max-width: 250px;
    min-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.product-info {
    padding: var(--tile-pad);
    background: var(--header-bg);
    color: var(--header-text);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 350px) {
    .tile {
        width: 100%;
        max-width: 250px!important;
    }
    .tile .thumb {
        width: 100%!important;
        max-width: 250px!important;
        max-height: 100px!important;
    }
    .tile .thumb img {
        width: 100%!important;
        max-width: 250px!important;
        max-height: 100px!important;
    }
}
