.rx-tabbed-products {
    width: 100%;
    direction: rtl; /* remove if your site is LTR */
    font-family: inherit;
}

.rx-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.rx-tab {
    cursor: pointer;
    border: none;
    outline: none;
    background: #e3e3e3;
    color: #333;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    transition: background-color .25s, color .25s, transform .15s;
}

.rx-tab:hover {
    transform: translateY(-1px);
}

.rx-tab.active {
    background: #ff0055;
    color: #fff;
}

.rx-products-grid {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.rx-products-grid.active {
    display: grid;
}

/* Product cards styled similar to your screenshot */
.rx-product-card {
    background: linear-gradient(135deg, #0066ff 0%, #00aaff 60%, #e6f4ff 100%);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.rx-product-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.rx-product-thumb {
    position: relative;
    margin-bottom: 8px;
}

.rx-product-thumb img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
}

.rx-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff0055;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.rx-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.rx-product-price {
    background: #fff;
    border-radius: 14px;
    padding: 6px 10px;
    display: inline-block;
    min-width: 70%;
    font-size: 14px;
    font-weight: 700;
}

/* Woo price styling inside */
.rx-product-price del {
    color: #d00000;
    margin-left: 6px;
}

.rx-product-price ins {
    color: #111;
}

/* Responsive tweaks – columns are mostly controlled by Elementor,
   but here’s a safe fallback in case */
@media (max-width: 1024px) {
    .rx-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .rx-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

