/* ── Grid ────────────────────────────────────────────────────────────────────── */
.mcrm-pl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 24px;
}

/* ── Lista ───────────────────────────────────────────────────────────────────── */
.mcrm-pl-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Tarjeta ─────────────────────────────────────────────────────────────────── */
.mcrm-pl-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
    position: relative;
}

.mcrm-pl-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.mcrm-pl-card--list {
    flex-direction: row;
    align-items: flex-start;
}

.mcrm-pl-card--list .mcrm-pl-image-wrap {
    flex-shrink: 0;
    width: 180px;
}

.mcrm-pl-card--list .mcrm-pl-image {
    aspect-ratio: 1/1;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

/* ── Imagen ──────────────────────────────────────────────────────────────────── */
.mcrm-pl-image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.mcrm-pl-image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.mcrm-pl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mcrm-pl-card:hover .mcrm-pl-img {
    transform: scale(1.04);
}

/* ── Badge oferta ────────────────────────────────────────────────────────────── */
.mcrm-pl-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Cuerpo ──────────────────────────────────────────────────────────────────── */
.mcrm-pl-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

/* ── Categoría ───────────────────────────────────────────────────────────────── */
.mcrm-pl-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
}

/* ── Título ──────────────────────────────────────────────────────────────────── */
.mcrm-pl-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.mcrm-pl-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.15s;
}

.mcrm-pl-title a:hover {
    color: #f59e0b;
}

/* ── Rating ──────────────────────────────────────────────────────────────────── */
.mcrm-pl-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mcrm-pl-rating .star-rating {
    font-size: 12px;
}

.mcrm-pl-rating-count {
    font-size: 11px;
    color: #9ca3af;
}

/* ── Bloque de precios ───────────────────────────────────────────────────────── */
.mcrm-pl-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

/* ── Fila de precio ──────────────────────────────────────────────────────────── */
.mcrm-pl-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 7px;
    background: #f9fafb;
    border: 1px solid transparent;
    flex-wrap: wrap;
}

.mcrm-pl-price-label {
    flex: 1;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.mcrm-pl-price-value {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.mcrm-pl-crossed {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 400;
    font-size: 13px;
}

.mcrm-pl-price-gratuito { color: #16a34a; }
.mcrm-pl-price-club     { color: #d97706; }

/* ── Fila activa ─────────────────────────────────────────────────────────────── */
.mcrm-pl-row-active { border-width: 2px; }

.mcrm-pl-row-active--pvp      { background: #f0f4ff; border-color: #6366f1; }
.mcrm-pl-row-active--gratuito { background: #f0fdf4; border-color: #22c55e; }
.mcrm-pl-row-active--club     { background: #fffbeb; border-color: #f59e0b; }

/* ── Badges ✓ ★ ──────────────────────────────────────────────────────────────── */
.mcrm-pl-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}

.mcrm-pl-badge-gratuito { background: #dcfce7; color: #16a34a; }
.mcrm-pl-badge-club     { background: #fef3c7; color: #d97706; }

/* ── Tag "Tu precio" ─────────────────────────────────────────────────────────── */
.mcrm-pl-mine-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    border-radius: 20px;
    background: #6366f1;
    color: #fff;
    line-height: 1.5;
    white-space: nowrap;
}

.mcrm-pl-mine-tag--gratuito { background: #22c55e; }
.mcrm-pl-mine-tag--club     { background: #f59e0b; }

/* ── Ahorro ──────────────────────────────────────────────────────────────────── */
.mcrm-pl-savings {
    font-size: 11px;
    text-align: right;
    margin: 0;
    padding: 0 4px;
}

.mcrm-pl-savings--gratuito { color: #16a34a; }
.mcrm-pl-savings--club     { color: #d97706; font-weight: 600; }

/* ── CTA membresía ───────────────────────────────────────────────────────────── */
.mcrm-pl-cta-link {
    font-size: 12px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
    align-self: flex-start;
}

.mcrm-pl-cta-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ── Botón carrito ───────────────────────────────────────────────────────────── */
.mcrm-pl-cart-btn {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 10px 16px;
    background: #f59e0b;
    color: #fff !important;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
    box-sizing: border-box;
    cursor: pointer;
}

.mcrm-pl-cart-btn:hover {
    background: #d97706;
    color: #fff !important;
}

/* ── Responsive (fallback — Elementor responsive controls tienen prioridad) ───── */
@media (max-width: 1024px) {
    .mcrm-pl-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .mcrm-pl-grid { grid-template-columns: 1fr; }

    .mcrm-pl-card--list { flex-direction: column; }

    .mcrm-pl-card--list .mcrm-pl-image-wrap { width: 100%; }

    .mcrm-pl-card--list .mcrm-pl-image { border-radius: 12px 12px 0 0; }
}
