/**
 * Product Tag Image Widget Styles
 */

.roxyrich-product-tag-image-widget {
    width: 100%;
}

/* Tags Row */
.product-tags-grid {
    display: flex;
    gap: 10px !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tag Card */
.product-tag-card {
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
}

.product-tag-link {
    text-decoration: none;
    display: block;
    position: relative;
}

/* Tag Image */
.product-tag-image {
    width: 60px !important;
    height: 60px !important;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.product-tag-card:hover .product-tag-image {
    opacity: 0.8;
}

/* Tag Name - Hidden but used for tooltip */
.product-tag-name {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
    margin: 0;
}

/* Tooltip arrow */
.product-tag-name::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000;
}

/* Show tooltip on hover */
.product-tag-link:hover .product-tag-name {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .product-tag-image {
        width: 50px !important;
        height: 50px !important;
    }

    .product-tags-grid {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .product-tag-image {
        width: 45px;
        height: 45px;
    }

    .product-tags-grid {
        gap: 10px;
    }
}
