/* PLR Products — catalog grid + email gate modal */

.plrp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.plrp-card {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.plrp-thumb img { width: 100%; height: auto; border-radius: 4px; }
.plrp-title { margin: 0; font-size: 1.05em; line-height: 1.35; }
.plrp-title a { text-decoration: none; color: inherit; }
.plrp-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82em; color: #666; }
.plrp-badge { background: #eef3ff; color: #2a4bd7; padding: 2px 8px; border-radius: 20px; }
.plrp-size { padding: 2px 0; }

.plrp-dl-btn {
    margin-top: auto;
    background: #2a4bd7;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 9px 14px;
    font-size: .95em;
    cursor: pointer;
}
.plrp-dl-btn:hover { background: #1f3bb0; }

.plrp-pagination { margin: 20px 0; text-align: center; }
.plrp-pagination .page-numbers { padding: 6px 12px; }

/* modal */
.plrp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}
.plrp-modal[hidden] { display: none; }
.plrp-modal-box {
    background: #fff;
    border-radius: 10px;
    padding: 26px;
    width: min(420px, 92vw);
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.plrp-modal-close {
    position: absolute;
    top: 8px; right: 12px;
    background: none; border: 0;
    font-size: 26px; cursor: pointer;
    color: #888; line-height: 1;
}
.plrp-modal-box h3 { margin-top: 0; }
.plrp-modal-product { color: #555; font-size: .9em; margin: 0 0 14px; }
#plrp-form label { display: block; font-weight: 600; margin-bottom: 4px; }
#plrp-email {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.plrp-submit {
    width: 100%;
    background: #2a4bd7;
    color: #fff;
    border: 0; border-radius: 6px;
    padding: 11px;
    font-size: 1em;
    cursor: pointer;
}
.plrp-submit:disabled { opacity: .6; cursor: wait; }
.plrp-msg { margin: 12px 0 0; font-size: .92em; }
.plrp-msg.plrp-ok { color: #14803c; }
.plrp-msg.plrp-err { color: #c62828; }
