@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');
/* =========================
MAIN WRAPPER
========================= */

.rgpv2-wrapper{
display:flex;
gap:15px;
margin-top:25px;
font-family:'Open Sans', Arial, sans-serif;
align-items:flex-start;
}

/* =========================
SIDEBAR
========================= */

.rgpv2-sidebar{
width:210px;
border:1px solid #e5e5e5;
padding:12px;
border-radius:6px;
background:#fafafa;
}

.rgpv2-sidebar h4{
font-size:16px;
margin-bottom:8px;
margin-top:10px;
font-weight:600;
text-transform:capitalize;
}

.rgpv2-sidebar label{
display:block;
font-size:13px;
margin-bottom:3px;
cursor:pointer;
line-height:1.5;
}
.rgpv2-sidebar input{
margin-right:6px;
}

/* RESET BUTTON */

.rgpv2-reset{
margin-top:15px;
}

.rgpv2-reset-btn{
display:block;
background:#1e9e8c;
color:#fff;
text-align:center;
padding:8px;
border-radius:4px;
text-decoration:none;
font-size:13px;
}

.rgpv2-reset-btn:hover{
background:#178380;
}

/* =========================
GRID
========================= */
.rgpv2-grid{
flex:1;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:14px;
}

/* Tablet */
@media(max-width:1024px){
.rgpv2-grid{
grid-template-columns:repeat(2,1fr);
}
}

/* Mobile */
@media(max-width:600px){
.rgpv2-grid{
grid-template-columns:1fr;
}
}

/* =========================
CARD
========================= */

.rgpv2-card{
background:#fff;
border:1px solid #e6e6e6;
border-radius:8px;
padding:15px;
transition:all 0.25s ease;
display:flex;
flex-direction:column;
height:100%;
}

.rgpv2-card:hover{
box-shadow:0 10px 22px rgba(0,0,0,0.10);
transform:translateY(-4px);
}

/* =========================
IMAGE
========================= */

.rgpv2-image{
width:100%;
height:190px;
object-fit:cover;
border-radius:6px;
margin-bottom:6px;
}

/* =========================
META
========================= */

.rgpv2-meta{
font-size:12px;
color:#777;
margin-bottom:6px;
}

/* =========================
TITLE
========================= */

.rgpv2-title{
font-size:16px;
font-weight:600;
line-height:1.7;
margin-bottom:8px;
min-height:44px;
display:-webkit-box;
-webkit-line-clamp:3;
-webkit-box-orient:vertical;
overflow:hidden;
word-break:break-word;
text-transform:capitalize; !important;
}

/* =========================
DESCRIPTION
========================= */

.rgpv2-desc{
font-size:13px;
color:#555;
margin-bottom:10px;
line-height:1.5;
}

.rgpv2-readmore{
color:#0073aa;
cursor:pointer;
text-decoration:none;
font-weight:500;
}

.rgpv2-readmore:hover{
text-decoration:underline;
}

/* =========================
PRICE
========================= */

.rgpv2-price{
margin-bottom:12px;
margin-top:auto;
}

.rgpv2-discount{
font-weight:700;
color:#e53935;
margin-right:8px;
font-size:18px;
}

.rgpv2-regular{
color:#888;
font-size:13px;
}

/* =========================
BUTTONS
========================= */

.rgpv2-buy{
background:#1e9e8c;
color:#fff;
padding:9px 12px;
border-radius:4px;
text-decoration:none;
display:block;
text-align:center;
margin-bottom:6px;
font-size:14px;
}

.rgpv2-buy:hover{
background:#178380;
}

.rgpv2-sample{
background:#1e9e8c;
color:#fff;
padding:9px 12px;
border-radius:4px;
text-decoration:none;
display:block;
text-align:center;
font-size:14px;
}

.rgpv2-sample:hover{
background:#178330;
}

/* =========================
NO REPORT MESSAGE
========================= */

.rgpv2-no-report{
padding:40px;
text-align:center;
border:1px solid #e6e6e6;
background:#fafafa;
border-radius:8px;
grid-column:1/-1;
}

.rgpv2-no-report h3{
margin-bottom:10px;
font-size:20px;
}

/* =========================
MODAL
========================= */

.rgpv2-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    overflow: auto; /* ensure scrolling if popup is tall */
}

.rgpv2-modal-box {
    background: #fff;
    width: 650px;
    max-width: 90%;
    margin: 8% auto;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    max-height: 70vh;
    overflow-y: auto; /* scrollable content */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* subtle shadow for premium look */
    transition: all 0.3s ease-in-out; /* smooth fade/scale animation */
}

.rgpv2-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #444;
    transition: color 0.2s;
}

.rgpv2-close:hover {
    color: #000; /* subtle hover effect */
}
.rgpv2-modal-box {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.rgpv2-modal.show .rgpv2-modal-box {
    transform: scale(1);
    opacity: 1;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:900px){

.rgpv2-wrapper{
flex-direction:column;
}

.rgpv2-sidebar{
width:100%;
}

.rgpv2-grid{
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
}

}
/* =========================
POPUP CONTENT
========================= */

.rgpv2-popup-title{
font-size:16px;
font-weight:600;
margin-bottom:12px;
text-transform:capitalize !important;
}

.rgpv2-popup-desc{
font-size:14px;
line-height:1.7;
color:#444;
margin-bottom:20px;
}

.rgpv2-popup-buttons{
display:flex;
gap:10px;
flex-wrap:wrap;
}

.rgpv2-popup-buttons a{
flex:1;
text-align:center;
}
/* FORCE TITLE CAPITALIZATION */

.rgpv2-grid .rgpv2-title{
text-transform:capitalize !important;
}

.rgpv2-sidebar h4{
text-transform:capitalize !important;
}