/* Container tools */
.product-small .my-product-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    z-index: 10;
}

/* Reset button */
.my-product-tools button {
    border: none;
    background: none;
    padding: 0;
}

/* Style icon tròn cơ bản */
.my-product-tools .woosw-btn,
.my-product-tools .woosc-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Ẩn text mặc định */
.my-product-tools .woosw-btn-text,
.my-product-tools .woosc-btn-text {
    display: inline-block !important;
    max-width: 0;
    opacity: 0;
    margin-right: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 12px;
}

/* Icon */
.my-product-tools .woosw-btn-icon,
.my-product-tools .woosc-btn-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Hover effect */
.my-product-tools .woosw-btn:hover,
.my-product-tools .woosc-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
    width: auto;
    padding: 0 10px;
    border-radius: 20px;
    gap: 6px;
}

/* Hover → hiện text */
.my-product-tools .woosw-btn:hover .woosw-btn-text,
.my-product-tools .woosc-btn:hover .woosc-btn-text {
    max-width: 120px;
    opacity: 1;
    margin-right: 6px;
}

/* Active wishlist */
.my-product-tools .woosw-added {
    background: var(--primary-color);
    color: #fff;
}


/* Ẩn nút Compare và Wishlist trên mobile */
@media (max-width: 849px) {
    /* Ẩn cả container tool để JS Flatsome không override */
    .product-small .image-tools.is-small.top.right {
        display: none ;
        visibility: hidden ;
        opacity: 0;
    }
}