.rd-product-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.rd-carousel-wrapper {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.rd-product-slide {
    position: absolute;
    width: 300px;
    transition: all 0.3s ease;
    opacity: 0.5;
    transform: scale(0.8);
}

.rd-product-slide.active {
    opacity: 1;
    transform: scale(1) translateX(-50%);
    left: 50%;
    z-index: 2;
}

.rd-product-slide.prev {
    transform: scale(0.8);
    left: 15%;
    z-index: 1;
}

.rd-product-slide.next {
    transform: scale(0.8);
    right: 15%;
    z-index: 1;
}

.rd-product-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 370px;
    display: flex;
    flex-direction: column;
}

.rd-product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rd-product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.rd-product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 10px;
    position: relative;
}

/* Only show divider when price exists */
.rd-product-info:has(.rd-price):after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: black;
    transform: translateX(-50%);
}

.rd-product-card h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    line-height: 25px;
    text-align: left;
    padding-right: 10px;
    /* Allow text to wrap */
    white-space: normal;
    word-wrap: break-word;
}

/* Make title full width when no price exists */
.rd-product-info:not(:has(.rd-price)) {
    grid-template-columns: 1fr;
}

.rd-product-info:not(:has(.rd-price)) h3 {
    padding-right: 0;
}

.rd-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
}

.rd-rating {
    color: #FFB800;
    font-size: 16px;
    margin: 10px 0;
    text-align: center;
}

.rd-rating .star-rating {
    float: none;
    display: inline-block;
}

.rd-prev, .rd-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 3;
    font-size: 20px;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.rd-prev:hover, .rd-next:hover {
    background: rgba(0,0,0,0.7);
}

.rd-prev { 
    left: 20px; 
}

.rd-next { 
    right: 20px; 
}

/* WooCommerce specific styling overrides */
.rd-product-card .price {
    color: #333 !important;
    font-size: 20px !important;
    font-weight: bold !important;
    text-align: center !important;
}

.rd-product-card .star-rating {
    margin: 10px auto !important;
}

.rd-product-card .star-rating span:before {
    color: #FFB800 !important;
}