/* =========================================================
   PetPrintingCo Editorial Product Card
========================================================= */

.ppc-epc {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(190px, 34%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 54px);
    width: 100%;
    margin: 42px 0;
    padding: 22px;
    border: 1px solid #ded8cf;
    border-radius: 14px;
    background: #fbfaf7;
    color: inherit;
}

.ppc-epc *,
.ppc-epc *::before,
.ppc-epc *::after {
    box-sizing: border-box;
}

.ppc-epc__media {
    min-width: 0;
}

.ppc-epc__image-link {
    display: block;
    line-height: 0;
}

.ppc-epc__image {
    display: block;
    width: 100%;
    max-width: 330px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: cover;
}

.ppc-epc__placeholder {
    display: grid;
    place-items: center;
    min-height: 260px;
    border-radius: 10px;
    background: #f0ede7;
    color: #77736d;
    font-family: inherit;
    font-size: .875em;
}

.ppc-epc__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}

.ppc-epc__eyebrow {
    margin: 0 0 11px;
    color: #685f56;
    font-family: inherit;
    font-size: .72em;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Product title is intentionally an H4 so it stays subordinate
   to the article's H2/H3 heading structure. */
.ppc-epc__title {
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: 1.35em !important;
    font-weight: inherit !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
}

/* Match the surrounding article body typography. */
.ppc-epc__description,
.ppc-epc__description p {
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: 1em !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.ppc-epc__description p:last-child {
    margin-bottom: 0 !important;
}

.ppc-epc__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
    color: #49645d !important;
    font-family: inherit !important;
    font-size: 1em !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
}

.ppc-epc__cta-text {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.ppc-epc__cta:hover,
.ppc-epc__cta:focus {
    color: #193b32 !important;
}

.ppc-epc__arrow {
    display: inline-block;
    text-decoration: none !important;
    transition: transform .18s ease;
}

.ppc-epc__cta:hover .ppc-epc__arrow {
    transform: translateX(3px);
}

@media (max-width: 781px) {
    .ppc-epc {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 32px 0;
        padding: 18px;
    }

    .ppc-epc__image {
        width: min(78%, 280px);
        max-width: 280px;
    }

    .ppc-epc__eyebrow {
        margin-bottom: 9px;
        font-size: .68em;
    }

    .ppc-epc__title {
        margin-bottom: 12px !important;
        font-size: 1.25em !important;
        line-height: 1.2 !important;
    }

    .ppc-epc__description,
    .ppc-epc__description p,
    .ppc-epc__cta {
        font-size: 1em !important;
        line-height: inherit !important;
    }

    .ppc-epc__cta {
        margin-top: 4px;
    }
}
