body.ts-v2-page.ts-v2-legacy-page .ts-v2-storefront-shell {
    min-height: 100vh;
}

body.ts-v2-page.ts-v2-legacy-page .ts-v2-legacy-main {
    min-height: 42vh;
}

body.ts-v2-page.ts-v2-legacy-page .ts-v2-footer {
    margin-top: clamp(28px, 4vw, 56px);
}

body.ts-v2-page.ts-v2-legacy-page .ts-v2-footer :is(a[href^="mailto:"], a[href^="tel:"]) {
    pointer-events: auto;
}

body.ts-v2-page .ts-v2-shared-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 10px;
}

body.ts-v2-page .ts-v2-shared-product-grid .ts-v2-product-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 100%;
    flex: none;
}

body.ts-v2-page .ts-v2-shared-product-pagination {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 20px;
}

body.ts-v2-page .ts-v2-shared-product-pagination nav {
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    body.ts-v2-page .ts-v2-shared-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 640px) {
    body.ts-v2-page.ts-v2-legacy-page .ts-v2-legacy-main {
        min-height: 34vh;
    }

    body.ts-v2-page .ts-v2-shared-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
