/* Front page product catalogue. */

.home-catalogue {
    padding: 24px 20px 56px;
    background: #ffffff;
}

.home-catalogue__inner {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
}

.home-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 18px;
}

.home-product-card {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgb(15 23 42 / 7%);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-product-card:hover {
    box-shadow: 0 10px 24px rgb(15 23 42 / 12%);
    transform: translateY(-2px);
}

.home-product-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: #1f2937;
    text-decoration: none;
}

.home-product-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f5f7;
}

.home-product-card__image,
.home-product-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.home-product-card__image {
    object-fit: cover;
    transition: transform 0.25s ease;
}

.home-product-card:hover .home-product-card__image {
    transform: scale(1.025);
}

.home-product-card__placeholder {
    background: #f4f5f7;
}

.home-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 12px 15px;
    text-align: center;
}

.home-product-card__title {
    margin: 0;
    color: #252a32;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.home-product-card__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 10px;
}

.home-product-card__old-price {
    color: #8b919b;
    font-size: 13px;
    text-decoration: line-through;
}

.home-product-card__new-price {
    color: #ff3138;
    font-size: 15px;
    font-weight: 800;
}

.home-catalogue__empty {
    margin: 0;
    padding: 56px 20px;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 800px) {
    .home-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-catalogue {
        padding: 16px 14px 40px;
    }

    .home-products {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .home-product-card__title {
        font-size: 16px;
    }
}
