/* Container */
.wp-block-rm-product-card,
.rmpc-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    clear: both;
}

/* Title */
h2.rmpc-title {
    margin: 0;
    padding: 0;
}

/* Image */
.rmpc-image-wrapper {
    position: relative;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}
.rmpc-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    object-fit: cover;
}
.rmpc-badge {
    position: absolute;
    top: 10px;
    left: -10px;
    background: #ff3c3c;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Content Area */
.rmpc-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.rmpc-content .rmpc-rating {
    color: #ffb400;
    font-size: 1.2rem;
    line-height: 1;
}
.rmpc-content .rmpc-desc {
    margin: 0;
}
.rmpc-content .rmpc-desc p {
    margin-bottom: 0.75rem;
}
.rmpc-content .rmpc-desc p:last-child {
    margin-bottom: 0;
}
.rmpc-price {
    font-size: 1.25rem;
}
.rmpc-button, 
.rmpc-button-wrapper .rmpc-button {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 24px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.2s;
}
.rmpc-button:hover {
    opacity: 0.8;
    color: #fff;
}

/* Desktop View (Grid Layout) */
@media (min-width: 768px) {
    .wp-block-rm-product-card,
    .rmpc-card {
        display: grid;
        grid-template-columns: 35% 1fr;
        grid-template-rows: auto 1fr;
        row-gap: 1rem;
        column-gap: 1.5rem;
    }
    
    .rmpc-title {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .rmpc-image-wrapper {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    
    .rmpc-content {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
}