/* Related Products Carousel */
.rpc-section {
    margin: 2.5rem 0;
}

.rpc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.rpc-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-light, #111811);
}

.rpc-nav-btns {
    display: flex;
    gap: 0.5rem;
}

.rpc-btn-prev,
.rpc-btn-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}

.rpc-btn-prev:hover,
.rpc-btn-next:hover {
    background: var(--primary-color, #13ec13);
    border-color: var(--primary-color, #13ec13);
    color: #fff;
}

.rpc-btn-prev:disabled,
.rpc-btn-next:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.rpc-btn-prev .material-icons,
.rpc-btn-next .material-icons {
    font-size: 1rem;
}

.rpc-track-wrapper {
    overflow: hidden;
}

.rpc-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
}

.rpc-track::-webkit-scrollbar {
    display: none;
}

.rpc-item {
    flex: 0 0 auto;
    width: auto;
    scroll-snap-align: start;
}

.rpc-card {
    width: fit-content;
    text-decoration: none;
    color: inherit;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #f0f4f0;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.rpc-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.rpc-image-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f9fa;
}

.rpc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.rpc-card:hover .rpc-img {
    transform: scale(1.04);
}

.rpc-info {
    padding: 0.65rem 0.75rem 0.75rem;
}

.rpc-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #222;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.rpc-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.rpc-price-special {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color, #13ec13);
}

.rpc-price-old {
    font-size: 0.75rem;
    color: #999;
    text-decoration: line-through;
}

.rpc-price-regular {
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
}

/* Mobile: Show 2 products at a time */
@media (max-width: 767.98px) {
    .rpc-item {
        flex: 0 0 calc(50% - 0.5rem);
    }
}
