.etags-products-showcase {
    background: linear-gradient(135deg, #FAF9F6 0%, #F4F1ED 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(97, 81, 65, 0.05);
    direction: rtl;
    font-family: inherit;
    --etags-cols: 4; /* Default overridden by Elementor wrapper settings */
}

.etags-header {
    text-align: center;
    margin-bottom: 30px;
}

.etags-showcase-title {
    color: #414F61;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.etags-showcase-desc {
    color: #615141;
    font-size: 16px;
}

.etags-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-wrap: wrap;
}

.etags-tab-item {
    background: #fff;
    color: #414F61;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
}

.etags-tab-item:hover {
    background: #f9f9f9;
}

.etags-tab-item.active {
    background: #E08326;
    color: #fff;
    box-shadow: 0 6px 15px rgba(224, 131, 38, 0.3);
}

.etags-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.etags-tab-pane.active {
    display: block;
}

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

/* Custom Grid Layout */
.etags-product-grid.etags-custom-products {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(var(--etags-cols, 4), 1fr);
}

/* Rounded corners for custom product cards */
.etags-custom-product-card {
    background: #fff;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.etags-custom-product-card:hover {
    box-shadow: 0 15px 35px rgba(65, 79, 97, 0.1);
    transform: translateY(-8px);
}

.etags-product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
    border-radius: 20px 20px 0 0;
}

.etags-product-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1;
    transition: transform 0.5s ease;
}

.etags-custom-product-card:hover .etags-product-img {
    transform: scale(1.05);
}

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

/* Actions Overlay - Vertical on the right */
.etags-product-actions {
    position: absolute;
    top: 20px;
    left: 20px; /* Due to RTL, left means right side visually */
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.etags-custom-product-card:hover .etags-product-actions {
    opacity: 1;
    transform: translateX(0);
}

.etags-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #414F61;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Fix for YITH Wishlist shortcode wrapper */
.etags-action-btn.wishlist {
    padding: 0;
}
.etags-action-btn.wishlist .yith-wcwl-add-to-wishlist {
    margin: 0;
}
.etags-action-btn.wishlist .yith-wcwl-add-button > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #414F61;
}

/* Ensures internal FontAwesome icons in shortcodes are displayed */
.etags-action-btn i,
.etags-action-btn.wishlist i,
.etags-action-btn.compare i {
    font-family: "FontAwesome", "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important; /* Required for solid icons */
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.etags-action-btn:hover,
.etags-action-btn.wishlist .yith-wcwl-add-button > a:hover {
    background: #E08326;
    color: #fff;
}

/* Tooltip Styles - Right side tooltips */
.etags-action-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%; /* Tooltip appears to the left of the button (RTL right) */
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    margin-right: 10px;
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.etags-action-btn::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    border: 5px solid transparent;
    border-left-color: #333; /* Arrow pointing to the button */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.etags-action-btn:hover::after,
.etags-action-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

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

.etags-product-title {
    color: #414F61;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.etags-product-title a {
    color: inherit;
    text-decoration: none;
}

.etags-product-title a:hover {
    color: #E08326;
}

.etags-product-rating {
    margin-bottom: 10px;
}

.etags-product-price {
    color: #E08326;
    font-weight: 700;
    font-size: 18px;
    margin-top: auto;
}

.etags-product-price del {
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 400;
    margin-left: 5px;
}

/* Slider Specific Styles */
.etags-slider-active.etags-custom-products::-webkit-scrollbar {
    height: 6px;
}
.etags-slider-active.etags-custom-products::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
.etags-slider-active.etags-custom-products::-webkit-scrollbar-thumb {
    background: #E08326;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .etags-products-showcase {
        padding: 20px;
    }
    
    /* Ensure tooltips are visible on mobile */
    .etags-product-actions {
        opacity: 1;
        transform: translateX(0);
    }
}
