.tg-products {
    padding: clamp(2.5rem, 6vw, 5.5rem) 0;
    min-height: calc(
        100dvh
        - var(--site-header-height, var(--header-desktop-height, 64px))
        - var(--site-footer-height, 0px)
    );
}

.center-title-breadcrumb {
    position: relative;
    text-align: center;
    margin-bottom: 0;
}

.tg-products .center-title-breadcrumb .catalog-category-grid__intro {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.tg-category-back-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #1a5f7a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tg-category-back-link:hover,
.tg-category-back-link:focus {
    color: #0f3f52;
}

.center-title-breadcrumb .breadcrumb {
    justify-content: center;
    display: none;
}

@media screen and (max-width: 768px) {
    .tg-category-back-link {
        margin-top: 1rem;
    }
}

.tg-products .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    row-gap: 6rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    justify-items: center;
}

.tg-products .catalog-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    /* max-height: 234px; */
    min-height: 234px;
}

.tg-products .catalog-item a {
    display: flex;
    width: 100%;
    max-width: 100%;
    /* aspect-ratio: 1 / 1; */
    background-color: #fff;
    border-radius: 4px;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
    box-sizing: border-box;
    /* overflow: hidden; */
}

.tg-products .catalog-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 244px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    mix-blend-mode: darken;
    will-change: filter, transform;
    transition: filter 0.6s ease-in-out, transform 0.5s ease-in-out;
}

.tg-products .catalog-item:hover img {
    filter: brightness(1.02) contrast(1.03) saturate(1.2);
    transform: scale(1.05);
}

.tg-products .catalog-item .caption {
    text-transform: uppercase;
    margin-top: 1rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.tg-products .catalog-item .product-price {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    color: var(--color-black, #000);
    display: none;
}

.tg-products .catalog-item .product-price .price-unit {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-gray, #666);
}

@media screen and (max-width: 991px) {
    .tg-products .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px){
    .tg-products .row {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .tg-products .catalog-item {
        width: min(100%, 420px);
    }
}

/* Search pagination */
.search-pagination {
    margin-top: 3rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
}