/* ==========================================================================
   Related Products Video Grid
   ========================================================================== */

.pmc-rp-grid {
    --pmc-rp-gap: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--pmc-rp-gap);
    width: 100%;
}

.pmc-rp-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pmc-rp-media {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: transparent !important;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .pmc-rp-media {
        height: 200px;
    }
}

.pmc-rp-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pmc-rp-grid img {
    box-shadow: none;
    width: 100%;
}

.pmc-rp-info {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
    gap: 12px;
    margin-top: 16px;
}

.pmc-rp-text {
    min-width: 0;
}

.pmc-rp-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.pmc-rp-subtitle {
    font-size: 14px;
    color: #9a9a9a;
    margin-top: 2px;
}

.pmc-rp-price {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    border: 1px solid #dadada;
    border-radius: 4px;
    padding: 4px 10px;
    white-space: nowrap;
    text-align: right;
}

.pmc-rp-price del {
    opacity: 0.5;
    font-weight: 400;
    margin-right: 4px;
}

.pmc-rp-price ins {
    text-decoration: none;
}

.pmc-rp-price .woocommerce-Price-amount.amount {
    padding: 3px 5px 3px 7px;
    border: 1px solid #111111;
    border-radius: 3px;
}

.pmc-rp-price .price {
    display: flex;
    gap: 6px;
    justify-content: right;
    align-items: end;
}

.pmc-rp-price .price > del {
    order: 1;
}

/* ==========================================================================
   Responsive fallback (por si algún tema no respeta las variables
   responsivas de Elementor en versiones muy viejas).
   ========================================================================== */
@media (max-width: 1024px) {
    .pmc-rp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pmc-rp-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
