/* =========================================================
   BIN LINERS & GARBAGE BAGS — ADDITIONS
   Requires universal-2026.css (blog stylesheet v1.2).
   Everything else on the page uses the universal classes.

   Adds only: product tiles + the card grid, which the
   universal stylesheet has no equivalent for.
========================================================= */

/* ---------------------------------------------------------
   CARD GRID — used by Reliable performance
   and Built on verified claims
--------------------------------------------------------- */

.tp-blg-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

.tp-blg-card {
    box-sizing: border-box;
    background: #fafcfb;
    border: 1px solid #dceee9;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
}

.tp-blg-card-icon {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tp-blg-card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 auto;
}

.tp-blg-after-grid {
    margin-top: 18px;
}

/* ---------------------------------------------------------
   PRODUCT TILES — used by Product range
--------------------------------------------------------- */

.tp-blg-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

.tp-blg-product-card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #dceee9;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.tp-blg-product-card:hover,
.tp-blg-product-card:focus-within {
    border-color: #288f7a;
    box-shadow: 0 8px 22px rgba(16, 101, 82, 0.08);
    transform: translateY(-1px);
}

.tp-blg-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1fbf8;
    overflow: hidden;
}

.tp-blg-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tp-blg-product-title {
    margin: 14px 14px 0;
    color: #0f6553;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.tp-blg-product-link {
    margin: auto 14px 16px;
    padding-top: 8px;
    color: #0f6553;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Whole tile clickable, without an <a> wrapping block
   elements — the WordPress editor splits those on save. */
.tp-blg-product-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.tp-blg-product-link:focus-visible {
    outline: 3px solid rgba(40, 143, 122, 0.3);
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   RESOURCE CARDS — Explore further
--------------------------------------------------------- */

.tp-blg-card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-blg-card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.tp-blg-card-link:hover,
.tp-blg-card-link:focus-within {
    border-color: #288f7a;
    box-shadow: 0 8px 22px rgba(16, 101, 82, 0.08);
    transform: translateY(-1px);
}

.tp-blg-more {
    margin-top: auto;
    padding-top: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tp-blg-more::after {
    content: "";
    position: absolute;
    inset: 0;
}

.tp-blg-more:focus-visible {
    outline: 3px solid rgba(40, 143, 122, 0.3);
    outline-offset: 3px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .tp-blg-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .tp-blg-card-grid,
    .tp-blg-card-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .tp-blg-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .tp-blg-card-grid,
    .tp-blg-card-grid-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tp-blg-card {
        padding: 18px 16px;
        border-radius: 14px;
    }
    .tp-blg-product-card {
        border-radius: 14px;
    }
    .tp-blg-product-title {
        margin: 12px 12px 0;
        font-size: 14px;
    }
    .tp-blg-product-link {
        margin: auto 12px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-blg-product-card {
        transition: none;
    }
    .tp-blg-product-card:hover,
    .tp-blg-product-card:focus-within {
        transform: none;
    }
}

/* =========================================================
   COLOUR OVERRIDES
   The universal stylesheet uses no !important, so the theme's
   row colour scheme wins and text renders black. These
   re-assert the universal values, scoped to .tp-wrapper.
   Nothing in universal-2026.css is modified.
========================================================= */

.tp-wrapper,
.tp-wrapper .tp-p,
.tp-wrapper .tp-p-lg,
.tp-wrapper .tp-p-nomargin,
.tp-wrapper .tp-list,
.tp-wrapper .tp-list li,
.tp-wrapper .tp-accordion-content,
.tp-wrapper .tp-accordion-content p {
    color: #343444 !important;
}

.tp-wrapper .tp-h2 {
    color: #288f7a !important;
}

.tp-wrapper .tp-h3,
.tp-wrapper .tp-accordion-title {
    color: #0f6553 !important;
}

.tp-wrapper .tp-text-link {
    color: #0f6553 !important;
}

.tp-wrapper .tp-text-link:hover {
    color: #288f7a !important;
}

.tp-wrapper .tp-btn-green {
    background: #0f6553 !important;
    color: #ffffff !important;
}

.tp-wrapper .tp-accordion-title::after {
    color: #0f6553 !important;
}

.tp-wrapper .tp-accordion-item[open] .tp-accordion-title::after {
    color: #ffffff !important;
}

.tp-wrapper .tp-blg-product-title {
    color: #0f6553 !important;
}

.tp-wrapper .tp-blg-product-link,
.tp-wrapper .tp-blg-more {
    color: #0f6553 !important;
}