/* Frontend Styles */
.rp-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.rp-product-card {
    border: 2px solid #6b9080;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.rp-product-card:hover {
    transform: translateY(-5px);
}

.rp-product-card-inner {
    display: flex;
    min-height: 150px;
}

.rp-image-section {
    position: relative;
    width: 130px;
    min-width: 130px;
    padding: 10px;
    text-align: center;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rp-image-section img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
}

.rp-type-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    background-color: #C4A77D;
    color: white;
}

.rp-favorite-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    background-color: #ffd700;
    color: #333;
}

.rp-content-section {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rp-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.rp-product-title {
    margin: 0;
    font-size: 13px;
    color: #2a4d3a;
    line-height: 1.3;
    flex: 1;
}

.rp-discount {
    font-size: 11px;
    font-weight: bold;
    color: #C4A77D;
    white-space: nowrap;
    flex-shrink: 0;
}

.rp-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rp-button {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2a4d3a;
    color: white;
    min-height: 28px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rp-button:hover {
    background-color: #6b9080;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.rp-learn-more-icon,
.rp-share-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 12px;
    background-color: #6b9080;
    font-weight: 600;
}

.rp-learn-more-icon:hover,
.rp-share-icon:hover {
    background-color: #2a4d3a;
}

.rp-icon-info,
.rp-icon-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.rp-get-now,
.rp-promo-code {
    flex: 1;
    min-width: 80px;
    font-size: 10px;
    padding: 6px 10px;
    font-weight: 600;
}

.rp-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.rp-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.rp-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.rp-close:hover {
    background-color: #f0f0f0;
}

.rp-modal-content p {
    line-height: 1.6;
    margin-bottom: 1em;
    white-space: pre-line;
    word-wrap: break-word;
}

.rp-modal-content h3 {
    margin-top: 0;
    color: #2a4d3a;
    border-bottom: 2px solid #6b9080;
    padding-bottom: 10px;
}

/* Frontend Search Box */
.rp-frontend-search {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rp-frontend-search form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rp-frontend-search input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #6b9080;
    border-radius: 4px;
    font-size: 14px;
}

.rp-frontend-search button {
    padding: 10px 20px;
    background: #2a4d3a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.rp-frontend-search button:hover {
    background: #6b9080;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .rp-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rp-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rp-product-card-inner {
        flex-direction: row;
        min-height: 130px;
    }
    
    .rp-image-section {
        width: 130px;
        min-width: 130px;
        height: 130px;
    }
    
    .rp-image-section img {
        width: 110px;
        height: 110px;
    }
    
    .rp-content-section {
        padding: 10px;
    }
    
    .rp-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .rp-product-title {
        font-size: 12px;
    }
    
    .rp-discount {
        font-size: 10px;
    }
    
    .rp-buttons {
        gap: 4px;
    }
    
    .rp-button {
        font-size: 9px;
        padding: 5px 8px;
        min-height: 28px;
    }
    
    .rp-learn-more-icon,
    .rp-share-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .rp-get-now,
    .rp-promo-code {
        min-width: 70px;
        font-size: 9px;
    }
    
    .rp-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .rp-frontend-search form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rp-frontend-search input,
    .rp-frontend-search button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rp-product-card {
        margin: 0 10px;
    }
    
    .rp-product-card-inner {
        min-height: 120px;
    }
    
    .rp-image-section {
        width: 120px;
        min-width: 120px;
        height: 120px;
        padding: 8px;
    }
    
    .rp-image-section img {
        width: 104px;
        height: 104px;
    }
    
    .rp-content-section {
        padding: 8px;
    }
    
    .rp-buttons {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .rp-button {
        flex: 1;
        margin: 1px;
        font-size: 8px;
        padding: 4px 6px;
    }
    
    .rp-learn-more-icon,
    .rp-share-icon {
        flex: 0 0 auto;
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
}