/**
 * Shop landing (template-parts/shop/landing.php) – plain /pood/ only.
 *
 * Loaded after css/shop-archive.css, which supplies the page shell,
 * breadcrumb, title and trust strip. Section tiles share the light card
 * ground of the product cards; the popular row reuses the product grid.
 *
 * @package KauplusRattapood
 */

/* Section tiles */
.kr-landing-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.kr-landing-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--kr-card-ground);
    border-radius: 12px;
    color: var(--color-black);
    text-decoration: none;
    transition: background 0.2s ease;
}

.kr-landing-tile:hover {
    background: #ececea;
}

.kr-landing-tile__img {
    display: block;
    aspect-ratio: 16 / 10;
    padding: 22px 30px 6px;
    overflow: hidden; /* keeps tall photos from stretching the 16:10 box */
}

.kr-landing-tile__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.35s ease;
}

.kr-landing-tile:hover .kr-landing-tile__img img {
    transform: scale(1.03);
}

.kr-landing-tile__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 20px 18px;
}

.kr-landing-tile__title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.kr-landing-tile__title b {
    font-size: 17px;
    font-weight: var(--font-weight-semibold);
}

.kr-landing-tile__title span,
.kr-landing-tile__subs {
    font-size: 13px;
    color: var(--color-gray-500);
    font-variant-numeric: tabular-nums;
}

/* Popular row */
.kr-landing-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 48px 0 16px;
}

.kr-landing-row-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-black);
}

.kr-landing-row-head a {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-black);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    white-space: nowrap;
}

.shop-archive-container .kr-landing-popular ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 968px) {
    .kr-landing-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 20px;
    }

    .kr-landing-tile__body {
        padding: 4px 12px 12px;
    }

    .kr-landing-tile__title {
        flex-direction: column;
        gap: 0;
    }

    .kr-landing-tile__title b {
        font-size: 15px;
    }

    .kr-landing-tile__subs {
        display: none;
    }

    .kr-landing-row-head {
        margin-top: 36px;
    }

    .shop-archive-container .kr-landing-popular ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
