/* Main Wrapper */
.relievia-advanced-tabs-e0dc0475 {
    width: 100%;
    font-family: inherit;
}

/* Tabs Navigation */
.relievia-tabs-nav-e0dc0475 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
}
.relievia-tabs-nav-e0dc0475::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.rt-btn {
    flex: 0 0 auto;
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid #2e7d32;
    background: #ffffff;
    color: #2e7d32;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rt-btn:hover {
    background: #e8f5e9;
}

.rt-btn.active {
    background: #2e7d32;
    color: #ffffff;
    border-color: #2e7d32;
}

/* Tabs Content */
.relievia-tabs-content-e0dc0475 {
    position: relative;
}

.rt-pane {
    display: none;
    animation: rtFadeIn 0.4s ease;
}

.rt-pane.active {
    display: block;
}

@keyframes rtFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: Products Grid (CSS Scroll Snap for Mobile) */
.rt-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rt-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.rt-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.rt-product-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
}

.rt-product-img-wrap img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.rt-product-card:hover .rt-product-img-wrap img {
    transform: scale(1.05);
}

.rt-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d32f2f;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.rt-product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rt-product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.rt-product-title a {
    color: #333;
    text-decoration: none;
}

.rt-product-price {
    margin-bottom: 20px;
    font-size: 16px;
    color: #2e7d32;
    font-weight: bold;
}
.rt-product-price del {
    color: #999;
    font-size: 14px;
    font-weight: normal;
    margin-right: 5px;
}

.rt-shop-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #2e7d32;
    color: #2e7d32;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.rt-shop-btn:hover {
    background: #2e7d32;
    color: #fff;
}

/* Tab 2: Gallery */
.rt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.rt-gallery-item {
    border-radius: 12px;
    overflow: hidden;
}
.rt-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.rt-gallery-item:hover img {
    transform: scale(1.05);
}

/* Tab 3: Ingredients */
.rt-ingredients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.rt-ingredient-card {
    display: flex;
    align-items: center;
    background: #f9fdf9;
    border: 1px solid #e8f5e9;
    border-radius: 12px;
    padding: 20px;
    gap: 20px;
}
.rt-ingredient-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}
.rt-ingredient-content h4 {
    margin: 0 0 5px 0;
    color: #2e7d32;
}
.rt-ingredient-content p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Tab 4: Usage Steps */
.rt-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.rt-step-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.rt-step-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}
.rt-step-content h4 {
    margin: 0 0 10px 0;
    color: #333;
}
.rt-step-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .rt-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    /* Mobile CSS Scroll Snap for Products to act as slider */
    .rt-products-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 20px;
        scrollbar-width: none;
    }
    .rt-products-grid::-webkit-scrollbar {
        display: none;
    }
    .rt-product-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
    .rt-ingredients-grid {
        grid-template-columns: 1fr;
    }
}